make RouteGroup gain control work again ; fix what solo button label shows under...
[ardour.git] / gtk2_ardour / mixer_strip.h
index e859e520267a29e450ea955a563d1d0bb201a697..6b7ffb44cecf144567e6ea15a2cb2eb3b05b1d54 100644 (file)
 #include <gtkmm2ext/click_box.h>
 #include <gtkmm2ext/slider_controller.h>
 
-#include <pbd/stateful.h>
+#include "pbd/stateful.h"
 
-#include <ardour/types.h>
-#include <ardour/ardour.h>
-#include <ardour/processor.h>
+#include "ardour/types.h"
+#include "ardour/ardour.h"
+#include "ardour/processor.h"
 
-#include <pbd/fastlog.h>
+#include "pbd/fastlog.h"
 
 #include "route_ui.h"
 #include "gain_meter.h"
@@ -84,20 +84,26 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        MixerStrip (Mixer_UI&, ARDOUR::Session&, bool in_mixer = true);
        ~MixerStrip ();
 
-       void set_width (Width, void* owner);
-       Width get_width() const { return _width; }
-       void* width_owner() const { return _width_owner; }
+       void set_width_enum (Width, void* owner);
+       Width get_width_enum () const { return _width; }
+       void* width_owner () const { return _width_owner; }
+
+       GainMeter& gain_meter() { return gpm; }
+       PannerUI&  panner_ui()  { return panners; }
 
        void fast_update ();
        void set_embedded (bool);
        
-       ARDOUR::RouteGroup* mix_group() const;
+       ARDOUR::RouteGroup* route_group() const;
        void set_route (boost::shared_ptr<ARDOUR::Route>);
+       void set_button_names ();
 
 #ifdef GTKOSX
        sigc::signal<void>      WidthChanged;
 #endif
 
+       static sigc::signal<void,boost::shared_ptr<ARDOUR::Route> > SwitchIO;
+
   protected:
        friend class Mixer_UI;
        void set_packed (bool yn);
@@ -178,13 +184,13 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        gint output_press (GdkEventButton *);
 
        Gtk::Menu  input_menu;
-       void add_bundle_to_input_menu (boost::shared_ptr<ARDOUR::Bundle>, ARDOUR::BundleList const &);
+       void maybe_add_bundle_to_input_menu (boost::shared_ptr<ARDOUR::Bundle>, ARDOUR::BundleList const &);
 
        Gtk::Menu output_menu;
-       void add_bundle_to_output_menu (boost::shared_ptr<ARDOUR::Bundle>, ARDOUR::BundleList const &);
+       void maybe_add_bundle_to_output_menu (boost::shared_ptr<ARDOUR::Bundle>, ARDOUR::BundleList const &);
        
-       void bundle_input_chosen (boost::shared_ptr<ARDOUR::Bundle>);
-       void bundle_output_chosen (boost::shared_ptr<ARDOUR::Bundle>);
+       void bundle_input_toggled (boost::shared_ptr<ARDOUR::Bundle>);
+       void bundle_output_toggled (boost::shared_ptr<ARDOUR::Bundle>);
 
        void edit_input_configuration ();
        void edit_output_configuration ();
@@ -192,6 +198,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        void diskstream_changed ();
 
        Gtk::Menu *send_action_menu;
+       Gtk::MenuItem* rename_menu_item;
        void build_send_action_menu ();
 
        void new_send ();
@@ -220,31 +227,22 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        void comment_edited ();
        bool ignore_comment_edit;
 
-       void set_mix_group (ARDOUR::RouteGroup *);
-       void add_mix_group_to_menu (ARDOUR::RouteGroup *, Gtk::RadioMenuItem::Group*);
-       bool select_mix_group (GdkEventButton *);
-       void mix_group_changed (void *);
+       void set_route_group (ARDOUR::RouteGroup *);
+       void add_route_group_to_menu (ARDOUR::RouteGroup *, Gtk::RadioMenuItem::Group*);
+       bool select_route_group (GdkEventButton *);
+       void route_group_changed (void *);
 
        IOSelectorWindow *input_selector;
        IOSelectorWindow *output_selector;
 
        Gtk::Style *passthru_style;
 
-       void route_gui_changed (string, void*);
+       void route_gui_changed (std::string, void*);
        void show_route_color ();
        void show_passthru_color ();
 
        void route_active_changed ();
 
-       /* speed control (for tracks only) */
-
-       Gtk::Adjustment    speed_adjustment;
-       Gtkmm2ext::ClickBox speed_spinner;
-       Gtk::Label         speed_label;
-       Gtk::Frame         speed_frame;
-
-       void speed_adjustment_changed ();
-       void speed_changed ();
        void name_changed ();
        void update_speed_display ();
        void map_frozen ();
@@ -256,6 +254,12 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
        void engine_running();
        void engine_stopped();
 
+       void switch_io (boost::shared_ptr<ARDOUR::Route>);
+       boost::shared_ptr<ARDOUR::Delivery> _current_delivery;
+       void revert_to_default_display ();
+
+       void set_route_group_to_new ();
+
        static int scrollbar_height;
 };