author | insilmaril |
Mon May 30 05:39:10 2005 +0000 (2005-05-30) | |
changeset 104 | 270593ab83b2 |
child 2 | 608f976aa7bb |
child 113 | 3b0b9352cf49 |
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@0 | 5 |
|
insilmaril@0 | 6 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@0 | 7 |
class FloatImageObj:public FloatObj { |
insilmaril@0 | 8 |
public: |
insilmaril@0 | 9 |
FloatImageObj (); |
insilmaril@0 | 10 |
FloatImageObj (QCanvas*); |
insilmaril@0 | 11 |
FloatImageObj (QCanvas*, LinkableMapObj* parent); |
insilmaril@0 | 12 |
~FloatImageObj (); |
insilmaril@0 | 13 |
virtual void init (); |
insilmaril@0 | 14 |
virtual void copy (FloatImageObj*); |
insilmaril@0 | 15 |
virtual void setZ (const int&); |
insilmaril@0 | 16 |
virtual int z(); |
insilmaril@0 | 17 |
|
insilmaril@0 | 18 |
virtual bool load (const QString &); |
insilmaril@0 | 19 |
virtual void save (const QString &, const char *); |
insilmaril@0 | 20 |
virtual void setOriginalFilename(const QString &); |
insilmaril@0 | 21 |
virtual QString getOriginalFilename(); |
insilmaril@0 | 22 |
virtual void setVisibility(bool); // set vis. for w |
insilmaril@0 | 23 |
virtual void move (double x,double y); |
insilmaril@0 | 24 |
virtual void move (QPoint); |
insilmaril@0 | 25 |
virtual void positionBBox(); |
insilmaril@0 | 26 |
virtual void calcBBoxSize(); |
insilmaril@0 | 27 |
virtual QRect getTotalBBox(); // return BBox including childs |
insilmaril@0 | 28 |
virtual QRect getBBoxSizeWithChilds(); // return size of BBox including childs |
insilmaril@0 | 29 |
virtual void calcBBoxSizeWithChilds(); // calc size of BBox including childs recursivly |
insilmaril@0 | 30 |
virtual QString saveToDir(const QString &,const QString&); |
insilmaril@0 | 31 |
virtual void resetSaveCounter(); |
insilmaril@0 | 32 |
virtual QString getSelectString(); |
insilmaril@0 | 33 |
|
insilmaril@0 | 34 |
|
insilmaril@0 | 35 |
protected: |
insilmaril@0 | 36 |
ImageObj *icon; |
insilmaril@0 | 37 |
bool saveInMap; |
insilmaril@0 | 38 |
static int counter; // numerate the files during saveToDir |
insilmaril@0 | 39 |
QString filetype; |
insilmaril@0 | 40 |
QString filename; |
insilmaril@0 | 41 |
QString originalFilename; |
insilmaril@0 | 42 |
}; |
insilmaril@0 | 43 |
|
insilmaril@0 | 44 |
#endif |