mapcenterobj.h
author insilmaril
Tue May 06 10:24:27 2008 +0000 (2008-05-06)
changeset 698 14a1306dc144
parent 459 9bc55005a0f1
child 727 96402b172173
permissions -rw-r--r--
Version 1.12.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 move      (QPointF absPos);
    21     virtual void moveBy    (double,double);
    22     virtual void moveAll   (double,double);
    23     virtual void moveAllBy (double,double);
    24     virtual void updateLink();
    25     virtual void updateRelPositions();
    26     LinkableMapObj* findMapObj(QPointF,LinkableMapObj*);	// find MapObj 
    27 	virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
    28 	void setVersion(const  QString &);
    29 	void setAuthor  (const QString &);
    30 	QString getAuthor ();
    31 	void setComment (const QString &);
    32 	QString getComment ();
    33 	QString getDate();
    34 private:
    35 	QString version;	//!< version string saved in vym file
    36 	QString author;
    37 	QString comment;
    38 	QDate date;
    39 };
    40 #endif