|
|
@@ -16,13 +16,13 @@ |
|
|
|
# |
|
|
|
# For a full copy of the GNU General Public License see the doc/GPL.txt file. |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# Imports (PyQt5) |
|
|
|
|
|
|
|
from PyQt5.QtCore import pyqtSlot, Qt |
|
|
|
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QFileDialog |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# Imports (Custom) |
|
|
|
|
|
|
|
import ui_carla_settings |
|
|
@@ -175,13 +175,13 @@ from carla_shared import ( |
|
|
|
|
|
|
|
from patchcanvas.theme import Theme, getThemeName |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# ... |
|
|
|
|
|
|
|
BUFFER_SIZE_LIST = (16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192) |
|
|
|
SAMPLE_RATE_LIST = (22050, 32000, 44100, 48000, 88200, 96000, 176400, 192000) |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# Driver Settings |
|
|
|
|
|
|
|
class DriverSettingsW(QDialog): |
|
|
@@ -193,7 +193,7 @@ class DriverSettingsW(QDialog): |
|
|
|
self.ui = ui_carla_settings_driver.Ui_DriverSettingsW() |
|
|
|
self.ui.setupUi(self) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Internal stuff |
|
|
|
|
|
|
|
self.fDriverIndex = driverIndex |
|
|
@@ -203,7 +203,7 @@ class DriverSettingsW(QDialog): |
|
|
|
self.fBufferSizes = BUFFER_SIZE_LIST |
|
|
|
self.fSampleRates = SAMPLE_RATE_LIST |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Set-up GUI |
|
|
|
|
|
|
|
for name in self.fDeviceNames: |
|
|
@@ -211,27 +211,28 @@ class DriverSettingsW(QDialog): |
|
|
|
|
|
|
|
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Load settings |
|
|
|
|
|
|
|
self.loadSettings() |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Set-up connections |
|
|
|
|
|
|
|
self.accepted.connect(self.slot_saveSettings) |
|
|
|
self.ui.b_panel.clicked.connect(self.slot_showDevicePanel) |
|
|
|
self.ui.cb_device.currentIndexChanged.connect(self.slot_updateDeviceInfo) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
def loadSettings(self): |
|
|
|
settings = QSafeSettings("falkTX", "Carla2") |
|
|
|
|
|
|
|
audioDevice = settings.value("%s%s/Device" % (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName), "", str) |
|
|
|
audioBufferSize = settings.value("%s%s/BufferSize" % (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName), CARLA_DEFAULT_AUDIO_BUFFER_SIZE, int) |
|
|
|
audioSampleRate = settings.value("%s%s/SampleRate" % (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName), CARLA_DEFAULT_AUDIO_SAMPLE_RATE, int) |
|
|
|
audioTripleBuffer = settings.value("%s%s/TripleBuffer" % (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName), CARLA_DEFAULT_AUDIO_TRIPLE_BUFFER, bool) |
|
|
|
args = (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName) |
|
|
|
audioDevice = settings.value("%s%s/Device" % args, "", str) |
|
|
|
audioBufferSize = settings.value("%s%s/BufferSize" % args, CARLA_DEFAULT_AUDIO_BUFFER_SIZE, int) |
|
|
|
audioSampleRate = settings.value("%s%s/SampleRate" % args, CARLA_DEFAULT_AUDIO_SAMPLE_RATE, int) |
|
|
|
audioTripleBuffer = settings.value("%s%s/TripleBuffer" % args, CARLA_DEFAULT_AUDIO_TRIPLE_BUFFER, bool) |
|
|
|
|
|
|
|
if audioDevice and audioDevice in self.fDeviceNames: |
|
|
|
self.ui.cb_device.setCurrentIndex(self.fDeviceNames.index(audioDevice)) |
|
|
@@ -257,7 +258,7 @@ class DriverSettingsW(QDialog): |
|
|
|
|
|
|
|
self.ui.cb_triple_buffer.setChecked(audioTripleBuffer and self.ui.cb_triple_buffer.isEnabled()) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_saveSettings(self): |
|
|
@@ -271,12 +272,13 @@ class DriverSettingsW(QDialog): |
|
|
|
if sampleRate == self.AUTOMATIC_OPTION: |
|
|
|
sampleRate = "0" |
|
|
|
|
|
|
|
settings.setValue("%s%s/Device" % (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName), self.ui.cb_device.currentText()) |
|
|
|
settings.setValue("%s%s/BufferSize" % (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName), bufferSize) |
|
|
|
settings.setValue("%s%s/SampleRate" % (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName), sampleRate) |
|
|
|
settings.setValue("%s%s/TripleBuffer" % (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName), self.ui.cb_triple_buffer.isChecked()) |
|
|
|
args = (CARLA_KEY_ENGINE_DRIVER_PREFIX, self.fDriverName) |
|
|
|
settings.setValue("%s%s/Device" % args, self.ui.cb_device.currentText()) |
|
|
|
settings.setValue("%s%s/BufferSize" % args, bufferSize) |
|
|
|
settings.setValue("%s%s/SampleRate" % args, sampleRate) |
|
|
|
settings.setValue("%s%s/TripleBuffer" % args, self.ui.cb_triple_buffer.isChecked()) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_showDevicePanel(self): |
|
|
@@ -331,7 +333,7 @@ class DriverSettingsW(QDialog): |
|
|
|
self.ui.cb_samplerate.addItem(self.AUTOMATIC_OPTION) |
|
|
|
self.ui.cb_samplerate.setCurrentIndex(0) |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# Runtime Driver Settings |
|
|
|
|
|
|
|
class RuntimeDriverSettingsW(QDialog): |
|
|
@@ -343,7 +345,7 @@ class RuntimeDriverSettingsW(QDialog): |
|
|
|
|
|
|
|
driverDeviceInfo = host.get_runtime_engine_driver_device_info() |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Set-up GUI |
|
|
|
|
|
|
|
self.ui.cb_device.clear() |
|
|
@@ -367,7 +369,7 @@ class RuntimeDriverSettingsW(QDialog): |
|
|
|
self.adjustSize() |
|
|
|
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Load runtime settings |
|
|
|
|
|
|
|
if host.is_engine_running(): |
|
|
@@ -411,12 +413,12 @@ class RuntimeDriverSettingsW(QDialog): |
|
|
|
if (driverDeviceInfo['hints'] & ENGINE_DRIVER_DEVICE_HAS_CONTROL_PANEL) == 0x0: |
|
|
|
self.ui.b_panel.setEnabled(False) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Set-up connections |
|
|
|
|
|
|
|
self.ui.b_panel.clicked.connect(self.slot_showDevicePanel) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
def getValues(self): |
|
|
|
audioDevice = self.ui.cb_buffersize.currentText() |
|
|
@@ -430,13 +432,13 @@ class RuntimeDriverSettingsW(QDialog): |
|
|
|
|
|
|
|
return (audioDevice, int(bufferSize), int(sampleRate)) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_showDevicePanel(self): |
|
|
|
self.host.show_engine_device_control_panel() |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# Settings Dialog |
|
|
|
|
|
|
|
class CarlaSettingsW(QDialog): |
|
|
@@ -469,7 +471,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
# so add +2 pos padding if driverName != "JACK". |
|
|
|
PROCESS_MODE_NON_JACK_PADDING = 2 |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
def __init__(self, parent, host, hasCanvas, hasCanvasGL): |
|
|
|
QDialog.__init__(self, parent) |
|
|
@@ -477,10 +479,11 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui = ui_carla_settings.Ui_CarlaSettingsW() |
|
|
|
self.ui.setupUi(self) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Set-up GUI |
|
|
|
|
|
|
|
self.ui.lw_page.setFixedWidth(48 + 6*3 + fontMetricsHorizontalAdvance(self.ui.lw_page.fontMetrics(), "Experimental")) |
|
|
|
self.ui.lw_page.setFixedWidth(48 + 6*3 + |
|
|
|
fontMetricsHorizontalAdvance(self.ui.lw_page.fontMetrics(), "Experimental")) |
|
|
|
|
|
|
|
for i in range(host.get_engine_driver_count()): |
|
|
|
self.ui.cb_engine_audio_driver.addItem(host.get_engine_driver_name(i)) |
|
|
@@ -549,12 +552,12 @@ class CarlaSettingsW(QDialog): |
|
|
|
|
|
|
|
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Load settings |
|
|
|
|
|
|
|
self.loadSettings() |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Set-up connections |
|
|
|
|
|
|
|
self.accepted.connect(self.slot_saveSettings) |
|
|
@@ -591,7 +594,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
#self.ui.cb_canvas_fancy_eyecandy.toggled.connect(self.slot_canvasFancyEyeCandyToggled) |
|
|
|
self.ui.cb_canvas_use_opengl.toggled.connect(self.slot_canvasOpenGLToggled) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Post-connect setup |
|
|
|
|
|
|
|
self.ui.lw_ladspa.setCurrentRow(0) |
|
|
@@ -612,44 +615,77 @@ class CarlaSettingsW(QDialog): |
|
|
|
|
|
|
|
self.adjustSize() |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
def loadSettings(self): |
|
|
|
settings = QSafeSettings() |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Main |
|
|
|
|
|
|
|
self.ui.ch_main_show_logs.setChecked(self.host.showLogs) |
|
|
|
self.ui.ch_engine_uis_always_on_top.setChecked(self.host.uisAlwaysOnTop) |
|
|
|
|
|
|
|
self.ui.le_main_proj_folder.setText(settings.value(CARLA_KEY_MAIN_PROJECT_FOLDER, CARLA_DEFAULT_MAIN_PROJECT_FOLDER, str)) |
|
|
|
self.ui.ch_main_theme_pro.setChecked(settings.value(CARLA_KEY_MAIN_USE_PRO_THEME, CARLA_DEFAULT_MAIN_USE_PRO_THEME, bool) and self.ui.group_main_theme.isEnabled()) |
|
|
|
self.ui.cb_main_theme_color.setCurrentIndex(self.ui.cb_main_theme_color.findText(settings.value(CARLA_KEY_MAIN_PRO_THEME_COLOR, CARLA_DEFAULT_MAIN_PRO_THEME_COLOR, str))) |
|
|
|
self.ui.sb_main_refresh_interval.setValue(settings.value(CARLA_KEY_MAIN_REFRESH_INTERVAL, CARLA_DEFAULT_MAIN_REFRESH_INTERVAL, int)) |
|
|
|
self.ui.ch_main_confirm_exit.setChecked(settings.value(CARLA_KEY_MAIN_CONFIRM_EXIT, CARLA_DEFAULT_MAIN_CONFIRM_EXIT, bool)) |
|
|
|
self.ui.le_main_proj_folder.setText( |
|
|
|
settings.value(CARLA_KEY_MAIN_PROJECT_FOLDER, CARLA_DEFAULT_MAIN_PROJECT_FOLDER, str)) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
self.ui.ch_main_theme_pro.setChecked(self.ui.group_main_theme.isEnabled() and |
|
|
|
settings.value(CARLA_KEY_MAIN_USE_PRO_THEME, CARLA_DEFAULT_MAIN_USE_PRO_THEME, bool)) |
|
|
|
|
|
|
|
self.ui.cb_main_theme_color.setCurrentIndex( |
|
|
|
self.ui.cb_main_theme_color.findText(settings.value(CARLA_KEY_MAIN_PRO_THEME_COLOR, |
|
|
|
CARLA_DEFAULT_MAIN_PRO_THEME_COLOR, str))) |
|
|
|
|
|
|
|
self.ui.sb_main_refresh_interval.setValue( |
|
|
|
settings.value(CARLA_KEY_MAIN_REFRESH_INTERVAL, CARLA_DEFAULT_MAIN_REFRESH_INTERVAL, int)) |
|
|
|
|
|
|
|
self.ui.ch_main_confirm_exit.setChecked( |
|
|
|
settings.value(CARLA_KEY_MAIN_CONFIRM_EXIT, CARLA_DEFAULT_MAIN_CONFIRM_EXIT, bool)) |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Canvas |
|
|
|
|
|
|
|
self.ui.cb_canvas_theme.setCurrentIndex(self.ui.cb_canvas_theme.findText(settings.value(CARLA_KEY_CANVAS_THEME, CARLA_DEFAULT_CANVAS_THEME, str))) |
|
|
|
self.ui.cb_canvas_size.setCurrentIndex(self.ui.cb_canvas_size.findText(settings.value(CARLA_KEY_CANVAS_SIZE, CARLA_DEFAULT_CANVAS_SIZE, str))) |
|
|
|
self.ui.cb_canvas_bezier_lines.setChecked(settings.value(CARLA_KEY_CANVAS_USE_BEZIER_LINES, CARLA_DEFAULT_CANVAS_USE_BEZIER_LINES, bool)) |
|
|
|
self.ui.cb_canvas_hide_groups.setChecked(settings.value(CARLA_KEY_CANVAS_AUTO_HIDE_GROUPS, CARLA_DEFAULT_CANVAS_AUTO_HIDE_GROUPS, bool)) |
|
|
|
self.ui.cb_canvas_auto_select.setChecked(settings.value(CARLA_KEY_CANVAS_AUTO_SELECT_ITEMS, CARLA_DEFAULT_CANVAS_AUTO_SELECT_ITEMS, bool)) |
|
|
|
#self.ui.cb_canvas_eyecandy.setChecked(settings.value(CARLA_KEY_CANVAS_EYE_CANDY, CARLA_DEFAULT_CANVAS_EYE_CANDY, bool)) |
|
|
|
self.ui.cb_canvas_fancy_eyecandy.setChecked(settings.value(CARLA_KEY_CANVAS_FANCY_EYE_CANDY, CARLA_DEFAULT_CANVAS_FANCY_EYE_CANDY, bool)) |
|
|
|
self.ui.cb_canvas_use_opengl.setChecked(settings.value(CARLA_KEY_CANVAS_USE_OPENGL, CARLA_DEFAULT_CANVAS_USE_OPENGL, bool) and self.ui.cb_canvas_use_opengl.isEnabled()) |
|
|
|
self.ui.cb_canvas_render_aa.setCheckState(settings.value(CARLA_KEY_CANVAS_ANTIALIASING, CARLA_DEFAULT_CANVAS_ANTIALIASING, int)) |
|
|
|
self.ui.cb_canvas_render_hq_aa.setChecked(settings.value(CARLA_KEY_CANVAS_HQ_ANTIALIASING, CARLA_DEFAULT_CANVAS_HQ_ANTIALIASING, bool) and self.ui.cb_canvas_render_hq_aa.isEnabled()) |
|
|
|
self.ui.cb_canvas_full_repaints.setChecked(settings.value(CARLA_KEY_CANVAS_FULL_REPAINTS, CARLA_DEFAULT_CANVAS_FULL_REPAINTS, bool)) |
|
|
|
self.ui.cb_canvas_inline_displays.setChecked(settings.value(CARLA_KEY_CANVAS_INLINE_DISPLAYS, CARLA_DEFAULT_CANVAS_INLINE_DISPLAYS, bool)) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
self.ui.cb_canvas_theme.setCurrentIndex( |
|
|
|
self.ui.cb_canvas_theme.findText(settings.value(CARLA_KEY_CANVAS_THEME, CARLA_DEFAULT_CANVAS_THEME, str))) |
|
|
|
|
|
|
|
self.ui.cb_canvas_size.setCurrentIndex( |
|
|
|
self.ui.cb_canvas_size.findText(settings.value(CARLA_KEY_CANVAS_SIZE, CARLA_DEFAULT_CANVAS_SIZE, str))) |
|
|
|
|
|
|
|
self.ui.cb_canvas_bezier_lines.setChecked( |
|
|
|
settings.value(CARLA_KEY_CANVAS_USE_BEZIER_LINES, CARLA_DEFAULT_CANVAS_USE_BEZIER_LINES, bool)) |
|
|
|
|
|
|
|
self.ui.cb_canvas_hide_groups.setChecked( |
|
|
|
settings.value(CARLA_KEY_CANVAS_AUTO_HIDE_GROUPS, CARLA_DEFAULT_CANVAS_AUTO_HIDE_GROUPS, bool)) |
|
|
|
|
|
|
|
self.ui.cb_canvas_auto_select.setChecked( |
|
|
|
settings.value(CARLA_KEY_CANVAS_AUTO_SELECT_ITEMS, CARLA_DEFAULT_CANVAS_AUTO_SELECT_ITEMS, bool)) |
|
|
|
|
|
|
|
#self.ui.cb_canvas_eyecandy.setChecked( |
|
|
|
# settings.value(CARLA_KEY_CANVAS_EYE_CANDY, CARLA_DEFAULT_CANVAS_EYE_CANDY, bool)) |
|
|
|
|
|
|
|
self.ui.cb_canvas_fancy_eyecandy.setChecked( |
|
|
|
settings.value(CARLA_KEY_CANVAS_FANCY_EYE_CANDY, CARLA_DEFAULT_CANVAS_FANCY_EYE_CANDY, bool)) |
|
|
|
|
|
|
|
self.ui.cb_canvas_use_opengl.setChecked(self.ui.cb_canvas_use_opengl.isEnabled() and |
|
|
|
settings.value(CARLA_KEY_CANVAS_USE_OPENGL, CARLA_DEFAULT_CANVAS_USE_OPENGL, bool)) |
|
|
|
|
|
|
|
self.ui.cb_canvas_render_aa.setCheckState( |
|
|
|
settings.value(CARLA_KEY_CANVAS_ANTIALIASING, CARLA_DEFAULT_CANVAS_ANTIALIASING, int)) |
|
|
|
|
|
|
|
self.ui.cb_canvas_render_hq_aa.setChecked(self.ui.cb_canvas_render_hq_aa.isEnabled() and |
|
|
|
settings.value(CARLA_KEY_CANVAS_HQ_ANTIALIASING, CARLA_DEFAULT_CANVAS_HQ_ANTIALIASING, bool)) |
|
|
|
|
|
|
|
self.ui.cb_canvas_full_repaints.setChecked( |
|
|
|
settings.value(CARLA_KEY_CANVAS_FULL_REPAINTS, CARLA_DEFAULT_CANVAS_FULL_REPAINTS, bool)) |
|
|
|
|
|
|
|
self.ui.cb_canvas_inline_displays.setChecked( |
|
|
|
settings.value(CARLA_KEY_CANVAS_INLINE_DISPLAYS, CARLA_DEFAULT_CANVAS_INLINE_DISPLAYS, bool)) |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
settings = QSafeSettings("falkTX", "Carla2") |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Main |
|
|
|
|
|
|
|
self.ui.ch_main_experimental.setChecked(self.host.experimental) |
|
|
@@ -661,7 +697,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
elif not self.host.showWineBridges: |
|
|
|
self.ui.lw_page.hideRow(self.TAB_INDEX_WINE) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Engine |
|
|
|
|
|
|
|
if self.host.isPlugin: |
|
|
@@ -690,7 +726,8 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.cb_engine_process_mode_jack.setCurrentIndex(self.host.nextProcessMode) |
|
|
|
|
|
|
|
if self.host.nextProcessMode >= self.PROCESS_MODE_NON_JACK_PADDING: |
|
|
|
self.ui.cb_engine_process_mode_other.setCurrentIndex(self.host.nextProcessMode-self.PROCESS_MODE_NON_JACK_PADDING) |
|
|
|
self.ui.cb_engine_process_mode_other.setCurrentIndex(self.host.nextProcessMode - |
|
|
|
self.PROCESS_MODE_NON_JACK_PADDING) |
|
|
|
else: |
|
|
|
self.ui.cb_engine_process_mode_other.setCurrentIndex(0) |
|
|
|
|
|
|
@@ -699,34 +736,30 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.ch_engine_manage_uis.setChecked(self.host.manageUIs) |
|
|
|
self.ui.ch_engine_prefer_ui_bridges.setChecked(self.host.preferUIBridges) |
|
|
|
self.ui.sb_engine_ui_bridges_timeout.setValue(self.host.uiBridgesTimeout) |
|
|
|
self.ui.ch_engine_force_stereo.setChecked(self.host.forceStereo or not self.ui.ch_engine_force_stereo.isEnabled()) |
|
|
|
self.ui.ch_engine_force_stereo.setChecked(self.host.forceStereo or |
|
|
|
not self.ui.ch_engine_force_stereo.isEnabled()) |
|
|
|
self.ui.ch_engine_prefer_plugin_bridges.setChecked(self.host.preferPluginBridges) |
|
|
|
self.ui.ch_exp_export_lv2.setChecked(self.host.exportLV2) |
|
|
|
self.ui.cb_exp_plugin_bridges.setChecked(self.host.showPluginBridges) |
|
|
|
self.ui.ch_exp_wine_bridges.setChecked(self.host.showWineBridges) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# OSC |
|
|
|
|
|
|
|
self.ui.ch_osc_enable.setChecked(settings.value(CARLA_KEY_OSC_ENABLED, |
|
|
|
CARLA_DEFAULT_OSC_ENABLED, |
|
|
|
bool)) |
|
|
|
self.ui.ch_osc_enable.setChecked( |
|
|
|
settings.value(CARLA_KEY_OSC_ENABLED, CARLA_DEFAULT_OSC_ENABLED, bool)) |
|
|
|
|
|
|
|
self.ui.group_osc_tcp_port.setChecked(settings.value(CARLA_KEY_OSC_TCP_PORT_ENABLED, |
|
|
|
CARLA_DEFAULT_OSC_TCP_PORT_ENABLED, |
|
|
|
bool)) |
|
|
|
self.ui.group_osc_tcp_port.setChecked( |
|
|
|
settings.value(CARLA_KEY_OSC_TCP_PORT_ENABLED, CARLA_DEFAULT_OSC_TCP_PORT_ENABLED, bool)) |
|
|
|
|
|
|
|
self.ui.group_osc_udp_port.setChecked(settings.value(CARLA_KEY_OSC_UDP_PORT_ENABLED, |
|
|
|
CARLA_DEFAULT_OSC_UDP_PORT_ENABLED, |
|
|
|
bool)) |
|
|
|
self.ui.group_osc_udp_port.setChecked( |
|
|
|
settings.value(CARLA_KEY_OSC_UDP_PORT_ENABLED, CARLA_DEFAULT_OSC_UDP_PORT_ENABLED, bool)) |
|
|
|
|
|
|
|
self.ui.sb_osc_tcp_port_number.setValue(settings.value(CARLA_KEY_OSC_TCP_PORT_NUMBER, |
|
|
|
CARLA_DEFAULT_OSC_TCP_PORT_NUMBER, |
|
|
|
int)) |
|
|
|
self.ui.sb_osc_tcp_port_number.setValue( |
|
|
|
settings.value(CARLA_KEY_OSC_TCP_PORT_NUMBER, CARLA_DEFAULT_OSC_TCP_PORT_NUMBER, int)) |
|
|
|
|
|
|
|
self.ui.sb_osc_udp_port_number.setValue(settings.value(CARLA_KEY_OSC_UDP_PORT_NUMBER, |
|
|
|
CARLA_DEFAULT_OSC_UDP_PORT_NUMBER, |
|
|
|
int)) |
|
|
|
self.ui.sb_osc_udp_port_number.setValue( |
|
|
|
settings.value(CARLA_KEY_OSC_UDP_PORT_NUMBER, CARLA_DEFAULT_OSC_UDP_PORT_NUMBER, int)) |
|
|
|
|
|
|
|
if settings.value(CARLA_KEY_OSC_TCP_PORT_RANDOM, CARLA_DEFAULT_OSC_TCP_PORT_RANDOM, bool): |
|
|
|
self.ui.rb_osc_tcp_port_specific.setChecked(False) |
|
|
@@ -742,11 +775,11 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.rb_osc_udp_port_random.setChecked(False) |
|
|
|
self.ui.rb_osc_udp_port_specific.setChecked(True) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# File Paths |
|
|
|
|
|
|
|
audioPaths = settings.value(CARLA_KEY_PATHS_AUDIO, CARLA_DEFAULT_FILE_PATH_AUDIO, list) |
|
|
|
midiPaths = settings.value(CARLA_KEY_PATHS_MIDI, CARLA_DEFAULT_FILE_PATH_MIDI, list) |
|
|
|
midiPaths = settings.value(CARLA_KEY_PATHS_MIDI, CARLA_DEFAULT_FILE_PATH_MIDI, list) |
|
|
|
|
|
|
|
audioPaths.sort() |
|
|
|
midiPaths.sort() |
|
|
@@ -761,7 +794,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
continue |
|
|
|
self.ui.lw_files_midi.addItem(midiPath) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Plugin Paths |
|
|
|
|
|
|
|
ladspas = settings.value(CARLA_KEY_PATHS_LADSPA, CARLA_DEFAULT_LADSPA_PATH, list) |
|
|
@@ -815,53 +848,44 @@ class CarlaSettingsW(QDialog): |
|
|
|
continue |
|
|
|
self.ui.lw_sfz.addItem(sfz) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Wine |
|
|
|
|
|
|
|
self.ui.le_wine_exec.setText(settings.value(CARLA_KEY_WINE_EXECUTABLE, |
|
|
|
CARLA_DEFAULT_WINE_EXECUTABLE, |
|
|
|
str)) |
|
|
|
self.ui.le_wine_exec.setText( |
|
|
|
settings.value(CARLA_KEY_WINE_EXECUTABLE, CARLA_DEFAULT_WINE_EXECUTABLE, str)) |
|
|
|
|
|
|
|
self.ui.cb_wine_prefix_detect.setChecked(settings.value(CARLA_KEY_WINE_AUTO_PREFIX, |
|
|
|
CARLA_DEFAULT_WINE_AUTO_PREFIX, |
|
|
|
bool)) |
|
|
|
self.ui.cb_wine_prefix_detect.setChecked( |
|
|
|
settings.value(CARLA_KEY_WINE_AUTO_PREFIX, CARLA_DEFAULT_WINE_AUTO_PREFIX, bool)) |
|
|
|
|
|
|
|
self.ui.le_wine_prefix_fallback.setText(settings.value(CARLA_KEY_WINE_FALLBACK_PREFIX, |
|
|
|
CARLA_DEFAULT_WINE_FALLBACK_PREFIX, |
|
|
|
str)) |
|
|
|
self.ui.le_wine_prefix_fallback.setText( |
|
|
|
settings.value(CARLA_KEY_WINE_FALLBACK_PREFIX, CARLA_DEFAULT_WINE_FALLBACK_PREFIX, str)) |
|
|
|
|
|
|
|
self.ui.group_wine_realtime.setChecked(settings.value(CARLA_KEY_WINE_RT_PRIO_ENABLED, |
|
|
|
CARLA_DEFAULT_WINE_RT_PRIO_ENABLED, |
|
|
|
bool)) |
|
|
|
self.ui.group_wine_realtime.setChecked( |
|
|
|
settings.value(CARLA_KEY_WINE_RT_PRIO_ENABLED, CARLA_DEFAULT_WINE_RT_PRIO_ENABLED, bool)) |
|
|
|
|
|
|
|
self.ui.sb_wine_base_prio.setValue(settings.value(CARLA_KEY_WINE_BASE_RT_PRIO, |
|
|
|
CARLA_DEFAULT_WINE_BASE_RT_PRIO, |
|
|
|
int)) |
|
|
|
self.ui.sb_wine_base_prio.setValue( |
|
|
|
settings.value(CARLA_KEY_WINE_BASE_RT_PRIO, CARLA_DEFAULT_WINE_BASE_RT_PRIO, int)) |
|
|
|
|
|
|
|
self.ui.sb_wine_server_prio.setValue(settings.value(CARLA_KEY_WINE_SERVER_RT_PRIO, |
|
|
|
CARLA_DEFAULT_WINE_SERVER_RT_PRIO, |
|
|
|
int)) |
|
|
|
self.ui.sb_wine_server_prio.setValue( |
|
|
|
settings.value(CARLA_KEY_WINE_SERVER_RT_PRIO, CARLA_DEFAULT_WINE_SERVER_RT_PRIO, int)) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Experimental |
|
|
|
|
|
|
|
self.ui.ch_exp_jack_apps.setChecked(settings.value(CARLA_KEY_EXPERIMENTAL_JACK_APPS, |
|
|
|
CARLA_DEFAULT_EXPERIMENTAL_JACK_APPS, |
|
|
|
bool)) |
|
|
|
self.ui.ch_exp_jack_apps.setChecked( |
|
|
|
settings.value(CARLA_KEY_EXPERIMENTAL_JACK_APPS, CARLA_DEFAULT_EXPERIMENTAL_JACK_APPS, bool)) |
|
|
|
|
|
|
|
self.ui.ch_exp_export_lv2.setChecked(settings.value(CARLA_KEY_EXPERIMENTAL_EXPORT_LV2, |
|
|
|
CARLA_DEFAULT_EXPERIMENTAL_LV2_EXPORT, |
|
|
|
bool)) |
|
|
|
self.ui.ch_exp_export_lv2.setChecked( |
|
|
|
settings.value(CARLA_KEY_EXPERIMENTAL_EXPORT_LV2, CARLA_DEFAULT_EXPERIMENTAL_LV2_EXPORT, bool)) |
|
|
|
|
|
|
|
self.ui.ch_exp_load_lib_global.setChecked(settings.value(CARLA_KEY_EXPERIMENTAL_LOAD_LIB_GLOBAL, |
|
|
|
CARLA_DEFAULT_EXPERIMENTAL_LOAD_LIB_GLOBAL, |
|
|
|
bool)) |
|
|
|
self.ui.ch_exp_load_lib_global.setChecked( |
|
|
|
settings.value(CARLA_KEY_EXPERIMENTAL_LOAD_LIB_GLOBAL, CARLA_DEFAULT_EXPERIMENTAL_LOAD_LIB_GLOBAL, bool)) |
|
|
|
|
|
|
|
self.ui.ch_exp_prevent_bad_behaviour.setChecked(settings.value(CARLA_KEY_EXPERIMENTAL_PREVENT_BAD_BEHAVIOUR, |
|
|
|
CARLA_DEFAULT_EXPERIMENTAL_PREVENT_BAD_BEHAVIOUR, |
|
|
|
bool)) |
|
|
|
self.ui.ch_exp_prevent_bad_behaviour.setChecked( |
|
|
|
settings.value(CARLA_KEY_EXPERIMENTAL_PREVENT_BAD_BEHAVIOUR, |
|
|
|
CARLA_DEFAULT_EXPERIMENTAL_PREVENT_BAD_BEHAVIOUR, bool)) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_saveSettings(self): |
|
|
@@ -872,7 +896,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
if not self.host.experimental: |
|
|
|
self.resetExperimentalSettings() |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Main |
|
|
|
|
|
|
|
settings.setValue(CARLA_KEY_MAIN_PROJECT_FOLDER, self.ui.le_main_proj_folder.text()) |
|
|
@@ -881,7 +905,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
settings.setValue(CARLA_KEY_MAIN_PRO_THEME_COLOR, self.ui.cb_main_theme_color.currentText()) |
|
|
|
settings.setValue(CARLA_KEY_MAIN_REFRESH_INTERVAL, self.ui.sb_main_refresh_interval.value()) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Canvas |
|
|
|
|
|
|
|
settings.setValue(CARLA_KEY_CANVAS_THEME, self.ui.cb_canvas_theme.currentText()) |
|
|
@@ -893,20 +917,21 @@ class CarlaSettingsW(QDialog): |
|
|
|
settings.setValue(CARLA_KEY_CANVAS_FANCY_EYE_CANDY, self.ui.cb_canvas_fancy_eyecandy.isChecked()) |
|
|
|
settings.setValue(CARLA_KEY_CANVAS_USE_OPENGL, self.ui.cb_canvas_use_opengl.isChecked()) |
|
|
|
settings.setValue(CARLA_KEY_CANVAS_HQ_ANTIALIASING, self.ui.cb_canvas_render_hq_aa.isChecked()) |
|
|
|
settings.setValue(CARLA_KEY_CANVAS_ANTIALIASING, self.ui.cb_canvas_render_aa.checkState()) # 0, 1, 2 match their enum variants |
|
|
|
# NOTE: checkState() 0, 1, 2 match their enum variants |
|
|
|
settings.setValue(CARLA_KEY_CANVAS_ANTIALIASING, self.ui.cb_canvas_render_aa.checkState()) |
|
|
|
settings.setValue(CARLA_KEY_CANVAS_FULL_REPAINTS, self.ui.cb_canvas_full_repaints.isChecked()) |
|
|
|
settings.setValue(CARLA_KEY_CANVAS_INLINE_DISPLAYS, self.ui.cb_canvas_inline_displays.isChecked()) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
settings = QSafeSettings("falkTX", "Carla2") |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Main |
|
|
|
|
|
|
|
settings.setValue(CARLA_KEY_MAIN_EXPERIMENTAL, self.host.experimental) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Engine |
|
|
|
|
|
|
|
audioDriver = self.ui.cb_engine_audio_driver.currentText() |
|
|
@@ -919,7 +944,8 @@ class CarlaSettingsW(QDialog): |
|
|
|
if audioDriver == "JACK": |
|
|
|
self.host.nextProcessMode = self.ui.cb_engine_process_mode_jack.currentIndex() |
|
|
|
else: |
|
|
|
self.host.nextProcessMode = self.ui.cb_engine_process_mode_other.currentIndex() + self.PROCESS_MODE_NON_JACK_PADDING |
|
|
|
self.host.nextProcessMode = (self.ui.cb_engine_process_mode_other.currentIndex() + |
|
|
|
self.PROCESS_MODE_NON_JACK_PADDING) |
|
|
|
|
|
|
|
settings.setValue(CARLA_KEY_ENGINE_PROCESS_MODE, self.host.nextProcessMode) |
|
|
|
|
|
|
@@ -951,7 +977,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
settings.setValue(CARLA_KEY_EXPERIMENTAL_PLUGIN_BRIDGES, self.host.showPluginBridges) |
|
|
|
settings.setValue(CARLA_KEY_EXPERIMENTAL_WINE_BRIDGES, self.host.showWineBridges) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# OSC |
|
|
|
|
|
|
|
settings.setValue(CARLA_KEY_OSC_ENABLED, self.ui.ch_osc_enable.isChecked()) |
|
|
@@ -962,7 +988,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
settings.setValue(CARLA_KEY_OSC_TCP_PORT_NUMBER, self.ui.sb_osc_tcp_port_number.value()) |
|
|
|
settings.setValue(CARLA_KEY_OSC_UDP_PORT_NUMBER, self.ui.sb_osc_udp_port_number.value()) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# File Paths |
|
|
|
|
|
|
|
audioPaths = [] |
|
|
@@ -980,7 +1006,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
settings.setValue(CARLA_KEY_PATHS_AUDIO, audioPaths) |
|
|
|
settings.setValue(CARLA_KEY_PATHS_MIDI, midiPaths) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Plugin Paths |
|
|
|
|
|
|
|
ladspas = [] |
|
|
@@ -1028,7 +1054,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
settings.setValue(CARLA_KEY_PATHS_SF2, sf2s) |
|
|
|
settings.setValue(CARLA_KEY_PATHS_SFZ, sfzs) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Wine |
|
|
|
|
|
|
|
settings.setValue(CARLA_KEY_WINE_EXECUTABLE, self.ui.le_wine_exec.text()) |
|
|
@@ -1038,31 +1064,34 @@ class CarlaSettingsW(QDialog): |
|
|
|
settings.setValue(CARLA_KEY_WINE_BASE_RT_PRIO, self.ui.sb_wine_base_prio.value()) |
|
|
|
settings.setValue(CARLA_KEY_WINE_SERVER_RT_PRIO, self.ui.sb_wine_server_prio.value()) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Experimental |
|
|
|
|
|
|
|
settings.setValue(CARLA_KEY_EXPERIMENTAL_JACK_APPS, self.ui.ch_exp_jack_apps.isChecked()) |
|
|
|
settings.setValue(CARLA_KEY_EXPERIMENTAL_LOAD_LIB_GLOBAL, self.ui.ch_exp_load_lib_global.isChecked()) |
|
|
|
settings.setValue(CARLA_KEY_EXPERIMENTAL_PREVENT_BAD_BEHAVIOUR, self.ui.ch_exp_prevent_bad_behaviour.isChecked()) |
|
|
|
settings.setValue(CARLA_KEY_EXPERIMENTAL_PREVENT_BAD_BEHAVIOUR, |
|
|
|
self.ui.ch_exp_prevent_bad_behaviour.isChecked()) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_resetSettings(self): |
|
|
|
currentRow = self.ui.lw_page.currentRow() |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Main |
|
|
|
|
|
|
|
if currentRow == self.TAB_INDEX_MAIN: |
|
|
|
self.ui.le_main_proj_folder.setText(CARLA_DEFAULT_MAIN_PROJECT_FOLDER) |
|
|
|
self.ui.ch_main_theme_pro.setChecked(CARLA_DEFAULT_MAIN_USE_PRO_THEME and self.ui.group_main_theme.isEnabled()) |
|
|
|
self.ui.cb_main_theme_color.setCurrentIndex(self.ui.cb_main_theme_color.findText(CARLA_DEFAULT_MAIN_PRO_THEME_COLOR)) |
|
|
|
self.ui.ch_main_theme_pro.setChecked(CARLA_DEFAULT_MAIN_USE_PRO_THEME and |
|
|
|
self.ui.group_main_theme.isEnabled()) |
|
|
|
self.ui.cb_main_theme_color.setCurrentIndex( |
|
|
|
self.ui.cb_main_theme_color.findText(CARLA_DEFAULT_MAIN_PRO_THEME_COLOR)) |
|
|
|
self.ui.sb_main_refresh_interval.setValue(CARLA_DEFAULT_MAIN_REFRESH_INTERVAL) |
|
|
|
self.ui.ch_main_confirm_exit.setChecked(CARLA_DEFAULT_MAIN_CONFIRM_EXIT) |
|
|
|
self.ui.ch_main_show_logs.setChecked(CARLA_DEFAULT_MAIN_SHOW_LOGS) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Canvas |
|
|
|
|
|
|
|
elif currentRow == self.TAB_INDEX_CANVAS: |
|
|
@@ -1075,7 +1104,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.cb_canvas_render_aa.setCheckState(Qt.PartiallyChecked) # CARLA_DEFAULT_CANVAS_ANTIALIASING |
|
|
|
self.ui.cb_canvas_full_repaints.setChecked(CARLA_DEFAULT_CANVAS_FULL_REPAINTS) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Engine |
|
|
|
|
|
|
|
elif currentRow == self.TAB_INDEX_ENGINE: |
|
|
@@ -1087,7 +1116,8 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.cb_engine_process_mode_jack.setCurrentIndex(CARLA_DEFAULT_PROCESS_MODE) |
|
|
|
self.ui.sw_engine_process_mode.setCurrentIndex(0) # show all modes |
|
|
|
else: |
|
|
|
self.ui.cb_engine_process_mode_other.setCurrentIndex(CARLA_DEFAULT_PROCESS_MODE-self.PROCESS_MODE_NON_JACK_PADDING) |
|
|
|
self.ui.cb_engine_process_mode_other.setCurrentIndex(CARLA_DEFAULT_PROCESS_MODE - |
|
|
|
self.PROCESS_MODE_NON_JACK_PADDING) |
|
|
|
self.ui.sw_engine_process_mode.setCurrentIndex(1) # hide single+multi client modes |
|
|
|
|
|
|
|
self.ui.sb_engine_max_params.setValue(CARLA_DEFAULT_MAX_PARAMETERS) |
|
|
@@ -1097,7 +1127,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.sb_engine_ui_bridges_timeout.setValue(CARLA_DEFAULT_UI_BRIDGES_TIMEOUT) |
|
|
|
self.ui.ch_engine_manage_uis.setChecked(CARLA_DEFAULT_MANAGE_UIS) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# OSC |
|
|
|
|
|
|
|
elif currentRow == self.TAB_INDEX_OSC: |
|
|
@@ -1121,7 +1151,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.rb_osc_udp_port_random.setChecked(False) |
|
|
|
self.ui.rb_osc_udp_port_specific.setChecked(True) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Plugin Paths |
|
|
|
|
|
|
|
elif currentRow == self.TAB_INDEX_FILEPATHS: |
|
|
@@ -1133,7 +1163,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
elif curIndex == self.FILEPATH_INDEX_MIDI: |
|
|
|
self.ui.lw_files_midi.clear() |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Plugin Paths |
|
|
|
|
|
|
|
elif currentRow == self.TAB_INDEX_PLUGINPATHS: |
|
|
@@ -1209,7 +1239,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
continue |
|
|
|
self.ui.lw_sfz.addItem(path) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Wine |
|
|
|
|
|
|
|
elif currentRow == self.TAB_INDEX_WINE: |
|
|
@@ -1220,7 +1250,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.sb_wine_base_prio.setValue(CARLA_DEFAULT_WINE_BASE_RT_PRIO) |
|
|
|
self.ui.sb_wine_server_prio.setValue(CARLA_DEFAULT_WINE_SERVER_RT_PRIO) |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------------- |
|
|
|
# ------------------------------------------------------------------------------------------------------------- |
|
|
|
# Experimental |
|
|
|
|
|
|
|
elif currentRow == self.TAB_INDEX_EXPERIMENTAL: |
|
|
@@ -1237,13 +1267,15 @@ class CarlaSettingsW(QDialog): |
|
|
|
|
|
|
|
# Temporary, until stable |
|
|
|
self.ui.cb_canvas_fancy_eyecandy.setChecked(CARLA_DEFAULT_CANVAS_FANCY_EYE_CANDY) |
|
|
|
self.ui.cb_canvas_use_opengl.setChecked(CARLA_DEFAULT_CANVAS_USE_OPENGL and self.ui.cb_canvas_use_opengl.isEnabled()) |
|
|
|
self.ui.cb_canvas_render_hq_aa.setChecked(CARLA_DEFAULT_CANVAS_HQ_ANTIALIASING and self.ui.cb_canvas_render_hq_aa.isEnabled()) |
|
|
|
self.ui.cb_canvas_use_opengl.setChecked(CARLA_DEFAULT_CANVAS_USE_OPENGL and |
|
|
|
self.ui.cb_canvas_use_opengl.isEnabled()) |
|
|
|
self.ui.cb_canvas_render_hq_aa.setChecked(CARLA_DEFAULT_CANVAS_HQ_ANTIALIASING and |
|
|
|
self.ui.cb_canvas_render_hq_aa.isEnabled()) |
|
|
|
self.ui.cb_canvas_inline_displays.setChecked(CARLA_DEFAULT_CANVAS_INLINE_DISPLAYS) |
|
|
|
self.ui.ch_engine_force_stereo.setChecked(CARLA_DEFAULT_FORCE_STEREO) |
|
|
|
self.ui.ch_engine_prefer_plugin_bridges.setChecked(CARLA_DEFAULT_PREFER_PLUGIN_BRIDGES) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot(bool) |
|
|
|
def slot_enableExperimental(self, toggled): |
|
|
@@ -1287,14 +1319,14 @@ class CarlaSettingsW(QDialog): |
|
|
|
# uncheck GL specific option |
|
|
|
self.ui.cb_canvas_render_hq_aa.setChecked(False) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_getAndSetProjectPath(self): |
|
|
|
# FIXME |
|
|
|
getAndSetPath(self, self.ui.le_main_proj_folder) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_engineAudioDriverChanged(self): |
|
|
@@ -1309,7 +1341,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
driverName = self.ui.cb_engine_audio_driver.currentText() |
|
|
|
DriverSettingsW(self, self.host, driverIndex, driverName).exec_() |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_addPluginPath(self): |
|
|
@@ -1395,7 +1427,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
elif curIndex == self.PLUGINPATH_INDEX_SFZ: |
|
|
|
self.ui.lw_sfz.currentItem().setText(newPath) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot(int) |
|
|
|
def slot_pluginPathTabChanged(self, index): |
|
|
@@ -1424,7 +1456,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.b_paths_remove.setEnabled(check) |
|
|
|
self.ui.b_paths_change.setEnabled(check) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot() |
|
|
|
def slot_addFilePath(self): |
|
|
@@ -1470,7 +1502,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
elif curIndex == self.FILEPATH_INDEX_MIDI: |
|
|
|
self.ui.lw_files_midi.currentItem().setText(newPath) |
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@pyqtSlot(int) |
|
|
|
def slot_filePathTabChanged(self, index): |
|
|
@@ -1489,7 +1521,7 @@ class CarlaSettingsW(QDialog): |
|
|
|
self.ui.b_filepaths_remove.setEnabled(check) |
|
|
|
self.ui.b_filepaths_change.setEnabled(check) |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# Main |
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
@@ -1510,4 +1542,4 @@ if __name__ == '__main__': |
|
|
|
|
|
|
|
_app.exit_exec() |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |