User forums > Using Code::Blocks
Is there a way to get copy/cut/paste in the right click context menu?
marosknapcok:
To add "Jump Back", "Jump Frwd", "Jump Clear" to contextmenu do the following:
-------------------------------
1. go to module "JumpTracker.cpp"...
-------------------------------
... to function "JumpTracker::BuildModuleMenu" and replace it by following code:
--- Code: ---// ----------------------------------------------------------------------------
void JumpTracker::BuildModuleMenu(const ModuleType type, wxMenu* pMenu, const FileTreeData* /*data*/)
// ----------------------------------------------------------------------------
{
wxMenuItem* pMenuItem = NULL;
if (!pMenu || !IsAttached())
return;
//pMenu->AppendSeparator();
pMenuItem = pMenu->Append(idMenuJumpBack, _("Jump Back"));
pMenuItem->Enable(true);
pMenuItem = pMenu->Append(idMenuJumpNext, _("Jump Frwd"));
pMenuItem->Enable(true);
pMenuItem = pMenu->Append(idMenuJumpClear, _("Jump Clear"));
pMenuItem->Enable(true);
}
--- End code ---
-------------------------------
2. go to module "BrowseTracker.cpp"...
-------------------------------
... to function/method "void BrowseTracker::BuildModuleMenu" and add between
end of cycle "for (int i=0; i<knt; ++i)" and "popup->AppendSeparator();" following code:
--- Code: --- popup->AppendSeparator();
m_pJumpTracker->BuildModuleMenu(type, popup);
--- End code ---
-------------------------------
3. open "CodeBlocks.workspace"...
-------------------------------
with original C::B, select only "BrowseTracker" plugin and build it.
-------------------------------
4. hit "update.bat"...
-------------------------------
... , "..\src\output" will be generated with
4.1."..\src\output\share\CodeBlocks\BrowseTracker.zip" file and ...
4.2."..\src\output\share\CodeBlocks\plugins\BrowseTracker.dll" file
oBFusCATed:
--- Quote from: marosknapcok on July 19, 2014, 03:10:11 pm ---Is there anyone else who would like to beg the C::B masters for making some special mouse lovers christmas version?
--- End quote ---
The context menu is too cluttered to do what you want. I've tried to start a discussion and mark things that should be removed from it, but there are different people using different subsets of the items. Until there is a menu-configuration system I think we should not move anything anywhere....
p.s. Are you really telling me that you're using the Delete menu item, instead of the delete keyboard button?
marosknapcok:
Yes.
Navigation
[0] Message Index
[*] Previous page
Go to full version