summaryrefslogtreecommitdiffstats
path: root/pokemod/MapWarp.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/MapWarp.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/MapWarp.cpp')
-rw-r--r--pokemod/MapWarp.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/pokemod/MapWarp.cpp b/pokemod/MapWarp.cpp
index 996dde94..279f7d3f 100644
--- a/pokemod/MapWarp.cpp
+++ b/pokemod/MapWarp.cpp
@@ -112,6 +112,7 @@ QDomElement MapWarp::save() const
void MapWarp::setName(const QString& name)
{
m_name = name;
+ emit(changed());
}
void MapWarp::setCoordinate(const Point& coordinate)
@@ -122,6 +123,7 @@ void MapWarp::setCoordinate(const Point& coordinate)
return;
}
m_coordinate = coordinate;
+ emit(changed());
}
void MapWarp::setFrom(const int direction, const bool can)
@@ -132,6 +134,7 @@ void MapWarp::setFrom(const int direction, const bool can)
return;
}
m_from[direction] = can;
+ emit(changed());
}
void MapWarp::setDirectionOut(const int directionOut)
@@ -142,6 +145,7 @@ void MapWarp::setDirectionOut(const int directionOut)
return;
}
m_directionOut = directionOut;
+ emit(changed());
}
void MapWarp::setType(const int type)
@@ -152,6 +156,7 @@ void MapWarp::setType(const int type)
return;
}
m_type = type;
+ emit(changed());
}
void MapWarp::setIsBiking(const int isBiking)
@@ -162,6 +167,7 @@ void MapWarp::setIsBiking(const int isBiking)
return;
}
m_isBiking = isBiking;
+ emit(changed());
}
void MapWarp::setIsFlash(const int isFlash)
@@ -172,6 +178,7 @@ void MapWarp::setIsFlash(const int isFlash)
return;
}
m_isFlash = isFlash;
+ emit(changed());
}
void MapWarp::setIsFoggy(const int isFoggy)
@@ -182,6 +189,7 @@ void MapWarp::setIsFoggy(const int isFoggy)
return;
}
m_isFoggy = isFoggy;
+ emit(changed());
}
void MapWarp::setToMap(const int toMap)
@@ -193,6 +201,7 @@ void MapWarp::setToMap(const int toMap)
}
m_toMap = toMap;
m_toWarp = INT_MAX;
+ emit(changed());
}
void MapWarp::setToWarp(const int toWarp)
@@ -208,11 +217,13 @@ void MapWarp::setToWarp(const int toWarp)
return;
}
m_toWarp = toWarp;
+ emit(changed());
}
void MapWarp::setWorkingFlag(const Flag& workingFlag)
{
m_workingFlag = workingFlag;
+ emit(changed());
}
void MapWarp::setDialog(const int dialog)
@@ -223,6 +234,7 @@ void MapWarp::setDialog(const int dialog)
return;
}
m_dialog = dialog;
+ emit(changed());
}
QString MapWarp::name() const