+ struct ChannelButtonSet {
+ ArdourButton cut;
+ ArdourButton dim;
+ ArdourButton solo;
+ ArdourButton invert;
+
+ ChannelButtonSet ();
+ };
+
+ typedef std::vector<ChannelButtonSet*> ChannelButtons;
+ ChannelButtons _channel_buttons;
+
+ ArdourKnob* gain_control;
+ ArdourKnob* dim_control;
+ ArdourKnob* solo_boost_control;
+ ArdourKnob* solo_cut_control;
+
+ ArdourDisplay* gain_display;
+ ArdourDisplay* dim_display;
+ ArdourDisplay* solo_boost_display;
+ ArdourDisplay* solo_cut_display;
+
+ std::list<boost::shared_ptr<ARDOUR::Bundle> > output_menu_bundles;
+ Gtk::Menu output_menu;
+ MonitorSelectorWindow *_output_selector;
+ ArdourButton* output_button;
+
+ void maybe_add_bundle_to_output_menu (boost::shared_ptr<ARDOUR::Bundle>, ARDOUR::BundleList const &);
+ void bundle_output_chosen (boost::shared_ptr<ARDOUR::Bundle>);
+ void update_output_display ();
+ void disconnect_output ();
+ void edit_output_configuration ();
+
+ void populate_buttons ();
+ void map_state ();
+
+ boost::shared_ptr<ARDOUR::MonitorProcessor> _monitor;
+ boost::shared_ptr<ARDOUR::Route> _route;
+
+ enum MonitorActions {
+ MonitorMono,
+ MonitorCutAll,
+ MonitorDimAll,
+ ToggleExclusiveSolo,
+ ToggleMuteOverridesSolo,
+ SoloUseInPlace,
+ SoloUseAFL,
+ SoloUsePFL,
+ ToggleMonitorProcessorBox
+ };
+
+ enum ChannelActions {
+ CutChannel,
+ DimChannel,
+ SoloChannel,
+ InvertChannel
+ };
+
+ static Glib::RefPtr<Gtk::ActionGroup> monitor_actions;
+ static void register_actions ();
+
+ static void action_proxy0 (enum MonitorActions);
+ static void action_proxy1 (enum ChannelActions, uint32_t);
+
+ void cut_channel (uint32_t);
+ void dim_channel (uint32_t);
+ void solo_channel (uint32_t);
+ void invert_channel (uint32_t);
+ void dim_all ();
+ 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 ();
+ gint output_press (GdkEventButton *);
+ gint output_release (GdkEventButton *);
+
+ ArdourButton solo_in_place_button;
+ ArdourButton afl_button;
+ ArdourButton pfl_button;
+ Gtk::VBox solo_model_box;
+
+ void solo_use_in_place ();
+ void solo_use_afl ();
+ void solo_use_pfl ();
+
+ 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;
+ ArdourButton toggle_processorbox_button;
+
+ void do_blink (bool);
+ void solo_blink (bool);
+ void audition_blink (bool);
+ bool cancel_solo (GdkEventButton*);
+ bool cancel_isolate (GdkEventButton*);
+ bool cancel_audition (GdkEventButton*);
+ void update_solo_model ();
+ void parameter_changed (std::string);
+ void isolated_changed ();
+
+ PBD::ScopedConnection config_connection;
+ PBD::ScopedConnectionList control_connections;
+ PBD::ScopedConnection _output_changed_connection;
+
+ bool _inhibit_solo_model_update;