# HG changeset patch # User insilmaril # Date 1177516974 0 # Node ID d9add21ee9d3ea6a8b1ba28b9fdcffad391ebd8b # Parent 8b9cfc26638ced69aaa86a3063f64f62035c15d3 started doxygen documentation diff -r 8b9cfc26638c -r d9add21ee9d3 mapobj.cpp --- a/mapobj.cpp Wed Apr 25 16:02:54 2007 +0000 +++ b/mapobj.cpp Wed Apr 25 16:02:54 2007 +0000 @@ -162,3 +162,6 @@ visible=v; } +void MapObj::animate() +{ +} diff -r 8b9cfc26638c -r d9add21ee9d3 mapobj.h --- a/mapobj.h Wed Apr 25 16:02:54 2007 +0000 +++ b/mapobj.h Wed Apr 25 16:02:54 2007 +0000 @@ -18,6 +18,9 @@ #define Z_ICON 80 #define Z_TEXT 100 +/*! \brief Base class for all objects visible on a map +*/ + class MapObj:public xmlObj { public: MapObj (); @@ -44,6 +47,7 @@ virtual void setVisibility(bool); virtual void positionBBox()=0; virtual void calcBBoxSize()=0; + virtual void animate(); // called by timer for animated objects protected: QGraphicsScene* scene; QRectF bbox; // bounding box of MO itself diff -r 8b9cfc26638c -r d9add21ee9d3 noteobj.h --- a/noteobj.h Wed Apr 25 16:02:54 2007 +0000 +++ b/noteobj.h Wed Apr 25 16:02:54 2007 +0000 @@ -7,6 +7,9 @@ #include "misc.h" +/*! \brief The text note belonging to one OrnamentedObj */ + + class NoteObj:public xmlObj { public: diff -r 8b9cfc26638c -r d9add21ee9d3 options.cpp --- a/options.cpp Wed Apr 25 16:02:54 2007 +0000 +++ b/options.cpp Wed Apr 25 16:02:54 2007 +0000 @@ -12,12 +12,12 @@ name=""; sName=""; lName=""; - type=SwitchOption; + type=Switch; sarg=""; active=false; } -Option::Option (const QString &n, const OptionType &t, const QString &s, const QString &l) +Option::Option (const QString &n, const Type &t, const QString &s, const QString &l) { sName="-"+s; lName="--"+l; @@ -25,7 +25,7 @@ name=n; } -void Option::set(const QString &n, const OptionType &t, const QString &s, const QString &l) +void Option::set(const QString &n, const Type &t, const QString &s, const QString &l) { sName="-"+s; lName="--"+l; @@ -36,7 +36,7 @@ QString Option::getName () { return name; } QString Option::getShort () { return sName; } QString Option::getLong() { return lName; } -OptionType Option::getType() { return type; } +Option::Type Option::getType() { return type; } void Option::setArg(const QString& s) { sarg=s; } QString Option::getArg() { return sarg; } void Option::setActive() { active=true; } @@ -74,7 +74,7 @@ { optlist[j].setActive(); isFile=false; - if (optlist[j].getType()==StringOption) + if (optlist[j].getType()==Option::String) { i++; if (i==arglist.size()) @@ -104,7 +104,7 @@ optlist.append (o); } -void Options::add (const QString &n, const OptionType &t=SwitchOption, const QString &s="", const QString &l="") +void Options::add (const QString &n, const Option::Type &t=Option::Switch, const QString &s="", const QString &l="") { Option o; o.set (n,t,s,l);