@@ -59,7 +59,7 @@ if __name__ == '__main__': | |||||
# ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
# Create GUI | # Create GUI | ||||
gui = HostWindow(host, False) | |||||
gui = HostWindow(host, True) | |||||
# ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
# Load project file if set | # Load project file if set | ||||
@@ -1,54 +0,0 @@ | |||||
#!/usr/bin/env python3 | |||||
# -*- coding: utf-8 -*- | |||||
# Carla patchbay widget code | |||||
# Copyright (C) 2011-2014 Filipe Coelho <falktx@falktx.com> | |||||
# | |||||
# This program is free software; you can redistribute it and/or | |||||
# modify it under the terms of the GNU General Public License as | |||||
# published by the Free Software Foundation; either version 2 of | |||||
# the License, or any later version. | |||||
# | |||||
# This program is distributed in the hope that it will be useful, | |||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
# GNU General Public License for more details. | |||||
# | |||||
# For a full copy of the GNU General Public License see the doc/GPL.txt file. | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Imports (Config) | |||||
from carla_config import * | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Imports (Global) | |||||
if config_UseQt5: | |||||
from PyQt5.QtCore import QPointF, QTimer | |||||
from PyQt5.QtGui import QImage | |||||
from PyQt5.QtWidgets import QFrame, QGraphicsView, QGridLayout | |||||
else: | |||||
from PyQt4.QtCore import QPointF, QTimer | |||||
from PyQt4.QtGui import QFrame, QGraphicsView, QGridLayout, QImage | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Imports (Custom Stuff) | |||||
import patchcanvas | |||||
from carla_host import * | |||||
from digitalpeakmeter import DigitalPeakMeter | |||||
from pixmapkeyboard import PixmapKeyboardHArea | |||||
# ------------------------------------------------------------------------------------------------ | |||||
# Patchbay widget | |||||
class CarlaPatchbayW(QFrame, PluginEditParentMeta): | |||||
#class CarlaPatchbayW(QFrame, PluginEditParentMeta, metaclass=PyQtMetaClass): | |||||
def __init__(self, parent, host, doSetup = True, onlyPatchbay = True, is3D = False): | |||||
QFrame.__init__(self, parent) | |||||
self.host = host | |||||
# ------------------------------------------------------------- | |||||
# Connect actions to functions |
@@ -1,56 +0,0 @@ | |||||
#!/usr/bin/env python3 | |||||
# -*- coding: utf-8 -*- | |||||
# Carla rack widget code | |||||
# Copyright (C) 2011-2014 Filipe Coelho <falktx@falktx.com> | |||||
# | |||||
# This program is free software; you can redistribute it and/or | |||||
# modify it under the terms of the GNU General Public License as | |||||
# published by the Free Software Foundation; either version 2 of | |||||
# the License, or any later version. | |||||
# | |||||
# This program is distributed in the hope that it will be useful, | |||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
# GNU General Public License for more details. | |||||
# | |||||
# For a full copy of the GNU General Public License see the doc/GPL.txt file. | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Imports (Config) | |||||
from carla_config import * | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Imports (Global) | |||||
if config_UseQt5: | |||||
from PyQt5.QtCore import Qt, QSize, QTimer | |||||
from PyQt5.QtGui import QPixmap | |||||
from PyQt5.QtWidgets import QAbstractItemView, QApplication, QHBoxLayout, QLabel, QListWidget, QListWidgetItem | |||||
else: | |||||
from PyQt4.QtCore import Qt, QSize, QTimer | |||||
from PyQt4.QtGui import QAbstractItemView, QApplication, QHBoxLayout, QLabel, QListWidget, QListWidgetItem, QPixmap | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Imports (Custom Stuff) | |||||
from carla_host import * | |||||
from carla_skin import * | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Rack widget list | |||||
class CarlaRackList(QListWidget): | |||||
def __init__(self, parent, host): | |||||
QListWidget.__init__(self, parent) | |||||
self.host = host | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Rack widget | |||||
class CarlaRackW(QFrame): | |||||
#class CarlaRackW(QFrame, HostWidgetMeta, metaclass=PyQtMetaClass): | |||||
def __init__(self, parent, host, doSetup = True): | |||||
QFrame.__init__(self, parent) | |||||
self.host = host |