vymmodel.h
changeset 723 11f9124c1cca
parent 722 462d39502273
child 725 7ea31701156e
     1.1 --- a/vymmodel.h	Wed Jul 16 11:56:44 2008 +0000
     1.2 +++ b/vymmodel.h	Mon Aug 04 10:43:06 2008 +0000
     1.3 @@ -36,7 +36,6 @@
     1.4      void init();
     1.5  	void makeTmpDirectories();		//!< create temporary directories e.g. for history
     1.6  
     1.7 -	void setMapEditor(MapEditor *me);	// FIXME should not be necessary in Model/View
     1.8  	MapEditor* getMapEditor();			// FIXME not necessary
     1.9  
    1.10  	bool isRepositionBlocked();		//!< While load or undo there is no need to update graphicsview
    1.11 @@ -303,6 +302,8 @@
    1.12  		0..n	insert at a specific position in selections parent
    1.13  		(needed for free relinking)
    1.14  	*/	
    1.15 +	MapCenterObj* getLastMapCenter();		//!< get last added MapCenter, used for context menu
    1.16 +
    1.17  private:	
    1.18      BranchObj* addNewBranchInt(int);		// pos allows to add above/below selection
    1.19  public:	
    1.20 @@ -396,6 +397,13 @@
    1.21  public:
    1.22  	void registerEditor (QWidget *);
    1.23  	void unregisterEditor (QWidget *);
    1.24 +
    1.25 +private: 
    1.26 +	QPointF contextPos;					//!< local position during context menu
    1.27 +public:
    1.28 +	void setContextPos (QPointF);		//!< local position during context menu
    1.29 +	void unsetContextPos ();			//!< forget local position after context menu
    1.30 +
    1.31  	void updateNoteFlag();				//!< Signal origination in TextEditor
    1.32      void updateRelPositions();
    1.33  
    1.34 @@ -461,7 +469,7 @@
    1.35  private slots:
    1.36  	void animate();						//!< Called by timer to animate stuff
    1.37  public:
    1.38 -	void startAnimation(const QPointF &start, const QPointF &dest);
    1.39 +	void startAnimation(BranchObj *bo, const QPointF &start, const QPointF &dest);
    1.40  	void stopAnimation(MapObj *mo);
    1.41  
    1.42  ////////////////////////////////////////////