<menuitem action='show-editor-list'/>
<menuitem action='ToggleMixerList'/>
<menuitem action='ToggleMonitorSection'/>
+#ifdef MIXBUS
+ <menuitem action='ToggleMixbusPane'/>
+#endif
+ <menuitem action='ToggleVCAPane'/>
<menuitem action='ToggleSummary'/>
<menuitem action='ToggleGroupTabs'/>
<menuitem action='show-marker-lines'/>
void toggle_monitor_section_visibility ();
void toggle_keep_tearoffs();
+ void toggle_vca_pane();
+#ifdef MIXBUS
+ void toggle_mixbus_pane();
+#endif
+
void reset_focus (Gtk::Widget*);
static PublicEditor* _instance;
mixer->show_monitor_section (tact->get_active());
}
}
+
+void
+ARDOUR_UI::toggle_vca_pane ()
+{
+ Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleVCAPane");
+
+ if (act) {
+ Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
+ mixer->showhide_vcas (tact->get_active());
+ }
+}
+
+#ifdef MIXBUS
+void
+ARDOUR_UI::toggle_mixbus_pane ()
+{
+ Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMixbusPane");
+
+ if (act) {
+ Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
+ mixer->showhide_mixbusses (tact->get_active());
+ }
+}
+#endif
act = global_actions.register_toggle_action (common_actions, X_("ToggleMixerList"), _("Toggle Mixer List"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_mixer_list));
ActionManager::session_sensitive_actions.push_back (act);
+ act = global_actions.register_toggle_action (common_actions, X_("ToggleVCAPane"), _("Toggle VCA Pane"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_vca_pane));
+ ActionManager::session_sensitive_actions.push_back (act);
+ Glib::RefPtr<ToggleAction>::cast_dynamic(act)->set_active (true);
+
+#ifdef MIXBUS
+ act = global_actions.register_toggle_action (common_actions, X_("ToggleMixbusPane"), _("Toggle Mixbus Pane"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_mixbus_pane));
+ ActionManager::session_sensitive_actions.push_back (act);
+ Glib::RefPtr<ToggleAction>::cast_dynamic(act)->set_active (true);
+#endif
+
act = global_actions.register_toggle_action (common_actions, X_("ToggleMonitorSection"), _("Toggle Monitor Section Visibility"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_monitor_section_visibility));
act->set_sensitive (false);
void load_bindings ();
Gtkmm2ext::Bindings* bindings;
+ void showhide_vcas (bool on) {
+ if (on) { vca_vpacker.show(); } else { vca_vpacker.hide(); }
+ }
+#ifdef MIXBUS
+ void showhide_mixbusses (bool on) {
+ if (on) { mb_vpacker.show(); } else { mb_vpacker.hide(); }
+ }
+#endif
+
protected:
void set_axis_targets_for_operation ();
ARDOUR::AutomationControlSet selected_gaincontrols ();