From ed5366c2c39d6f06dc0c394feff75047e30b8a55 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 17 Feb 2017 20:24:10 +0100 Subject: Make Knob support ranges other than [0; 1]. --- plugingui/knob.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugingui/knob.h') diff --git a/plugingui/knob.h b/plugingui/knob.h index 64d66e1..5710b78 100644 --- a/plugingui/knob.h +++ b/plugingui/knob.h @@ -44,6 +44,7 @@ public: bool isFocusable() override { return true; } void setValue(float value); + void setRange(float minimum, float maximum); float value(); Notifier valueChangedNotifier; // (float newValue) @@ -69,7 +70,7 @@ private: state_t state; - float currentValue; + float current_value; float maximum; float minimum; -- cgit v1.2.3