diff -r 000000000000 -r b4f008d1ea01 imageobj.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imageobj.h Fri Jul 24 08:55:40 2009 +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