, solo_iso_table (1, 2)
, mute_solo_table (1, 2)
, bottom_button_table (1, 3)
- , meter_point_button (_("pre"))
, monitor_section_button (0)
, midi_input_enable_button (0)
, _plugin_insert_cnt (0)
, solo_iso_table (1, 2)
, mute_solo_table (1, 2)
, bottom_button_table (1, 3)
- , meter_point_button (_("pre"))
, monitor_section_button (0)
, midi_input_enable_button (0)
+ , _plugin_insert_cnt (0)
, _comment_button (_("Comments"))
, trim_control (ArdourKnob::default_elements, ArdourKnob::Flags (ArdourKnob::Detent | ArdourKnob::ArcToZero))
, _visibility (X_("mixer-element-visibility"))
ignore_toggle = false;
comment_area = 0;
_width_owner = 0;
- spacer = 0;
/* the length of this string determines the width of the mixer strip when it is set to `wide' */
longest_label = "longest label";
output_button.set_text (_("Output"));
output_button.set_name ("mixer strip button");
- set_tooltip (&meter_point_button, _("Click to select metering point"));
- meter_point_button.set_name ("mixer strip button");
-
- bottom_button_table.attach (meter_point_button, 2, 3, 0, 1);
-
- meter_point_button.signal_button_press_event().connect (sigc::mem_fun (gpm, &GainMeter::meter_press), false);
- meter_point_button.signal_button_release_event().connect (sigc::mem_fun (gpm, &GainMeter::meter_release), false);
+ bottom_button_table.attach (gpm.meter_point_button, 2, 3, 0, 1);
hide_button.set_events (hide_button.get_events() & ~(Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK));
global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
}
+#ifndef MIXBUS
+ //add a spacer underneath the master bus;
+ //this fills the area that is taken up by the scrollbar on the tracks;
+ //and therefore keeps the faders "even" across the bottom
+ int scrollbar_height = 0;
+ {
+ Gtk::Window window (WINDOW_TOPLEVEL);
+ HScrollbar scrollbar;
+ window.add (scrollbar);
+ scrollbar.set_name ("MixerWindow");
+ scrollbar.ensure_style();
+ Gtk::Requisition requisition(scrollbar.size_request ());
+ scrollbar_height = requisition.height;
+ }
+ spacer.set_size_request (-1, scrollbar_height);
+ global_vpacker.pack_end (spacer, false, false);
+#endif
+
global_frame.add (global_vpacker);
global_frame.set_shadow_type (Gtk::SHADOW_IN);
global_frame.set_name ("BaseFrame");
solo_button->hide ();
mute_button->show ();
rec_mon_table.hide ();
- if (solo_iso_table.get_parent()) {
- solo_iso_table.get_parent()->remove(solo_iso_table);
- }
+ solo_iso_table.set_sensitive(false);
+ control_slave_ui.set_sensitive(false);
if (monitor_section_button == 0) {
Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMonitorSection");
_session->MonitorChanged.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::monitor_changed, this), gui_context());
mute_button->show ();
solo_button->show ();
rec_mon_table.show ();
+ solo_iso_table.set_sensitive(true);
+ control_slave_ui.set_sensitive(true);
}
if (_mixer_owned && route()->is_master() ) {
-
- HScrollbar scrollbar;
- Gtk::Requisition requisition(scrollbar.size_request ());
- int scrollbar_height = requisition.height;
-
- spacer = manage (new EventBox);
- spacer->set_size_request (-1, scrollbar_height+2);
- global_vpacker.pack_start (*spacer, false, false);
- spacer->show();
+ spacer.show();
+ } else {
+ spacer.hide();
}
if (is_track()) {
}
}
- meter_point_button.set_text (meter_point_string (_route->meter_point()));
+ gpm.meter_point_button.set_text (meter_point_string (_route->meter_point()));
delete route_ops_menu;
route_ops_menu = 0;
mute_solo_table.show();
bottom_button_table.show();
gpm.show_all ();
- meter_point_button.show();
+ gpm.meter_point_button.show();
input_button_box.show_all();
output_button.show();
name_button.show();
items.push_back (MenuElem (_("Pin Connections..."), sigc::mem_fun (*this, &RouteUI::manage_pins)));
}
+ if (_route->the_instrument () && _route->the_instrument ()->output_streams().n_audio() > 2) {
+ // TODO ..->n_audio() > 1 && separate_output_groups) hard to check here every time.
+ items.push_back (MenuElem (_("Fan out to Busses"), sigc::bind (sigc::mem_fun (*this, &RouteUI::fan_out), true, true)));
+ items.push_back (MenuElem (_("Fan out to Tracks"), sigc::bind (sigc::mem_fun (*this, &RouteUI::fan_out), false, true)));
+ }
+
items.push_back (SeparatorElem());
items.push_back (MenuElem (_("Adjust Latency..."), sigc::mem_fun (*this, &RouteUI::adjust_latency)));
void
MixerStrip::meter_changed ()
{
- meter_point_button.set_text (meter_point_string (_route->meter_point()));
+ gpm.meter_point_button.set_text (meter_point_string (_route->meter_point()));
gpm.setup_meters ();
// reset peak when meter point changes
gpm.reset_peak_display();
output_button.set_sensitive (true);
group_button.set_sensitive (true);
set_invert_sensitive (true);
- meter_point_button.set_sensitive (true);
+ gpm.meter_point_button.set_sensitive (true);
mute_button->set_sensitive (true);
solo_button->set_sensitive (true);
solo_isolated_led->set_sensitive (true);
input_button.set_sensitive (false);
group_button.set_sensitive (false);
set_invert_sensitive (false);
- meter_point_button.set_sensitive (false);
+ gpm.meter_point_button.set_sensitive (false);
mute_button->set_sensitive (false);
solo_button->set_sensitive (false);
rec_enable_button->set_sensitive (false);
}
if (_route) {
- meter_point_button.set_text (meter_point_string (_route->meter_point()));
+ gpm.meter_point_button.set_text (meter_point_string (_route->meter_point()));
} else {
- meter_point_button.set_text ("");
+ gpm.meter_point_button.set_text ("");
}
}