File: mapcenterobj.h

package info (click to toggle)
vym 1.10.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,376 kB
  • ctags: 1,926
  • sloc: cpp: 18,468; xml: 277; sh: 211; perl: 89; makefile: 26
file content (39 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef MAPCENTEROBJ_H
#define MAPCENTEROBJ_H


#include <QDate>

#include "branchobj.h"

/*! \brief The center of the map is a special branch. */

/////////////////////////////////////////////////////////////////////////////
class MapCenterObj:public BranchObj {
public:
    MapCenterObj ();
    MapCenterObj (QGraphicsScene *);
    ~MapCenterObj ();
    void clear();
    void init();
    virtual void move      (double,double);
    virtual void moveBy    (double,double);
    virtual void moveAll   (double,double);
    virtual void moveAllBy (double,double);
    virtual void updateLink();
    virtual void updateRelPositions();
    LinkableMapObj* findMapObj(QPointF,LinkableMapObj*);	// find MapObj 
	virtual QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
	void setVersion(const  QString &);
	void setAuthor  (const QString &);
	QString getAuthor ();
	void setComment (const QString &);
	QString getComment ();
	QString getDate();
private:
	QString version;	//!< version string saved in vym file
	QString author;
	QString comment;
	QDate date;
};
#endif