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