mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Statusbar: add session-path display
This commit is contained in:
parent
96b2b35963
commit
e43cc9c7bb
4 changed files with 21 additions and 0 deletions
|
|
@ -1275,6 +1275,19 @@ ARDOUR_UI::update_format ()
|
|||
format_label.set_markup (s.str ());
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::update_path_label ()
|
||||
{
|
||||
stringstream s;
|
||||
s << X_("<span weight=\"ultralight\">") << _("Path") << X_("</span>: ");
|
||||
if (_session) {
|
||||
s << Gtkmm2ext::markup_escape_text (_session->path());
|
||||
} else {
|
||||
s << "-";
|
||||
}
|
||||
session_path_label.set_markup (s.str ());
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::update_cpu_load ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -613,6 +613,9 @@ private:
|
|||
Gtk::Label format_label;
|
||||
void update_format ();
|
||||
|
||||
Gtk::Label session_path_label;
|
||||
void update_path_label ();
|
||||
|
||||
void every_second ();
|
||||
void every_point_one_seconds ();
|
||||
void every_point_zero_something_seconds ();
|
||||
|
|
|
|||
|
|
@ -121,6 +121,8 @@ ARDOUR_UI::set_session (Session *s)
|
|||
virtual_keyboard_window->set_session (s);
|
||||
}
|
||||
|
||||
update_path_label ();
|
||||
|
||||
if (!_session) {
|
||||
WM::Manager::instance().set_session (s);
|
||||
/* Session option editor cannot exist across change-of-session */
|
||||
|
|
|
|||
|
|
@ -730,6 +730,7 @@ ARDOUR_UI::build_menu_bar ()
|
|||
sample_rate_label.set_name ("SampleRate");
|
||||
sample_rate_label.set_use_markup ();
|
||||
format_label.set_name ("Format");
|
||||
session_path_label.set_name ("Path");
|
||||
format_label.set_use_markup ();
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
|
@ -747,12 +748,14 @@ ARDOUR_UI::build_menu_bar ()
|
|||
hbox->pack_end (timecode_format_label, false, false, 6);
|
||||
hbox->pack_end (format_label, false, false, 6);
|
||||
hbox->pack_end (peak_thread_work_label, false, false, 6);
|
||||
hbox->pack_end (session_path_label, false, false, 6);
|
||||
|
||||
menu_hbox.pack_end (*ev, true, true, 2);
|
||||
|
||||
menu_bar_base.set_name ("MainMenuBar");
|
||||
menu_bar_base.add (menu_hbox);
|
||||
|
||||
_status_bar_visibility.add (&session_path_label ,X_("Path"), _("Path to Session"), false);
|
||||
_status_bar_visibility.add (&peak_thread_work_label,X_("Peakfile"), _("Active Peak-file Work"), false);
|
||||
_status_bar_visibility.add (&format_label, X_("Format"), _("File Format"), false);
|
||||
_status_bar_visibility.add (&timecode_format_label, X_("TCFormat"), _("Timecode Format"), false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue