summaryrefslogtreecommitdiffstats
path: root/sigmodr/widgets/WeatherUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-23 20:24:14 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-23 20:28:12 -0500
commitcd9396d859cbba795c945796a6a0790a6c5c00a3 (patch)
tree7ee18954a884e430b685b64686d8985ecf6c9a86 /sigmodr/widgets/WeatherUI.cpp
parent3479836bc56ed61f53ecd4aefa4a83a5378901a8 (diff)
downloadsigen-cd9396d859cbba795c945796a6a0790a6c5c00a3.tar.gz
sigen-cd9396d859cbba795c945796a6a0790a6c5c00a3.tar.xz
sigen-cd9396d859cbba795c945796a6a0790a6c5c00a3.zip
Moved the sources into the Widgets namespace
Diffstat (limited to 'sigmodr/widgets/WeatherUI.cpp')
-rw-r--r--sigmodr/widgets/WeatherUI.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/sigmodr/widgets/WeatherUI.cpp b/sigmodr/widgets/WeatherUI.cpp
index 294f88d6..1b03281f 100644
--- a/sigmodr/widgets/WeatherUI.cpp
+++ b/sigmodr/widgets/WeatherUI.cpp
@@ -21,44 +21,44 @@
// Sigmod includes
#include <sigmod/Weather.h>
-Sigmodr::WeatherUI::WeatherUI(Sigmod::Weather* weather, QWidget* parent) :
+Sigmodr::Widgets::WeatherUI::WeatherUI(Sigmod::Weather* weather, QWidget* parent) :
ObjectUI(parent)
{
setupUi(this);
setObjects(weather, new Sigmod::Weather(*weather));
}
-Sigmodr::WeatherUI::~WeatherUI()
+Sigmodr::Widgets::WeatherUI::~WeatherUI()
{
}
-void Sigmodr::WeatherUI::setGui()
+void Sigmodr::Widgets::WeatherUI::setGui()
{
varName->setText(qobject_cast<Sigmod::Weather*>(modified())->name());
varScript->setValue(qobject_cast<Sigmod::Weather*>(modified())->script());
}
-void Sigmodr::WeatherUI::apply()
+void Sigmodr::Widgets::WeatherUI::apply()
{
*qobject_cast<Sigmod::Weather*>(original()) = *qobject_cast<Sigmod::Weather*>(modified());
emit(changed(false));
}
-void Sigmodr::WeatherUI::discard()
+void Sigmodr::Widgets::WeatherUI::discard()
{
*qobject_cast<Sigmod::Weather*>(modified()) = *qobject_cast<Sigmod::Weather*>(original());
setGui();
emit(changed(false));
}
-void Sigmodr::WeatherUI::on_varName_textChanged(const QString& name)
+void Sigmodr::Widgets::WeatherUI::on_varName_textChanged(const QString& name)
{
const int cursor = varName->cursorPosition();
qobject_cast<Sigmod::Weather*>(modified())->setName(name);
varName->setCursorPosition(cursor);
}
-void Sigmodr::WeatherUI::on_varScript_valueChanged(const Sigcore::Script& script)
+void Sigmodr::Widgets::WeatherUI::on_varScript_valueChanged(const Sigcore::Script& script)
{
qobject_cast<Sigmod::Weather*>(modified())->setScript(script);
}