use Session::notify_presentation_info_changed() rather than emitting Stripable::Prese...
[ardour.git] / gtk2_ardour / mixer_strip.h
index ba7ef6d9e3b202c31a06644dbf6ed8aa71ea5c76..af1caf3e66a5401f8ce79f575b339fd10c0c87cd 100644 (file)
@@ -47,6 +47,7 @@
 
 #include "pbd/fastlog.h"
 
+#include "ardour_knob.h"
 #include "route_ui.h"
 #include "gain_meter.h"
 #include "panner_ui.h"
@@ -130,6 +131,9 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        void toggle_processors ();
        void ab_plugins ();
 
+       void vca_assign (boost::shared_ptr<ARDOUR::VCA>);
+       void vca_unassign (boost::shared_ptr<ARDOUR::VCA>);
+
        void set_selected(bool yn);
        bool is_selected() {return _selected;}
 
@@ -171,7 +175,6 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
 
        Glib::RefPtr<Gtk::SizeGroup> button_size_group;
 
-       Gtk::Table button_table;
        Gtk::Table rec_mon_table;
        Gtk::Table solo_iso_table;
        Gtk::Table mute_solo_table;
@@ -180,10 +183,16 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        ArdourButton                 meter_point_button;
 
        void meter_changed ();
+       void monitor_changed ();
 
        ArdourButton input_button;
        ArdourButton output_button;
 
+       ArdourButton* monitor_section_button;
+
+       void input_button_resized (Gtk::Allocation&);
+       void output_button_resized (Gtk::Allocation&);
+
        ArdourButton* midi_input_enable_button;
        Gtk::HBox   input_button_box;
 
@@ -200,13 +209,18 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
 
        ArdourButton   _comment_button;
 
+       ArdourKnob     trim_control;
+
        void setup_comment_button ();
 
        ArdourButton   group_button;
        RouteGroupMenu *group_menu;
 
        gint input_press (GdkEventButton *);
+       gint input_release (GdkEventButton *);
+
        gint output_press (GdkEventButton *);
+       gint output_release (GdkEventButton *);
 
        Gtk::Menu input_menu;
        std::list<boost::shared_ptr<ARDOUR::Bundle> > input_menu_bundles;
@@ -226,9 +240,6 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        Gtk::MenuItem* rename_menu_item;
        void build_send_action_menu ();
 
-       void new_send ();
-       void show_send_controls ();
-
        PBD::ScopedConnection panstate_connection;
        PBD::ScopedConnection panstyle_connection;
        void connect_to_pan ();
@@ -243,6 +254,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        Gtk::Menu* route_ops_menu;
        void build_route_ops_menu ();
        gboolean name_button_button_press (GdkEventButton*);
+       gboolean name_button_button_release (GdkEventButton*);
        gboolean number_button_button_press (GdkEventButton*);
        void list_route_operations ();
 
@@ -309,6 +321,11 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        PBD::ScopedConnection _level_meter_connection;
 
        std::string meter_point_string (ARDOUR::MeterPoint);
+
+       void vca_menu_toggle (Gtk::CheckMenuItem*, uint32_t n);
+       bool vca_button_release (GdkEventButton* ev);
+
+       void update_track_number_visibility ();
 };
 
 #endif /* __ardour_mixer_strip__ */