vymmodel.h
changeset 719 3f90aab4794d
parent 684 5f9a2771680d
child 721 12958f987bcf
     1.1 --- a/vymmodel.h	Tue Apr 08 08:28:37 2008 +0000
     1.2 +++ b/vymmodel.h	Mon Jul 14 11:25:09 2008 +0000
     1.3 @@ -10,7 +10,9 @@
     1.4  /*! \brief This will later be divided into Model/View
     1.5  */
     1.6  
     1.7 -class VymModel{
     1.8 +class VymModel : public QObject{
     1.9 +	Q_OBJECT
    1.10 +
    1.11  public:
    1.12  	VymModel();
    1.13  	~VymModel ();
    1.14 @@ -49,7 +51,21 @@
    1.15  	QPolygonF shape(BranchObj *bo);		//!< Returns arbitrary shape of subtree
    1.16  	void moveAway (LinkableMapObj *lmo);//!< Autolayout: Move all out of the way
    1.17  
    1.18 +	// Animation  **experimental**
    1.19 +private slots:
    1.20 +	void animate();						//!< Called by timer to animate stuff
    1.21 +public:
    1.22 +	void startAnimation(const QPointF &start, const QPointF &dest);
    1.23 +private:	
    1.24 +	QTimer *animationTimer;
    1.25 +	bool animationUse;
    1.26 +	uint animationTicks;
    1.27 +	uint animationInterval;
    1.28 +	int timerId;				// animation timer
    1.29 +	QList <MapObj*> animObjList;// list with animated objects
    1.30 +
    1.31  ////////////////////////////////////////// Selection related 
    1.32 +public:
    1.33  	LinkableMapObj* getSelection();
    1.34  	BranchObj* getSelectedBranch();
    1.35  	bool select (const QString &s);