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* addMapCenter(QPointF absPos);
31 MapCenterObj* removeMapCenter(MapCenterObj *mco);
33 BranchObj* first(); // FIXME replaced by ModelIndex later
34 BranchObj* next(BranchObj *bo); // FIXME replaced by ModelIndex later
36 LinkableMapObj* findMapObj(QPointF,LinkableMapObj*); // find MapObj
37 LinkableMapObj* findObjBySelect (const QString &s); // find MapObj by select string
38 LinkableMapObj* findID (const QString &s); // find MapObj by previously set ID
39 QString saveToDir (const QString&,const QString&,int, const QPointF&);// Save data recursivly to tempdir
42 ////////////////////////////////////////// View related
43 // void updateLink(); FIXME needed?
44 void updateRelPositions();
46 QRectF getTotalBBox();
47 void reposition(); //!< Call reposition for all MCOs
48 void setHideTmp (HideTmpMode mode);
49 QPolygonF shape(BranchObj *bo); //!< Returns arbitrary shape of subtree
50 void moveAway (LinkableMapObj *lmo);//!< Autolayout: Move all out of the way
52 ////////////////////////////////////////// Selection related
53 LinkableMapObj* getSelection();
54 BranchObj* getSelectedBranch();
55 bool select (const QString &s);
56 QString getSelectString (LinkableMapObj *lmo);
59 QGraphicsScene *mapScene;
61 QList <MapCenterObj*> mapCenters;
62 QString version; //!< version string saved in vym file