Update codec-quality display when ExportFormat changes
[ardour.git] / gtk2_ardour / ardour_ui_ed.cc
index 39da067fd192f49cf49b22648a066f814a1fb377..79d3c6abcad859609886953e5a68e582344b963c 100644 (file)
@@ -342,6 +342,13 @@ ARDOUR_UI::install_actions ()
        act = global_actions.register_action (common_actions, "alt-finish-range", _("Finish Range"), sigc::bind (sigc::mem_fun(editor, &PublicEditor::keyboard_selection_finish), false, Editing::EDIT_IGNORE_NONE));
        ActionManager::session_sensitive_actions.push_back (act);
 
+       act = global_actions.register_action (common_actions, "select-all-tracks", _("Select All Tracks"), sigc::mem_fun(editor, &PublicEditor::select_all_tracks));
+       ActionManager::session_sensitive_actions.push_back (act);
+       act = global_actions.register_action (common_actions, "deselect-all", _("Deselect All"), sigc::mem_fun(editor, &PublicEditor::deselect_all));
+       ActionManager::session_sensitive_actions.push_back (act);
+       act = global_actions.register_action (common_actions, "invert-selection", _("Invert Selection"), sigc::mem_fun(editor, &PublicEditor::invert_selection));
+       ActionManager::session_sensitive_actions.push_back (act);
+
        /* These "change" actions are not intended to be used inside menus, but
           are for the tab/window control buttons, which have somewhat odd
           semantics.
@@ -372,6 +379,16 @@ ARDOUR_UI::install_actions ()
        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);
 
@@ -669,6 +686,7 @@ ARDOUR_UI::build_menu_bar ()
        menu_bar->set_name ("MainMenuBar");
 
        EventBox* ev = manage (new EventBox);
+       ev->set_name ("MainMenuBar");
        ev->show ();
 
        Gtk::HBox* hbox = manage (new Gtk::HBox);
@@ -694,11 +712,8 @@ ARDOUR_UI::build_menu_bar ()
 #endif
 
        hbox->pack_end (error_alert_button, false, false, 2);
-
-       hbox->pack_end (dsp_load_gauge, false, false, 4);
-
-       hbox->pack_end (disk_space_gauge, false, false, 4);
-       hbox->pack_end (disk_io_gauge, false, false, 4);
+       hbox->pack_end (dsp_load_label, false, false, 4);
+       hbox->pack_end (disk_space_label, false, false, 4);
        hbox->pack_end (sample_rate_label, false, false, 4);
        hbox->pack_end (timecode_format_label, false, false, 4);
        hbox->pack_end (format_label, false, false, 4);
@@ -718,9 +733,8 @@ ARDOUR_UI::build_menu_bar ()
        _status_bar_visibility.add (&format_label,          X_("Format"),    _("File Format"), false);
        _status_bar_visibility.add (&timecode_format_label, X_("TCFormat"),  _("Timecode Format"), false);
        _status_bar_visibility.add (&sample_rate_label,     X_("Audio"),     _("Audio"), true);
-       _status_bar_visibility.add (&disk_io_gauge,     X_("Buffers"),   _("Buffers"), true);
-       _status_bar_visibility.add (&disk_space_gauge,  X_("Disk"),      _("Disk Space"), !Profile->get_small_screen());
-       _status_bar_visibility.add (&dsp_load_gauge,    X_("DSP"),       _("DSP"), true);
+       _status_bar_visibility.add (&disk_space_label,      X_("Disk"),      _("Disk Space"), !Profile->get_small_screen());
+       _status_bar_visibility.add (&dsp_load_label,        X_("DSP"),       _("DSP"), true);
 
        ev->signal_button_press_event().connect (sigc::mem_fun (_status_bar_visibility, &VisibilityGroup::button_press_event));
        ev->signal_button_release_event().connect (sigc::mem_fun (*this, &ARDOUR_UI::xrun_button_release));
@@ -823,6 +837,8 @@ ARDOUR_UI::save_ardour_state ()
 
        Config->save_state();
 
+       mixer->save_plugin_order_file();
+
        UIConfiguration::instance().save_state ();
 
        if (_session) {
@@ -856,7 +872,6 @@ ARDOUR_UI::save_ardour_state ()
 void
 ARDOUR_UI::resize_text_widgets ()
 {
-       //ToDo:  maybe resize the gauges to fit translated text
 }
 
 void
@@ -876,7 +891,7 @@ ARDOUR_UI::xrun_button_release (GdkEventButton* ev)
 
        if (_session) {
                _session->reset_xrun_count ();
-               update_xrun_count ();
+               update_cpu_load ();
        }
        return true;
 }