diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-01-21 22:36:42 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-01-21 22:36:42 +0000 |
commit | cbee698e6b2c7e6043909fb672ee4f9868475841 (patch) | |
tree | e55da95565a0c118467a73e29dc0c96e2ae61274 /muse2/muse/ctrl.cpp | |
parent | 5b205da5d042feb64161e24b61c50271c31d2292 (diff) |
graphical editing of automation 1st drop
Diffstat (limited to 'muse2/muse/ctrl.cpp')
-rw-r--r-- | muse2/muse/ctrl.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/muse2/muse/ctrl.cpp b/muse2/muse/ctrl.cpp index 2a6f7cb0..e5da5f2b 100644 --- a/muse2/muse/ctrl.cpp +++ b/muse2/muse/ctrl.cpp @@ -197,6 +197,23 @@ void CtrlList::read(Xml& xml) if(!ok) printf("CtrlList::read failed reading _curVal string: %s\n", xml.s2().toLatin1().constData()); } + else if (tag == "visible") + { + _visible = loc.toInt(xml.s2(), &ok); + if(!ok) + printf("CtrlList::read failed reading _visible string: %s\n", xml.s2().toLatin1().constData()); + } + else if (tag == "color") + { +#if QT_VERSION >= 0x040700 + ok = _displayColor.isValidColor(xml.s2()); + if (!ok) { + printf("CtrlList::read failed reading color string: %s\n", xml.s2().toLatin1().constData()); + break; + } +#endif + _displayColor.setNamedColor(xml.s2()); + } else printf("unknown tag %s\n", tag.toLatin1().constData()); break; |