SimplePanels Example

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "DemoDockWindow.h"

class MainWindow : public DemoDockWindow
{
    Q_OBJECT
public:
    explicit MainWindow(QWidget* parent = Q_NULL);
    virtual ~MainWindow();
public:
    void createMenus();
public Q_SLOTS:
    void triggeredPanelFloat_1();
    void triggeredPanelDock_1();
    void triggeredPanelAutoHide_1();
    void triggeredPanelHide_1();
    void triggeredPanelShow_1();
    void triggeredPanelFeature_1(bool checked);

    void triggeredPanelFloat_2();
    void triggeredPanelDock_2();
    void triggeredPanelAutoHide_2();
    void triggeredPanelHide_2();
    void triggeredPanelShow_2();

    void triggeredPanelFloat_3();
    void triggeredPanelDock_3();
    void triggeredPanelAutoHide_3();
    void triggeredPanelHide_3();
    void triggeredPanelShow_3();
    void triggeredPanelHoverShow(bool checked);

    void enableActions();
    void enableFeatures();
    void updateFeaturesActions(DockWidgetPanel::DockPanelFeatures features);
    void activationPanel(DockWidgetPanel* dockWidget);
    void deactivationPanel(DockWidgetPanel* dockWidget);
    void draggingFrameActions(bool);
    void showCentralWidget(bool);
    void aboutToClosePanel(DockPanelBase* panel, bool& handled);
protected:
    void initFeaturesActions(DockWidgetPanel::DockPanelFeatures features);
protected:
    virtual void closeEvent(QCloseEvent* event);
protected:
    DockWidgetPanel* m_panel_1;
    DockWidgetPanel* m_panel_2;
    DockWidgetPanel* m_panel_3;

    QAction* m_panelHoverShow;

    QAction* m_panelFloatAction_1;
    QAction* m_panelDockAction_1;
    QAction* m_panelAutoHideAction_1;
    QAction* m_panelHideAction_1;
    QAction* m_panelShowAction_1;

    QAction* m_panelFloatableAction_1;
    QAction* m_panelMenuButtonAction_1;
    QAction* m_panelHideableAction_1;
    QAction* m_panelClosableAction_1;
    QAction* m_panelNoCaptionAction_1;

    QAction* m_panelFloatAction_2;
    QAction* m_panelDockAction_2;
    QAction* m_panelAutoHideAction_2;
    QAction* m_panelHideAction_2;
    QAction* m_panelShowAction_2;

    QAction* m_panelFloatAction_3;
    QAction* m_panelDockAction_3;
    QAction* m_panelAutoHideAction_3;
    QAction* m_panelHideAction_3;
    QAction* m_panelShowAction_3;
private:
    Q_DISABLE_COPY(MainWindow)
};

#endif /* MAINWINDOW_H */