MDIWindowDemo Example

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "DemoDockWindow.h"
#include <QMenu>
#include <QMdiArea>
#include <QMdiSubWindow>

/* MainWindow */
class MainWindow : public DemoDockWindow
{
    Q_OBJECT
public:
    explicit MainWindow();
    virtual ~MainWindow();
private:
    void createActions();
    void createMenu();
    void createToolBar();
    void createStatusBar();
    void createMdiChild();
private:
    QMdiArea* m_mdiArea;
    QMenu* m_fileMenu;
    QMenu* m_editMenu;
    QMenu* m_viewMenu;
    QMenu* m_helpMenu;
    DockToolBar* m_fileToolBar;

    QAction* m_fileNewAction;
    QAction* m_fileOpenAction;
    QAction* m_fileSaveAction;
    QAction* m_filePrintAction;
    QAction* m_editCutAction;
    QAction* m_editCopyAction;
    QAction* m_editUndoAction;
    QAction* m_editRedoAction;
private:
    Q_DISABLE_COPY(MainWindow)
};

#endif