X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmixer_strip.h;h=0d3878fc2016d20da726fa3d1fcbb7cb12b51534;hb=b36d91bb2b05023d23bb855e9fb3fc26d5378cff;hp=ac68b505ef2b752af591f00645297fee5b6921a9;hpb=370752bf240cdfaa26919e7a7edff971f113db55;p=ardour.git diff --git a/gtk2_ardour/mixer_strip.h b/gtk2_ardour/mixer_strip.h index ac68b505ef..0d3878fc20 100644 --- a/gtk2_ardour/mixer_strip.h +++ b/gtk2_ardour/mixer_strip.h @@ -79,8 +79,8 @@ class RouteGroupMenu; class MixerStrip : public RouteUI, public Gtk::EventBox { public: - MixerStrip (Mixer_UI&, ARDOUR::Session&, boost::shared_ptr, bool in_mixer = true); - MixerStrip (Mixer_UI&, ARDOUR::Session&, bool in_mixer = true); + MixerStrip (Mixer_UI&, ARDOUR::Session*, boost::shared_ptr, bool in_mixer = true); + MixerStrip (Mixer_UI&, ARDOUR::Session*, bool in_mixer = true); ~MixerStrip (); void set_width_enum (Width, void* owner); @@ -97,10 +97,12 @@ class MixerStrip : public RouteUI, public Gtk::EventBox ARDOUR::RouteGroup* route_group() const; void set_route (boost::shared_ptr); void set_button_names (); + void show_send (boost::shared_ptr); sigc::signal WidthChanged; static sigc::signal > SwitchIO; + static PBD::Signal1 CatchDeletion; protected: friend class Mixer_UI; @@ -146,6 +148,8 @@ class MixerStrip : public RouteUI, public Gtk::EventBox Gtk::ToggleButton _mono_button; Gtk::Table button_table; + Gtk::Table solo_led_table; + Gtk::HBox solo_led_box; Gtk::Table middle_button_table; Gtk::Table bottom_button_table; @@ -154,7 +158,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox Gtk::Button meter_point_button; Gtk::Label meter_point_label; - void meter_changed (void *); + void meter_changed (); Gtk::Button diskstream_button; Gtk::Label diskstream_label; @@ -164,7 +168,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox Gtk::Button output_button; Gtk::Label output_label; - sigc::connection newplug_connection; + std::string longest_label; gint mark_update_safe (); guint32 mode_switch_in_progress; @@ -187,10 +191,12 @@ class MixerStrip : public RouteUI, public Gtk::EventBox gint input_press (GdkEventButton *); gint output_press (GdkEventButton *); - Gtk::Menu input_menu; + Gtk::Menu input_menu; + std::list > input_menu_bundles; void maybe_add_bundle_to_input_menu (boost::shared_ptr, ARDOUR::BundleList const &); Gtk::Menu output_menu; + std::list > output_menu_bundles; void maybe_add_bundle_to_output_menu (boost::shared_ptr, ARDOUR::BundleList const &); void bundle_input_toggled (boost::shared_ptr); @@ -211,8 +217,8 @@ class MixerStrip : public RouteUI, public Gtk::EventBox void input_changed (ARDOUR::IOChange, void *); void output_changed (ARDOUR::IOChange, void *); - sigc::connection panstate_connection; - sigc::connection panstyle_connection; + PBD::ScopedConnection panstate_connection; + PBD::ScopedConnection panstyle_connection; void connect_to_pan (); void update_diskstream_display (); @@ -223,7 +229,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox Gtk::Menu* route_ops_menu; void build_route_ops_menu (); - gint name_button_button_press (GdkEventButton*); + gboolean name_button_button_press (GdkEventButton*); void list_route_operations (); gint comment_key_release_handler (GdkEventKey*); @@ -233,7 +239,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox void set_route_group (ARDOUR::RouteGroup *); bool select_route_group (GdkEventButton *); - void route_group_changed (void *); + void route_group_changed (); IOSelectorWindow *input_selector; IOSelectorWindow *output_selector; @@ -261,6 +267,11 @@ class MixerStrip : public RouteUI, public Gtk::EventBox boost::shared_ptr _current_delivery; void revert_to_default_display (); + void drop_send (); + PBD::ScopedConnection send_gone_connection; + + void reset_strip_style (); + static int scrollbar_height; void update_io_button (boost::shared_ptr route, Width width, bool input_button);