mapcenterobj.h
author insilmaril
Wed Jul 04 11:05:10 2007 +0000 (2007-07-04)
changeset 535 e97edeb0dcd3
parent 408 c2a05fa925a1
child 681 4e558a15a804
permissions -rw-r--r--
Version 1.9.0
     1 #ifndef MAPCENTEROBJ_H
     2 #define MAPCENTEROBJ_H
     3 
     4 
     5 #include <QDate>
     6 
     7 #include "branchobj.h"
     8 
     9 /*! \brief The center of the map is a special branch. */
    10 
    11 /////////////////////////////////////////////////////////////////////////////
    12 class MapCenterObj:public BranchObj {
    13 public:
    14     MapCenterObj ();
    15     MapCenterObj (QGraphicsScene *);
    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     virtual void updateRelPositions();
    25     LinkableMapObj* findMapObj(QPointF,LinkableMapObj*);	// find MapObj 
    26 	virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
    27 	void setVersion(const  QString &);
    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