5 #include "CommonSample.h"
10 class COMMONSAMPLE_EXPORT MDIWindow: public QMainWindow
15 MDIWindow( DocumentCommon* aDocument, QWidget* parent, Qt::WindowFlags wflags, bool theRT = false );
16 MDIWindow( View* aView, DocumentCommon* aDocument, QWidget* parent, Qt::WindowFlags wflags );
19 DocumentCommon* getDocument();
21 virtual QSize sizeHint() const;
25 void setRaytracedShadows( int state );
26 void setRaytracedReflections( int state );
27 void setRaytracedAntialiasing( int state );
29 bool ShadowsEnabled() { return myShadowsEnabled; }
30 bool ReflectionsEnabled() { return myReflectionsEnabled; }
31 bool AntialiasingEnabled() { return myAntialiasingEnabled; }
36 void selectionChanged();
37 void message(const QString&, int );
38 void sendCloseView(MDIWindow* theView);
41 void closeEvent(QCloseEvent* e);
42 void onWindowActivated ();
46 void createViewActions();
49 DocumentCommon* myDocument;
54 bool myShadowsEnabled;
55 bool myReflectionsEnabled;
56 bool myAntialiasingEnabled;