mapcenterobj.h
author insilmaril
Thu, 23 Mar 2006 12:38:54 +0000
changeset 257 199f2626fe70
parent 95 f688a9913724
child 364 7b74fa3772bf
permissions -rw-r--r--
Version 1.7.12
     1 #ifndef MAPCENTEROBJ_H
     2 #define MAPCENTEROBJ_H
     3 
     4 #include "branchobj.h"
     5 #include "xlinkobj.h"
     6 #include "version.h"
     7 
     8 /////////////////////////////////////////////////////////////////////////////
     9 class MapCenterObj:public BranchObj {
    10 public:
    11     MapCenterObj ();
    12     MapCenterObj (QCanvas*);
    13     ~MapCenterObj ();
    14     void clear();
    15     void init();
    16     virtual void move      (double,double);
    17     virtual void moveBy    (double,double);
    18     virtual void moveAll   (double,double);
    19     virtual void moveAllBy (double,double);
    20     virtual void updateLink();
    21     LinkableMapObj* findMapObj(QPoint,LinkableMapObj*);	// find MapObj 
    22 	virtual QString saveToDir (const QString&,const QString&,int, const QPoint&);// Save data recursivly to tempdir
    23 	void setVersion(const  QString &);
    24 	bool checkVersion();				// check if program version is higher than saved version
    25 	void setAuthor  (const QString &);
    26 	QString getAuthor ();
    27 	void setComment (const QString &);
    28 	QString getComment ();
    29 	QString getDate();
    30 private:
    31 	QString version;					// version string saved in vym file
    32 	QString author;
    33 	QString comment;
    34 	QDate date;
    35 };
    36 #endif