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/MoveEffect.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pokemod/MoveEffect.cpp') diff --git a/pokemod/MoveEffect.cpp b/pokemod/MoveEffect.cpp index 37cb51fc..13d2b7a2 100644 --- a/pokemod/MoveEffect.cpp +++ b/pokemod/MoveEffect.cpp @@ -94,6 +94,7 @@ void MoveEffect::setChance(const Fraction& chance) return; } m_chance = chance; + emit(changed()); } void MoveEffect::setEffect(const int effect) @@ -108,6 +109,7 @@ void MoveEffect::setEffect(const int effect) m_value2 = INT_MAX; m_value3 = 0; m_value4.set(1, 1); + emit(changed()); } void MoveEffect::setValue1(const int value1) @@ -156,6 +158,7 @@ void MoveEffect::setValue1(const int value1) return; } m_value1 = value1; + emit(changed()); } void MoveEffect::setValue2(const int value2) @@ -174,6 +177,7 @@ void MoveEffect::setValue2(const int value2) return; } m_value2 = value2; + emit(changed()); } void MoveEffect::setValue3(const int value3) @@ -185,6 +189,7 @@ void MoveEffect::setValue3(const int value3) break; } m_value3 = value3; + emit(changed()); } void MoveEffect::setValue4(const Fraction& value4) @@ -195,6 +200,7 @@ void MoveEffect::setValue4(const Fraction& value4) return; } m_value4 = value4; + emit(changed()); } Fraction MoveEffect::chance() const -- cgit