diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-04-17 23:34:36 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-04-17 23:34:36 +0000 |
| commit | 6679f5cffa9d35a23b76605ddfbf3257f882b6ee (patch) | |
| tree | c8e41854a60b64e8569939bca6b827807175ef9a /pokemod/CoinList.cpp | |
| parent | 05980e883719b1c8ebde1bd2fcbf4f8c16df7ad6 (diff) | |
[FIX] Frac -> Fraction
[FIX] ImageCache and Ini removed
[FIX] Fraction/Point widgets moved to pokemodr
[FIX] Copy ctors made for pokemod classes
[FIX] Ctors in pokemod fixed
[FIX] Copyright headers fixed in pokemodr
[FIX] PokeModr updated to new API and fixed in some places
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@99 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinList.cpp')
| -rw-r--r-- | pokemod/CoinList.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pokemod/CoinList.cpp b/pokemod/CoinList.cpp index b6349c50..e0b9f2fb 100644 --- a/pokemod/CoinList.cpp +++ b/pokemod/CoinList.cpp @@ -16,9 +16,7 @@ */ // Qt includes -#include <QDir> #include <QMap> -#include <QStringList> // Pokemod includes #include "Pokemod.h" @@ -29,6 +27,12 @@ // Header include #include "CoinList.h" +CoinList::CoinList(const CoinList& coinList) : + Object("CoinList", coinList.pokemod(), coinList.id()) +{ + *this = coinList; +} + CoinList::CoinList(const Pokemod* pokemod, const int id) : Object("CoinList", pokemod, id), m_name(""), @@ -36,13 +40,13 @@ CoinList::CoinList(const Pokemod* pokemod, const int id) : { } -CoinList::CoinList(const Pokemod* pokemod, const CoinList& coinList, const int id) : +CoinList::CoinList(const CoinList& coinList, const Pokemod* pokemod, const int id) : Object("CoinList", pokemod, id) { *this = coinList; } -CoinList::CoinList(const Pokemod* pokemod, const QDomElement& xml, const int id) : +CoinList::CoinList(const QDomElement& xml, const Pokemod* pokemod, const int id) : Object("CoinList", pokemod, id) { load(xml, id); @@ -209,13 +213,13 @@ CoinListObject* CoinList::newObject() CoinListObject* CoinList::newObject(const QDomElement& xml) { - m_objects.append(new CoinListObject(pokemod(), xml, objectId())); + m_objects.append(new CoinListObject(xml, pokemod(), objectId())); return m_objects[objectCount() - 1]; } CoinListObject* CoinList::newObject(const CoinListObject& object) { - m_objects.append(new CoinListObject(pokemod(), object, objectId())); + m_objects.append(new CoinListObject(object, pokemod(), objectId())); return m_objects[objectCount() - 1]; } |
