floatobj.h
author insilmaril
Mon, 08 Jun 2009 11:36:56 +0000
changeset 776 25e634a7e1dc
parent 721 12958f987bcf
child 780 fe839bdfd10c
permissions -rw-r--r--
Images basically work (again)
     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 ();
    13     FloatObj (QGraphicsScene*);
    14     FloatObj (QGraphicsScene*, LinkableMapObj* parent);
    15     ~FloatObj ();
    16     virtual void init ();
    17     virtual void copy (FloatObj*);
    18 	virtual bool load (const QString&)=0;
    19 	virtual void setZValue(const int&);		// set zPlane
    20 	virtual int zValue();
    21 	virtual void setFloatExport (const bool &);
    22 	virtual bool getFloatExport ();
    23 
    24 	virtual void move (double,double);
    25 	virtual void move (QPointF);
    26 	virtual void setDockPos();
    27 	virtual void reposition();
    28 											
    29 	virtual QRectF getTotalBBox();			// return BBox including children			
    30 	virtual QRectF getBBoxSizeWithChildren();	// return size of BBox including children  
    31 
    32 protected:
    33 	bool floatExport;
    34 	int zPlane;
    35 };
    36 
    37 #endif