comparison 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
comparison
equal deleted inserted replaced
188:dd573e090eed 189:5b7472db612b
66 float getPeakLeft() { return m_peakLeft; } 66 float getPeakLeft() { return m_peakLeft; }
67 67
68 void setPeakRight(float); 68 void setPeakRight(float);
69 float getPeakRight() { return m_peakRight; } 69 float getPeakRight() { return m_peakRight; }
70 70
71 signals:
72 void valueChanged(float); // 0.0 -> 1.0
73
74 void mouseEntered();
75 void mouseLeft();
76
77 protected:
71 virtual void mousePressEvent(QMouseEvent *ev); 78 virtual void mousePressEvent(QMouseEvent *ev);
72 virtual void mouseDoubleClickEvent(QMouseEvent *ev); 79 virtual void mouseDoubleClickEvent(QMouseEvent *ev);
73 virtual void mouseMoveEvent(QMouseEvent *ev); 80 virtual void mouseMoveEvent(QMouseEvent *ev);
74 virtual void mouseReleaseEvent(QMouseEvent *ev); 81 virtual void mouseReleaseEvent(QMouseEvent *ev);
75 virtual void wheelEvent( QWheelEvent *ev ); 82 virtual void wheelEvent( QWheelEvent *ev );
76 virtual void paintEvent(QPaintEvent *ev); 83 virtual void paintEvent(QPaintEvent *ev);
84 virtual void enterEvent(QEvent *);
85 virtual void leaveEvent(QEvent *);
77 86
78 signals:
79 void valueChanged(float); // 0.0 -> 1.0
80
81 private:
82 int getMaxX() const; 87 int getMaxX() const;
83 88
84 bool m_withoutKnob; 89 bool m_withoutKnob;
85 float m_value; 90 float m_value;
86 float m_peakLeft; 91 float m_peakLeft;