diff widgets/LevelPanToolButton.h @ 1324:13d9b422f7fe zoom

Merge from default branch
author Chris Cannam
date Mon, 17 Sep 2018 13:51:31 +0100
parents 1589bc7528b7
children a18e78b9c78b
line wrap: on
line diff
--- a/widgets/LevelPanToolButton.h	Mon Dec 12 15:18:52 2016 +0000
+++ b/widgets/LevelPanToolButton.h	Mon Sep 17 13:51:31 2018 +0100
@@ -37,9 +37,9 @@
     bool includesMute() const;
 
     void setImageSize(int pixels);
-			
+                        
     void setBigImageSize(int pixels);
-			
+                        
 public slots:
     /// Set level in the range [0,1] -- will be rounded
     void setLevel(float);
@@ -47,6 +47,9 @@
     /// Set pan in the range [-1,1] -- will be rounded
     void setPan(float);
 
+    /// Set left and right peak monitoring levels in the range [0,1]
+    void setMonitoringLevels(float, float);
+    
     /// Specify whether the level range should include muting or not
     void setIncludeMute(bool);
 
@@ -56,12 +59,19 @@
     void levelChanged(float);
     void panChanged(float);
 
+    void mouseEntered();
+    void mouseLeft();
+
 private slots:
     void selfLevelChanged(float);
     void selfClicked();
     
 protected:
-    void paintEvent(QPaintEvent *);
+    virtual void paintEvent(QPaintEvent *);
+    virtual void enterEvent(QEvent *);
+    virtual void leaveEvent(QEvent *);
+    virtual void mousePressEvent(QMouseEvent *);
+    virtual void wheelEvent(QWheelEvent *e);
     
     LevelPanWidget *m_lpw;
     int m_pixels;