X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmonitor_section.h;h=f7848a3f01261f384efa3e9b61eca03d33f2ce05;hb=82be348d429b97f3e223b3a5b1c6807d23fcdaa0;hp=c2a40022264d53ba0dc784e6dd92cf18991f85c8;hpb=a8b4169cce468ddb4813c2062b5f03ef258a9f1f;p=ardour.git diff --git a/gtk2_ardour/monitor_section.h b/gtk2_ardour/monitor_section.h index c2a4002226..f7848a3f01 100644 --- a/gtk2_ardour/monitor_section.h +++ b/gtk2_ardour/monitor_section.h @@ -22,6 +22,7 @@ #include "gtkmm2ext/bindable_button.h" +#include "ardour_button.h" #include "axis_view.h" #include "level_meter.h" #include "route_ui.h" @@ -44,19 +45,28 @@ class MonitorSection : public RouteUI Gtkmm2ext::TearOff& tearoff() const { return *_tearoff; } + std::string state_id() const; + private: Gtk::VBox vpacker; Gtk::HBox hpacker; - Gtk::Table main_table; Gtk::VBox upper_packer; Gtk::VBox lower_packer; Gtkmm2ext::TearOff* _tearoff; - struct ChannelButtonSet { - BindableToggleButton cut; - BindableToggleButton dim; - BindableToggleButton solo; - BindableToggleButton invert; + Gtk::HBox channel_table_packer; + Gtk::HBox table_hpacker; + Gtk::Table channel_table; + Gtk::Table channel_table_header; + Gtk::ScrolledWindow channel_table_scroller; + Gtk::Viewport channel_table_viewport; + Glib::RefPtr channel_size_group; + + struct ChannelButtonSet { + ArdourButton cut; + ArdourButton dim; + ArdourButton solo; + ArdourButton invert; ChannelButtonSet (); }; @@ -64,17 +74,12 @@ class MonitorSection : public RouteUI typedef std::vector ChannelButtons; ChannelButtons _channel_buttons; - Gtk::Adjustment gain_adjustment; VolumeController* gain_control; - Gtk::Adjustment dim_adjustment; VolumeController* dim_control; - Gtk::Adjustment solo_boost_adjustment; VolumeController* solo_boost_control; - Gtk::Adjustment solo_cut_adjustment; VolumeController* solo_cut_control; void populate_buttons (); - void set_button_names (); void map_state (); boost::shared_ptr _monitor; @@ -94,32 +99,29 @@ class MonitorSection : public RouteUI void cut_all (); void mono (); void toggle_exclusive_solo (); + void set_button_names () {} void toggle_mute_overrides_solo (); void dim_level_changed (); void solo_boost_changed (); void gain_value_changed (); - bool nonlinear_gain_printer (Gtk::SpinButton*); - bool linear_gain_printer (Gtk::SpinButton*); - - Gtk::RadioButtonGroup solo_model_group; - Gtk::RadioButton solo_in_place_button; - Gtk::RadioButton afl_button; - Gtk::RadioButton pfl_button; + ArdourButton solo_in_place_button; + ArdourButton afl_button; + ArdourButton pfl_button; Gtk::HBox solo_model_box; void solo_use_in_place (); void solo_use_afl (); void solo_use_pfl (); - BindableToggleButton cut_all_button; - BindableToggleButton dim_all_button; - BindableToggleButton mono_button; - BindableToggleButton rude_solo_button; - BindableToggleButton rude_iso_button; - BindableToggleButton rude_audition_button; - BindableToggleButton exclusive_solo_button; - BindableToggleButton solo_mute_override_button; + ArdourButton cut_all_button; + ArdourButton dim_all_button; + ArdourButton mono_button; + ArdourButton rude_solo_button; + ArdourButton rude_iso_button; + ArdourButton rude_audition_button; + ArdourButton exclusive_solo_button; + ArdourButton solo_mute_override_button; void do_blink (bool); void solo_blink (bool); @@ -133,6 +135,8 @@ class MonitorSection : public RouteUI PBD::ScopedConnection config_connection; PBD::ScopedConnectionList control_connections; - + + bool _inhibit_solo_model_update; + void assign_controllables (); };