1.1 --- a/branchobj.h Wed Jul 27 18:56:35 2005 +0000
1.2 +++ b/branchobj.h Mon Aug 08 16:16:42 2005 +0000
1.3 @@ -11,6 +11,8 @@
1.4 virtual int compareItems (QPtrCollection::Item i, QPtrCollection::Item j);
1.5 };
1.6
1.7 +enum BranchModification {NewBranch, MovedBranch};
1.8 +
1.9 /////////////////////////////////////////////////////////////////////////////
1.10 class BranchObj:public OrnamentedObj {
1.11 public:
1.12 @@ -58,7 +60,6 @@
1.13 virtual void positionBBox();
1.14 virtual void calcBBoxSize();
1.15 virtual LinkableMapObj* findMapObj(QPoint,LinkableMapObj*); // find MapObj
1.16 - virtual int getDefHeadingSize();
1.17 virtual void setHeading (QString);
1.18 virtual void setURL (QString);
1.19 virtual QString getURL ();
1.20 @@ -66,8 +67,8 @@
1.21 virtual QString getVymLink ();
1.22 virtual QString saveToDir (const QString&,const QString&, const QPoint&);// Save data recursivly to tempdir
1.23 virtual void addXLink (XLinkObj*);
1.24 - virtual void removeXLinkRef (XLinkObj*); // Remove ref in list
1.25 - virtual void deleteXLink (XLinkObj*); // remove references and delete XLinkObj
1.26 + virtual void removeXLinkRef (XLinkObj*);// Remove ref in list
1.27 + virtual void deleteXLink (XLinkObj*); // remove references and delete XLinkObj
1.28 virtual void deleteXLinkAt (int); // remove references and delete XLinkObj
1.29 virtual XLinkObj* XLinkAt (int); // return reference of XLinkObj
1.30 virtual int countXLink ();
1.31 @@ -79,7 +80,8 @@
1.32 virtual FloatImageObj* getLastFloatImage();
1.33 virtual FloatImageObj* getFloatImageNum(const uint &);
1.34 protected:
1.35 - virtual void savePosInAngle(); // write pos in angle for resorting
1.36 + virtual void savePosInAngle(); // write pos in angle for resorting
1.37 + virtual void setDefAttr (BranchModification); // set default attributes (font, size, ...)
1.38 public:
1.39 virtual BranchObj* addBranch();
1.40 virtual BranchObj* addBranch(BranchObj*); // makes deep copy of BranchObj