diff widgets/Fader.h @ 189:5b7472db612b

* Add large chunks of context help in the optional status bar * Add an extra overlay mode in which even the centre frame is disabled * Fixes to FTP retrieval
author Chris Cannam
date Fri, 19 Jan 2007 13:13:14 +0000
parents e7cf6044c2a0
children 8c00a4d4fc69
line wrap: on
line diff
--- a/widgets/Fader.h	Fri Jan 12 21:52:56 2007 +0000
+++ b/widgets/Fader.h	Fri Jan 19 13:13:14 2007 +0000
@@ -68,17 +68,22 @@
     void setPeakRight(float);
     float getPeakRight() { return m_peakRight; }
 
+signals:
+    void valueChanged(float); // 0.0 -> 1.0
+
+    void mouseEntered();
+    void mouseLeft();
+
+protected:
     virtual void mousePressEvent(QMouseEvent *ev);
     virtual void mouseDoubleClickEvent(QMouseEvent *ev);
     virtual void mouseMoveEvent(QMouseEvent *ev);
     virtual void mouseReleaseEvent(QMouseEvent *ev);
     virtual void wheelEvent( QWheelEvent *ev );
     virtual void paintEvent(QPaintEvent *ev);
+    virtual void enterEvent(QEvent *);
+    virtual void leaveEvent(QEvent *);
 
-signals:
-    void valueChanged(float); // 0.0 -> 1.0
-
-private:
     int getMaxX() const;
 
     bool m_withoutKnob;