floatobj.h
author insilmaril
Fri, 08 Jul 2005 07:24:43 +0000
changeset 120 949591651fc7
parent 0 7a96bd401351
child 2 608f976aa7bb
child 166 325958acb69b
permissions -rw-r--r--
changes for 1.6.9
     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