From cd9396d859cbba795c945796a6a0790a6c5c00a3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 23 Feb 2009 20:24:14 -0500 Subject: Moved the sources into the Widgets namespace --- sigmodr/widgets/WeatherUI.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sigmodr/widgets/WeatherUI.cpp') 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 -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(modified())->name()); varScript->setValue(qobject_cast(modified())->script()); } -void Sigmodr::WeatherUI::apply() +void Sigmodr::Widgets::WeatherUI::apply() { *qobject_cast(original()) = *qobject_cast(modified()); emit(changed(false)); } -void Sigmodr::WeatherUI::discard() +void Sigmodr::Widgets::WeatherUI::discard() { *qobject_cast(modified()) = *qobject_cast(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(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(modified())->setScript(script); } -- cgit