diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
| commit | 60a2ed8ee8aa994c83d382af2ec477e171beb950 (patch) | |
| tree | 6fea6867adee00f22b9d775a6dce15ed875d75e6 /pokemodr/WeatherUI.cpp | |
| parent | 0737b455ca94351c574aa1a8c83ea30c5b7bc443 (diff) | |
| download | sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.gz sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.xz sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.zip | |
[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
Diffstat (limited to 'pokemodr/WeatherUI.cpp')
| -rw-r--r-- | pokemodr/WeatherUI.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
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<Weather*>(modified())->name()); - varScript->setValue(static_cast<Weather*>(modified())->script()); + varName->setText(static_cast<Pokemod::Weather*>(modified())->name()); + varScript->setValue(static_cast<Pokemod::Weather*>(modified())->script()); } -void WeatherUI::apply() +void Pokemodr::WeatherUI::apply() { - *static_cast<Weather*>(original()) = *static_cast<Weather*>(modified()); + *static_cast<Pokemod::Weather*>(original()) = *static_cast<Pokemod::Weather*>(modified()); emit(changed(false)); } -void WeatherUI::discard() +void Pokemodr::WeatherUI::discard() { - *static_cast<Weather*>(modified()) = *static_cast<Weather*>(original()); + *static_cast<Pokemod::Weather*>(modified()) = *static_cast<Pokemod::Weather*>(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<Weather*>(modified())->setName(name); + static_cast<Pokemod::Weather*>(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<Weather*>(modified())->setScript(script); + static_cast<Pokemod::Weather*>(modified())->setScript(script); } |
