summaryrefslogtreecommitdiffstats
path: root/pokemod/Move.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-15 19:55:43 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-15 19:55:43 +0000
commitfdd0eec1d145fb8ac97b4cc9aaed5218214416ec (patch)
tree2389a0d53fe3eaa644ccb220345995feec748823 /pokemod/Move.cpp
parent77124f3f105ea3837022d20a49028309a211c4b0 (diff)
downloadsigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.tar.gz
sigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.tar.xz
sigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.zip
[FIX] Refactored out connections made within widgets
[FIX] Flag, Fractiona, and Point widgets fixed to only emit signals when actually changed [FIX] Pokemod classes now emit signals git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@138 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Move.cpp')
-rw-r--r--pokemod/Move.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/pokemod/Move.cpp b/pokemod/Move.cpp
index 723fd5af..5567947d 100644
--- a/pokemod/Move.cpp
+++ b/pokemod/Move.cpp
@@ -137,6 +137,7 @@ QDomElement Move::save() const
void Move::setName(const QString& name)
{
m_name = name;
+ emit(changed());
}
void Move::setAccuracy(const Fraction& accuracy)
@@ -147,11 +148,13 @@ void Move::setAccuracy(const Fraction& accuracy)
return;
}
m_accuracy = accuracy;
+ emit(changed());
}
void Move::setPower(const int power)
{
m_power = power;
+ emit(changed());
}
void Move::setType(const int type)
@@ -162,11 +165,13 @@ void Move::setType(const int type)
return;
}
m_type = type;
+ emit(changed());
}
void Move::setSpecial(const bool special)
{
m_special = special;
+ emit(changed());
}
void Move::setPowerPoints(const int powerPoints)
@@ -177,6 +182,7 @@ void Move::setPowerPoints(const int powerPoints)
return;
}
m_powerPoints = powerPoints;
+ emit(changed());
}
void Move::setTarget(const int target)
@@ -187,6 +193,7 @@ void Move::setTarget(const int target)
return;
}
m_target = target;
+ emit(changed());
}
void Move::setNumTargets(const int numTargets)
@@ -197,6 +204,7 @@ void Move::setNumTargets(const int numTargets)
return;
}
m_numTargets = numTargets;
+ emit(changed());
}
void Move::setTargetChoice(const int targetChoice)
@@ -207,36 +215,43 @@ void Move::setTargetChoice(const int targetChoice)
return;
}
m_targetChoice = targetChoice;
+ emit(changed());
}
void Move::setIgnoreAccuracy(const bool ignoreAccuracy)
{
m_ignoreAccuracy = ignoreAccuracy;
+ emit(changed());
}
void Move::setCanFlinch(const bool canFlinch)
{
m_canFlinch = canFlinch;
+ emit(changed());
}
void Move::setCanRandom(const bool canRandom)
{
m_canRandom = canRandom;
+ emit(changed());
}
void Move::setCanSnatch(const bool canSnatch)
{
m_canSnatch = canSnatch;
+ emit(changed());
}
void Move::setSound(const bool sound)
{
m_sound = sound;
+ emit(changed());
}
void Move::setDescription(const QString& description)
{
m_description = description;
+ emit(changed());
}
QString Move::name() const