Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1183:57d192e26331 | 1324:13d9b422f7fe |
---|---|
35 | 35 |
36 /// Discover whether the level range includes muting or not | 36 /// Discover whether the level range includes muting or not |
37 bool includesMute() const; | 37 bool includesMute() const; |
38 | 38 |
39 void setImageSize(int pixels); | 39 void setImageSize(int pixels); |
40 | 40 |
41 void setBigImageSize(int pixels); | 41 void setBigImageSize(int pixels); |
42 | 42 |
43 public slots: | 43 public slots: |
44 /// Set level in the range [0,1] -- will be rounded | 44 /// Set level in the range [0,1] -- will be rounded |
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 mousePressEvent(QMouseEvent *); | |
74 virtual void wheelEvent(QWheelEvent *e); | |
65 | 75 |
66 LevelPanWidget *m_lpw; | 76 LevelPanWidget *m_lpw; |
67 int m_pixels; | 77 int m_pixels; |
68 int m_pixelsBig; | 78 int m_pixelsBig; |
69 bool m_muted; | 79 bool m_muted; |