Show master bus comment on session load #9718
This commit is contained in:
parent
9061657940
commit
acb5feec4a
@ -174,6 +174,15 @@ MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, std::shared_ptr<Route> rt,
|
|||||||
{
|
{
|
||||||
init ();
|
init ();
|
||||||
set_route (rt);
|
set_route (rt);
|
||||||
|
|
||||||
|
if (is_master () && !_route->comment().empty () && _session->config.get_show_master_bus_comment_on_load () && self_destruct) {
|
||||||
|
open_comment_editor ();
|
||||||
|
_comment_window->hide ();
|
||||||
|
_comment_window->set_position (Gtk::WIN_POS_CENTER_ON_PARENT);
|
||||||
|
_comment_window->present ();
|
||||||
|
/* show only once */
|
||||||
|
_session->config.set_show_master_bus_comment_on_load (false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -127,9 +127,9 @@ RouteUI::RouteUI (ARDOUR::Session* sess)
|
|||||||
, solo_menu(0)
|
, solo_menu(0)
|
||||||
, sends_menu(0)
|
, sends_menu(0)
|
||||||
, playlist_action_menu (0)
|
, playlist_action_menu (0)
|
||||||
|
, _comment_window(0)
|
||||||
, _playlist_selector(0)
|
, _playlist_selector(0)
|
||||||
, _record_menu(0)
|
, _record_menu(0)
|
||||||
, _comment_window(0)
|
|
||||||
, _comment_area(0)
|
, _comment_area(0)
|
||||||
, _invert_menu(0)
|
, _invert_menu(0)
|
||||||
{
|
{
|
||||||
|
@ -268,6 +268,8 @@ protected:
|
|||||||
ARDOUR::SoloMuteRelease* _solo_release;
|
ARDOUR::SoloMuteRelease* _solo_release;
|
||||||
ARDOUR::SoloMuteRelease* _mute_release;
|
ARDOUR::SoloMuteRelease* _mute_release;
|
||||||
|
|
||||||
|
ArdourWindow* _comment_window;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void invert_menu_toggled (uint32_t);
|
void invert_menu_toggled (uint32_t);
|
||||||
bool invert_press (GdkEventButton*);
|
bool invert_press (GdkEventButton*);
|
||||||
@ -322,7 +324,6 @@ private:
|
|||||||
PlaylistSelector* _playlist_selector;
|
PlaylistSelector* _playlist_selector;
|
||||||
|
|
||||||
Gtk::Menu* _record_menu;
|
Gtk::Menu* _record_menu;
|
||||||
ArdourWindow* _comment_window;
|
|
||||||
Gtk::TextView* _comment_area;
|
Gtk::TextView* _comment_area;
|
||||||
|
|
||||||
Gtk::CheckMenuItem* _step_edit_item;
|
Gtk::CheckMenuItem* _step_edit_item;
|
||||||
|
@ -436,6 +436,15 @@ SessionOptionEditor::SessionOptionEditor (Session* s)
|
|||||||
sigc::mem_fun (*_session_config, &SessionConfiguration::set_count_in)
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_count_in)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
add_option (_("Misc"), new OptionEditorHeading (_("Project Banner")));
|
||||||
|
|
||||||
|
add_option (_("Misc"), new BoolOption (
|
||||||
|
"show-master-bus-comment-on-load",
|
||||||
|
_("Show master bus comment window on session load (once)"),
|
||||||
|
sigc::mem_fun (*_session_config, &SessionConfiguration::get_show_master_bus_comment_on_load),
|
||||||
|
sigc::mem_fun (*_session_config, &SessionConfiguration::set_show_master_bus_comment_on_load)
|
||||||
|
));
|
||||||
|
|
||||||
add_option (_("Misc"), new OptionEditorHeading (_("Defaults")));
|
add_option (_("Misc"), new OptionEditorHeading (_("Defaults")));
|
||||||
|
|
||||||
Gtk::Button* btn = Gtk::manage (new Gtk::Button (_("Use these settings as defaults")));
|
Gtk::Button* btn = Gtk::manage (new Gtk::Button (_("Use these settings as defaults")));
|
||||||
|
@ -92,6 +92,7 @@ CONFIG_VARIABLE (bool, show_monitor_on_meterbridge, "show-monitor-on-meterbridge
|
|||||||
CONFIG_VARIABLE (bool, show_name_on_meterbridge, "show-name-on-meterbridge", true)
|
CONFIG_VARIABLE (bool, show_name_on_meterbridge, "show-name-on-meterbridge", true)
|
||||||
CONFIG_VARIABLE (bool, show_fader_on_meterbridge, "show-fader-on-meterbridge", false)
|
CONFIG_VARIABLE (bool, show_fader_on_meterbridge, "show-fader-on-meterbridge", false)
|
||||||
CONFIG_VARIABLE (uint32_t, meterbridge_label_height, "meterbridge-label-height", 0)
|
CONFIG_VARIABLE (uint32_t, meterbridge_label_height, "meterbridge-label-height", 0)
|
||||||
|
CONFIG_VARIABLE (bool, show_master_bus_comment_on_load, "show-master-bus-comment-on-load", false)
|
||||||
|
|
||||||
/* If the user changes the session default_time_domain, we also stash that in rc_config as a global preference,
|
/* If the user changes the session default_time_domain, we also stash that in rc_config as a global preference,
|
||||||
where it is used to initialize the session timebase menu during new session creation
|
where it is used to initialize the session timebase menu during new session creation
|
||||||
|
Loading…
Reference in New Issue
Block a user