summaryrefslogtreecommitdiffstats
path: root/sigmodr/TimeUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-01-10 19:00:07 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-01-10 19:00:07 -0500
commitb32ca560259df262e4d37a26333e281f8fa68730 (patch)
tree66ac6132bb2ed06939e3d94efaa5e96c0a9a0dde /sigmodr/TimeUI.cpp
parent9834ea2f8f8ea736c53d9686393f50ccc72a982b (diff)
downloadsigen-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.cpp8
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);
+}