floatimageobj.h
author jhilmer
Mon Aug 01 19:33:16 2005 +0000 (2005-08-01)
changeset 144 f4bbdc809fec
parent 0 7a96bd401351
child 166 325958acb69b
permissions -rw-r--r--
Fix: closing of editor when text are modified
     1 #ifndef FLOATIMAGEOBJ_H
     2 #define FLOATIMAGEOBJ_H
     3 
     4 #include "floatobj.h"
     5 
     6 /////////////////////////////////////////////////////////////////////////////
     7 class FloatImageObj:public FloatObj {
     8 public:
     9     FloatImageObj ();
    10     FloatImageObj (QCanvas*);
    11     FloatImageObj (QCanvas*, LinkableMapObj* parent);
    12     ~FloatImageObj ();
    13     virtual void init ();
    14     virtual void copy (FloatImageObj*);
    15 	virtual void setZ (const int&);
    16 	virtual int z();
    17 
    18 	virtual void load (const QPixmap &);
    19 	virtual bool load (const QString &);
    20 	virtual void save (const QString &, const char *);
    21 	virtual void setOriginalFilename(const QString &);
    22 	virtual QString getOriginalFilename();
    23     virtual void setVisibility(bool);	    // set vis. for w
    24     virtual void move (double x,double y);
    25     virtual void move (QPoint);
    26 	virtual void positionBBox();
    27 	virtual void calcBBoxSize();
    28 	virtual QRect getTotalBBox();			// return BBox including childs			
    29 	virtual QRect getBBoxSizeWithChilds();	// return size of BBox including childs  
    30 	virtual void calcBBoxSizeWithChilds();	// calc size of  BBox including childs recursivly
    31 	virtual QString saveToDir(const QString &,const QString&);
    32 	virtual void resetSaveCounter();
    33 	virtual QString getSelectString();
    34 
    35 
    36 protected:
    37 	ImageObj *icon;
    38 	bool saveInMap;
    39 	static int counter;			// numerate the files during saveToDir
    40 	QString filetype;
    41 	QString filename;
    42 	QString originalFilename;
    43 };
    44 
    45 #endif