floatimageobj.h
author insilmaril
Wed, 11 Apr 2007 09:21:16 +0000
changeset 455 1462e380b82b
parent 408 c2a05fa925a1
child 469 e21e3b8c312c
permissions -rw-r--r--
Updated documentation about macros
     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 (QGraphicsScene*);
    13     FloatImageObj (QGraphicsScene*, OrnamentedObj* parent);
    14     ~FloatImageObj ();
    15     virtual void init ();
    16     virtual void copy (FloatImageObj*);
    17 	virtual void setZValue (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 (QPointF);
    28 	virtual void positionBBox();
    29 	virtual void calcBBoxSize();
    30 	virtual QRectF getTotalBBox();			// return BBox including childs			
    31 	virtual QRectF 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