author | insilmaril |
Wed Sep 06 12:47:06 2006 +0000 (2006-09-06) | |
changeset 379 | a62478df8d46 |
parent 0 | 7a96bd401351 |
child 408 | c2a05fa925a1 |
permissions | -rw-r--r-- |
1 #ifndef IMAGEOBJ_H
2 #define IMAGEOBJ_H
4 #include <qimage.h>
5 #include <q3canvas.h>
6 #include <qpainter.h>
7 //Added by qt3to4:
8 #include <QPixmap>
10 #include "mapobj.h"
12 enum ImageType {qimage,qpixmap,undef};
14 class ImageObj: public Q3CanvasRectangle
15 {
16 public:
17 ImageObj( Q3Canvas *canvas );
18 ~ImageObj();
19 virtual void copy (ImageObj*);
20 virtual void setVisibility(bool);
21 void save (const QString &, const char *);
22 bool load (const QString &);
23 bool load (QPixmap);
24 void setImage(QImage img);
25 QPixmap getPixmap();
26 protected:
27 void drawShape( QPainter & );
28 private:
29 QImage image;
30 QPixmap pixmap;
31 ImageType type;
32 };
33 #endif