floatimageobj.h
branchrelease-1-12-maintained
changeset 47 326e3336e9b0
child 2 608f976aa7bb
child 113 3b0b9352cf49
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/floatimageobj.h	Thu Aug 07 10:56:52 2008 +0000
     1.3 @@ -0,0 +1,44 @@
     1.4 +#ifndef FLOATIMAGEOBJ_H
     1.5 +#define FLOATIMAGEOBJ_H
     1.6 +
     1.7 +#include "floatobj.h"
     1.8 +
     1.9 +/////////////////////////////////////////////////////////////////////////////
    1.10 +class FloatImageObj:public FloatObj {
    1.11 +public:
    1.12 +    FloatImageObj ();
    1.13 +    FloatImageObj (QCanvas*);
    1.14 +    FloatImageObj (QCanvas*, LinkableMapObj* parent);
    1.15 +    ~FloatImageObj ();
    1.16 +    virtual void init ();
    1.17 +    virtual void copy (FloatImageObj*);
    1.18 +	virtual void setZ (const int&);
    1.19 +	virtual int z();
    1.20 +
    1.21 +	virtual bool load (const QString &);
    1.22 +	virtual void save (const QString &, const char *);
    1.23 +	virtual void setOriginalFilename(const QString &);
    1.24 +	virtual QString getOriginalFilename();
    1.25 +    virtual void setVisibility(bool);	    // set vis. for w
    1.26 +    virtual void move (double x,double y);
    1.27 +    virtual void move (QPoint);
    1.28 +	virtual void positionBBox();
    1.29 +	virtual void calcBBoxSize();
    1.30 +	virtual QRect getTotalBBox();			// return BBox including childs			
    1.31 +	virtual QRect getBBoxSizeWithChilds();	// return size of BBox including childs  
    1.32 +	virtual void calcBBoxSizeWithChilds();	// calc size of  BBox including childs recursivly
    1.33 +	virtual QString saveToDir(const QString &,const QString&);
    1.34 +	virtual void resetSaveCounter();
    1.35 +	virtual QString getSelectString();
    1.36 +
    1.37 +
    1.38 +protected:
    1.39 +	ImageObj *icon;
    1.40 +	bool saveInMap;
    1.41 +	static int counter;			// numerate the files during saveToDir
    1.42 +	QString filetype;
    1.43 +	QString filename;
    1.44 +	QString originalFilename;
    1.45 +};
    1.46 +
    1.47 +#endif