Browse Source

Rework some python code, split shared code into separate files

tags/1.9.4
falkTX 11 years ago
parent
commit
d53df87d60
6 changed files with 3316 additions and 2914 deletions
  1. +38
    -14
      resources/ui/carla_database.ui
  2. +16
    -2
      resources/ui/carla_refresh.ui
  3. +1622
    -0
      source/carla_database.py
  4. +22
    -2896
      source/carla_shared.py
  5. +1606
    -0
      source/carla_widgets.py
  6. +12
    -2
      source/discovery/carla-discovery.cpp

+ 38
- 14
resources/ui/carla_database.ui View File

@@ -45,7 +45,7 @@
<string>Refresh</string> <string>Refresh</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../resources/resources.qrc">
<iconset resource="../resources.qrc">
<normaloff>:/16x16/view-refresh.png</normaloff>:/16x16/view-refresh.png</iconset> <normaloff>:/16x16/view-refresh.png</normaloff>:/16x16/view-refresh.png</iconset>
</property> </property>
</widget> </widget>
@@ -61,6 +61,13 @@
<enum>QFrame::Sunken</enum> <enum>QFrame::Sunken</enum>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="5" column="2">
<widget class="QCheckBox" name="ch_gui">
<property name="text">
<string>With GUI Only</string>
</property>
</widget>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QCheckBox" name="ch_dssi"> <widget class="QCheckBox" name="ch_dssi">
<property name="text"> <property name="text">
@@ -89,13 +96,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0">
<widget class="QCheckBox" name="ch_kits">
<property name="text">
<string>Sound Kits</string>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QCheckBox" name="ch_internal"> <widget class="QCheckBox" name="ch_internal">
<property name="text"> <property name="text">
@@ -152,17 +152,38 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="2">
<item row="4" column="2">
<widget class="QCheckBox" name="ch_stereo"> <widget class="QCheckBox" name="ch_stereo">
<property name="text"> <property name="text">
<string>Stereo only</string> <string>Stereo only</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="2">
<widget class="QCheckBox" name="ch_gui">
<item row="5" column="0">
<widget class="QCheckBox" name="ch_au">
<property name="text"> <property name="text">
<string>With GUI Only</string>
<string>AudioUnits</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="ch_rtsafe">
<property name="text">
<string>Real-time safe only</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QCheckBox" name="ch_kits">
<property name="text">
<string>Sound Kits</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QCheckBox" name="ch_csound">
<property name="text">
<string>CSound modules</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -289,6 +310,9 @@
<property name="text"> <property name="text">
<string>(Number of Plugins go here)</string> <string>(Number of Plugins go here)</string>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@@ -310,7 +334,7 @@
<string>&amp;Add Plugin</string> <string>&amp;Add Plugin</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../resources/resources.qrc">
<iconset resource="../resources.qrc">
<normaloff>:/16x16/list-add.png</normaloff>:/16x16/list-add.png</iconset> <normaloff>:/16x16/list-add.png</normaloff>:/16x16/list-add.png</iconset>
</property> </property>
</widget> </widget>
@@ -327,7 +351,7 @@
<tabstop>tableWidget</tabstop> <tabstop>tableWidget</tabstop>
</tabstops> </tabstops>
<resources> <resources>
<include location="../../resources/resources.qrc"/>
<include location="../resources.qrc"/>
</resources> </resources>
<connections> <connections>
<connection> <connection>


+ 16
- 2
resources/ui/carla_refresh.ui View File

@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>610</width>
<height>308</height>
<width>609</width>
<height>349</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@@ -71,6 +71,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="ch_au">
<property name="text">
<string>AudioUnits</string>
</property>
</widget>
</item>
<item> <item>
<widget class="Line" name="line_3"> <widget class="Line" name="line_3">
<property name="lineWidth"> <property name="lineWidth">
@@ -84,6 +91,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="ch_csound">
<property name="text">
<string>CSD</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QCheckBox" name="ch_gig"> <widget class="QCheckBox" name="ch_gig">
<property name="text"> <property name="text">


+ 1622
- 0
source/carla_database.py
File diff suppressed because it is too large
View File


+ 22
- 2896
source/carla_shared.py
File diff suppressed because it is too large
View File


+ 1606
- 0
source/carla_widgets.py
File diff suppressed because it is too large
View File


+ 12
- 2
source/discovery/carla-discovery.cpp View File

@@ -38,7 +38,12 @@
# include <fluidsynth.h> # include <fluidsynth.h>
#endif #endif
#ifdef WANT_LINUXSAMPLER #ifdef WANT_LINUXSAMPLER
// fix broken headers
# define TMP__cplusplus __cplusplus
# undef __cplusplus
# include "linuxsampler/EngineFactory.h" # include "linuxsampler/EngineFactory.h"
# define __cplusplus TMP__cplusplus
# undef TMP__cplusplus
#endif #endif


#include <iostream> #include <iostream>
@@ -1604,7 +1609,7 @@ int main(int argc, char* argv[])
case PLUGIN_LADSPA: case PLUGIN_LADSPA:
case PLUGIN_DSSI: case PLUGIN_DSSI:
case PLUGIN_VST: case PLUGIN_VST:
case PLUGIN_VST3:
case PLUGIN_AU:
openLib = true; openLib = true;
default: default:
break; break;
@@ -1661,9 +1666,14 @@ int main(int argc, char* argv[])
do_lv2_check(filename, doInit); do_lv2_check(filename, doInit);
break; break;
case PLUGIN_VST: case PLUGIN_VST:
case PLUGIN_VST3:
do_vst_check(handle, doInit); do_vst_check(handle, doInit);
break; break;
case PLUGIN_AU:
//do_au_check(handle, doInit);
break;
case PLUGIN_CSOUND:
//do_csound_check(handle, doInit);
break;
case PLUGIN_GIG: case PLUGIN_GIG:
do_linuxsampler_check(filename, "gig", doInit); do_linuxsampler_check(filename, "gig", doInit);
break; break;


Loading…
Cancel
Save