mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
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.
42 lines
1.1 KiB
C++
Executable File
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 |