Remember editor mixer size setting across close and reopen. Fixes #3624.
git-svn-id: svn://localhost/ardour2/branches/3.0@8354 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5c2bc0c03b
commit
8d29a1ce20
@ -322,6 +322,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||||||
void create_editor_mixer ();
|
void create_editor_mixer ();
|
||||||
void show_editor_list (bool yn);
|
void show_editor_list (bool yn);
|
||||||
void set_selected_mixer_strip (TimeAxisView&);
|
void set_selected_mixer_strip (TimeAxisView&);
|
||||||
|
void mixer_strip_width_changed ();
|
||||||
void hide_track_in_display (TimeAxisView* tv, bool temporary = false);
|
void hide_track_in_display (TimeAxisView* tv, bool temporary = false);
|
||||||
|
|
||||||
/* nudge is initiated by transport controls owned by ARDOUR_UI */
|
/* nudge is initiated by transport controls owned by ARDOUR_UI */
|
||||||
|
@ -156,6 +156,7 @@ Editor::create_editor_mixer ()
|
|||||||
_session,
|
_session,
|
||||||
false);
|
false);
|
||||||
current_mixer_strip->Hiding.connect (sigc::mem_fun(*this, &Editor::current_mixer_strip_hidden));
|
current_mixer_strip->Hiding.connect (sigc::mem_fun(*this, &Editor::current_mixer_strip_hidden));
|
||||||
|
current_mixer_strip->WidthChanged.connect (sigc::mem_fun (*this, &Editor::mixer_strip_width_changed));
|
||||||
|
|
||||||
#ifdef GTKOSX
|
#ifdef GTKOSX
|
||||||
current_mixer_strip->WidthChanged.connect (sigc::mem_fun(*this, &Editor::ensure_all_elements_drawn));
|
current_mixer_strip->WidthChanged.connect (sigc::mem_fun(*this, &Editor::ensure_all_elements_drawn));
|
||||||
@ -237,7 +238,16 @@ void
|
|||||||
Editor::maybe_add_mixer_strip_width (XMLNode& node)
|
Editor::maybe_add_mixer_strip_width (XMLNode& node)
|
||||||
{
|
{
|
||||||
if (current_mixer_strip) {
|
if (current_mixer_strip) {
|
||||||
node.add_property ("mixer-width", enum_2_string (current_mixer_strip->get_width_enum()));
|
node.add_property ("mixer-width", enum_2_string (editor_mixer_strip_width));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Editor::mixer_strip_width_changed ()
|
||||||
|
{
|
||||||
|
#ifdef GTKOSX
|
||||||
|
ensure_all_elements_drawn ();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
editor_mixer_strip_width = current_mixer_strip->get_width_enum ();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user