mapcenterobj.h
author insilmaril
Wed Jul 30 14:42:03 2008 +0000 (2008-07-30)
branchrelease-1-12-maintained
changeset 43 cf274b28e5fe
child 2 608f976aa7bb
child 83 e90f5bef70c8
permissions -rw-r--r--
Fixed animation timer, which didn't stop once activated
insilmaril@0
     1
#ifndef MAPCENTEROBJ_H
insilmaril@0
     2
#define MAPCENTEROBJ_H
insilmaril@0
     3
insilmaril@0
     4
#include "branchobj.h"
insilmaril@0
     5
#include "version.h"
insilmaril@0
     6
insilmaril@0
     7
/////////////////////////////////////////////////////////////////////////////
insilmaril@0
     8
class MapCenterObj:public BranchObj {
insilmaril@0
     9
public:
insilmaril@0
    10
    MapCenterObj ();
insilmaril@0
    11
    MapCenterObj (QCanvas*);
insilmaril@0
    12
    ~MapCenterObj ();
insilmaril@0
    13
    void clear();
insilmaril@0
    14
    void init();
insilmaril@0
    15
    virtual void move      (double,double);
insilmaril@0
    16
    virtual void moveBy    (double,double);
insilmaril@0
    17
    virtual void moveAll   (double,double);
insilmaril@0
    18
    virtual void moveAllBy (double,double);
insilmaril@0
    19
    virtual void updateLink();
insilmaril@0
    20
    LinkableMapObj* findMapObj(QPoint,LinkableMapObj*);	// find MapObj 
insilmaril@0
    21
	virtual QString saveToDir (const QString&,const QString&,int, const QPoint&);// Save data recursivly to tempdir
insilmaril@0
    22
	void setVersion(const  QString &);
insilmaril@0
    23
	bool checkVersion();				// check if program version is higher than saved version
insilmaril@0
    24
	void setAuthor  (const QString &);
insilmaril@0
    25
	QString getAuthor ();
insilmaril@0
    26
	void setComment (const QString &);
insilmaril@0
    27
	QString getComment ();
insilmaril@0
    28
	QString getDate();
insilmaril@0
    29
private:
insilmaril@0
    30
	QString version;					// version string saved in vym file
insilmaril@0
    31
	QString author;
insilmaril@0
    32
	QString comment;
insilmaril@0
    33
	QDate date;
insilmaril@0
    34
};
insilmaril@0
    35
#endif