|
|
@@ -2,7 +2,7 @@ |
|
|
# -*- coding: utf-8 -*- |
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
|
|
|
|
# Carla Backend code (Qt stuff) |
|
|
# Carla Backend code (Qt stuff) |
|
|
# Copyright (C) 2011-2014 Filipe Coelho <falktx@falktx.com> |
|
|
|
|
|
|
|
|
# Copyright (C) 2011-2017 Filipe Coelho <falktx@falktx.com> |
|
|
# |
|
|
# |
|
|
# This program is free software; you can redistribute it and/or |
|
|
# This program is free software; you can redistribute it and/or |
|
|
# modify it under the terms of the GNU General Public License as |
|
|
# modify it under the terms of the GNU General Public License as |
|
|
@@ -25,21 +25,15 @@ from carla_config import * |
|
|
# Imports (Global) |
|
|
# Imports (Global) |
|
|
|
|
|
|
|
|
if config_UseQt5: |
|
|
if config_UseQt5: |
|
|
from PyQt5.QtCore import pyqtSignal, pyqtWrapperType, QObject |
|
|
|
|
|
|
|
|
from PyQt5.QtCore import pyqtSignal, QObject |
|
|
else: |
|
|
else: |
|
|
from PyQt4.QtCore import pyqtSignal, pyqtWrapperType, QObject |
|
|
|
|
|
|
|
|
from PyQt4.QtCore import pyqtSignal, QObject |
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
# Imports (Custom) |
|
|
# Imports (Custom) |
|
|
|
|
|
|
|
|
from carla_backend import * |
|
|
from carla_backend import * |
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
|
|
# An empty class used to resolve metaclass conflicts between ABC and PyQt modules |
|
|
|
|
|
|
|
|
|
|
|
class PyQtMetaClass(pyqtWrapperType, ABCMeta): |
|
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
# Carla Host PyQt signals |
|
|
# Carla Host PyQt signals |
|
|
|
|
|
|
|
|
@@ -89,7 +83,6 @@ class CarlaHostSignals(QObject): |
|
|
# Carla Host object (dummy/null, does nothing) |
|
|
# Carla Host object (dummy/null, does nothing) |
|
|
|
|
|
|
|
|
class CarlaHostQtNull(CarlaHostNull, CarlaHostSignals): |
|
|
class CarlaHostQtNull(CarlaHostNull, CarlaHostSignals): |
|
|
#class CarlaHostQtDLL(CarlaHostNull, CarlaHostSignals, metaclass=PyQtMetaClass): |
|
|
|
|
|
def __init__(self): |
|
|
def __init__(self): |
|
|
CarlaHostSignals.__init__(self) |
|
|
CarlaHostSignals.__init__(self) |
|
|
CarlaHostNull.__init__(self) |
|
|
CarlaHostNull.__init__(self) |
|
|
@@ -98,7 +91,6 @@ class CarlaHostQtNull(CarlaHostNull, CarlaHostSignals): |
|
|
# Carla Host object using a DLL |
|
|
# Carla Host object using a DLL |
|
|
|
|
|
|
|
|
class CarlaHostQtDLL(CarlaHostDLL, CarlaHostSignals): |
|
|
class CarlaHostQtDLL(CarlaHostDLL, CarlaHostSignals): |
|
|
#class CarlaHostQtDLL(CarlaHostDLL, CarlaHostSignals, metaclass=PyQtMetaClass): |
|
|
|
|
|
def __init__(self, libName): |
|
|
def __init__(self, libName): |
|
|
CarlaHostSignals.__init__(self) |
|
|
CarlaHostSignals.__init__(self) |
|
|
CarlaHostDLL.__init__(self, libName) |
|
|
CarlaHostDLL.__init__(self, libName) |
|
|
@@ -107,7 +99,6 @@ class CarlaHostQtDLL(CarlaHostDLL, CarlaHostSignals): |
|
|
# Carla Host object for plugins (using pipes) |
|
|
# Carla Host object for plugins (using pipes) |
|
|
|
|
|
|
|
|
class CarlaHostQtPlugin(CarlaHostPlugin, CarlaHostSignals): |
|
|
class CarlaHostQtPlugin(CarlaHostPlugin, CarlaHostSignals): |
|
|
#class CarlaHostQtPlugin(CarlaHostPlugin, CarlaHostSignals, metaclass=PyQtMetaClass): |
|
|
|
|
|
def __init__(self): |
|
|
def __init__(self): |
|
|
CarlaHostSignals.__init__(self) |
|
|
CarlaHostSignals.__init__(self) |
|
|
CarlaHostPlugin.__init__(self) |
|
|
CarlaHostPlugin.__init__(self) |
|
|
|