1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00
occt/samples/qt/Common/src/MDIWindow.h
nds 55a40de890 0028934: Coding - Eliminate compiler warnings in OCCT samples
- covering Qt warnings for compilation under MSVC 2013 and greater
- avoid warning about 'M_PI'(and others) redefinition warning of math.h: includes of QtWidgets should follow after other includes.
2018-04-09 10:18:38 +03:00

45 lines
1.1 KiB
C++
Executable File

#ifndef MDIWINDOW_H
#define MDIWINDOW_H
#include <Standard_WarningsDisable.hxx>
#include <QMainWindow>
#include <Standard_WarningsRestore.hxx>
#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