diff -r 9b9c7e8b9147 -r f75489896084 mapobj.h --- a/mapobj.h Tue Jul 19 14:44:30 2005 +0000 +++ b/mapobj.h Tue Jan 03 09:44:41 2006 +0000 @@ -32,17 +32,18 @@ virtual QString getPos(); // Return position as string (x,y) virtual void move (double x,double y); // move to absolute Position virtual void moveBy (double x,double y); // move to relative Position - virtual bool inBBox(QPoint); // Check if Point is in bbox + virtual bool inBox(const QPoint&); // Check if Point is within clickbox virtual QRect getBBox(); // returns bounding box virtual QRect addBBox(QRect,QRect); // returns bbox which includes both boxes virtual QSize getSize(); // returns size of bounding box virtual bool isVisibleObj(); virtual void setVisibility(bool); + virtual void positionBBox()=0; + virtual void calcBBoxSize()=0; protected: QCanvas* canvas; QRect bbox; // bounding box of MO itself - virtual void positionBBox()=0; - virtual void calcBBoxSize()=0; + QRect clickBox; // area where mouseclicks are found QPoint absPos; // Position on canvas bool visible; };