initial import
[vym] / mapcenterobj.h
diff --git a/mapcenterobj.h b/mapcenterobj.h
new file mode 100644 (file)
index 0000000..0336acb
--- /dev/null
@@ -0,0 +1,40 @@
+#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 move      (QPointF absPos);
+    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