author | insilmaril |
Thu Nov 08 15:28:03 2007 +0000 (2007-11-08) | |
changeset 618 | 9d9da416206e |
parent 408 | c2a05fa925a1 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef IMAGEOBJ_H |
insilmaril@0 | 2 |
#define IMAGEOBJ_H |
insilmaril@0 | 3 |
|
insilmaril@408 | 4 |
#include <QGraphicsScene> |
insilmaril@408 | 5 |
#include <QGraphicsPixmapItem> |
insilmaril@0 | 6 |
|
insilmaril@472 | 7 |
/*! \brief Base class for pixmaps. |
insilmaril@472 | 8 |
*/ |
insilmaril@472 | 9 |
|
insilmaril@408 | 10 |
class ImageObj: public QGraphicsPixmapItem |
insilmaril@0 | 11 |
{ |
insilmaril@0 | 12 |
public: |
insilmaril@408 | 13 |
ImageObj( QGraphicsScene *); |
insilmaril@0 | 14 |
~ImageObj(); |
insilmaril@408 | 15 |
void copy (ImageObj*); |
insilmaril@408 | 16 |
void setVisibility(bool); |
insilmaril@0 | 17 |
void save (const QString &, const char *); |
insilmaril@0 | 18 |
bool load (const QString &); |
insilmaril@408 | 19 |
bool load (const QPixmap &); |
insilmaril@0 | 20 |
private: |
insilmaril@408 | 21 |
QGraphicsScene *mapScene; |
insilmaril@0 | 22 |
}; |
insilmaril@0 | 23 |
#endif |