summaryrefslogtreecommitdiffstats
path: root/sigmodr/MoveUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-09-06 04:12:30 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-09-06 04:12:30 +0000
commit0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 (patch)
treea2031b9d0016fcbd49a51c0d1a2292d1f2d8b566 /sigmodr/MoveUI.cpp
parentb81f5bffa2772eb9bd3c67fb35485ab1ee2d96e7 (diff)
downloadsigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.gz
sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.xz
sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.zip
[FIX] Renamed everything (in use) away from Poké- prefixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmodr/MoveUI.cpp')
-rw-r--r--sigmodr/MoveUI.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/sigmodr/MoveUI.cpp b/sigmodr/MoveUI.cpp
index 59a6c6c7..9d1010c9 100644
--- a/sigmodr/MoveUI.cpp
+++ b/sigmodr/MoveUI.cpp
@@ -18,109 +18,109 @@
// Header include
#include "MoveUI.h"
-// Pokemod includes
-#include "../pokemod/Move.h"
-#include "../pokemod/Pokemod.h"
-#include "../pokemod/Type.h"
+// Sigmod includes
+#include "../sigmod/Move.h"
+#include "../sigmod/Sigmod.h"
+#include "../sigmod/Type.h"
-Pokemodr::MoveUI::MoveUI(Pokemod::Move* move, QWidget* parent) :
+Sigmodr::MoveUI::MoveUI(Sigmod::Move* move, QWidget* parent) :
ObjectUI(parent)
{
setupUi(this);
- setObjects(move, new Pokemod::Move(*move));
+ setObjects(move, new Sigmod::Move(*move));
}
-Pokemodr::MoveUI::~MoveUI()
+Sigmodr::MoveUI::~MoveUI()
{
}
-void Pokemodr::MoveUI::refreshGui()
+void Sigmodr::MoveUI::refreshGui()
{
varType->clear();
- for (int i = 0; i < pokemod()->typeCount(); ++i)
+ for (int i = 0; i < sigmod()->typeCount(); ++i)
{
- const Pokemod::Type* type = pokemod()->type(i);
+ const Sigmod::Type* type = sigmod()->type(i);
varType->addItem(type->name(), type->id());
}
}
-void Pokemodr::MoveUI::setGui()
+void Sigmodr::MoveUI::setGui()
{
- varName->setText(qobject_cast<Pokemod::Move*>(modified())->name());
- varPriority->setValue(qobject_cast<Pokemod::Move*>(modified())->priority());
- varAccuracy->setValue(qobject_cast<Pokemod::Move*>(modified())->accuracy());
- varPower->setValue(qobject_cast<Pokemod::Move*>(modified())->power());
- varType->setCurrentIndex(varType->findData(qobject_cast<Pokemod::Move*>(modified())->type()));
- varPowerPoints->setValue(qobject_cast<Pokemod::Move*>(modified())->powerPoints());
- varSpecial->setChecked(qobject_cast<Pokemod::Move*>(modified())->special() ? Qt::Checked : Qt::Unchecked);
- varDescription->setText(qobject_cast<Pokemod::Move*>(modified())->description());
- varBattleScript->setValue(qobject_cast<Pokemod::Move*>(modified())->battleScript());
- varWorldScript->setValue(qobject_cast<Pokemod::Move*>(modified())->worldScript());
+ varName->setText(qobject_cast<Sigmod::Move*>(modified())->name());
+ varPriority->setValue(qobject_cast<Sigmod::Move*>(modified())->priority());
+ varAccuracy->setValue(qobject_cast<Sigmod::Move*>(modified())->accuracy());
+ varPower->setValue(qobject_cast<Sigmod::Move*>(modified())->power());
+ varType->setCurrentIndex(varType->findData(qobject_cast<Sigmod::Move*>(modified())->type()));
+ varPowerPoints->setValue(qobject_cast<Sigmod::Move*>(modified())->powerPoints());
+ varSpecial->setChecked(qobject_cast<Sigmod::Move*>(modified())->special() ? Qt::Checked : Qt::Unchecked);
+ varDescription->setText(qobject_cast<Sigmod::Move*>(modified())->description());
+ varBattleScript->setValue(qobject_cast<Sigmod::Move*>(modified())->battleScript());
+ varWorldScript->setValue(qobject_cast<Sigmod::Move*>(modified())->worldScript());
}
-void Pokemodr::MoveUI::apply()
+void Sigmodr::MoveUI::apply()
{
- *qobject_cast<Pokemod::Move*>(original()) = *qobject_cast<Pokemod::Move*>(modified());
+ *qobject_cast<Sigmod::Move*>(original()) = *qobject_cast<Sigmod::Move*>(modified());
emit(changed(false));
}
-void Pokemodr::MoveUI::discard()
+void Sigmodr::MoveUI::discard()
{
- *qobject_cast<Pokemod::Move*>(modified()) = *qobject_cast<Pokemod::Move*>(original());
+ *qobject_cast<Sigmod::Move*>(modified()) = *qobject_cast<Sigmod::Move*>(original());
setGui();
emit(changed(false));
}
-void Pokemodr::MoveUI::on_varName_textChanged(const QString& name)
+void Sigmodr::MoveUI::on_varName_textChanged(const QString& name)
{
const int cursor = varName->cursorPosition();
- qobject_cast<Pokemod::Move*>(modified())->setName(name);
+ qobject_cast<Sigmod::Move*>(modified())->setName(name);
varName->setCursorPosition(cursor);
}
-void Pokemodr::MoveUI::on_varPriority_valueChanged(const int priority)
+void Sigmodr::MoveUI::on_varPriority_valueChanged(const int priority)
{
- qobject_cast<Pokemod::Move*>(modified())->setPriority(priority);
+ qobject_cast<Sigmod::Move*>(modified())->setPriority(priority);
}
-void Pokemodr::MoveUI::on_varAccuracy_valueChanged(const Pokemod::Fraction& accuracy)
+void Sigmodr::MoveUI::on_varAccuracy_valueChanged(const Sigmod::Fraction& accuracy)
{
- qobject_cast<Pokemod::Move*>(modified())->setAccuracy(accuracy);
+ qobject_cast<Sigmod::Move*>(modified())->setAccuracy(accuracy);
}
-void Pokemodr::MoveUI::on_varPower_valueChanged(const int power)
+void Sigmodr::MoveUI::on_varPower_valueChanged(const int power)
{
- qobject_cast<Pokemod::Move*>(modified())->setPower(power);
+ qobject_cast<Sigmod::Move*>(modified())->setPower(power);
}
-void Pokemodr::MoveUI::on_varType_activated(const int type)
+void Sigmodr::MoveUI::on_varType_activated(const int type)
{
- qobject_cast<Pokemod::Move*>(modified())->setType(varType->itemData(type).toInt());
+ qobject_cast<Sigmod::Move*>(modified())->setType(varType->itemData(type).toInt());
}
-void Pokemodr::MoveUI::on_varPowerPoints_valueChanged(const int powerPoints)
+void Sigmodr::MoveUI::on_varPowerPoints_valueChanged(const int powerPoints)
{
- qobject_cast<Pokemod::Move*>(modified())->setPowerPoints(powerPoints);
+ qobject_cast<Sigmod::Move*>(modified())->setPowerPoints(powerPoints);
}
-void Pokemodr::MoveUI::on_varSpecial_toggled(const bool special)
+void Sigmodr::MoveUI::on_varSpecial_toggled(const bool special)
{
- qobject_cast<Pokemod::Move*>(modified())->setSpecial(special);
+ qobject_cast<Sigmod::Move*>(modified())->setSpecial(special);
}
-void Pokemodr::MoveUI::on_varDescription_textChanged(const QString& description)
+void Sigmodr::MoveUI::on_varDescription_textChanged(const QString& description)
{
const int cursor = varDescription->cursorPosition();
- qobject_cast<Pokemod::Move*>(modified())->setDescription(description);
+ qobject_cast<Sigmod::Move*>(modified())->setDescription(description);
varDescription->setCursorPosition(cursor);
}
-void Pokemodr::MoveUI::on_varBattleScript_valueChanged(const Pokemod::Script& battleScript)
+void Sigmodr::MoveUI::on_varBattleScript_valueChanged(const Sigmod::Script& battleScript)
{
- qobject_cast<Pokemod::Move*>(modified())->setBattleScript(battleScript);
+ qobject_cast<Sigmod::Move*>(modified())->setBattleScript(battleScript);
}
-void Pokemodr::MoveUI::on_varWorldScript_valueChanged(const Pokemod::Script& worldScript)
+void Sigmodr::MoveUI::on_varWorldScript_valueChanged(const Sigmod::Script& worldScript)
{
- qobject_cast<Pokemod::Move*>(modified())->setWorldScript(worldScript);
+ qobject_cast<Sigmod::Move*>(modified())->setWorldScript(worldScript);
}