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