diff -r cade59622d81 -r 0c2d74acf035 vymmodel.h --- a/vymmodel.h Mon May 05 13:46:42 2008 +0000 +++ b/vymmodel.h Mon May 05 13:46:42 2008 +0000 @@ -10,7 +10,9 @@ /*! \brief This will later be divided into Model/View */ -class VymModel{ +class VymModel : public QObject{ + Q_OBJECT + public: VymModel(); ~VymModel (); @@ -49,7 +51,21 @@ QPolygonF shape(BranchObj *bo); //!< Returns arbitrary shape of subtree void moveAway (LinkableMapObj *lmo);//!< Autolayout: Move all out of the way + // Animation **experimental** +private slots: + void animate(); //!< Called by timer to animate stuff +public: + void startAnimation(const QPointF &start, const QPointF &dest); +private: + QTimer *animationTimer; + bool animationUse; + uint animationTicks; + uint animationInterval; + int timerId; // animation timer + QList animObjList;// list with animated objects + ////////////////////////////////////////// Selection related +public: LinkableMapObj* getSelection(); BranchObj* getSelectedBranch(); bool select (const QString &s);