floatimageobj.h
author insilmaril
Mon Jan 07 14:52:49 2008 +0000 (2008-01-07)
changeset 639 75a84df12d8b
parent 408 c2a05fa925a1
child 683 7df0b7986274
permissions -rw-r--r--
Included french in vym.pro
     1 #ifndef FLOATIMAGEOBJ_H
     2 #define FLOATIMAGEOBJ_H
     3 
     4 #include "floatobj.h"
     5 //Added by qt3to4:
     6 #include <QPixmap>
     7 
     8 /*! \brief A pixmap which can be positioned freely as FlagObj  on the map.  */
     9 
    10 
    11 /////////////////////////////////////////////////////////////////////////////
    12 class FloatImageObj:public FloatObj {
    13 public:
    14     FloatImageObj ();
    15     FloatImageObj (QGraphicsScene*);
    16     FloatImageObj (QGraphicsScene*, OrnamentedObj* parent);
    17     ~FloatImageObj ();
    18     virtual void init ();
    19     virtual void copy (FloatImageObj*);
    20 	virtual void setZValue (const int&);
    21 	virtual int z();
    22 
    23 	virtual void load (const QPixmap &);
    24 	virtual bool load (const QString &);
    25 	virtual void save (const QString &, const QString&);
    26 	virtual void setOriginalFilename(const QString &);
    27 	virtual QString getOriginalFilename();
    28     virtual void setVisibility(bool);	    // set vis. for w
    29     virtual void move (double x,double y);
    30     virtual void move (QPointF);
    31 	virtual void positionBBox();
    32 	virtual void calcBBoxSize();
    33 	virtual QRectF getTotalBBox();			// return BBox including childs			
    34 	virtual QRectF getBBoxSizeWithChilds();	// return size of BBox including childs  
    35 	virtual void calcBBoxSizeWithChilds();	// calc size of  BBox including childs recursivly
    36 	virtual QString saveToDir(const QString &,const QString&);
    37 	virtual void resetSaveCounter();
    38 	virtual QString getSelectString();
    39 
    40 
    41 protected:
    42 	ImageObj *icon;
    43 	bool saveInMap;
    44 	static uint saveCounter;	// numerate the files during saveToDir
    45 	QString filetype;
    46 	QString filename;
    47 	QString originalFilename;
    48 };
    49 
    50 #endif