X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=mapcenterobj.h;fp=mapcenterobj.h;h=0336acbf834d0178bb7dd74964c82250967c3eba;hb=2f79edb68ae955de3c3118a7f9181c7a1f3b0d72;hp=0000000000000000000000000000000000000000;hpb=eeb718b059f8b14807b976ae6410a3021b2d4576;p=vym diff --git a/mapcenterobj.h b/mapcenterobj.h new file mode 100644 index 0000000..0336acb --- /dev/null +++ b/mapcenterobj.h @@ -0,0 +1,40 @@ +#ifndef MAPCENTEROBJ_H +#define MAPCENTEROBJ_H + + +#include + +#include "branchobj.h" + +/*! \brief The center of the map is a special branch. */ + +///////////////////////////////////////////////////////////////////////////// +class MapCenterObj:public BranchObj { +public: + MapCenterObj (); + MapCenterObj (QGraphicsScene *); + ~MapCenterObj (); + void clear(); + void init(); + virtual void move (double,double); + virtual void move (QPointF absPos); + virtual void moveBy (double,double); + virtual void moveAll (double,double); + virtual void moveAllBy (double,double); + virtual void updateLink(); + virtual void updateRelPositions(); + LinkableMapObj* findMapObj(QPointF,LinkableMapObj*); // find MapObj + virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir + void setVersion(const QString &); + void setAuthor (const QString &); + QString getAuthor (); + void setComment (const QString &); + QString getComment (); + QString getDate(); +private: + QString version; //!< version string saved in vym file + QString author; + QString comment; + QDate date; +}; +#endif