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/Time.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/Time.cpp')
-rw-r--r-- | sigmod/Time.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sigmod/Time.cpp b/sigmod/Time.cpp index e1ced90a..32939e92 100644 --- a/sigmod/Time.cpp +++ b/sigmod/Time.cpp @@ -18,17 +18,17 @@ // Header include #include "Time.h" -// Pokemod includes +// Sigmod includes #include "Macros.h" -#include "Pokemod.h" +#include "Sigmod.h" -Pokemod::Time::Time(const Time& time) : +Sigmod::Time::Time(const Time& time) : Object(time.parent(), time.id()) { *this = time; } -Pokemod::Time::Time(const Pokemod* parent, const int id) : +Sigmod::Time::Time(const Sigmod* parent, const int id) : Object(parent, id), m_name(""), m_hour(0), @@ -36,20 +36,20 @@ Pokemod::Time::Time(const Pokemod* parent, const int id) : { } -Pokemod::Time::Time(const Time& time, const Pokemod* parent, const int id) : +Sigmod::Time::Time(const Time& time, const Sigmod* parent, const int id) : Object(parent, id) { *this = time; } -Pokemod::Time::Time(const QDomElement& xml, const Pokemod* parent, const int id) : +Sigmod::Time::Time(const QDomElement& xml, const Sigmod* parent, const int id) : Object(parent, id) { LOAD_ID(); load(xml); } -void Pokemod::Time::validate() +void Sigmod::Time::validate() { TEST_BEGIN(); if (m_name.isEmpty()) @@ -59,7 +59,7 @@ void Pokemod::Time::validate() TEST_END(); } -void Pokemod::Time::load(const QDomElement& xml) +void Sigmod::Time::load(const QDomElement& xml) { LOAD_BEGIN(); LOAD(name); @@ -67,7 +67,7 @@ void Pokemod::Time::load(const QDomElement& xml) LOAD(minute); } -QDomElement Pokemod::Time::save() const +QDomElement Sigmod::Time::save() const { SAVE_CREATE(); SAVE(name); @@ -76,12 +76,12 @@ QDomElement Pokemod::Time::save() const return xml; } -void Pokemod::Time::setName(const QString& name) +void Sigmod::Time::setName(const QString& name) { CHECK(name); } -void Pokemod::Time::setHour(const int hour) +void Sigmod::Time::setHour(const int hour) { if (24 <= hour) emit(error(bounds("hour"))); @@ -89,7 +89,7 @@ void Pokemod::Time::setHour(const int hour) CHECK(hour); } -void Pokemod::Time::setMinute(const int minute) +void Sigmod::Time::setMinute(const int minute) { if (60 <= minute) emit(error(bounds("minute"))); @@ -97,22 +97,22 @@ void Pokemod::Time::setMinute(const int minute) CHECK(minute); } -QString Pokemod::Time::name() const +QString Sigmod::Time::name() const { return m_name; } -int Pokemod::Time::hour() const +int Sigmod::Time::hour() const { return m_hour; } -int Pokemod::Time::minute() const +int Sigmod::Time::minute() const { return m_minute; } -Pokemod::Time& Pokemod::Time::operator=(const Time& rhs) +Sigmod::Time& Sigmod::Time::operator=(const Time& rhs) { if (this == &rhs) return *this; |