Qt 5.10 Book Examples
MDIProgram.h
Go to the documentation of this file.
1 // ======================================================================
2 // MDIProgram.h
3 // ======================================================================
4 // This file is a part of the book
5 // "Qt 5.10 Professional programming with C++"
6 // http://qt-book.com
7 // ======================================================================
8 // Copyright (c) 2017 by Max Schlee
9 // ======================================================================
10 
11 #pragma once
12 
13 #include <QMainWindow>
14 
15 class QMenu;
16 class QMdiArea;
17 class QSignalMapper;
18 class DocWindow;
19 
20 // ======================================================================
21 class MDIProgram : public QMainWindow {
22  Q_OBJECT
23 private:
24  QMdiArea* m_pma;
25  QMenu* m_pmnuWindows;
26  QSignalMapper* m_psigMapper;
27 
28  DocWindow* createNewDoc();
29 
30 public:
31  MDIProgram(QWidget* pwgt = 0);
32 
33 private slots:
34  void slotChangeWindowTitle(const QString&);
35 
36 private slots:
37  void slotNewDoc ( );
38  void slotLoad ( );
39  void slotSave ( );
40  void slotSaveAs ( );
41  void slotAbout ( );
42  void slotWindows ( );
43  void slotSetActiveSubWindow(QWidget*);
44 };
MDIProgram(QWidget *pwgt=0)
Definition: MDIProgram.cpp:16