@@ -68,7 +68,7 @@ NSM_URL = os.getenv("NSM_URL") | |||||
# ------------------------------------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------------------------------------ | ||||
# Host Window | # Host Window | ||||
class HostWindow(QMainWindow, PluginEditParentMeta): | |||||
class HostWindow(QMainWindow): | |||||
#class HostWindow(QMainWindow, PluginEditParentMeta, metaclass=PyQtMetaClass): | #class HostWindow(QMainWindow, PluginEditParentMeta, metaclass=PyQtMetaClass): | ||||
# signals | # signals | ||||
SIGTERM = pyqtSignal() | SIGTERM = pyqtSignal() | ||||
@@ -1578,7 +1578,7 @@ class HostWindow(QMainWindow, PluginEditParentMeta): | |||||
if pitem is None: | if pitem is None: | ||||
return None | return None | ||||
#if False: | #if False: | ||||
#pitem = CarlaRackItem(self, 0, False) | |||||
#return CarlaRackItem(self, 0, False) | |||||
return pitem | return pitem | ||||
@@ -1589,8 +1589,8 @@ class HostWindow(QMainWindow, PluginEditParentMeta): | |||||
pitem = self.fPluginList[pluginId] | pitem = self.fPluginList[pluginId] | ||||
if pitem is None: | if pitem is None: | ||||
return None | return None | ||||
#if False: | |||||
#pitem = CarlaRackItem(self, 0, False) | |||||
if False: | |||||
return PluginEdit(self, self.host, 0) | |||||
return pitem.getEditDialog() | return pitem.getEditDialog() | ||||
@@ -1602,7 +1602,7 @@ class HostWindow(QMainWindow, PluginEditParentMeta): | |||||
if pitem is None: | if pitem is None: | ||||
return None | return None | ||||
#if False: | #if False: | ||||
#pitem = CarlaRackItem(self, 0, False) | |||||
#return AbstractPluginSlot() | |||||
return pitem.getWidget() | return pitem.getWidget() | ||||
@@ -1112,7 +1112,7 @@ static void do_lv2_check(const char* const bundle, const bool doInit) | |||||
} | } | ||||
} | } | ||||
if (LV2_IS_GENERATOR(rdfDescriptor->Type[0], rdfDescriptor->Type[1])) | |||||
if (LV2_IS_INSTRUMENT(rdfDescriptor->Type[0], rdfDescriptor->Type[1])) | |||||
hints |= PLUGIN_IS_SYNTH; | hints |= PLUGIN_IS_SYNTH; | ||||
if (rdfDescriptor->UICount > 0) | if (rdfDescriptor->UICount > 0) | ||||
@@ -291,6 +291,7 @@ typedef uint32_t LV2_Property; | |||||
#define LV2_IS_EQ(x, y) ((x) & LV2_GROUP_EQ) | #define LV2_IS_EQ(x, y) ((x) & LV2_GROUP_EQ) | ||||
#define LV2_IS_FILTER(x, y) ((x) & LV2_GROUP_FILTER) | #define LV2_IS_FILTER(x, y) ((x) & LV2_GROUP_FILTER) | ||||
#define LV2_IS_GENERATOR(x, y) ((y) & LV2_GROUP_GENERATOR) | #define LV2_IS_GENERATOR(x, y) ((y) & LV2_GROUP_GENERATOR) | ||||
#define LV2_IS_INSTRUMENT(x, y) ((y) & LV2_PLUGIN_INSTRUMENT) | |||||
#define LV2_IS_MODULATOR(x, y) ((y) & LV2_GROUP_MODULATOR) | #define LV2_IS_MODULATOR(x, y) ((y) & LV2_GROUP_MODULATOR) | ||||
#define LV2_IS_REVERB(x, y) ((x) & LV2_GROUP_REVERB) | #define LV2_IS_REVERB(x, y) ((x) & LV2_GROUP_REVERB) | ||||
#define LV2_IS_SIMULATOR(x, y) ((x) & LV2_GROUP_SIMULATOR) | #define LV2_IS_SIMULATOR(x, y) ((x) & LV2_GROUP_SIMULATOR) | ||||
@@ -49,10 +49,10 @@ class RackListItem(QListWidgetItem): | |||||
if False: | if False: | ||||
# kdevelop likes this :) | # kdevelop likes this :) | ||||
from carla_backend import CarlaHostMeta | |||||
parent = RackListWidget() | parent = RackListWidget() | ||||
host = CarlaHostMeta() | host = CarlaHostMeta() | ||||
self.host = host | self.host = host | ||||
self.fWidget = AbstractPluginSlot() | |||||
# ---------------------------------------------------------------------------------------------------- | # ---------------------------------------------------------------------------------------------------- | ||||
# Internal stuff | # Internal stuff | ||||
@@ -103,7 +103,7 @@ class RackListItem(QListWidgetItem): | |||||
self.fWidget = createPluginSlot(self.fParent, self.host, self.fPluginId, self.fUseSkins) | self.fWidget = createPluginSlot(self.fParent, self.host, self.fPluginId, self.fUseSkins) | ||||
self.fWidget.setFixedHeight(self.fWidget.getFixedHeight()) | self.fWidget.setFixedHeight(self.fWidget.getFixedHeight()) | ||||
self.setSizeHint(QSize(640, self.fWidget.getFixedHeight())) | |||||
self.setSizeHint(QSize(700, self.fWidget.getFixedHeight())) | |||||
self.fParent.setItemWidget(self, self.fWidget) | self.fParent.setItemWidget(self, self.fWidget) | ||||