diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-15 19:55:43 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-15 19:55:43 +0000 |
| commit | fdd0eec1d145fb8ac97b4cc9aaed5218214416ec (patch) | |
| tree | 2389a0d53fe3eaa644ccb220345995feec748823 /pokemod/Tile.cpp | |
| parent | 77124f3f105ea3837022d20a49028309a211c4b0 (diff) | |
| download | sigen-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/Tile.cpp')
| -rw-r--r-- | pokemod/Tile.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pokemod/Tile.cpp b/pokemod/Tile.cpp index 40f4d9b2..1ca60d40 100644 --- a/pokemod/Tile.cpp +++ b/pokemod/Tile.cpp @@ -100,6 +100,7 @@ QDomElement Tile::save() const void Tile::setName(const QString& name) { m_name = name; + emit(changed()); } void Tile::setSprite(const QPixmap& sprite) @@ -110,6 +111,7 @@ void Tile::setSprite(const QPixmap& sprite) return; } m_sprite = sprite; + emit(changed()); } void Tile::setFrom(const int direction, const bool state) @@ -120,6 +122,7 @@ void Tile::setFrom(const int direction, const bool state) return; } m_from[direction] = state; + emit(changed()); } void Tile::setWildChance(const Fraction& wildChance) @@ -130,6 +133,7 @@ void Tile::setWildChance(const Fraction& wildChance) return; } m_wildChance = wildChance; + emit(changed()); } void Tile::setHmType(const int hmType) @@ -146,6 +150,7 @@ void Tile::setHmType(const int hmType) } m_hmType = hmType; m_under = INT_MAX; + emit(changed()); } void Tile::setUnder(const int under) @@ -164,6 +169,7 @@ void Tile::setUnder(const int under) } } m_under = under; + emit(changed()); } void Tile::setForceType(const int forceType) @@ -174,6 +180,7 @@ void Tile::setForceType(const int forceType) return; } m_forceType = forceType; + emit(changed()); } void Tile::setForceDirection(const int forceDirection) @@ -192,6 +199,7 @@ void Tile::setForceDirection(const int forceDirection) } } m_forceDirection = forceDirection; + emit(changed()); } QString Tile::name() const |
