_master_bus_ui->init(_session);
}
+ bool set_master_bus_visible = Config->get_output_auto_connect() & AutoConnectMaster;
+ _master_bus_ui->master_bus_set_visible ( set_master_bus_visible );
+
_set_session_in_progress = false;
}
if (Config->get_output_auto_connect() & AutoConnectMaster) {
+ _master_bus_ui->master_bus_set_visible (true);
+
if (_session->master_out() && !axis_view_from_route(_session->master_out() ) ) {
selection->block_tracks_changed(true);
selection->block_tracks_changed(false);
}
} else {
+
+ _master_bus_ui->master_bus_set_visible (false);
+
TimeAxisView* tv = 0;
if (_session->master_out() && (tv = axis_view_from_route(_session->master_out() ) ) ) {
delete tv;
, _clear_solo_button (get_waves_button ("clear_solo_button"))
, _global_rec_button (get_waves_button ("global_rec_button"))
, _no_peak_display_box (get_event_box("no_peak_display_box") )
+ , _master_bus_hbox (get_h_box("master_bus_hbox") )
+ , _master_bus_empty_hbox (get_h_box("master_bus_empty_hbox"))
, _master_bus_multi_out_mode_icon (get_image("master_bus_multi_out_mode_icon"))
, _master_event_box (WavesUI::root () )
, _selected(false)
route_mute_state_changed(NULL);
}
+void
+MasterBusUI::master_bus_set_visible (bool set_visible)
+{
+ if ( set_visible )
+ {
+ _master_bus_hbox.show ();
+ _master_bus_empty_hbox.hide ();
+ } else
+ {
+ _master_bus_hbox.hide ();
+ _master_bus_empty_hbox.show ();
+ }
+}
+
void
MasterBusUI::update_master_bus_selection ()
{
void set_route (boost::shared_ptr<ARDOUR::Route>);
void update_master_bus_selection();
static PBD::Signal1<void,MasterBusUI*> CatchDeletion;
+
+ void master_bus_set_visible (bool set_visible);
private:
static int __meter_width;
WavesButton& _clear_solo_button;
WavesButton& _global_rec_button;
Gtk::EventBox& _no_peak_display_box;
+ Gtk::HBox& _master_bus_hbox;
+ Gtk::HBox& _master_bus_empty_hbox;
Gtk::Image& _master_bus_multi_out_mode_icon;
Gtk::Container& _master_event_box;
bgnormal="#494949"
bgactive="#494949"/>
<HBox height="17">
- <EventBox width="29"
- bgnormal="#424242"
- bgactive="#F48E16"/>
- <EventBox width="6"
- bgnormal="#F48E16"
- bgactive="#F48E16"/>
- <EventBox width="1"
- bgnormal="#000000"
- bgactive="#000000"/>
- <VBox width="6"/>
- <Label text="MASTER BUS"
- winfont ="Arial 10"
- macfont ="Helvetica 10"
- fgnormal="#ffffff"
- fgactive="#ffffff"
- width="99"
- height="17"
- horzalignment="start"
- vertalignment="center"/>
+ <HBox id="master_bus_hbox"
+ noshowall="true">
+ <EventBox width="29"
+ bgnormal="#424242"
+ bgactive="#F48E16"/>
+ <EventBox width="6"
+ bgnormal="#F48E16"
+ bgactive="#F48E16"/>
+ <EventBox width="1"
+ bgnormal="#000000"
+ bgactive="#000000"/>
+ <VBox width="6"/>
+ <Label text="MASTER BUS"
+ winfont ="Arial 10"
+ macfont ="Helvetica 10"
+ fgnormal="#ffffff"
+ fgactive="#ffffff"
+ width="99"
+ height="17"
+ horzalignment="start"
+ vertalignment="center"/>
+ </HBox>
+ <HBox id="master_bus_empty_hbox"
+ width="141"
+ noshowall="true"/>
<iconbutton id="master_mute_button"
width="83"
height="17"