Use MTC instead of MIDI Timecode as the string for the external sync button. Fixes...
[ardour.git] / gtk2_ardour / panner_ui.h
index 4c0039a8d34c5ddc1409689b81154dff48ba7ded..e8a9eac414ef115f2bc0403c46840ecb224034d4 100644 (file)
@@ -40,6 +40,7 @@
 class Panner2d;
 class PannerBar;
 class Panner2dWindow;
+class StereoPanner;
 
 namespace ARDOUR {
        class Session;
@@ -79,6 +80,9 @@ class PannerUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
        boost::shared_ptr<PBD::Controllable> get_controllable();
 
        void set_mono (bool);
+       void on_size_allocate (Gtk::Allocation &);
+        
+       static void setup_slider_pix ();
 
   private:
        friend class MixerStrip;
@@ -106,8 +110,17 @@ class PannerUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
        Gtk::EventBox       panning_down;
        Gtk::Arrow          panning_down_arrow;
        Gtk::VBox           pan_vbox;
+        Gtk::VBox           poswidth_box;
        Width              _width;
 
+        StereoPanner*  _stereo_panner;
+        bool _ignore_width_change;
+        bool _ignore_position_change;
+        void width_adjusted ();
+        void show_width ();
+        void position_adjusted ();
+        void show_position ();
+
        Gtk::ToggleButton   panning_link_button;
        Gtk::Button         panning_link_direction_button;
        Gtk::HBox           panning_link_box;