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