From fdd0eec1d145fb8ac97b4cc9aaed5218214416ec Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 15 May 2008 19:55:43 +0000 Subject: [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 --- pokemod/MapEffect.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pokemod/MapEffect.cpp') 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 -- cgit