-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMDIWindow.h
43 lines (33 loc) · 1.11 KB
/
MDIWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef MDIWINDOW_H
#define MDIWINDOW_H
#include <QMainWindow>
#include "CommonSample.h"
class DocumentCommon;
class View;
//class COMMONSAMPLE_EXPORT MDIWindow: public QMainWindow
class 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