author | jhilmer |
Sun Jul 31 12:24:53 2005 +0000 (2005-07-31) | |
changeset 142 | 3590c3490789 |
child 2 | 608f976aa7bb |
child 166 | 325958acb69b |
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@0 | 18 |
virtual void setZ(const int&); // set zPlane |
insilmaril@0 | 19 |
virtual int z(); |
insilmaril@0 | 20 |
virtual void setUseOrientation (const bool &); |
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@0 | 25 |
virtual void move (QPoint); |
insilmaril@0 | 26 |
|
insilmaril@0 | 27 |
virtual void reposition(); |
insilmaril@0 | 28 |
|
insilmaril@0 | 29 |
virtual QRect getTotalBBox(); // return BBox including childs |
insilmaril@0 | 30 |
virtual QRect getBBoxSizeWithChilds(); // return size of BBox including childs |
insilmaril@0 | 31 |
|
insilmaril@0 | 32 |
virtual QString saveToDir(const QString &,const QString&)=0; |
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 |