diff 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
line wrap: on
line diff
--- a/widgets/LevelPanWidget.h	Tue Feb 28 14:07:47 2017 +0000
+++ b/widgets/LevelPanWidget.h	Tue Feb 28 14:20:56 2017 +0000
@@ -63,6 +63,9 @@
 
     /// Specify whether the level range should include muting or not
     void setIncludeMute(bool);
+
+    /// Reset to default values
+    void setToDefault();
     
     // public so it can be called from LevelPanToolButton (ew)
     virtual void wheelEvent(QWheelEvent *ev);
@@ -90,6 +93,7 @@
     float m_monitorLeft;
     float m_monitorRight;
     bool m_editable;
+    bool m_editing;
     bool m_includeMute;
 
     static int audioLevelToLevel(float audioLevel, bool withMute);