floatobj.h
author insilmaril
Tue Jul 12 12:02:55 2005 +0000 (2005-07-12)
changeset 126 1ad2d5c80848
child 2 608f976aa7bb
child 166 325958acb69b
permissions -rw-r--r--
1.7.0
     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 QString saveToDir(const QString &,const QString&)=0;
    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