diff -r 087e60400acc -r 401f76b830d1 branchobj.h --- a/branchobj.h Wed Jul 27 18:56:35 2005 +0000 +++ b/branchobj.h Mon Aug 08 16:15:57 2005 +0000 @@ -11,6 +11,8 @@ virtual int compareItems (QPtrCollection::Item i, QPtrCollection::Item j); }; +enum BranchModification {NewBranch, MovedBranch}; + ///////////////////////////////////////////////////////////////////////////// class BranchObj:public OrnamentedObj { public: @@ -58,7 +60,6 @@ virtual void positionBBox(); virtual void calcBBoxSize(); virtual LinkableMapObj* findMapObj(QPoint,LinkableMapObj*); // find MapObj - virtual int getDefHeadingSize(); virtual void setHeading (QString); virtual void setURL (QString); virtual QString getURL (); @@ -66,8 +67,8 @@ virtual QString getVymLink (); virtual QString saveToDir (const QString&,const QString&, const QPoint&);// Save data recursivly to tempdir virtual void addXLink (XLinkObj*); - virtual void removeXLinkRef (XLinkObj*); // Remove ref in list - virtual void deleteXLink (XLinkObj*); // remove references and delete XLinkObj + virtual void removeXLinkRef (XLinkObj*);// Remove ref in list + virtual void deleteXLink (XLinkObj*); // remove references and delete XLinkObj virtual void deleteXLinkAt (int); // remove references and delete XLinkObj virtual XLinkObj* XLinkAt (int); // return reference of XLinkObj virtual int countXLink (); @@ -79,7 +80,8 @@ virtual FloatImageObj* getLastFloatImage(); virtual FloatImageObj* getFloatImageNum(const uint &); protected: - virtual void savePosInAngle(); // write pos in angle for resorting + virtual void savePosInAngle(); // write pos in angle for resorting + virtual void setDefAttr (BranchModification); // set default attributes (font, size, ...) public: virtual BranchObj* addBranch(); virtual BranchObj* addBranch(BranchObj*); // makes deep copy of BranchObj