imageobj.h
author insilmaril
Fri, 24 Jul 2009 08:55:40 +0000
branchrelease-1-12-maintained
changeset 72 b4f008d1ea01
parent 0 7a96bd401351
child 2 608f976aa7bb
permissions -rw-r--r--
Version bump to 1.12.3
     1 #ifndef IMAGEOBJ_H
     2 #define IMAGEOBJ_H
     3 
     4 #include <qimage.h>
     5 #include <qcanvas.h>
     6 #include <qpainter.h>
     7 
     8 #include "mapobj.h"
     9 
    10 enum ImageType {qimage,qpixmap,undef};
    11 
    12 class ImageObj: public QCanvasRectangle
    13 {
    14 public:
    15     ImageObj( QCanvas *canvas );
    16     ~ImageObj();
    17 	virtual void copy (ImageObj*);
    18     virtual void setVisibility(bool);
    19 	void save (const QString &, const char *);
    20 	bool load (const QString &);
    21 	bool load (QPixmap);
    22 	void setImage(QImage img);
    23 	QPixmap getPixmap();
    24 protected:
    25     void drawShape( QPainter & );
    26 private:
    27     QImage image;
    28     QPixmap pixmap;
    29 	ImageType type;
    30 };
    31 #endif