Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/widgets/LevelPanWidget.h Tue Mar 31 13:06:29 2015 +0100 +++ b/widgets/LevelPanWidget.h Tue Mar 31 14:05:39 2015 +0100 @@ -38,6 +38,9 @@ /// Find out whether the widget is editable bool isEditable() const; + /// Discover whether the level range includes muting or not + bool includesMute() const; + /// Draw a suitably sized copy of the widget's contents to the given device void renderTo(QPaintDevice *, QRectF, bool asIfEditable) const; @@ -52,6 +55,9 @@ /// Specify whether the widget is editable or read-only (default editable) void setEditable(bool); + + /// Specify whether the level range should include muting or not + void setIncludeMute(bool); signals: void levelChanged(float); @@ -70,6 +76,7 @@ int m_level; int m_pan; bool m_editable; + bool m_includeMute; QSizeF cellSize(QRectF) const; QPointF cellCentre(QRectF, int level, int pan) const;