floatobj.h
author insilmaril
Fri Mar 05 19:15:08 2010 +0000 (2010-03-05)
branchrelease-1-12-maintained
changeset 79 32f499cbe874
child 2 608f976aa7bb
child 166 325958acb69b
permissions -rw-r--r--
Fixed changelog
     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