summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2014-07-29 11:48:35 -0500
committerBen Loftis <ben@harrisonconsoles.com>2014-07-29 11:48:35 -0500
commit79b34f0d8f5f6dde7676d6fb3f1d5bf3786f91ca (patch)
tree6f87b890bc814ab1be26ac717b5a626dd43bc469 /gtk2_ardour
parent21ea94c000bb30b7da111930aa4095b87f390cdd (diff)
In the mixbus mixer, the rec/mon buttons are smaller
If Input is not shown, then you are just mixing, so the_CLA and I think it is ok to hide the MIDI input button with the audio input button
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mixer_strip.cc36
1 files changed, 23 insertions, 13 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index ba9ae8819d..1b6a6558df 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -223,7 +223,11 @@ MixerStrip::init ()
rec_mon_table.set_homogeneous (true);
rec_mon_table.set_row_spacings (2);
rec_mon_table.set_col_spacings (2);
- if (!ARDOUR::Profile->get_trx()) {
+ if (ARDOUR::Profile->get_mixbus()) {
+ rec_mon_table.resize (1, 3);
+ rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
+ rec_mon_table.attach (*monitor_disk_button, 2, 3, 0, 1);
+ } else if (!ARDOUR::Profile->get_trx()) {
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
rec_mon_table.attach (*monitor_disk_button, 1, 2, 1, 2);
}
@@ -238,16 +242,19 @@ MixerStrip::init ()
if (solo_safe_led) {
button_size_group->add_widget (*solo_safe_led);
}
- if (rec_enable_button) {
- button_size_group->add_widget (*rec_enable_button);
- }
- if (monitor_disk_button) {
- button_size_group->add_widget (*monitor_disk_button);
- }
- if (monitor_input_button) {
- button_size_group->add_widget (*monitor_input_button);
- }
+ if (!ARDOUR::Profile->get_mixbus()) {
+ if (rec_enable_button) {
+ button_size_group->add_widget (*rec_enable_button);
+ }
+ if (monitor_disk_button) {
+ button_size_group->add_widget (*monitor_disk_button);
+ }
+ if (monitor_input_button) {
+ button_size_group->add_widget (*monitor_input_button);
+ }
+ }
+
if (!ARDOUR::Profile->get_trx()) {
button_table.attach (name_button, 0, 1, button_table_row, button_table_row+1);
button_table_row++;
@@ -381,7 +388,7 @@ MixerStrip::init ()
must be the same as those used in RCOptionEditor so that the configuration changes
are recognised when they occur.
*/
- _visibility.add (&input_button, X_("Input"), _("Input"), false);
+ _visibility.add (&input_button_box, X_("Input"), _("Input"), false);
_visibility.add (&_invert_button_box, X_("PhaseInvert"), _("Phase Invert"), false);
_visibility.add (&rec_mon_table, X_("RecMon"), _("Record & Monitor"), false);
_visibility.add (&solo_iso_table, X_("SoloIsoLock"), _("Solo Iso / Lock"), false);
@@ -573,11 +580,14 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
if (is_track ()) {
- rec_mon_table.attach (*rec_enable_button, 0, 1, 0, 2);
+ rec_mon_table.attach (*rec_enable_button, 0, 1, 0, ARDOUR::Profile->get_mixbus() ? 1 : 2);
rec_enable_button->set_sensitive (_session->writable());
rec_enable_button->show();
- if (ARDOUR::Profile->get_trx()) {
+ if (ARDOUR::Profile->get_mixbus()) {
+ rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
+ rec_mon_table.attach (*monitor_disk_button, 2, 3, 0, 1);
+ } else if (ARDOUR::Profile->get_trx()) {
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 2);
} else {
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);