Mercurial > hg > svgui
comparison widgets/LevelPanWidget.h @ 940:77110abca8a1 tonioni
LevelPanWidget alternative without including muting
author | Chris Cannam |
---|---|
date | Tue, 31 Mar 2015 14:05:39 +0100 |
parents | 20698aa6a517 |
children | 916b62baf7ac |
comparison
equal
deleted
inserted
replaced
939:8744bb5d9fd0 | 940:77110abca8a1 |
---|---|
36 float getPan() const; | 36 float getPan() const; |
37 | 37 |
38 /// Find out whether the widget is editable | 38 /// Find out whether the widget is editable |
39 bool isEditable() const; | 39 bool isEditable() const; |
40 | 40 |
41 /// Discover whether the level range includes muting or not | |
42 bool includesMute() const; | |
43 | |
41 /// Draw a suitably sized copy of the widget's contents to the given device | 44 /// Draw a suitably sized copy of the widget's contents to the given device |
42 void renderTo(QPaintDevice *, QRectF, bool asIfEditable) const; | 45 void renderTo(QPaintDevice *, QRectF, bool asIfEditable) const; |
43 | 46 |
44 QSize sizeHint() const; | 47 QSize sizeHint() const; |
45 | 48 |
50 /// Set pan in the range [-1,1] -- will be rounded | 53 /// Set pan in the range [-1,1] -- will be rounded |
51 void setPan(float); | 54 void setPan(float); |
52 | 55 |
53 /// Specify whether the widget is editable or read-only (default editable) | 56 /// Specify whether the widget is editable or read-only (default editable) |
54 void setEditable(bool); | 57 void setEditable(bool); |
58 | |
59 /// Specify whether the level range should include muting or not | |
60 void setIncludeMute(bool); | |
55 | 61 |
56 signals: | 62 signals: |
57 void levelChanged(float); | 63 void levelChanged(float); |
58 void panChanged(float); | 64 void panChanged(float); |
59 | 65 |
68 void emitPanChanged(); | 74 void emitPanChanged(); |
69 | 75 |
70 int m_level; | 76 int m_level; |
71 int m_pan; | 77 int m_pan; |
72 bool m_editable; | 78 bool m_editable; |
79 bool m_includeMute; | |
73 | 80 |
74 QSizeF cellSize(QRectF) const; | 81 QSizeF cellSize(QRectF) const; |
75 QPointF cellCentre(QRectF, int level, int pan) const; | 82 QPointF cellCentre(QRectF, int level, int pan) const; |
76 QSizeF cellLightSize(QRectF) const; | 83 QSizeF cellLightSize(QRectF) const; |
77 QRectF cellLightRect(QRectF, int level, int pan) const; | 84 QRectF cellLightRect(QRectF, int level, int pan) const; |