Skip to content

Commit

Permalink
Merge branch 'dtk' into dtk
Browse files Browse the repository at this point in the history
  • Loading branch information
N0rthHXD authored Nov 13, 2023
2 parents 7326b76 + 7e19f91 commit 4f0c242
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/plugins/core/mainframe/windowkeeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,44 @@ void WindowKeeper::createHelpActions(DMenu *menu)
qInfo() << __FUNCTION__;
auto helpMenu = new DMenu(MWM_HELP);
menu->addMenu(helpMenu);
=======
}

void WindowKeeper::createAnalyzeActions(DMenuBar *menuBar)
{
qInfo() << __FUNCTION__;
DMenu* analyzeMenu = new DMenu();
QAction* buildAction = menuBar->addMenu(analyzeMenu);
buildAction->setText(MWM_ANALYZE);
}

void WindowKeeper::createBuildActions(DMenuBar *menuBar)
{
qInfo() << __FUNCTION__;
DMenu* buildMenu = new DMenu();
QAction* buildAction = menuBar->addMenu(buildMenu);
buildAction->setText(MWM_BUILD);
}

void WindowKeeper::createDebugActions(DMenuBar *menuBar)
{
qInfo() << __FUNCTION__;
QAction* debugAction = menuBar->addMenu(new DMenu());
debugAction->setText(MWM_DEBUG);
}

void WindowKeeper::createToolsActions(DMenuBar *menuBar)
{
qInfo() << __FUNCTION__;
auto toolsMenu = new DMenu(MWM_TOOLS);
menuBar->addMenu(toolsMenu);
}

void WindowKeeper::createHelpActions(DMenuBar *menuBar)
{
qInfo() << __FUNCTION__;
auto helpMenu = new DMenu(MWM_HELP);
menuBar->addMenu(helpMenu);

QAction *actionReportBug = new QAction(MWM_REPORT_BUG);
ActionManager::getInstance()->registerAction(actionReportBug, "Help.Report.Bug",
Expand Down Expand Up @@ -198,6 +236,9 @@ void WindowKeeper::createMainMenu(DMenu *menu)
menu->addSeparator();

createHelpActions(menu);

DMenu* menuOpenProject = new DMenu(MWMFA_OPEN_PROJECT);
menu->addMenu(menuOpenProject);
}

void WindowKeeper::layoutWindow(DMainWindow *window)
Expand Down
9 changes: 9 additions & 0 deletions src/plugins/core/mainframe/windowkeeper.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,21 @@ private :
void createNavEdit(DToolBar *toolbar);
void createNavRecent(DToolBar *toolbar);
void createStatusBar(DMainWindow *window);

void createHelpActions(DMenu *menu);
void createToolsActions(DMenu *menu);
void createDebugActions(DMenu *menu);
void createBuildActions(DMenu *menu);
void createFileActions(DMenu *menu);
void createAnalyzeActions(DMenu *menu);

void createHelpActions(DMenuBar *menuBar);
void createToolsActions(DMenuBar *menuBar);
void createDebugActions(DMenuBar *menuBar);
void createBuildActions(DMenuBar *menuBar);
void createFileActions(DMenu *menu);
void createAnalyzeActions(DMenuBar *menuBar);

void setNavActionChecked(const QString &actionName, bool checked);

void createMainMenu(DMenu *mainMenu);
Expand Down

0 comments on commit 4f0c242

Please sign in to comment.