author | insilmaril |
Thu Nov 16 10:07:12 2006 +0000 (2006-11-16) | |
changeset 400 | 4bdeec4f279e |
parent 388 | 3a58c9ef4a18 |
child 404 | 53efc2562a7d |
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@95 | 8 |
#include "xlinkobj.h" |
insilmaril@0 | 9 |
#include "version.h" |
insilmaril@0 | 10 |
|
insilmaril@0 | 11 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@0 | 12 |
class MapCenterObj:public BranchObj { |
insilmaril@0 | 13 |
public: |
insilmaril@0 | 14 |
MapCenterObj (); |
insilmaril@364 | 15 |
MapCenterObj (Q3Canvas*); |
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@0 | 25 |
LinkableMapObj* findMapObj(QPoint,LinkableMapObj*); // find MapObj |
insilmaril@0 | 26 |
virtual QString saveToDir (const QString&,const QString&,int, const QPoint&);// 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@0 | 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 |