floatobj.h
author insilmaril
Tue, 30 Mar 2010 17:30:39 +0000
changeset 842 bec082472471
parent 823 0bba81dde1bc
permissions -rw-r--r--
Much improved results in FindResultsWidget
     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 getBBoxSizeWithChildren();	// return size of BBox including children  
    26 
    27 protected:
    28 	int zPlane;
    29 };
    30 
    31 #endif