00001 #ifndef MYTHMAINWINDOW_INT 00002 #define MYTHMAINWINDOW_INT 00003 00004 #include <QWidget> 00005 00006 class MythMainWindow; 00007 class MythMainWindowPrivate; 00008 00009 #ifdef USE_OPENGL_PAINTER 00010 #include <QGLWidget> 00011 #include "mythrender_opengl.h" 00012 00013 class MythPainterWindowGL : public QGLWidget 00014 { 00015 Q_OBJECT 00016 00017 public: 00018 MythPainterWindowGL(MythMainWindow *win, MythMainWindowPrivate *priv, 00019 MythRenderOpenGL *rend); 00020 00021 void paintEvent(QPaintEvent *e); 00022 00023 MythMainWindow *parent; 00024 MythMainWindowPrivate *d; 00025 MythRenderOpenGL *render; 00026 }; 00027 #endif 00028 00029 #ifdef USING_MINGW 00030 // FIXME - this only really needs a QWidget but the background overpaints the 00031 // main window (setAutoFillBackground(false) does not seem to help) 00032 class MythPainterWindowD3D9 : public QGLWidget 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 MythPainterWindowD3D9(MythMainWindow *win, MythMainWindowPrivate *priv); 00038 00039 void paintEvent(QPaintEvent *e); 00040 00041 MythMainWindow *parent; 00042 MythMainWindowPrivate *d; 00043 }; 00044 #endif 00045 00046 class MythPainterWindowQt : public QWidget 00047 { 00048 Q_OBJECT 00049 00050 public: 00051 MythPainterWindowQt(MythMainWindow *win, MythMainWindowPrivate *priv); 00052 00053 void paintEvent(QPaintEvent *e); 00054 00055 MythMainWindow *parent; 00056 MythMainWindowPrivate *d; 00057 }; 00058 00059 #endif
1.6.3