author | insilmaril |
Tue Jan 24 15:09:48 2006 +0000 (2006-01-24) | |
changeset 183 | 97e0bd468439 |
parent 166 | 325958acb69b |
child 218 | 160459d924a1 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef FLOATOBJ_H |
insilmaril@0 | 2 |
#define FLOATOBJ_H |
insilmaril@0 | 3 |
|
insilmaril@0 | 4 |
#include "linkablemapobj.h" |
insilmaril@0 | 5 |
|
insilmaril@0 | 6 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@0 | 7 |
class FloatObj:public LinkableMapObj { |
insilmaril@0 | 8 |
public: |
insilmaril@0 | 9 |
FloatObj (); |
insilmaril@0 | 10 |
FloatObj (QCanvas*); |
insilmaril@0 | 11 |
FloatObj (QCanvas*, LinkableMapObj* parent); |
insilmaril@0 | 12 |
~FloatObj (); |
insilmaril@0 | 13 |
virtual void init (); |
insilmaril@0 | 14 |
virtual void copy (FloatObj*); |
insilmaril@0 | 15 |
virtual bool load (const QString&)=0; |
insilmaril@0 | 16 |
virtual void setRelPos(); // set relPos to current parentPos |
insilmaril@0 | 17 |
virtual void setRelPos(const QPoint&); |
insilmaril@173 | 18 |
virtual QPoint getRelPos(); |
insilmaril@0 | 19 |
virtual void setZ(const int&); // set zPlane |
insilmaril@0 | 20 |
virtual int z(); |
insilmaril@0 | 21 |
virtual void setUseOrientation (const bool &); |
insilmaril@0 | 22 |
virtual void setFloatExport (const bool &); |
insilmaril@0 | 23 |
virtual bool getFloatExport (); |
insilmaril@0 | 24 |
|
insilmaril@0 | 25 |
virtual void move (double,double); |
insilmaril@0 | 26 |
virtual void move (QPoint); |
insilmaril@0 | 27 |
|
insilmaril@0 | 28 |
virtual void reposition(); |
insilmaril@0 | 29 |
|
insilmaril@0 | 30 |
virtual QRect getTotalBBox(); // return BBox including childs |
insilmaril@0 | 31 |
virtual QRect getBBoxSizeWithChilds(); // return size of BBox including childs |
insilmaril@0 | 32 |
|
insilmaril@0 | 33 |
virtual void resetSaveCounter()=0; |
insilmaril@0 | 34 |
|
insilmaril@0 | 35 |
virtual void select(); |
insilmaril@0 | 36 |
virtual void unselect(); |
insilmaril@0 | 37 |
|
insilmaril@0 | 38 |
protected: |
insilmaril@0 | 39 |
QPoint relPos; |
insilmaril@0 | 40 |
bool useOrientation; |
insilmaril@0 | 41 |
bool floatExport; |
insilmaril@0 | 42 |
int zPlane; |
insilmaril@0 | 43 |
}; |
insilmaril@0 | 44 |
|
insilmaril@0 | 45 |
#endif |