X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fpanner_ui.h;h=e8a9eac414ef115f2bc0403c46840ecb224034d4;hb=4336bb25d739cd007811ccd0298a15acc5e20787;hp=0e16d01a64601a8c8157c10d6fafd618d6343908;hpb=b5fcd80ed6bb1dfd45d083f12a972ed88366ca58;p=ardour.git diff --git a/gtk2_ardour/panner_ui.h b/gtk2_ardour/panner_ui.h index 0e16d01a64..e8a9eac414 100644 --- a/gtk2_ardour/panner_ui.h +++ b/gtk2_ardour/panner_ui.h @@ -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 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; @@ -170,6 +183,10 @@ class PannerUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr void start_touch (boost::weak_ptr); void stop_touch (boost::weak_ptr); + + void bar_spinner_activate (bool); + /** true if any of our PannerBars are currently using a SpinButton to modify value */ + bool _bar_spinner_active; }; #endif /* __ardour_gtk_panner_ui_h__ */