new GUIs for stereo panners

git-svn-id: svn://localhost/ardour2/trunk@1236 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2006-12-20 21:03:11 +00:00
parent 99e92a1172
commit f66a09c344
8 changed files with 166 additions and 21 deletions

View file

@ -456,3 +456,10 @@ BarController::set_use_parent (bool yn)
use_parent = yn;
queue_draw ();
}
void
BarController::set_sensitive (bool yn)
{
Frame::set_sensitive (yn);
darea.set_sensitive (yn);
}

View file

@ -35,10 +35,6 @@ class BarController : public Gtk::Frame
BarController (Gtk::Adjustment& adj, PBD::Controllable&, sigc::slot<void,char*,unsigned int>);
virtual ~BarController () {}
void set_sensitive (bool yn) {
darea.set_sensitive (yn);
}
enum Style {
LeftToRight,
RightToLeft,
@ -53,6 +49,8 @@ class BarController : public Gtk::Frame
void set_with_text (bool yn);
void set_use_parent (bool yn);
void set_sensitive (bool yn);
Gtk::SpinButton& get_spin_button() { return spinner; }
sigc::signal<void> StartGesture;
@ -79,12 +77,12 @@ class BarController : public Gtk::Frame
Gtk::SpinButton spinner;
bool use_parent;
bool button_press (GdkEventButton *);
bool button_release (GdkEventButton *);
bool motion (GdkEventMotion *);
bool expose (GdkEventExpose *);
bool scroll (GdkEventScroll *);
bool entry_focus_out (GdkEventFocus*);
virtual bool button_press (GdkEventButton *);
virtual bool button_release (GdkEventButton *);
virtual bool motion (GdkEventMotion *);
virtual bool expose (GdkEventExpose *);
virtual bool scroll (GdkEventScroll *);
virtual bool entry_focus_out (GdkEventFocus*);
gint mouse_control (double x, GdkWindow* w, double scaling);