Skip to content

Commit

Permalink
Add some tooltips, and note about MIDI hotplug
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 3, 2023
1 parent 3e8b273 commit a03aa8f
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 48 deletions.
4 changes: 4 additions & 0 deletions src/systray/mod-app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ class AppWindow : public QMainWindow
ui.gb_lv2->setup(ui.tb_lv2);
ui.gb_gui->setup(ui.tb_gui);

#ifdef Q_OS_LINUX
ui.l_midi_warn->hide();
#endif

connect(ui.b_start, &QPushButton::clicked, this, &AppWindow::start);
connect(ui.b_stop, &QPushButton::clicked, this, &AppWindow::stop);
connect(ui.b_opengui, &QPushButton::clicked, this, &AppWindow::openGui);
Expand Down
156 changes: 108 additions & 48 deletions src/systray/mod-app.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>1010</width>
<height>826</height>
<height>832</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -301,6 +301,10 @@
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>The size of the buffer for each audio cycle.
Smaller buffer gives less latency but consumes more CPU, while bigger buffers have more latency but consume less CPU.</string>
</property>
<property name="currentIndex">
<number>1</number>
</property>
Expand All @@ -326,6 +330,10 @@
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>The size of the buffer for each audio cycle.
Smaller buffer gives less latency but consumes more CPU, while bigger buffers have more latency but consume less CPU.</string>
</property>
<property name="text">
<string>Buffer Size:</string>
</property>
Expand Down Expand Up @@ -355,6 +363,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Specify a separate device to use as input, does not always work.</string>
</property>
<property name="text">
<string>Separate Input:</string>
</property>
Expand All @@ -381,20 +392,29 @@
</item>
<item>
<widget class="QRadioButton" name="rb_device_duplex">
<property name="toolTip">
<string>Use the same device for both input and output.</string>
</property>
<property name="text">
<string>Duplex</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rb_device_separate">
<property name="toolTip">
<string>Specify a separate device to use as input, does not always work.</string>
</property>
<property name="text">
<string>Separate Input</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rb_device_noinput">
<property name="toolTip">
<string>Do not use audio input.</string>
</property>
<property name="text">
<string>No Input</string>
</property>
Expand All @@ -421,6 +441,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Specify a separate device to use as input, does not always work.</string>
</property>
</widget>
</item>
</layout>
Expand Down Expand Up @@ -463,8 +486,8 @@
<item>
<widget class="CollapsibleWidget" name="gb_midi" native="true">
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="0">
<spacer name="horizontalSpacer_21">
<item row="1" column="3">
<spacer name="horizontalSpacer_26">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
Expand All @@ -479,7 +502,7 @@
</property>
</spacer>
</item>
<item row="0" column="0">
<item row="1" column="0">
<spacer name="horizontalSpacer_22">
<property name="orientation">
<enum>Qt::Horizontal</enum>
Expand All @@ -495,11 +518,14 @@
</property>
</spacer>
</item>
<item row="1" column="2">
<widget class="QSpinBox" name="sp_midi_pb">
<item row="3" column="2">
<widget class="QSpinBox" name="sp_midi_ss">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Send a MIDI program change on this channel to switch between pedalboard snapshots.</string>
</property>
<property name="specialValueText">
<string>Disabled</string>
</property>
Expand All @@ -508,24 +534,8 @@
</property>
</widget>
</item>
<item row="1" column="3">
<spacer name="horizontalSpacer_25">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<spacer name="horizontalSpacer_19">
<item row="3" column="3">
<spacer name="horizontalSpacer_27">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
Expand All @@ -540,24 +550,14 @@
</property>
</spacer>
</item>
<item row="2" column="2">
<widget class="QSpinBox" name="sp_midi_ss">
<property name="enabled">
<bool>false</bool>
</property>
<property name="specialValueText">
<string>Disabled</string>
</property>
<property name="maximum">
<number>16</number>
</property>
</widget>
</item>
<item row="1" column="1">
<item row="2" column="1">
<widget class="QLabel" name="l_midi_pb">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Send a MIDI program change on this channel to switch between pedalboards.</string>
</property>
<property name="text">
<string>MIDI Program channel for Pedalboards:</string>
</property>
Expand All @@ -566,11 +566,14 @@
</property>
</widget>
</item>
<item row="2" column="1">
<item row="3" column="1">
<widget class="QLabel" name="l_midi_ss">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Send a MIDI program change on this channel to switch between pedalboard snapshots.</string>
</property>
<property name="text">
<string>MIDI Program channel for Snapshots:</string>
</property>
Expand All @@ -579,15 +582,24 @@
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QCheckBox" name="cb_midi">
<property name="text">
<string>Enable system MIDI</string>
<item row="3" column="0">
<spacer name="horizontalSpacer_21">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_26">
<item row="2" column="0">
<spacer name="horizontalSpacer_19">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
Expand All @@ -602,8 +614,34 @@
</property>
</spacer>
</item>
<item row="1" column="1" colspan="2">
<widget class="QCheckBox" name="cb_midi">
<property name="toolTip">
<string>Enable system MIDI access through MIDI aggregate port.</string>
</property>
<property name="text">
<string>Enable system MIDI</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QSpinBox" name="sp_midi_pb">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Send a MIDI program change on this channel to switch between pedalboards.</string>
</property>
<property name="specialValueText">
<string>Disabled</string>
</property>
<property name="maximum">
<number>16</number>
</property>
</widget>
</item>
<item row="2" column="3">
<spacer name="horizontalSpacer_27">
<spacer name="horizontalSpacer_25">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
Expand All @@ -618,6 +656,13 @@
</property>
</spacer>
</item>
<item row="0" column="1" colspan="3">
<widget class="QLabel" name="l_midi_warn">
<property name="text">
<string>NOTE: MIDI device hotplug is not supported on this system</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down Expand Up @@ -678,13 +723,19 @@
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QCheckBox" name="cb_lv2_all_plugins">
<property name="toolTip">
<string>Show all LV2 plugins on the system. It is expected that such plugins do not have custom MOD GUIs.</string>
</property>
<property name="text">
<string>Show all LV2 plugins (not recommended)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_lv2_all_cv">
<property name="toolTip">
<string>Show all CV ports, regardless of having a well defined range or not.</string>
</property>
<property name="text">
<string>Show all CV ports (not recommended)</string>
</property>
Expand Down Expand Up @@ -851,20 +902,29 @@
</item>
<item>
<widget class="QCheckBox" name="cb_verbose_jackd">
<property name="toolTip">
<string>This activates jackd verbose mode</string>
</property>
<property name="text">
<string>Verbose jackd</string>
<string>Verbose jackd (not recommended)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_verbose_host">
<property name="toolTip">
<string>Starts jackd + mod-host with MOD_LOG=1 environment variable</string>
</property>
<property name="text">
<string>Verbose mod-host</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_verbose_ui">
<property name="toolTip">
<string>Starts mod-ui with MOD_LOG=2 environment variable</string>
</property>
<property name="text">
<string>Verbose mod-ui</string>
</property>
Expand Down

0 comments on commit a03aa8f

Please sign in to comment.