summaryrefslogtreecommitdiff
path: root/gtk2_ardour/shuttle_control.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-17 14:48:17 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-17 14:48:17 +0000
commit5adcb61f6059bb5554ee6da7a7dba6c65b6100f0 (patch)
tree6cf248d039a0bd6639238ceb046fe6e869ef1c36 /gtk2_ardour/shuttle_control.h
parent4ecb07aaee57e72aedb744f0cce885f418320e70 (diff)
a few small fixes that help pitchbend control of things, notably the shuttle controller. but note that basically, teh shuttle controller is completely and hopelessly broken through excess complexity and incorrect design
git-svn-id: svn://localhost/ardour2/branches/3.0@13870 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/shuttle_control.h')
-rw-r--r--gtk2_ardour/shuttle_control.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk2_ardour/shuttle_control.h b/gtk2_ardour/shuttle_control.h
index c16328e384..a8c2e71d59 100644
--- a/gtk2_ardour/shuttle_control.h
+++ b/gtk2_ardour/shuttle_control.h
@@ -40,7 +40,7 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
void map_transport_state ();
void update_speed_display ();
- void set_shuttle_fract (double);
+ void set_shuttle_fract (double, bool zero_ok = false);
double get_shuttle_fract () const { return shuttle_fract; }
void set_session (ARDOUR::Session*);
@@ -49,6 +49,9 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
void set_value (double);
double get_value (void) const;
+ double lower() const { return -1.0; }
+ double upper() const { return 1.0; }
+
ShuttleControl& sc;
};
@@ -89,8 +92,8 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
void on_size_allocate (Gtk::Allocation&);
bool on_query_tooltip (int, int, bool, const Glib::RefPtr<Gtk::Tooltip>&);
- gint mouse_shuttle (double x, bool force);
- void use_shuttle_fract (bool force);
+ gint mouse_shuttle (double x, bool force);
+ void use_shuttle_fract (bool force, bool zero_ok = false);
void parameter_changed (std::string);
void set_shuttle_units (ARDOUR::ShuttleUnits);