author | insilmaril |
Tue Oct 23 13:05:22 2007 +0000 (2007-10-23) | |
changeset 612 | 316e9237794c |
parent 408 | c2a05fa925a1 |
child 681 | 4e558a15a804 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef MAPCENTEROBJ_H |
insilmaril@0 | 2 |
#define MAPCENTEROBJ_H |
insilmaril@0 | 3 |
|
insilmaril@364 | 4 |
|
insilmaril@364 | 5 |
#include <QDate> |
insilmaril@364 | 6 |
|
insilmaril@0 | 7 |
#include "branchobj.h" |
insilmaril@0 | 8 |
|
insilmaril@459 | 9 |
/*! \brief The center of the map is a special branch. */ |
insilmaril@459 | 10 |
|
insilmaril@0 | 11 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@0 | 12 |
class MapCenterObj:public BranchObj { |
insilmaril@0 | 13 |
public: |
insilmaril@0 | 14 |
MapCenterObj (); |
insilmaril@408 | 15 |
MapCenterObj (QGraphicsScene *); |
insilmaril@0 | 16 |
~MapCenterObj (); |
insilmaril@0 | 17 |
void clear(); |
insilmaril@0 | 18 |
void init(); |
insilmaril@0 | 19 |
virtual void move (double,double); |
insilmaril@0 | 20 |
virtual void moveBy (double,double); |
insilmaril@0 | 21 |
virtual void moveAll (double,double); |
insilmaril@0 | 22 |
virtual void moveAllBy (double,double); |
insilmaril@0 | 23 |
virtual void updateLink(); |
insilmaril@388 | 24 |
virtual void updateRelPositions(); |
insilmaril@408 | 25 |
LinkableMapObj* findMapObj(QPointF,LinkableMapObj*); // find MapObj |
insilmaril@408 | 26 |
virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir |
insilmaril@0 | 27 |
void setVersion(const QString &); |
insilmaril@0 | 28 |
void setAuthor (const QString &); |
insilmaril@0 | 29 |
QString getAuthor (); |
insilmaril@0 | 30 |
void setComment (const QString &); |
insilmaril@0 | 31 |
QString getComment (); |
insilmaril@0 | 32 |
QString getDate(); |
insilmaril@0 | 33 |
private: |
insilmaril@459 | 34 |
QString version; //!< version string saved in vym file |
insilmaril@0 | 35 |
QString author; |
insilmaril@0 | 36 |
QString comment; |
insilmaril@0 | 37 |
QDate date; |
insilmaril@0 | 38 |
}; |
insilmaril@0 | 39 |
#endif |