Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

qt_image.h

Go to the documentation of this file.
00001 
00025 #ifndef PLAYER_QT_IMAGE_H
00026 #define PLAYER_QT_IMAGE_H 1
00027 
00028 #include <qwidget.h>
00029 #include <qpixmap.h>
00030 
00031 namespace dmn
00032 {
00036   class QtImage: public QWidget
00037   {
00038   public:
00046     QtImage(const QString& filename, QWidget* parent = NULL,
00047       const char* name = NULL);
00048 
00055     void setSize(int w, int h);
00056 
00057   protected:
00061     void paintEvent(QPaintEvent*);
00062 
00063   private:
00064     QPixmap pixmap;
00065     double scale_x, scale_y;
00066   };
00067 };
00068 
00069 #endif // PLAYER_QT_IMAGE_H

Generated on Fri Dec 26 22:52:55 2003 for dmn by doxygen 1.3.4