author | insilmaril |
Mon Jan 07 14:52:49 2008 +0000 (2008-01-07) | |
changeset 636 | f83abc1f75b4 |
parent 408 | c2a05fa925a1 |
child 721 | 12958f987bcf |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef FLOATOBJ_H |
insilmaril@0 | 2 |
#define FLOATOBJ_H |
insilmaril@0 | 3 |
|
insilmaril@242 | 4 |
#include "ornamentedobj.h" |
insilmaril@0 | 5 |
|
insilmaril@470 | 6 |
/*! \brief Base class for objects floating in the map, which means they can be positioned freely. */ |
insilmaril@470 | 7 |
|
insilmaril@470 | 8 |
|
insilmaril@0 | 9 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@242 | 10 |
class FloatObj:public OrnamentedObj { |
insilmaril@0 | 11 |
public: |
insilmaril@0 | 12 |
FloatObj (); |
insilmaril@408 | 13 |
FloatObj (QGraphicsScene*); |
insilmaril@408 | 14 |
FloatObj (QGraphicsScene*, LinkableMapObj* parent); |
insilmaril@0 | 15 |
~FloatObj (); |
insilmaril@0 | 16 |
virtual void init (); |
insilmaril@0 | 17 |
virtual void copy (FloatObj*); |
insilmaril@0 | 18 |
virtual bool load (const QString&)=0; |
insilmaril@408 | 19 |
virtual void setZValue(const int&); // set zPlane |
insilmaril@408 | 20 |
virtual int zValue(); |
insilmaril@0 | 21 |
virtual void setFloatExport (const bool &); |
insilmaril@0 | 22 |
virtual bool getFloatExport (); |
insilmaril@0 | 23 |
|
insilmaril@0 | 24 |
virtual void move (double,double); |
insilmaril@408 | 25 |
virtual void move (QPointF); |
insilmaril@223 | 26 |
virtual void setDockPos(); |
insilmaril@0 | 27 |
virtual void reposition(); |
insilmaril@0 | 28 |
|
insilmaril@408 | 29 |
virtual QRectF getTotalBBox(); // return BBox including childs |
insilmaril@408 | 30 |
virtual QRectF getBBoxSizeWithChilds(); // return size of BBox including childs |
insilmaril@0 | 31 |
|
insilmaril@0 | 32 |
virtual void resetSaveCounter()=0; |
insilmaril@0 | 33 |
|
insilmaril@0 | 34 |
virtual void select(); |
insilmaril@0 | 35 |
virtual void unselect(); |
insilmaril@0 | 36 |
|
insilmaril@0 | 37 |
protected: |
insilmaril@0 | 38 |
bool floatExport; |
insilmaril@0 | 39 |
int zPlane; |
insilmaril@0 | 40 |
}; |
insilmaril@0 | 41 |
|
insilmaril@0 | 42 |
#endif |