floatobj.h
author insilmaril
Thu, 03 Sep 2009 08:52:00 +0000
changeset 790 133e2ed6b9c5
parent 780 fe839bdfd10c
child 823 0bba81dde1bc
permissions -rw-r--r--
More work on xLinks
     1 #ifndef FLOATOBJ_H
     2 #define FLOATOBJ_H
     3 
     4 #include "ornamentedobj.h"
     5 
     6 /*! \brief Base class for objects floating in the map, which means they can be positioned freely. */
     7 
     8 
     9 /////////////////////////////////////////////////////////////////////////////
    10 class FloatObj:public OrnamentedObj {
    11 public:
    12     FloatObj (QGraphicsScene*,TreeItem *ti=NULL);
    13     ~FloatObj ();
    14     virtual void init ();
    15     virtual void copy (FloatObj*);
    16 	virtual bool load (const QString&)=0;
    17 	virtual void setZValue(const int&);		// set zPlane
    18 	virtual int zValue();
    19 
    20 	virtual void move (double,double);
    21 	virtual void move (QPointF);
    22 	virtual void setDockPos();
    23 	virtual void reposition();
    24 											
    25 	virtual QRectF getTotalBBox();			// return BBox including children			
    26 	virtual QRectF getBBoxSizeWithChildren();	// return size of BBox including children  
    27 
    28 protected:
    29 	int zPlane;
    30 };
    31 
    32 #endif