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