comparison widgets/LevelPanToolButton.h @ 1216:dc2af6616c83

Merge from branch 3.0-integration
author Chris Cannam
date Fri, 13 Jan 2017 10:29:50 +0000
parents 808d375a3b12
children a34a2a25907c
comparison
equal deleted inserted replaced
1048:e8102ff5573b 1216:dc2af6616c83
45 void setLevel(float); 45 void setLevel(float);
46 46
47 /// Set pan in the range [-1,1] -- will be rounded 47 /// Set pan in the range [-1,1] -- will be rounded
48 void setPan(float); 48 void setPan(float);
49 49
50 /// Set left and right peak monitoring levels in the range [0,1]
51 void setMonitoringLevels(float, float);
52
50 /// Specify whether the level range should include muting or not 53 /// Specify whether the level range should include muting or not
51 void setIncludeMute(bool); 54 void setIncludeMute(bool);
52 55
53 void setEnabled(bool enabled); 56 void setEnabled(bool enabled);
54 57
55 signals: 58 signals:
56 void levelChanged(float); 59 void levelChanged(float);
57 void panChanged(float); 60 void panChanged(float);
58 61
62 void mouseEntered();
63 void mouseLeft();
64
59 private slots: 65 private slots:
60 void selfLevelChanged(float); 66 void selfLevelChanged(float);
61 void selfClicked(); 67 void selfClicked();
62 68
63 protected: 69 protected:
64 void paintEvent(QPaintEvent *); 70 virtual void paintEvent(QPaintEvent *);
71 virtual void enterEvent(QEvent *);
72 virtual void leaveEvent(QEvent *);
73 virtual void wheelEvent(QWheelEvent *e);
65 74
66 LevelPanWidget *m_lpw; 75 LevelPanWidget *m_lpw;
67 int m_pixels; 76 int m_pixels;
68 int m_pixelsBig; 77 int m_pixelsBig;
69 bool m_muted; 78 bool m_muted;