floatimageobj.h
author insilmaril
Wed Sep 06 12:47:06 2006 +0000 (2006-09-06)
changeset 379 a62478df8d46
parent 366 e95081c21da2
child 408 c2a05fa925a1
permissions -rw-r--r--
1.8.55 New history window and showtextwindow
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@0
     8
/////////////////////////////////////////////////////////////////////////////
insilmaril@0
     9
class FloatImageObj:public FloatObj {
insilmaril@0
    10
public:
insilmaril@0
    11
    FloatImageObj ();
insilmaril@366
    12
    FloatImageObj (Q3Canvas*);
insilmaril@366
    13
    FloatImageObj (Q3Canvas*, OrnamentedObj* parent);
insilmaril@0
    14
    ~FloatImageObj ();
insilmaril@0
    15
    virtual void init ();
insilmaril@0
    16
    virtual void copy (FloatImageObj*);
insilmaril@0
    17
	virtual void setZ (const int&);
insilmaril@0
    18
	virtual int z();
insilmaril@0
    19
insilmaril@113
    20
	virtual void load (const QPixmap &);
insilmaril@0
    21
	virtual bool load (const QString &);
insilmaril@366
    22
	virtual void save (const QString &, const QString&);
insilmaril@0
    23
	virtual void setOriginalFilename(const QString &);
insilmaril@0
    24
	virtual QString getOriginalFilename();
insilmaril@0
    25
    virtual void setVisibility(bool);	    // set vis. for w
insilmaril@0
    26
    virtual void move (double x,double y);
insilmaril@0
    27
    virtual void move (QPoint);
insilmaril@0
    28
	virtual void positionBBox();
insilmaril@0
    29
	virtual void calcBBoxSize();
insilmaril@0
    30
	virtual QRect getTotalBBox();			// return BBox including childs			
insilmaril@0
    31
	virtual QRect getBBoxSizeWithChilds();	// return size of BBox including childs  
insilmaril@0
    32
	virtual void calcBBoxSizeWithChilds();	// calc size of  BBox including childs recursivly
insilmaril@377
    33
	virtual QString saveToDir(const QString &,const QString&);
insilmaril@0
    34
	virtual void resetSaveCounter();
insilmaril@0
    35
	virtual QString getSelectString();
insilmaril@0
    36
insilmaril@0
    37
insilmaril@0
    38
protected:
insilmaril@0
    39
	ImageObj *icon;
insilmaril@0
    40
	bool saveInMap;
insilmaril@173
    41
	static uint saveCounter;	// numerate the files during saveToDir
insilmaril@0
    42
	QString filetype;
insilmaril@0
    43
	QString filename;
insilmaril@0
    44
	QString originalFilename;
insilmaril@0
    45
};
insilmaril@0
    46
insilmaril@0
    47
#endif