diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-21 17:13:11 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-21 17:13:11 +0000 |
| commit | a1fff27395d1930820e6c007fdedd8e9dc58f0b3 (patch) | |
| tree | f61c6b86b4a415fdc2bd0f7d6ca9bfdbfd8e8b64 /pokemod/Author.cpp | |
| parent | 342fa6879e9fd8a757ebabe0a30370137b8d83a7 (diff) | |
| download | sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.gz sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.xz sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.zip | |
[FIX] PokeMod namespace removed
[ADD] MoveEffect editing form for PokéModr
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@38 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Author.cpp')
| -rw-r--r-- | pokemod/Author.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/Author.cpp b/pokemod/Author.cpp index e9e84a2c..6352bde5 100644 --- a/pokemod/Author.cpp +++ b/pokemod/Author.cpp @@ -24,7 +24,7 @@ #include "Pokemod.h" #include "Author.h" -PokeMod::Author::Author(const Pokemod& par, const unsigned _id) : +Author::Author(const Pokemod& par, const unsigned _id) : Object(par, _id), name(""), email(""), @@ -32,19 +32,19 @@ PokeMod::Author::Author(const Pokemod& par, const unsigned _id) : { } -PokeMod::Author::Author(const Pokemod& par, const Author& a, const unsigned _id) : +Author::Author(const Pokemod& par, const Author& a, const unsigned _id) : Object(par, _id) { *this = a; } -PokeMod::Author::Author(const Pokemod& par, const QString& fname, const unsigned _id) : +Author::Author(const Pokemod& par, const QString& fname, const unsigned _id) : Object(par, _id) { load(fname, _id); } -bool PokeMod::Author::validate() const +bool Author::validate() const { bool valid = true; pokemod.validationMsg(QString("---Author \"%1\" with id %2---").arg(name).arg(id), Pokemod::V_Msg); @@ -68,7 +68,7 @@ bool PokeMod::Author::validate() const return valid; } -void PokeMod::Author::load(const QString& fname, const unsigned _id) throw(Exception) +void Author::load(const QString& fname, const unsigned _id) throw(Exception) { Ini ini(fname); if (_id == UINT_MAX) @@ -80,7 +80,7 @@ void PokeMod::Author::load(const QString& fname, const unsigned _id) throw(Excep ini.getValue("role", role); } -void PokeMod::Author::save() const throw(Exception) +void Author::save() const throw(Exception) { Ini ini; ini.addField("id", id); @@ -90,37 +90,37 @@ void PokeMod::Author::save() const throw(Exception) ini.save(QString("%1/author/%2.pini").arg(pokemod.getPath()).arg(name)); } -void PokeMod::Author::setName(const QString& n) +void Author::setName(const QString& n) { name = n; } -void PokeMod::Author::setEmail(const QString& e) +void Author::setEmail(const QString& e) { email = e; } -void PokeMod::Author::setRole(const QString& r) +void Author::setRole(const QString& r) { role = r; } -QString PokeMod::Author::getName() const +QString Author::getName() const { return name; } -QString PokeMod::Author::getEmail() const +QString Author::getEmail() const { return email; } -QString PokeMod::Author::getRole() const +QString Author::getRole() const { return role; } -PokeMod::Author& PokeMod::Author::operator=(const Author& rhs) +Author& Author::operator=(const Author& rhs) { if (this == &rhs) return *this; |
