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/MapEffect.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/MapEffect.cpp')
| -rw-r--r-- | pokemod/MapEffect.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pokemod/MapEffect.cpp b/pokemod/MapEffect.cpp index 4b2fd649..6d29a89c 100644 --- a/pokemod/MapEffect.cpp +++ b/pokemod/MapEffect.cpp @@ -112,6 +112,7 @@ QDomElement MapEffect::save() const void MapEffect::setName(const QString& name) { m_name = name; + emit(changed()); } void MapEffect::setCoordinate(const Point& coordinate) @@ -122,11 +123,13 @@ void MapEffect::setCoordinate(const Point& coordinate) return; } m_coordinate = coordinate; + emit(changed()); } void MapEffect::setExistFlag(const Flag& existFlag) { m_existFlag = existFlag; + emit(changed()); } void MapEffect::setSkin(const QPixmap& skin) @@ -137,6 +140,7 @@ void MapEffect::setSkin(const QPixmap& skin) return; } m_skin = skin; + emit(changed()); } void MapEffect::setEffect(const int effect) @@ -149,6 +153,7 @@ void MapEffect::setEffect(const int effect) m_effect = effect; m_value1 = INT_MAX; m_value2 = INT_MAX; + emit(changed()); } void MapEffect::setValue1(const int value1) @@ -159,6 +164,7 @@ void MapEffect::setValue1(const int value1) return; } m_value1 = value1; + emit(changed()); } void MapEffect::setValue2(const int value2) @@ -192,6 +198,7 @@ void MapEffect::setValue2(const int value2) return; } m_value2 = value2; + emit(changed()); } void MapEffect::setDirection(const int direction) @@ -202,16 +209,19 @@ void MapEffect::setDirection(const int direction) return; } m_direction = direction; + emit(changed()); } void MapEffect::setIsGhost(const bool isGhost) { m_isGhost = isGhost; + emit(changed()); } void MapEffect::setCanMove(const bool canMove) { m_canMove = canMove; + emit(changed()); } void MapEffect::setDialog(const int dialog) @@ -222,6 +232,7 @@ void MapEffect::setDialog(const int dialog) return; } m_dialog = dialog; + emit(changed()); } QString MapEffect::name() const |
