mapcenterobj.h
author insilmaril
Wed, 29 Oct 2008 17:42:34 +0000
changeset 727 96402b172173
parent 681 4e558a15a804
child 760 59614eaf5fbb
permissions -rw-r--r--
subtrees can be deleted now
     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     LinkableMapObj* findMapObj(QPointF,LinkableMapObj*);	// find MapObj 
    31 	virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
    32 	void setVersion(const  QString &);
    33 	void setAuthor  (const QString &);
    34 	QString getAuthor ();
    35 	void setComment (const QString &);
    36 	QString getComment ();
    37 	QString getDate();
    38 private:
    39 	QString version;	//!< version string saved in vym file
    40 	QString author;
    41 	QString comment;
    42 	QDate date;
    43 };
    44 #endif