summaryrefslogtreecommitdiffstats
path: root/pokemodr/WeatherUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/WeatherUI.cpp')
-rw-r--r--pokemodr/WeatherUI.cpp28
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);
}