Mercurial > hg > svgui
comparison widgets/LevelPanWidget.h @ 1249:8ef67917c301
Ctrl-click, and middle-button click, on level-pan widget reset to default (not implemented yet for level-pan tool button though)
author | Chris Cannam |
---|---|
date | Tue, 28 Feb 2017 14:20:56 +0000 |
parents | a68c25ba1153 |
children | e8368466fa34 |
comparison
equal
deleted
inserted
replaced
1248:fc40742bb911 | 1249:8ef67917c301 |
---|---|
61 /// Specify whether the widget is editable or read-only (default editable) | 61 /// Specify whether the widget is editable or read-only (default editable) |
62 void setEditable(bool); | 62 void setEditable(bool); |
63 | 63 |
64 /// Specify whether the level range should include muting or not | 64 /// Specify whether the level range should include muting or not |
65 void setIncludeMute(bool); | 65 void setIncludeMute(bool); |
66 | |
67 /// Reset to default values | |
68 void setToDefault(); | |
66 | 69 |
67 // public so it can be called from LevelPanToolButton (ew) | 70 // public so it can be called from LevelPanToolButton (ew) |
68 virtual void wheelEvent(QWheelEvent *ev); | 71 virtual void wheelEvent(QWheelEvent *ev); |
69 | 72 |
70 signals: | 73 signals: |
88 int m_level; | 91 int m_level; |
89 int m_pan; | 92 int m_pan; |
90 float m_monitorLeft; | 93 float m_monitorLeft; |
91 float m_monitorRight; | 94 float m_monitorRight; |
92 bool m_editable; | 95 bool m_editable; |
96 bool m_editing; | |
93 bool m_includeMute; | 97 bool m_includeMute; |
94 | 98 |
95 static int audioLevelToLevel(float audioLevel, bool withMute); | 99 static int audioLevelToLevel(float audioLevel, bool withMute); |
96 static float levelToAudioLevel(int level, bool withMute); | 100 static float levelToAudioLevel(int level, bool withMute); |
97 | 101 |