diff options
Diffstat (limited to 'sigmodr/WeatherUI.cpp')
| -rw-r--r-- | sigmodr/WeatherUI.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sigmodr/WeatherUI.cpp b/sigmodr/WeatherUI.cpp index e07e31e7..84132e10 100644 --- a/sigmodr/WeatherUI.cpp +++ b/sigmodr/WeatherUI.cpp @@ -18,47 +18,47 @@ // Header include #include "WeatherUI.h" -// Pokemod includes -#include "../pokemod/Weather.h" +// Sigmod includes +#include "../sigmod/Weather.h" -Pokemodr::WeatherUI::WeatherUI(Pokemod::Weather* weather, QWidget* parent) : +Sigmodr::WeatherUI::WeatherUI(Sigmod::Weather* weather, QWidget* parent) : ObjectUI(parent) { setupUi(this); - setObjects(weather, new Pokemod::Weather(*weather)); + setObjects(weather, new Sigmod::Weather(*weather)); } -Pokemodr::WeatherUI::~WeatherUI() +Sigmodr::WeatherUI::~WeatherUI() { } -void Pokemodr::WeatherUI::setGui() +void Sigmodr::WeatherUI::setGui() { - varName->setText(qobject_cast<Pokemod::Weather*>(modified())->name()); - varScript->setValue(qobject_cast<Pokemod::Weather*>(modified())->script()); + varName->setText(qobject_cast<Sigmod::Weather*>(modified())->name()); + varScript->setValue(qobject_cast<Sigmod::Weather*>(modified())->script()); } -void Pokemodr::WeatherUI::apply() +void Sigmodr::WeatherUI::apply() { - *qobject_cast<Pokemod::Weather*>(original()) = *qobject_cast<Pokemod::Weather*>(modified()); + *qobject_cast<Sigmod::Weather*>(original()) = *qobject_cast<Sigmod::Weather*>(modified()); emit(changed(false)); } -void Pokemodr::WeatherUI::discard() +void Sigmodr::WeatherUI::discard() { - *qobject_cast<Pokemod::Weather*>(modified()) = *qobject_cast<Pokemod::Weather*>(original()); + *qobject_cast<Sigmod::Weather*>(modified()) = *qobject_cast<Sigmod::Weather*>(original()); setGui(); emit(changed(false)); } -void Pokemodr::WeatherUI::on_varName_textChanged(const QString& name) +void Sigmodr::WeatherUI::on_varName_textChanged(const QString& name) { const int cursor = varName->cursorPosition(); - qobject_cast<Pokemod::Weather*>(modified())->setName(name); + qobject_cast<Sigmod::Weather*>(modified())->setName(name); varName->setCursorPosition(cursor); } -void Pokemodr::WeatherUI::on_varScript_valueChanged(const Pokemod::Script& script) +void Sigmodr::WeatherUI::on_varScript_valueChanged(const Sigmod::Script& script) { - qobject_cast<Pokemod::Weather*>(modified())->setScript(script); + qobject_cast<Sigmod::Weather*>(modified())->setScript(script); } |
