floatobj.h
branchrelease-1-12-maintained
changeset 58 89dd2219982f
child 2 608f976aa7bb
child 166 325958acb69b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/floatobj.h	Thu Mar 05 09:33:30 2009 +0000
     1.3 @@ -0,0 +1,45 @@
     1.4 +#ifndef FLOATOBJ_H
     1.5 +#define FLOATOBJ_H
     1.6 +
     1.7 +#include "linkablemapobj.h"
     1.8 +
     1.9 +/////////////////////////////////////////////////////////////////////////////
    1.10 +class FloatObj:public LinkableMapObj {
    1.11 +public:
    1.12 +    FloatObj ();
    1.13 +    FloatObj (QCanvas*);
    1.14 +    FloatObj (QCanvas*, LinkableMapObj* parent);
    1.15 +    ~FloatObj ();
    1.16 +    virtual void init ();
    1.17 +    virtual void copy (FloatObj*);
    1.18 +	virtual bool load (const QString&)=0;
    1.19 +	virtual void setRelPos();				// set relPos to current parentPos
    1.20 +	virtual void setRelPos(const QPoint&);	
    1.21 +	virtual void setZ(const int&);		// set zPlane
    1.22 +	virtual int z();
    1.23 +	virtual void setUseOrientation (const bool &);
    1.24 +	virtual void setFloatExport (const bool &);
    1.25 +	virtual bool getFloatExport ();
    1.26 +
    1.27 +	virtual void move (double,double);
    1.28 +	virtual void move (QPoint);
    1.29 +
    1.30 +	virtual void reposition();
    1.31 +											
    1.32 +	virtual QRect getTotalBBox();			// return BBox including childs			
    1.33 +	virtual QRect getBBoxSizeWithChilds();	// return size of BBox including childs  
    1.34 +
    1.35 +	virtual QString saveToDir(const QString &,const QString&)=0;
    1.36 +	virtual void resetSaveCounter()=0;
    1.37 +
    1.38 +	virtual void select();
    1.39 +	virtual void unselect();
    1.40 +
    1.41 +protected:
    1.42 +	QPoint relPos;
    1.43 +	bool useOrientation;		
    1.44 +	bool floatExport;
    1.45 +	int zPlane;
    1.46 +};
    1.47 +
    1.48 +#endif