mapcenterobj.h
author insilmaril
Tue, 24 Oct 2006 15:36:38 +0000
changeset 394 67cfa6e6b863
parent 388 3a58c9ef4a18
child 395 7ced3733ba60
permissions -rw-r--r--
1.8.58 - More undoCommands, spanish translation of doc
     1 #ifndef MAPCENTEROBJ_H
     2 #define MAPCENTEROBJ_H
     3 
     4 
     5 #include <QDate>
     6 
     7 #include "branchobj.h"
     8 #include "xlinkobj.h"
     9 #include "version.h"
    10 
    11 /////////////////////////////////////////////////////////////////////////////
    12 class MapCenterObj:public BranchObj {
    13 public:
    14     MapCenterObj ();
    15     MapCenterObj (Q3Canvas*);
    16     ~MapCenterObj ();
    17     void clear();
    18     void init();
    19     virtual void move      (double,double);
    20     virtual void moveBy    (double,double);
    21     virtual void moveAll   (double,double);
    22     virtual void moveAllBy (double,double);
    23     virtual void updateLink();
    24     virtual void updateRelPositions();
    25     LinkableMapObj* findMapObj(QPoint,LinkableMapObj*);	// find MapObj 
    26 	virtual QString saveToDir (const QString&,const QString&,int, const QPoint&);// Save data recursivly to tempdir
    27 	void setVersion(const  QString &);
    28 	bool checkVersion();				// check if program version is higher than saved version
    29 	void setAuthor  (const QString &);
    30 	QString getAuthor ();
    31 	void setComment (const QString &);
    32 	QString getComment ();
    33 	QString getDate();
    34 private:
    35 	QString version;					// version string saved in vym file
    36 	QString author;
    37 	QString comment;
    38 	QDate date;
    39 };
    40 #endif