X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Froute_ui.h;h=e05db7f67708f4f7b633f91b4e4a368af1225425;hb=65eeeb7a652d7022783b10e35941ce56e0fc7207;hp=331429a00c3758041ef479b90311df957e268e8a;hpb=5ac35d47d6ad46c5f5eab827c154dcea88323055;p=ardour.git diff --git a/gtk2_ardour/route_ui.h b/gtk2_ardour/route_ui.h index 331429a00c..e05db7f677 100644 --- a/gtk2_ardour/route_ui.h +++ b/gtk2_ardour/route_ui.h @@ -31,8 +31,9 @@ #include "ardour/ardour.h" #include "ardour/mute_master.h" -#include "ardour/session_event.h" #include "ardour/session.h" +#include "ardour/session_event.h" +#include "ardour/session_handle.h" #include "ardour/route.h" #include "ardour/route_group.h" #include "ardour/track.h" @@ -55,6 +56,7 @@ namespace Gtk { class ArdourButton; class ArdourWindow; class IOSelectorWindow; +class ControlSlaveUI; class RoutePinWindowProxy : public WM::ProxyBase { @@ -72,15 +74,14 @@ class RoutePinWindowProxy : public WM::ProxyBase PBD::ScopedConnection going_away_connection; }; -class RouteUI : public virtual AxisView +class RouteUI : public virtual ARDOUR::SessionHandlePtr, public virtual PBD::ScopedConnectionList, public virtual Selectable, public virtual sigc::trackable { public: - RouteUI(ARDOUR::Session*); - RouteUI(boost::shared_ptr, ARDOUR::Session*); + RouteUI (ARDOUR::Session*); virtual ~RouteUI(); - Gdk::Color color () const; + boost::shared_ptr stripable() const; virtual void set_route (boost::shared_ptr); virtual void set_button_names () = 0; @@ -97,15 +98,14 @@ class RouteUI : public virtual AxisView boost::shared_ptr audio_track() const; boost::shared_ptr midi_track() const; - std::string name() const; - // protected: XXX sigh this should be here boost::shared_ptr _route; void request_redraw (); - virtual void set_color (const Gdk::Color & c); + virtual void set_color (uint32_t c); + Gdk::Color route_color () const; void choose_color (); bool ignore_toggle; @@ -126,6 +126,7 @@ class RouteUI : public virtual AxisView ArdourButton* solo_safe_led; ArdourButton* solo_isolated_led; + Gtk::Label monitor_input_button_label; Gtk::Label monitor_disk_button_label; @@ -154,7 +155,6 @@ class RouteUI : public virtual AxisView bool monitor_input_release(GdkEventButton*); bool monitor_disk_press(GdkEventButton*); bool monitor_disk_release(GdkEventButton*); - void monitoring_changed (); void update_monitoring_display (); void edit_input_configuration (); @@ -209,7 +209,7 @@ class RouteUI : public virtual AxisView void manage_pins (); void maybe_add_route_print_mgr (); - virtual void property_changed (const PBD::PropertyChange&); + virtual void route_property_changed (const PBD::PropertyChange&) = 0; void route_removed (); virtual void route_active_changed () {} @@ -223,6 +223,9 @@ class RouteUI : public virtual AxisView void toggle_step_edit (); virtual void step_edit_changed (bool); + Gtk::CheckMenuItem *rec_safe_item; + void toggle_rec_safe (); + virtual void polarity_changed (); Gtk::CheckMenuItem *denormal_menu_item; @@ -242,12 +245,11 @@ class RouteUI : public virtual AxisView void adjust_latency (); bool process_save_template_prompter (ArdourPrompter& prompter, const std::string& dir); void save_as_template (); - void open_remote_control_id_dialog (); - static Gtkmm2ext::ActiveState solo_active_state (boost::shared_ptr); - static Gtkmm2ext::ActiveState solo_isolate_active_state (boost::shared_ptr); - static Gtkmm2ext::ActiveState solo_safe_active_state (boost::shared_ptr); - static Gtkmm2ext::ActiveState mute_active_state (ARDOUR::Session*, boost::shared_ptr); + static Gtkmm2ext::ActiveState solo_active_state (boost::shared_ptr); + static Gtkmm2ext::ActiveState solo_isolate_active_state (boost::shared_ptr); + static Gtkmm2ext::ActiveState solo_safe_active_state (boost::shared_ptr); + static Gtkmm2ext::ActiveState mute_active_state (ARDOUR::Session*, boost::shared_ptr); /** Emitted when a bus has been set or unset from `display sends to this bus' mode * by a click on the `Sends' button. The parameter is the route that the sends are @@ -275,8 +277,8 @@ class RouteUI : public virtual AxisView PBD::ScopedConnectionList route_connections; bool self_destruct; - void init (); - void reset (); + void init (); + void reset (); void self_delete (); virtual void start_step_editing () {} @@ -285,22 +287,25 @@ class RouteUI : public virtual AxisView void set_invert_sensitive (bool); bool verify_new_route_name (const std::string& name); - void route_gui_changed (std::string); + void route_gui_changed (PBD::PropertyChange const&); virtual void route_color_changed () {} + void check_rec_enable_sensitivity (); + virtual void bus_send_display_changed (boost::shared_ptr); static std::string program_port_prefix; + bool mark_hidden (bool yn); + private: - void check_rec_enable_sensitivity (); void parameter_changed (std::string const &); void relabel_solo_button (); void track_mode_changed (); std::string route_state_id () const; -protected: + protected: struct SoloMuteRelease { SoloMuteRelease (bool was_active) : active (was_active) @@ -317,6 +322,8 @@ protected: SoloMuteRelease* _solo_release; SoloMuteRelease* _mute_release; + ControlSlaveUI* csu; + private: void setup_invert_buttons (); void set_invert_button_state ();