Mercurial > hg > svgui
comparison widgets/LevelPanWidget.h @ 1201:a68c25ba1153 levelpanwidget
Fix incorrect initial display levels in LevelPanWidget
author | Chris Cannam |
---|---|
date | Fri, 16 Dec 2016 19:35:57 +0000 |
parents | 808d375a3b12 |
children | 8ef67917c301 |
comparison
equal
deleted
inserted
replaced
1200:808d375a3b12 | 1201:a68c25ba1153 |
---|---|
27 | 27 |
28 public: | 28 public: |
29 LevelPanWidget(QWidget *parent = 0); | 29 LevelPanWidget(QWidget *parent = 0); |
30 ~LevelPanWidget(); | 30 ~LevelPanWidget(); |
31 | 31 |
32 /// Return level as a gain value in the range [0,1] | 32 /// Return level as a gain value. The basic level range is [0,1] but the |
33 /// gain scale may go up to 4.0 | |
33 float getLevel() const; | 34 float getLevel() const; |
34 | 35 |
35 /// Return pan as a value in the range [-1,1] | 36 /// Return pan as a value in the range [-1,1] |
36 float getPan() const; | 37 float getPan() const; |
37 | 38 |
45 void renderTo(QPaintDevice *, QRectF, bool asIfEditable) const; | 46 void renderTo(QPaintDevice *, QRectF, bool asIfEditable) const; |
46 | 47 |
47 QSize sizeHint() const; | 48 QSize sizeHint() const; |
48 | 49 |
49 public slots: | 50 public slots: |
50 /// Set level in the range [0,1] -- will be rounded | 51 /// Set level. The basic level range is [0,1] but the scale may go |
52 /// higher. The value will be rounded. | |
51 void setLevel(float); | 53 void setLevel(float); |
52 | 54 |
53 /// Set pan in the range [-1,1] -- will be rounded | 55 /// Set pan in the range [-1,1]. The value will be rounded |
54 void setPan(float); | 56 void setPan(float); |
55 | 57 |
56 /// Set left and right peak monitoring levels in the range [0,1] | 58 /// Set left and right peak monitoring levels in the range [0,1] |
57 void setMonitoringLevels(float, float); | 59 void setMonitoringLevels(float, float); |
58 | 60 |