mapcenterobj.h
author insilmaril
Tue, 05 Sep 2006 11:53:54 +0000
changeset 373 92a0fb4a5230
parent 364 7b74fa3772bf
child 388 3a58c9ef4a18
permissions -rw-r--r--
fixed default shortcut in findwindow
     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     LinkableMapObj* findMapObj(QPoint,LinkableMapObj*);	// find MapObj 
    25 	virtual QString saveToDir (const QString&,const QString&,int, const QPoint&);// Save data recursivly to tempdir
    26 	void setVersion(const  QString &);
    27 	bool checkVersion();				// check if program version is higher than saved version
    28 	void setAuthor  (const QString &);
    29 	QString getAuthor ();
    30 	void setComment (const QString &);
    31 	QString getComment ();
    32 	QString getDate();
    33 private:
    34 	QString version;					// version string saved in vym file
    35 	QString author;
    36 	QString comment;
    37 	QDate date;
    38 };
    39 #endif