1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-07 18:30:55 +03:00
occt/samples/qt/Common/src/MDIWindow.h
dbp 861a7b03e1 0024479: Ray Tracing mode does not work in Qt IE sample
Implementation of  Ray Tracing mode in standard Qt sample
Fix compile warnings in Qt samples.
Fix tabs in Common-string.ts.
Update Code style.

0024415: Update QT samples
Code which was based on QT3 was removed. Some bugs and warnings has been also fixed.
Porting from QT4 to QT5 sample files.
2014-01-22 19:09:00 +04:00

42 lines
1.1 KiB
C++
Executable File

#ifndef MDIWINDOW_H
#define MDIWINDOW_H
#include <QMainWindow>
#include "CommonSample.h"
class DocumentCommon;
class View;
class COMMONSAMPLE_EXPORT MDIWindow: public QMainWindow
{
Q_OBJECT
public:
MDIWindow( DocumentCommon* aDocument, QWidget* parent, Qt::WindowFlags wflags );
MDIWindow( View* aView, DocumentCommon* aDocument, QWidget* parent, Qt::WindowFlags wflags );
~MDIWindow();
DocumentCommon* getDocument();
void fitAll();
virtual QSize sizeHint() const;
signals:
void selectionChanged();
void message(const QString&, int );
void sendCloseView(MDIWindow* theView);
public slots:
void closeEvent(QCloseEvent* e);
void onWindowActivated ();
void dump();
protected:
void createViewActions();
void createRaytraceActions();
protected:
DocumentCommon* myDocument;
View* myView;
};
#endif