Mercurial > hg > svgui
comparison widgets/AudioDial.h @ 34:c43f2c4f66f2
* As previous commit
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:11:08 +0000 |
parents | 37b110168acf |
children | 01ab51f72e84 |
comparison
equal
deleted
inserted
replaced
33:651e4e868bcc | 34:c43f2c4f66f2 |
---|---|
82 * Specify that the dial should respond to radial mouse movements | 82 * Specify that the dial should respond to radial mouse movements |
83 * in the same way as QDial. | 83 * in the same way as QDial. |
84 */ | 84 */ |
85 void setMouseDial(bool mouseDial); | 85 void setMouseDial(bool mouseDial); |
86 | 86 |
87 void setDefaultValue(int defaultValue); | |
88 | |
87 protected: | 89 protected: |
88 void drawTick(QPainter &paint, float angle, int size, bool internal); | 90 void drawTick(QPainter &paint, float angle, int size, bool internal); |
89 virtual void paintEvent(QPaintEvent *); | 91 virtual void paintEvent(QPaintEvent *); |
90 | 92 |
91 // Alternate mouse behavior event handlers. | 93 // Alternate mouse behavior event handlers. |
92 virtual void mousePressEvent(QMouseEvent *pMouseEvent); | 94 virtual void mousePressEvent(QMouseEvent *pMouseEvent); |
93 virtual void mouseMoveEvent(QMouseEvent *pMouseEvent); | 95 virtual void mouseMoveEvent(QMouseEvent *pMouseEvent); |
94 virtual void mouseReleaseEvent(QMouseEvent *pMouseEvent); | 96 virtual void mouseReleaseEvent(QMouseEvent *pMouseEvent); |
97 virtual void mouseDoubleClickEvent(QMouseEvent *pMouseEvent); | |
95 | 98 |
96 private: | 99 private: |
97 QColor m_knobColor; | 100 QColor m_knobColor; |
98 QColor m_meterColor; | 101 QColor m_meterColor; |
99 | 102 |
103 int m_defaultValue; | |
104 | |
100 // Alternate mouse behavior tracking. | 105 // Alternate mouse behavior tracking. |
101 bool m_mouseDial; | 106 bool m_mouseDial; |
102 bool m_mousePressed; | 107 bool m_mousePressed; |
103 QPoint m_posMouse; | 108 QPoint m_posMouse; |
104 }; | 109 }; |