diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-10 19:00:07 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-10 19:00:07 -0500 |
| commit | b32ca560259df262e4d37a26333e281f8fa68730 (patch) | |
| tree | 66ac6132bb2ed06939e3d94efaa5e96c0a9a0dde /sigmodr/TimeUI.cpp | |
| parent | 9834ea2f8f8ea736c53d9686393f50ccc72a982b (diff) | |
| download | sigen-b32ca560259df262e4d37a26333e281f8fa68730.tar.gz sigen-b32ca560259df262e4d37a26333e281f8fa68730.tar.xz sigen-b32ca560259df262e4d37a26333e281f8fa68730.zip | |
Added a script variable to Time
Diffstat (limited to 'sigmodr/TimeUI.cpp')
| -rw-r--r-- | sigmodr/TimeUI.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sigmodr/TimeUI.cpp b/sigmodr/TimeUI.cpp index a7a4d9b7..8af23087 100644 --- a/sigmodr/TimeUI.cpp +++ b/sigmodr/TimeUI.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,6 +36,7 @@ void Sigmodr::TimeUI::setGui() { varName->setText(qobject_cast<Sigmod::Time*>(modified())->name()); varTime->setTime(QTime(qobject_cast<Sigmod::Time*>(modified())->hour(), qobject_cast<Sigmod::Time*>(modified())->minute())); + varScript->setValue(qobject_cast<Sigmod::Time*>(modified())->script()); } void Sigmodr::TimeUI::apply() @@ -63,3 +64,8 @@ void Sigmodr::TimeUI::on_varTime_timeChanged(const QTime& time) qobject_cast<Sigmod::Time*>(modified())->setHour(time.hour()); qobject_cast<Sigmod::Time*>(modified())->setMinute(time.minute()); } + +void Sigmodr::TimeUI::on_varScript_valueChanged(const Sigcore::Script& script) +{ + qobject_cast<Sigmod::Time*>(modified())->setScript(script); +} |
