diff options
author | David Robillard <d@drobilla.net> | 2007-06-15 07:39:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-15 07:39:20 +0000 |
commit | f878576f2d486f190da70801fe30a62ef7083912 (patch) | |
tree | e4dd10e0fe7d1ee75a4704b6a1900800bf1fe667 /gtk2_ardour/editor_mixer.cc | |
parent | 13151b43f058ae97408a39b4c5160974c512c9ae (diff) |
User toggling of editor region/route/etc list, ala editor mixer.
Canvas, from sea to shining sea.
git-svn-id: svn://localhost/ardour2/trunk@1983 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mixer.cc')
-rw-r--r-- | gtk2_ardour/editor_mixer.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc index 9bb481966e..dee928b62f 100644 --- a/gtk2_ardour/editor_mixer.cc +++ b/gtk2_ardour/editor_mixer.cc @@ -48,6 +48,16 @@ Editor::editor_mixer_button_toggled () } void +Editor::editor_list_button_toggled () +{ + Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-list")); + if (act) { + Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act); + show_editor_list (tact->get_active()); + } +} + +void Editor::cms_deleted () { current_mixer_strip = 0; @@ -131,6 +141,16 @@ Editor::show_editor_mixer (bool yn) } void +Editor::show_editor_list (bool yn) +{ + if (yn) { + the_notebook.show(); + } else { + the_notebook.hide(); + } +} + +void Editor::set_selected_mixer_strip (TimeAxisView& view) { RouteTimeAxisView* rt; @@ -335,6 +355,9 @@ Editor::session_going_away () editor_mixer_button.set_active(false); editor_mixer_button.set_sensitive(false); + editor_list_button.set_active(false); + editor_list_button.set_sensitive(false); + /* clear tempo/meter rulers */ remove_metric_marks (); |