1.1 --- a/mapobj.h Tue Jul 19 14:44:30 2005 +0000
1.2 +++ b/mapobj.h Tue Feb 21 16:18:23 2006 +0000
1.3 @@ -32,17 +32,18 @@
1.4 virtual QString getPos(); // Return position as string (x,y)
1.5 virtual void move (double x,double y); // move to absolute Position
1.6 virtual void moveBy (double x,double y); // move to relative Position
1.7 - virtual bool inBBox(QPoint); // Check if Point is in bbox
1.8 + virtual bool inBox(const QPoint&); // Check if Point is within clickbox
1.9 virtual QRect getBBox(); // returns bounding box
1.10 virtual QRect addBBox(QRect,QRect); // returns bbox which includes both boxes
1.11 virtual QSize getSize(); // returns size of bounding box
1.12 virtual bool isVisibleObj();
1.13 virtual void setVisibility(bool);
1.14 + virtual void positionBBox()=0;
1.15 + virtual void calcBBoxSize()=0;
1.16 protected:
1.17 QCanvas* canvas;
1.18 QRect bbox; // bounding box of MO itself
1.19 - virtual void positionBBox()=0;
1.20 - virtual void calcBBoxSize()=0;
1.21 + QRect clickBox; // area where mouseclicks are found
1.22 QPoint absPos; // Position on canvas
1.23 bool visible;
1.24 };