floatobj.h
author insilmaril
Tue Jan 03 09:44:41 2006 +0000 (2006-01-03)
changeset 168 8814a667241a
parent 0 7a96bd401351
child 173 309609406650
permissions -rw-r--r--
1.7.6 New features for floatimages and fixes
     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 void setZ(const int&);		// set zPlane
    19 	virtual int z();
    20 	virtual void setUseOrientation (const bool &);
    21 	virtual void setFloatExport (const bool &);
    22 	virtual bool getFloatExport ();
    23 
    24 	virtual void move (double,double);
    25 	virtual void move (QPoint);
    26 
    27 	virtual void reposition();
    28 											
    29 	virtual QRect getTotalBBox();			// return BBox including childs			
    30 	virtual QRect getBBoxSizeWithChilds();	// return size of BBox including childs  
    31 
    32 	virtual void resetSaveCounter()=0;
    33 
    34 	virtual void select();
    35 	virtual void unselect();
    36 
    37 protected:
    38 	QPoint relPos;
    39 	bool useOrientation;		
    40 	bool floatExport;
    41 	int zPlane;
    42 };
    43 
    44 #endif