diff -r 5f9a2771680d -r 3f90aab4794d vymmodel.h --- a/vymmodel.h Tue Apr 08 08:28:37 2008 +0000 +++ b/vymmodel.h Mon Jul 14 11:25:09 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);