}
}
+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 ()
{
}
}
+void
+Editor::show_editor_list (bool yn)
+{
+ if (yn) {
+ the_notebook.show();
+ } else {
+ the_notebook.hide();
+ }
+}
+
void
Editor::set_selected_mixer_strip (TimeAxisView& view)
{
- AudioTimeAxisView* at;
+ RouteTimeAxisView* rt;
bool show = false;
- if (!session || (at = dynamic_cast<AudioTimeAxisView*>(&view)) == 0) {
+ if (!session || (rt = dynamic_cast<RouteTimeAxisView*>(&view)) == 0) {
return;
}
/* might be nothing to do */
- if (current_mixer_strip->route() == at->route()) {
+ if (current_mixer_strip->route() == rt->route()) {
return;
}
current_mixer_strip = new MixerStrip (*ARDOUR_UI::instance()->the_mixer(),
*session,
- at->route());
+ rt->route());
current_mixer_strip->GoingAway.connect (mem_fun(*this, &Editor::cms_deleted));
if (show) {
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 ();