Browse Source

Cleanup

tags/1.9.5
falkTX 10 years ago
parent
commit
9dd7cafbd0
2 changed files with 5 additions and 49 deletions
  1. +4
    -5
      source/carla_shared.py
  2. +1
    -44
      source/carla_widgets.py

+ 4
- 5
source/carla_shared.py View File

@@ -56,10 +56,9 @@ from carla_backend import *
# ------------------------------------------------------------------------------------------------------------
# Platform specific stuff

if MACOS:
if not config_UseQt5:
from PyQt4.QtGui import qt_mac_set_menubar_icons
qt_mac_set_menubar_icons(False)
if MACOS and not config_UseQt5:
from PyQt4.QtGui import qt_mac_set_menubar_icons
qt_mac_set_menubar_icons(False)

elif WINDOWS:
WINDIR = os.getenv("WINDIR")
@@ -253,7 +252,7 @@ CARLA_DEFAULT_CANVAS_HQ_ANTIALIASING = False
CARLA_DEFAULT_FORCE_STEREO = False
CARLA_DEFAULT_PREFER_PLUGIN_BRIDGES = False
CARLA_DEFAULT_PREFER_UI_BRIDGES = True
CARLA_DEFAULT_UIS_ALWAYS_ON_TOP = True
CARLA_DEFAULT_UIS_ALWAYS_ON_TOP = False
CARLA_DEFAULT_MAX_PARAMETERS = MAX_DEFAULT_PARAMETERS
CARLA_DEFAULT_UI_BRIDGES_TIMEOUT = 4000



+ 1
- 44
source/carla_widgets.py View File

@@ -53,49 +53,6 @@ ICON_STATE_WAIT1 = 2 # sets as wait2
ICON_STATE_WAIT2 = 1 # turns off, sets as off
ICON_STATE_OFF = 0 # do nothing

# ------------------------------------------------------------------------------------------------------------
# Fake plugin info for easy testing

gFakePluginInfo = {
"type": PLUGIN_NONE,
"category": PLUGIN_CATEGORY_SYNTH,
"hints": PLUGIN_IS_SYNTH|PLUGIN_CAN_DRYWET|PLUGIN_CAN_VOLUME|PLUGIN_CAN_PANNING,
"optionsAvailable": 0x1FF, # all
"optionsEnabled": 0x1FF, # all
"filename": "AwesoomeFilename.what",
"name": "Awesoome Name",
"label": "awesoomeLabel",
"maker": "Awesoome Maker",
"copyright": "Awesoome Copyright",
"iconName": "plugin",
"uniqueId": 0
}

gFakeParamInfo = {
"type": PARAMETER_INPUT,
"hints": PARAMETER_IS_ENABLED|PARAMETER_IS_AUTOMABLE,
"name": "Parameter Name",
"unit": "",
"scalePoints": [],

"index": 0,
"default": 0.0,
"minimum": 0.0,
"maximum": 1.0,
"step": 0.001,
"stepSmall": 0.0001,
"stepLarge": 0.01,
"midiCC": -1,
"midiChannel": 1,

"current": 0.0
}

gFakePortCountInfo = {
"ins": 0,
"outs": 0
}

# ------------------------------------------------------------------------------------------------------------
# Carla About dialog

@@ -124,7 +81,7 @@ class CarlaAboutW(QDialog):

if host.isControl or host.isPlugin:
self.ui.l_extended.hide()
self.ui.tabWidget.removeTab(1)
self.ui.tabWidget.removeTab(2)
self.ui.tabWidget.removeTab(1)

else:


Loading…
Cancel
Save