diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-09-06 04:12:30 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-09-06 04:12:30 +0000 |
| commit | 0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 (patch) | |
| tree | a2031b9d0016fcbd49a51c0d1a2292d1f2d8b566 /sigmod/Store.cpp | |
| parent | b81f5bffa2772eb9bd3c67fb35485ab1ee2d96e7 (diff) | |
| download | sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.gz sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.xz sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.zip | |
[FIX] Renamed everything (in use) away from Poké- prefixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmod/Store.cpp')
| -rw-r--r-- | sigmod/Store.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sigmod/Store.cpp b/sigmod/Store.cpp index 977bf6a9..bee0cd36 100644 --- a/sigmod/Store.cpp +++ b/sigmod/Store.cpp @@ -18,36 +18,36 @@ // Header include #include "Store.h" -// Pokemod includes +// Sigmod includes #include "Macros.h" -#include "Pokemod.h" +#include "Sigmod.h" -Pokemod::Store::Store(const Store& store) : +Sigmod::Store::Store(const Store& store) : Object(store.parent(), store.id()) { *this = store; } -Pokemod::Store::Store(const Pokemod* parent, const int id) : +Sigmod::Store::Store(const Sigmod* parent, const int id) : Object(parent, id), m_name("") { } -Pokemod::Store::Store(const Store& store, const Pokemod* parent, const int id) : +Sigmod::Store::Store(const Store& store, const Sigmod* parent, const int id) : Object(parent, id) { *this = store; } -Pokemod::Store::Store(const QDomElement& xml, const Pokemod* parent, const int id) : +Sigmod::Store::Store(const QDomElement& xml, const Sigmod* parent, const int id) : Object(parent, id) { LOAD_ID(); load(xml); } -void Pokemod::Store::validate() +void Sigmod::Store::validate() { TEST_BEGIN(); if (m_name.isEmpty()) @@ -59,27 +59,27 @@ void Pokemod::Store::validate() TEST_END(); } -void Pokemod::Store::load(const QDomElement& xml) +void Sigmod::Store::load(const QDomElement& xml) { LOAD_BEGIN(); LOAD_LIST(item); } -QDomElement Pokemod::Store::save() const +QDomElement Sigmod::Store::save() const { SAVE_CREATE(); SAVE_LIST(item); return xml; } -void Pokemod::Store::setName(const QString& name) +void Sigmod::Store::setName(const QString& name) { CHECK(name); } -void Pokemod::Store::setItem(const int item, const bool state) +void Sigmod::Store::setItem(const int item, const bool state) { - if (qobject_cast<const Pokemod*>(pokemod())->itemIndex(item) == INT_MAX) + if (qobject_cast<const Sigmod*>(sigmod())->itemIndex(item) == INT_MAX) emit(error(bounds("item"))); else if (state && !m_item.contains(item)) { @@ -93,22 +93,22 @@ void Pokemod::Store::setItem(const int item, const bool state) } } -QString Pokemod::Store::name() const +QString Sigmod::Store::name() const { return m_name; } -bool Pokemod::Store::item(const int item) const +bool Sigmod::Store::item(const int item) const { return m_item.contains(item); } -QList<int> Pokemod::Store::items() const +QList<int> Sigmod::Store::items() const { return m_item; } -Pokemod::Store& Pokemod::Store::operator=(const Store& rhs) +Sigmod::Store& Sigmod::Store::operator=(const Store& rhs) { if (this == &rhs) return *this; |
