summaryrefslogtreecommitdiff
path: root/plugingui/knob.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-06-08 16:40:01 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2018-06-08 16:40:01 +0200
commit42003bd802d868182bf040e86f2cf2773b8ee851 (patch)
tree86c345b86d0d7567ee1301fb28f20bcc11e80f97 /plugingui/knob.h
parentc00110f801ae9de05a7f4c250918e4c05588b1d9 (diff)
Add reset on double click for all the knobs.
Diffstat (limited to 'plugingui/knob.h')
-rw-r--r--plugingui/knob.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugingui/knob.h b/plugingui/knob.h
index d8771d8..fc71511 100644
--- a/plugingui/knob.h
+++ b/plugingui/knob.h
@@ -44,6 +44,7 @@ public:
bool isFocusable() override { return true; }
void setValue(float value);
+ void setDefaultValue(float value);
void setRange(float minimum, float maximum);
float value();
void showValue(bool show_value);
@@ -72,6 +73,7 @@ private:
state_t state;
float current_value;
+ float default_value = 0.0;
float maximum;
float minimum;