MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / createGitSubMenu

Method createGitSubMenu

src/plugins/git/utils/gitmenumanager.cpp:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void GitMenuManager::createGitSubMenu()
133{
134 auto mGit = ActionManager::instance()->actionContainer(M_GIT);
135 auto mCurFile = ActionManager::instance()->createContainer(M_GIT_FILE);
136 mCurFile->menu()->setTitle(tr("Current File"));
137 mCurFile->containerAction()->setEnabled(false);
138 mGit->addMenu(mCurFile);
139 createFileSubMenu();
140
141 auto mCurProject = ActionManager::instance()->createContainer(M_GIT_PROJECT);
142 mCurProject->menu()->setTitle(tr("Current Project"));
143 mCurProject->containerAction()->setEnabled(false);
144 mGit->addMenu(mCurProject);
145 createProjectSubMenu();
146}
147
148void GitMenuManager::createFileSubMenu()
149{

Callers

nothing calls this directly

Calls 7

actionContainerMethod · 0.80
createContainerMethod · 0.80
menuMethod · 0.80
containerActionMethod · 0.80
setTitleMethod · 0.45
setEnabledMethod · 0.45
addMenuMethod · 0.45

Tested by

no test coverage detected