mapcenterobj.h
author insilmaril
Wed, 11 Apr 2007 09:21:16 +0000
changeset 455 1462e380b82b
parent 408 c2a05fa925a1
child 459 9bc55005a0f1
permissions -rw-r--r--
Updated documentation about macros
insilmaril@0
     1
#ifndef MAPCENTEROBJ_H
insilmaril@0
     2
#define MAPCENTEROBJ_H
insilmaril@0
     3
insilmaril@364
     4
insilmaril@364
     5
#include <QDate>
insilmaril@364
     6
insilmaril@0
     7
#include "branchobj.h"
insilmaril@0
     8
insilmaril@0
     9
/////////////////////////////////////////////////////////////////////////////
insilmaril@0
    10
class MapCenterObj:public BranchObj {
insilmaril@0
    11
public:
insilmaril@0
    12
    MapCenterObj ();
insilmaril@408
    13
    MapCenterObj (QGraphicsScene *);
insilmaril@0
    14
    ~MapCenterObj ();
insilmaril@0
    15
    void clear();
insilmaril@0
    16
    void init();
insilmaril@0
    17
    virtual void move      (double,double);
insilmaril@0
    18
    virtual void moveBy    (double,double);
insilmaril@0
    19
    virtual void moveAll   (double,double);
insilmaril@0
    20
    virtual void moveAllBy (double,double);
insilmaril@0
    21
    virtual void updateLink();
insilmaril@388
    22
    virtual void updateRelPositions();
insilmaril@408
    23
    LinkableMapObj* findMapObj(QPointF,LinkableMapObj*);	// find MapObj 
insilmaril@408
    24
	virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
insilmaril@0
    25
	void setVersion(const  QString &);
insilmaril@0
    26
	void setAuthor  (const QString &);
insilmaril@0
    27
	QString getAuthor ();
insilmaril@0
    28
	void setComment (const QString &);
insilmaril@0
    29
	QString getComment ();
insilmaril@0
    30
	QString getDate();
insilmaril@0
    31
private:
insilmaril@0
    32
	QString version;					// version string saved in vym file
insilmaril@0
    33
	QString author;
insilmaril@0
    34
	QString comment;
insilmaril@0
    35
	QDate date;
insilmaril@0
    36
};
insilmaril@0
    37
#endif