floatimageobj.h
author insilmaril
Fri Jun 16 08:27:10 2006 +0000 (2006-06-16)
changeset 350 13b9befc665e
parent 173 309609406650
child 366 e95081c21da2
permissions -rw-r--r--
1.8.0
     1 #ifndef FLOATIMAGEOBJ_H
     2 #define FLOATIMAGEOBJ_H
     3 
     4 #include "floatobj.h"
     5 
     6 /////////////////////////////////////////////////////////////////////////////
     7 class FloatImageObj:public FloatObj {
     8 public:
     9     FloatImageObj ();
    10     FloatImageObj (QCanvas*);
    11     FloatImageObj (QCanvas*, OrnamentedObj* parent);
    12     ~FloatImageObj ();
    13     virtual void init ();
    14     virtual void copy (FloatImageObj*);
    15 	virtual void setZ (const int&);
    16 	virtual int z();
    17 
    18 	virtual void load (const QPixmap &);
    19 	virtual bool load (const QString &);
    20 	virtual void save (const QString &, const char *);
    21 	virtual void setOriginalFilename(const QString &);
    22 	virtual QString getOriginalFilename();
    23     virtual void setVisibility(bool);	    // set vis. for w
    24     virtual void move (double x,double y);
    25     virtual void move (QPoint);
    26 	virtual void positionBBox();
    27 	virtual void calcBBoxSize();
    28 	virtual QRect getTotalBBox();			// return BBox including childs			
    29 	virtual QRect getBBoxSizeWithChilds();	// return size of BBox including childs  
    30 	virtual void calcBBoxSizeWithChilds();	// calc size of  BBox including childs recursivly
    31 	virtual QString saveToDir(const QString &,const QString&, const QPoint &);
    32 	virtual void resetSaveCounter();
    33 	virtual QString getSelectString();
    34 
    35 
    36 protected:
    37 	ImageObj *icon;
    38 	bool saveInMap;
    39 	static uint saveCounter;	// numerate the files during saveToDir
    40 	QString filetype;
    41 	QString filename;
    42 	QString originalFilename;
    43 };
    44 
    45 #endif