Fix thinkos in cubasish theme
[ardour.git] / gtk2_ardour / mixer_strip.cc
index c4bc0ce84be3443b34d09ebfd43ace954a182a06..79848f7466847f8349951dce6d01a51ced894f63 100644 (file)
@@ -220,10 +220,8 @@ MixerStrip::init ()
 
        solo_iso_table.set_homogeneous (true);
        solo_iso_table.set_spacings (2);
-       if (!ARDOUR::Profile->get_trx()) {
-               solo_iso_table.attach (*solo_isolated_led, 0, 1, 0, 1);
-               solo_iso_table.attach (*solo_safe_led, 1, 2, 0, 1);
-       }
+       solo_iso_table.attach (*solo_isolated_led, 0, 1, 0, 1);
+       solo_iso_table.attach (*solo_safe_led, 1, 2, 0, 1);
        solo_iso_table.show ();
 
        rec_mon_table.set_homogeneous (true);
@@ -233,9 +231,6 @@ MixerStrip::init ()
                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);
        }
        rec_mon_table.show ();
 
@@ -313,13 +308,11 @@ MixerStrip::init ()
        number_label.set_tweaks (ArdourButton::OccasionalText);
 
        global_vpacker.set_spacing (2);
-       if (!ARDOUR::Profile->get_trx()) {
-               global_vpacker.pack_start (width_hide_box, Gtk::PACK_SHRINK);
-               global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
-               global_vpacker.pack_start (input_button_box, Gtk::PACK_SHRINK);
-               global_vpacker.pack_start (_invert_button_box, Gtk::PACK_SHRINK);
-               global_vpacker.pack_start (processor_box, true, true);
-       }
+       global_vpacker.pack_start (width_hide_box, Gtk::PACK_SHRINK);
+       global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
+       global_vpacker.pack_start (input_button_box, Gtk::PACK_SHRINK);
+       global_vpacker.pack_start (_invert_button_box, Gtk::PACK_SHRINK);
+       global_vpacker.pack_start (processor_box, true, true);
        global_vpacker.pack_start (panners, Gtk::PACK_SHRINK);
        global_vpacker.pack_start (rec_mon_table, Gtk::PACK_SHRINK);
        global_vpacker.pack_start (solo_iso_table, Gtk::PACK_SHRINK);
@@ -327,12 +320,8 @@ MixerStrip::init ()
        global_vpacker.pack_start (gpm, Gtk::PACK_SHRINK);
        global_vpacker.pack_start (control_slave_ui, Gtk::PACK_SHRINK);
        global_vpacker.pack_start (bottom_button_table, Gtk::PACK_SHRINK);
-       if (!ARDOUR::Profile->get_trx()) {
-               global_vpacker.pack_start (output_button, Gtk::PACK_SHRINK);
-               global_vpacker.pack_start (_comment_button, Gtk::PACK_SHRINK);
-       } else {
-               global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
-       }
+       global_vpacker.pack_start (output_button, Gtk::PACK_SHRINK);
+       global_vpacker.pack_start (_comment_button, Gtk::PACK_SHRINK);
 
 #ifndef MIXBUS
        //add a spacer underneath the master bus;
@@ -366,9 +355,6 @@ MixerStrip::init ()
        _packed = false;
        _embedded = false;
 
-       _session->engine().Stopped.connect (*this, invalidator (*this), boost::bind (&MixerStrip::engine_stopped, this), gui_context());
-       _session->engine().Running.connect (*this, invalidator (*this), boost::bind (&MixerStrip::engine_running, this), gui_context());
-
        input_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::input_press), false);
        input_button.signal_button_release_event().connect (sigc::mem_fun(*this, &MixerStrip::input_release), false);
        input_button.signal_size_allocate().connect (sigc::mem_fun (*this, &MixerStrip::input_button_resized));
@@ -670,8 +656,6 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
                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);
                        rec_mon_table.attach (*monitor_disk_button, 1, 2, 1, 2);
@@ -798,6 +782,12 @@ MixerStrip::set_width_enum (Width w, void* owner)
 
        const float scale = std::max(1.f, UIConfiguration::instance().get_ui_scale());
 
+       gpm.gain_automation_state_button.set_text (GainMeterBase::short_astate_string (gain_automation->automation_state()));
+
+       if (_route->panner()) {
+               ((Gtk::Label*)panners.pan_automation_state_button.get_child())->set_text (GainMeterBase::short_astate_string (_route->panner()->automation_state()));
+       }
+
        switch (w) {
        case Wide:
 
@@ -805,14 +795,6 @@ MixerStrip::set_width_enum (Width w, void* owner)
                        show_sends_button->set_text (_("Aux"));
                }
 
-               gpm.gain_automation_state_button.set_text (
-                               gpm.astate_string(gain_automation->automation_state()));
-
-               if (_route->panner()) {
-                       ((Gtk::Label*)panners.pan_automation_state_button.get_child())->set_text (
-                                       panners.astate_string(_route->panner()->automation_state()));
-               }
-
                {
                        // panners expect an even number of horiz. pixels
                        int width = rintf (max (110.f * scale, gpm.get_gm_width() + 10.f * scale)) + 1;
@@ -827,15 +809,8 @@ MixerStrip::set_width_enum (Width w, void* owner)
                        show_sends_button->set_text (_("Snd"));
                }
 
-               gpm.gain_automation_state_button.set_text (
-                               gpm.short_astate_string(gain_automation->automation_state()));
                gain_meter().setup_meters (); // recalc meter width
 
-               if (_route->panner()) {
-                       ((Gtk::Label*)panners.pan_automation_state_button.get_child())->set_text (
-                       panners.short_astate_string(_route->panner()->automation_state()));
-               }
-
                {
                        // panners expect an even number of horiz. pixels
                        int width = rintf (max (60.f * scale, gpm.get_gm_width() + 10.f * scale)) + 1;
@@ -1779,9 +1754,6 @@ MixerStrip::build_route_ops_menu ()
                items.push_back (MenuElem (_("Fan out to Tracks"), sigc::bind (sigc::mem_fun (*this, &RouteUI::fan_out), false, true)));
        }
 
-       items.push_back (SeparatorElem());
-       items.push_back (MenuElem (_("Adjust Latency..."), sigc::mem_fun (*this, &RouteUI::adjust_latency)));
-
        items.push_back (SeparatorElem());
        items.push_back (CheckMenuElem (_("Protect Against Denormals"), sigc::mem_fun (*this, &RouteUI::toggle_denormal_protection)));
        denormal_menu_item = dynamic_cast<Gtk::CheckMenuItem *> (&items.back());
@@ -2063,16 +2035,6 @@ MixerStrip::reset_strip_style ()
 }
 
 
-void
-MixerStrip::engine_stopped ()
-{
-}
-
-void
-MixerStrip::engine_running ()
-{
-}
-
 string
 MixerStrip::meter_point_string (MeterPoint mp)
 {