Allow status bar components to be individually shown / hidden.

git-svn-id: svn://localhost/ardour2/branches/3.0@10296 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-10-23 21:31:28 +00:00
parent ae2bbd98a5
commit f8c6840677
5 changed files with 155 additions and 6 deletions

View file

@ -329,6 +329,17 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[])
starting.connect (sigc::mem_fun(*this, &ARDOUR_UI::startup));
stopping.connect (sigc::mem_fun(*this, &ARDOUR_UI::shutdown));
{
_status_bar_visiblity = (StatusBarComponent) (StatusCPULoad | StatusBufferLoad | StatusSampleRate | StatusFormat);
XMLNode* n = Config->extra_xml (X_("UI"));
if (n) {
XMLProperty* p = n->property (X_("status-bar-visibility"));
if (p) {
_status_bar_visiblity = (StatusBarComponent) string_2_enum (p->value(), _status_bar_visiblity);
}
}
}
}
/** @return true if a session was chosen and `apply' clicked, otherwise false if `cancel' was clicked */
@ -712,6 +723,11 @@ ARDOUR_UI::startup ()
add_window_proxy (_global_port_matrix[*i]);
}
/* We have to do this here since goto_editor_window() ends up calling show_all() on the
* editor window, and we may want stuff to be hidden.
*/
update_status_bar_visibility ();
BootMessage (string_compose (_("%1 is ready for use"), PROGRAM_NAME));
}