diff -r 462d39502273 -r 11f9124c1cca vymmodel.h --- a/vymmodel.h Wed Jul 16 11:56:44 2008 +0000 +++ b/vymmodel.h Mon Aug 04 10:43:06 2008 +0000 @@ -36,7 +36,6 @@ void init(); void makeTmpDirectories(); //!< create temporary directories e.g. for history - void setMapEditor(MapEditor *me); // FIXME should not be necessary in Model/View MapEditor* getMapEditor(); // FIXME not necessary bool isRepositionBlocked(); //!< While load or undo there is no need to update graphicsview @@ -303,6 +302,8 @@ 0..n insert at a specific position in selections parent (needed for free relinking) */ + MapCenterObj* getLastMapCenter(); //!< get last added MapCenter, used for context menu + private: BranchObj* addNewBranchInt(int); // pos allows to add above/below selection public: @@ -396,6 +397,13 @@ public: void registerEditor (QWidget *); void unregisterEditor (QWidget *); + +private: + QPointF contextPos; //!< local position during context menu +public: + void setContextPos (QPointF); //!< local position during context menu + void unsetContextPos (); //!< forget local position after context menu + void updateNoteFlag(); //!< Signal origination in TextEditor void updateRelPositions(); @@ -461,7 +469,7 @@ private slots: void animate(); //!< Called by timer to animate stuff public: - void startAnimation(const QPointF &start, const QPointF &dest); + void startAnimation(BranchObj *bo, const QPointF &start, const QPointF &dest); void stopAnimation(MapObj *mo); ////////////////////////////////////////////