mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
43 lines
1.0 KiB
C++
Executable File
43 lines
1.0 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();
|
|
|
|
protected:
|
|
DocumentCommon* myDocument;
|
|
View* myView;
|
|
};
|
|
|
|
#endif
|
|
|