<menuitem action='ToggleMeasureVisibility'/>
<separator/>
<menuitem action='show-editor-mixer'/>
+ <menuitem action='show-editor-list'/>
</menu>
<menu name='JACK' action='JACK'>
<menuitem action='JACKDisconnect'/>
nlabel = manage (new Label (_("Regions")));
nlabel->set_angle (-90);
- the_notebook.append_page (region_list_scroller, *nlabel);
+ the_notebook.append_page (region_list_scroller, *nlabel);
nlabel = manage (new Label (_("Tracks/Busses")));
nlabel->set_angle (-90);
- the_notebook.append_page (route_list_scroller, *nlabel);
+ the_notebook.append_page (route_list_scroller, *nlabel);
nlabel = manage (new Label (_("Snapshots")));
nlabel->set_angle (-90);
the_notebook.append_page (snapshot_display_scroller, *nlabel);
{
show_all ();
present ();
+
+ /* re-hide editor list if necessary */
+ editor_list_button_toggled ();
/* now reset all audio_time_axis heights, because widgets might need
to be re-hidden
tact->set_active (yn);
}
}
+
+ if ((prop = node.property ("show-editor-list"))) {
+
+ Glib::RefPtr<Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-list"));
+ assert(act);
+ if (act) {
+
+ Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
+ bool yn = (prop->value() == X_("yes"));
+
+ /* do it twice to force the change */
+
+ tact->set_active (!yn);
+ tact->set_active (yn);
+ }
+ }
return 0;
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
node->add_property (X_("show-editor-mixer"), tact->get_active() ? "yes" : "no");
}
+
+ act = ActionManager::get_action (X_("Editor"), X_("show-editor-list"));
+ if (act) {
+ Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
+ node->add_property (X_("show-editor-list"), tact->get_active() ? "yes" : "no");
+ }
return *node;
}
Width editor_mixer_strip_width;
void maybe_add_mixer_strip_width (XMLNode&);
void show_editor_mixer (bool yn);
+ void show_editor_list (bool yn);
void set_selected_mixer_strip (TimeAxisView&);
void hide_track_in_display (TimeAxisView& tv);
void show_track_in_display (TimeAxisView& tv);
Gtk::Menu *region_list_menu;
Gtk::ScrolledWindow region_list_scroller;
- Gtk::Frame region_list_frame;
bool region_list_display_key_press (GdkEventKey *);
bool region_list_display_key_release (GdkEventKey *);
/* toolbar */
- Gtk::ToggleButton editor_mixer_button;
+ Gtk::ToggleButton editor_mixer_button;
+ Gtk::ToggleButton editor_list_button;
void editor_mixer_button_toggled ();
+ void editor_list_button_toggled ();
AudioClock edit_cursor_clock;
AudioClock zoom_range_clock;
act = ActionManager::register_toggle_action (editor_actions, "show-editor-mixer", _("Show Editor Mixer"), mem_fun (*this, &Editor::editor_mixer_button_toggled));
ActionManager::session_sensitive_actions.push_back (act);
+ act = ActionManager::register_toggle_action (editor_actions, "show-editor-list", _("Show Editor List"), mem_fun (*this, &Editor::editor_list_button_toggled));
+ ActionManager::session_sensitive_actions.push_back (act);
RadioAction::Group crossfade_model_group;
}
}
+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)
{
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 ();
}
editor_mixer_button.set_sensitive(true);
+ editor_list_button.set_sensitive(true);
}
void
if (track_views.size() == 0) {
editor_mixer_button.set_sensitive(false);
+
+ editor_list_button.set_active(false);
+ ActionManager::uncheck_toggleaction ("<Actions>/Editor/show-editor-list");
+ editor_list_button.set_sensitive(false);
}
}