diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
| commit | 60a2ed8ee8aa994c83d382af2ec477e171beb950 (patch) | |
| tree | 6fea6867adee00f22b9d775a6dce15ed875d75e6 /pokemod/Sprite.cpp | |
| parent | 0737b455ca94351c574aa1a8c83ea30c5b7bc443 (diff) | |
| download | sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.gz sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.xz sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.zip | |
[FIX] All modules now use their own namespace
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@201 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Sprite.cpp')
| -rw-r--r-- | pokemod/Sprite.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/Sprite.cpp b/pokemod/Sprite.cpp index df3c5bd5..5b73577f 100644 --- a/pokemod/Sprite.cpp +++ b/pokemod/Sprite.cpp @@ -24,49 +24,49 @@ // Qt includes #include <QBuffer> -Sprite::Sprite(const Sprite& sprite) : +Pokemod::Sprite::Sprite(const Sprite& sprite) : Object("Sprite", sprite.parent(), sprite.id()) { *this = sprite; } -Sprite::Sprite(const Pokemod* parent, const int id) : +Pokemod::Sprite::Sprite(const Pokemod* parent, const int id) : Object("Sprite", parent, id), m_name(""), m_sprite() { } -Sprite::Sprite(const Sprite& sprite, const Pokemod* parent, const int id) : +Pokemod::Sprite::Sprite(const Sprite& sprite, const Pokemod* parent, const int id) : Object("Sprite", parent, id) { *this = sprite; } -Sprite::Sprite(const QDomElement& xml, const Pokemod* parent, const int id) : +Pokemod::Sprite::Sprite(const QDomElement& xml, const Pokemod* parent, const int id) : Object("Sprite", parent, id) { load(xml, id); } -Sprite::~Sprite() +Pokemod::Sprite::~Sprite() { } -void Sprite::validate() +void Pokemod::Sprite::validate() { if (m_name.isEmpty()) emit(error("Name is empty")); } -void Sprite::load(const QDomElement& xml, int id) +void Pokemod::Sprite::load(const QDomElement& xml, int id) { LOAD_ID(); LOAD(QString, name); LOAD(QPixmap, sprite); } -QDomElement Sprite::save() const +QDomElement Pokemod::Sprite::save() const { SAVE_CREATE(); SAVE(QString, name); @@ -74,28 +74,28 @@ QDomElement Sprite::save() const return xml; } -void Sprite::setName(const QString& name) +void Pokemod::Sprite::setName(const QString& name) { CHECK(name); } -void Sprite::setSprite(const QPixmap& sprite) +void Pokemod::Sprite::setSprite(const QPixmap& sprite) { m_sprite = sprite; emit(changed()); } -QString Sprite::name() const +QString Pokemod::Sprite::name() const { return m_name; } -QPixmap Sprite::sprite() const +QPixmap Pokemod::Sprite::sprite() const { return m_sprite; } -Sprite& Sprite::operator=(const Sprite& rhs) +Pokemod::Sprite& Pokemod::Sprite::operator=(const Sprite& rhs) { if (this == &rhs) return *this; |
