4 #include <QGraphicsScene>
6 #include "mapcenterobj.h"
10 /*! \brief This will later be divided into Model/View
19 void setMapEditor(MapEditor *me); // FIXME should not be necessary in Model/View
20 MapEditor* getMapEditor();
21 void setVersion(const QString &);
22 void setAuthor (const QString &);
24 void setComment (const QString &);
25 QString getComment ();
27 void setScene(QGraphicsScene *s);
28 QGraphicsScene *getScene();
29 MapCenterObj* addMapCenter();
30 MapCenterObj* removeMapCenter(MapCenterObj *mco);
31 LinkableMapObj* getSelection();
32 BranchObj* getSelectedBranch();
33 bool select (const QString &s);
34 QString getSelectString (LinkableMapObj *lmo);
36 void move (double,double); // FIXME needed at all?
37 void moveBy (double,double); // FIXME needed at all?
38 void moveAll (double,double); // FIXME needed at all?
39 void moveAllBy (double,double); // FIXME needed at all?
41 BranchObj* first(); // FIXME replaced by ModelIndex later
42 BranchObj* next(BranchObj *bo); // FIXME replaced by ModelIndex later
47 void updateRelPositions();
49 QRectF getTotalBBox();
50 void reposition(); //!< Call reposition for all MCOs
51 void setHideTmp (HideTmpMode mode);
52 LinkableMapObj* findMapObj(QPointF,LinkableMapObj*); // find MapObj
53 LinkableMapObj* findObjBySelect (const QString &s); // find MapObj by select string
54 LinkableMapObj* findID (const QString &s); // find MapObj by previously set ID
55 QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
57 QGraphicsScene *mapScene;
59 QList <MapCenterObj*> mapCenters;
60 QString version; //!< version string saved in vym file