mapcenterobj.h
author insilmaril
Fri, 24 Jul 2009 08:55:40 +0000
branchrelease-1-12-maintained
changeset 72 b4f008d1ea01
parent 0 7a96bd401351
child 2 608f976aa7bb
child 83 e90f5bef70c8
permissions -rw-r--r--
Version bump to 1.12.3
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