diff -r 000000000000 -r 920e6ed5889b imageobj.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imageobj.h Sun Jan 30 12:59:10 2005 +0000 @@ -0,0 +1,31 @@ +#ifndef IMAGEOBJ_H +#define IMAGEOBJ_H + +#include +#include +#include + +#include "mapobj.h" + +enum ImageType {qimage,qpixmap,undef}; + +class ImageObj: public QCanvasRectangle +{ +public: + ImageObj( QCanvas *canvas ); + ~ImageObj(); + virtual void copy (ImageObj*); + virtual void setVisibility(bool); + void save (const QString &, const char *); + bool load (const QString &); + bool load (QPixmap); + void setImage(QImage img); + QPixmap getPixmap(); +protected: + void drawShape( QPainter & ); +private: + QImage image; + QPixmap pixmap; + ImageType type; +}; +#endif