mapcenterobj.h
author insilmaril
Thu, 08 Nov 2007 15:28:03 +0000
changeset 617 7ee5bf3647d3
parent 459 9bc55005a0f1
child 681 4e558a15a804
permissions -rw-r--r--
1.11.2 split up of xml helper functions. started to work on attributes
     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