floatimageobj.h
author insilmaril
Tue Jun 14 09:41:37 2005 +0000 (2005-06-14)
changeset 106 4083860dd82e
child 2 608f976aa7bb
child 113 3b0b9352cf49
permissions -rw-r--r--
fixed import into empty map
     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 bool load (const QString &);
    19 	virtual void save (const QString &, const char *);
    20 	virtual void setOriginalFilename(const QString &);
    21 	virtual QString getOriginalFilename();
    22     virtual void setVisibility(bool);	    // set vis. for w
    23     virtual void move (double x,double y);
    24     virtual void move (QPoint);
    25 	virtual void positionBBox();
    26 	virtual void calcBBoxSize();
    27 	virtual QRect getTotalBBox();			// return BBox including childs			
    28 	virtual QRect getBBoxSizeWithChilds();	// return size of BBox including childs  
    29 	virtual void calcBBoxSizeWithChilds();	// calc size of  BBox including childs recursivly
    30 	virtual QString saveToDir(const QString &,const QString&);
    31 	virtual void resetSaveCounter();
    32 	virtual QString getSelectString();
    33 
    34 
    35 protected:
    36 	ImageObj *icon;
    37 	bool saveInMap;
    38 	static int counter;			// numerate the files during saveToDir
    39 	QString filetype;
    40 	QString filename;
    41 	QString originalFilename;
    42 };
    43 
    44 #endif