mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
42
samples/qt/Common/src/MDIWindow.h
Executable file
42
samples/qt/Common/src/MDIWindow.h
Executable file
@@ -0,0 +1,42 @@
|
||||
#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();
|
||||
|
||||
protected:
|
||||
DocumentCommon* myDocument;
|
||||
View* myView;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user