mapcenterobj.h
author insilmaril
Wed, 29 Apr 2009 18:46:31 +0000
changeset 760 59614eaf5fbb
parent 727 96402b172173
child 767 6d2b32f305f9
permissions -rw-r--r--
started to save data like positions outside of MapObj & Co
     1 #ifndef MAPCENTEROBJ_H
     2 #define MAPCENTEROBJ_H
     3 
     4 
     5 #include <QDate>
     6 
     7 #include "branchobj.h"
     8 
     9 
    10 class VymModel;
    11 
    12 /*! \brief The center of the map is a special branch. */
    13 
    14 /////////////////////////////////////////////////////////////////////////////
    15 class MapCenterObj:public BranchObj {
    16 public:
    17     MapCenterObj ();
    18     MapCenterObj (QGraphicsScene *);
    19     MapCenterObj (QGraphicsScene *, VymModel *);
    20     ~MapCenterObj ();
    21     void clear();
    22     void init();
    23     virtual void move      (double,double);
    24     virtual void move      (QPointF absPos);
    25     virtual void moveBy    (double,double);
    26     virtual void moveAll   (double,double);
    27     virtual void moveAllBy (double,double);
    28     virtual void updateLink();
    29     virtual void updateRelPositions();
    30 	virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
    31 	void setVersion(const  QString &);
    32 	void setAuthor  (const QString &);
    33 	QString getAuthor ();
    34 	void setComment (const QString &);
    35 	QString getComment ();
    36 	QString getDate();
    37 private:
    38 	QString version;	//!< version string saved in vym file
    39 	QString author;
    40 	QString comment;
    41 	QDate date;
    42 };
    43 #endif