From 60a2ed8ee8aa994c83d382af2ec477e171beb950 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 9 Jun 2008 00:50:59 +0000 Subject: [FIX] All modules now use their own namespace git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@201 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/WeatherUI.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'pokemodr/WeatherUI.cpp') diff --git a/pokemodr/WeatherUI.cpp b/pokemodr/WeatherUI.cpp index e80d5016..5b80de69 100644 --- a/pokemodr/WeatherUI.cpp +++ b/pokemodr/WeatherUI.cpp @@ -21,44 +21,44 @@ // Pokemod includes #include "../pokemod/Weather.h" -WeatherUI::WeatherUI(Weather* weather, QWidget* parent) : +Pokemodr::WeatherUI::WeatherUI(Pokemod::Weather* weather, QWidget* parent) : ObjectUI(parent) { setupUi(this); - setObjects(weather, new Weather(*weather)); + setObjects(weather, new Pokemod::Weather(*weather)); } -WeatherUI::~WeatherUI() +Pokemodr::WeatherUI::~WeatherUI() { } -void WeatherUI::setGui() +void Pokemodr::WeatherUI::setGui() { - varName->setText(static_cast(modified())->name()); - varScript->setValue(static_cast(modified())->script()); + varName->setText(static_cast(modified())->name()); + varScript->setValue(static_cast(modified())->script()); } -void WeatherUI::apply() +void Pokemodr::WeatherUI::apply() { - *static_cast(original()) = *static_cast(modified()); + *static_cast(original()) = *static_cast(modified()); emit(changed(false)); } -void WeatherUI::discard() +void Pokemodr::WeatherUI::discard() { - *static_cast(modified()) = *static_cast(original()); + *static_cast(modified()) = *static_cast(original()); setGui(); emit(changed(false)); } -void WeatherUI::on_varName_textChanged(const QString& name) +void Pokemodr::WeatherUI::on_varName_textChanged(const QString& name) { const int cursor = varName->cursorPosition(); - static_cast(modified())->setName(name); + static_cast(modified())->setName(name); varName->setCursorPosition(cursor); } -void WeatherUI::on_varScript_valueChanged(const Script& script) +void Pokemodr::WeatherUI::on_varScript_valueChanged(const Pokemod::Script& script) { - static_cast(modified())->setScript(script); + static_cast(modified())->setScript(script); } -- cgit