00001 00002 // mdiwindow.h // 00003 // ------------- // 00004 // begin : Fri Jan 30 2004 // 00005 // copyright : (C) 2004 by cbaudry (CEA/DSM/DAPNIA/SPP) // 00006 // email : cedric.baudry@tremplin-utc.fr // 00008 00010 // // 00011 // This program is free software; you can redistribute it and/or modify // 00012 // it under the terms of the GNU General Public License as published by // 00013 // the Free Software Foundation, version 2 of the License // 00014 // // 00016 00017 #pragma once 00018 00019 #include <qmainwindow.h> 00020 00021 class ObjProperties; 00022 class GLWidget; 00023 00024 00033 class MDIWindow: public QMainWindow 00034 { 00035 Q_OBJECT 00036 public: 00037 00038 MDIWindow( int multWin, QWidget* parent, const char* name, int wflags ); 00039 ~MDIWindow(); 00040 00041 ObjProperties * op; 00042 void load( const QString filename); 00043 GLWidget * getGLWidget () {return glw;}; 00044 void multiWindow(); 00045 00046 QSize sizeHint() const { return QSize( 800, 600 ); } 00047 QSize minimumSizeHint() const { return QSize( 320, 240 ); } 00048 00049 protected: 00050 void closeEvent( QCloseEvent * ); 00051 00052 signals: 00053 void message(const QString&, int ); 00054 00055 private: 00056 00057 GLWidget * glw; 00058 GLWidget *hd,*bg,*bd; 00059 void keyPressEvent (QKeyEvent *e); 00060 00061 };