diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-01-04 19:16:13 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-01-04 19:16:13 +0000 |
commit | 217b37620cb47a9a6d9ae6c4027638d763e9df1b (patch) | |
tree | cac9681fa81489f57cbb29f9ae62da4fcbaa1665 /muse2/muse/ctrl.h | |
parent | 212f604407e4a712563ca71eb281161ffcc91d85 (diff) |
automation viewable in arranger and rec changes
Diffstat (limited to 'muse2/muse/ctrl.h')
-rw-r--r-- | muse2/muse/ctrl.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/muse2/muse/ctrl.h b/muse2/muse/ctrl.h index 99767b55..c845bb1e 100644 --- a/muse2/muse/ctrl.h +++ b/muse2/muse/ctrl.h @@ -13,6 +13,7 @@ #include <map> #include <list> +#include <qcolor.h> const int AC_VOLUME = 0; const int AC_PAN = 1; @@ -87,11 +88,15 @@ class CtrlList : public std::map<int, CtrlVal, std::less<int> > { QString _name; double _min, _max; CtrlValueType _valueType; + QColor _displayColor; + bool _visible; + bool _dontShow; // when this is true the control exists but is not compatible with viewing in the arranger + void initColor(int i); public: CtrlList(); CtrlList(int id); - CtrlList(int id, QString name, double min, double max); + CtrlList(int id, QString name, double min, double max, bool dontShow=false); Mode mode() const { return _mode; } void setMode(Mode m) { _mode = m; } @@ -117,6 +122,12 @@ class CtrlList : public std::map<int, CtrlVal, std::less<int> > { void add(int tick, double value); void del(int tick); void read(Xml& xml); + + void setColor( QColor c ) { _displayColor = c;} + QColor color() { return _displayColor; } + void setVisible(bool v) { _visible = v; } + bool isVisible() { return _visible; } + bool dontShow() { return _dontShow; } }; //--------------------------------------------------------- |