summaryrefslogtreecommitdiff
path: root/libs/surfaces/launch_control_xl/gui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaces/launch_control_xl/gui.cc')
-rw-r--r--libs/surfaces/launch_control_xl/gui.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/libs/surfaces/launch_control_xl/gui.cc b/libs/surfaces/launch_control_xl/gui.cc
index d64af1e677..dc5cc2901c 100644
--- a/libs/surfaces/launch_control_xl/gui.cc
+++ b/libs/surfaces/launch_control_xl/gui.cc
@@ -32,6 +32,7 @@
#include "ardour/audioengine.h"
#include "ardour/filesystem_paths.h"
#include "ardour/parameter_descriptor.h"
+#include "ardour/debug.h"
#include "launch_control_xl.h"
#include "gui.h"
@@ -101,6 +102,7 @@ LCXLGUI::LCXLGUI (LaunchControlXL& p)
}
Gtk::Label* l;
+ Gtk::Alignment* align;
int row = 0;
input_combo.pack_start (midi_port_columns.short_name);
@@ -123,6 +125,20 @@ LCXLGUI::LCXLGUI (LaunchControlXL& p)
table.attach (output_combo, 1, 2, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions(0), 0, 0);
row++;
+ /* User Settings */
+
+ fader8master_button.signal_clicked().connect (sigc::mem_fun (*this, &LCXLGUI::toggle_fader8master));
+
+ l = manage (new Gtk::Label (_("Fader 8 Master")));
+ l->set_alignment (1.0, 0.5);
+ table.attach (*l, 0, 1, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions (0));
+ align = manage (new Alignment);
+ align->set (0.0, 0.5);
+ align->add (fader8master_button);
+ table.attach (*align, 1, 2, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions (0),0,0);
+ fader8master_button.set_active(lcxl.use_fader8master);
+ row++;
+
hpacker.pack_start (table, true, true);
set_spacing (12);
@@ -266,3 +282,12 @@ LCXLGUI::active_port_changed (Gtk::ComboBox* combo, bool for_input)
}
}
}
+
+void
+LCXLGUI::toggle_fader8master ()
+{
+ DEBUG_TRACE(DEBUG::LaunchControlXL, string_compose("use_fader8master WAS: %1\n", lcxl.use_fader8master));
+ lcxl.use_fader8master = !(lcxl.use_fader8master);
+ DEBUG_TRACE(DEBUG::LaunchControlXL, string_compose("use_fader8master IS: %1\n", lcxl.use_fader8master));
+ lcxl.set_fader8master(lcxl.use_fader8master);
+}