diff -r 000000000000 -r 6cd53d63956f imageobj.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imageobj.h Wed Nov 12 11:15:37 2008 +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