mapcenterobj.h
author insilmaril
Tue Apr 08 08:28:37 2008 +0000 (2008-04-08)
changeset 684 5f9a2771680d
parent 459 9bc55005a0f1
child 727 96402b172173
permissions -rw-r--r--
1.11.7: Fixed hanging find function
insilmaril@0
     1
#ifndef MAPCENTEROBJ_H
insilmaril@0
     2
#define MAPCENTEROBJ_H
insilmaril@0
     3
insilmaril@364
     4
insilmaril@364
     5
#include <QDate>
insilmaril@364
     6
insilmaril@0
     7
#include "branchobj.h"
insilmaril@0
     8
insilmaril@459
     9
/*! \brief The center of the map is a special branch. */
insilmaril@459
    10
insilmaril@0
    11
/////////////////////////////////////////////////////////////////////////////
insilmaril@0
    12
class MapCenterObj:public BranchObj {
insilmaril@0
    13
public:
insilmaril@0
    14
    MapCenterObj ();
insilmaril@408
    15
    MapCenterObj (QGraphicsScene *);
insilmaril@0
    16
    ~MapCenterObj ();
insilmaril@0
    17
    void clear();
insilmaril@0
    18
    void init();
insilmaril@0
    19
    virtual void move      (double,double);
insilmaril@681
    20
    virtual void move      (QPointF absPos);
insilmaril@0
    21
    virtual void moveBy    (double,double);
insilmaril@0
    22
    virtual void moveAll   (double,double);
insilmaril@0
    23
    virtual void moveAllBy (double,double);
insilmaril@0
    24
    virtual void updateLink();
insilmaril@388
    25
    virtual void updateRelPositions();
insilmaril@408
    26
    LinkableMapObj* findMapObj(QPointF,LinkableMapObj*);	// find MapObj 
insilmaril@408
    27
	virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
insilmaril@0
    28
	void setVersion(const  QString &);
insilmaril@0
    29
	void setAuthor  (const QString &);
insilmaril@0
    30
	QString getAuthor ();
insilmaril@0
    31
	void setComment (const QString &);
insilmaril@0
    32
	QString getComment ();
insilmaril@0
    33
	QString getDate();
insilmaril@0
    34
private:
insilmaril@459
    35
	QString version;	//!< version string saved in vym file
insilmaril@0
    36
	QString author;
insilmaril@0
    37
	QString comment;
insilmaril@0
    38
	QDate date;
insilmaril@0
    39
};
insilmaril@0
    40
#endif