diff widgets/LevelPanToolButton.h @ 940:77110abca8a1 tonioni

LevelPanWidget alternative without including muting
author Chris Cannam
date Tue, 31 Mar 2015 14:05:39 +0100
parents 9022635c615a
children fcbfc7fad1f2
line wrap: on
line diff
--- a/widgets/LevelPanToolButton.h	Tue Mar 31 13:06:29 2015 +0100
+++ b/widgets/LevelPanToolButton.h	Tue Mar 31 14:05:39 2015 +0100
@@ -33,6 +33,9 @@
     /// Return pan as a value in the range [-1,1]
     float getPan() const;
 
+    /// Discover whether the level range includes muting or not
+    bool includesMute() const;
+
     void setImageSize(int pixels);
 			
 public slots:
@@ -42,8 +45,11 @@
     /// Set pan in the range [-1,1] -- will be rounded
     void setPan(float);
 
+    /// Specify whether the level range should include muting or not
+    void setIncludeMute(bool);
+
     void setEnabled(bool enabled);
-
+    
 signals:
     void levelChanged(float);
     void panChanged(float);