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.cpp | |
parent | 212f604407e4a712563ca71eb281161ffcc91d85 (diff) |
automation viewable in arranger and rec changes
Diffstat (limited to 'muse2/muse/ctrl.cpp')
-rw-r--r-- | muse2/muse/ctrl.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/muse2/muse/ctrl.cpp b/muse2/muse/ctrl.cpp index a2bd0754..42802829 100644 --- a/muse2/muse/ctrl.cpp +++ b/muse2/muse/ctrl.cpp @@ -10,6 +10,7 @@ #include <QLocale> +#include <QColor> //#include <stdlib.h> #include "globals.h" @@ -17,6 +18,24 @@ #include "xml.h" // #include "audio.h" +void CtrlList::initColor(int i) +{ + if (i == 0) + _displayColor = Qt::red; + else if (i == 1) + _displayColor = Qt::yellow; + else + _displayColor = Qt::black; + + if (i < 2) + _visible = true; + else + _visible = false; + +} + + + //--------------------------------------------------------- // CtrlList //--------------------------------------------------------- @@ -27,11 +46,12 @@ CtrlList::CtrlList(int id) _default = 0.0; _curVal = 0.0; _mode = INTERPOLATE; + initColor(id); } //--------------------------------------------------------- // CtrlList //--------------------------------------------------------- -CtrlList::CtrlList(int id, QString name, double min, double max) +CtrlList::CtrlList(int id, QString name, double min, double max, bool dontShow) { _id = id; _default = 0.0; @@ -40,6 +60,8 @@ CtrlList::CtrlList(int id, QString name, double min, double max) _name = name; _min = min; _max = max; + _dontShow = dontShow; + initColor(id); } //--------------------------------------------------------- // CtrlList @@ -51,6 +73,7 @@ CtrlList::CtrlList() _default = 0.0; _curVal = 0.0; _mode = INTERPOLATE; + initColor(0); } //--------------------------------------------------------- |