ToolBars Example
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "DemoDockWindow.h"
#include <QMenu>
#include <QMdiArea>
#include <QMdiSubWindow>
class MainWindow : public DemoDockWindow
{
Q_OBJECT
public:
explicit MainWindow();
virtual ~MainWindow();
private:
void createActions();
void createMenus();
void createToolBars();
void createStatusBar();
QWidget *createMdiChild();
protected:
virtual void closeEvent(QCloseEvent* event);
private:
QMdiArea* m_mdiArea;
QMenu* m_fileMenu;
QMenu* m_editMenu;
QMenu* m_viewMenu;
QMenu* m_helpMenu;
DockToolBar* m_fileToolBar;
DockToolBar* m_editToolBar;
DockToolBar* m_buildToolBar;
DockToolBar* m_editorsToolBar;
DockToolBar* m_comboBoxToolBar;
DockToolBar* m_spinBoxToolBar;
DockToolBar* m_editorsToolBar2;
DockToolBar* m_comboBoxToolBar2;
QAction* m_fileNewAction;
QAction* m_fileOpenAction;
QAction* m_fileSaveAction;
QAction* m_fileSaveAllAction;
QAction* m_filePrintAction;
QAction* m_editCutAction;
QAction* m_editCopyAction;
QAction* m_editUndoAction;
QAction* m_editRedoAction;
QAction* m_editTogglebookmarkAction;
QAction* m_editNextbookmarkAction;
QAction* m_editPreviousbookmarkAction;
QAction* m_editClearallbookmarkAction;
QAction* m_editFindAction;
QAction* m_editIncreaseIdentAction;
QAction* m_editDecreaseIdentAction;
QAction* m_editTogglebreakPointAction;
QAction* m_editRemoveAllBreakpointsAction;
QAction* m_buildActiveConfigurationAction;
QAction* m_buildDummyCompileAction;
QAction* m_buildDummyBuildAction;
QAction* m_buildDummyStopBuildAction;
QAction* m_buildDummyExecuteAction;
QAction* m_buildDummyGoAction;
private:
Q_DISABLE_COPY(MainWindow)
};
#endif