diff widgets/Fader.h @ 187:e7cf6044c2a0

* better icon * support range mappers in thumbwheel * supply range mapper for vertical zoom from spectrogram * fix bug in fftmodel for scaled ffts * make the various widgets all respond to double-click for edit, middle-click for reset, ctrl-left-click for reset
author Chris Cannam
date Fri, 12 Jan 2007 14:49:18 +0000
parents 5d3a483856ff
children 5b7472db612b
line wrap: on
line diff
--- a/widgets/Fader.h	Fri Jan 05 15:49:10 2007 +0000
+++ b/widgets/Fader.h	Fri Jan 12 14:49:18 2007 +0000
@@ -79,11 +79,17 @@
     void valueChanged(float); // 0.0 -> 1.0
 
 private:
+    int getMaxX() const;
+
     bool m_withoutKnob;
     float m_value;
     float m_peakLeft;
     float m_peakRight;
 
+    bool m_mousePressed;
+    int m_mousePressX;
+    float m_mousePressValue;
+
     QPixmap m_back;
     QPixmap m_leds;
     QPixmap m_knob;