mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Add the new commands to menu
This commit is contained in:
parent
76e94d1cdc
commit
5a5a3b0f54
2 changed files with 20 additions and 0 deletions
|
@ -194,6 +194,8 @@ namespace IDE
|
|||
Add("Close Document", new () => { gApp.[Friend]TryCloseCurrentDocument(); });
|
||||
Add("Close Panel", new () => { gApp.[Friend]TryCloseCurrentPanel(); });
|
||||
Add("Close Workspace", new => gApp.[Friend]Cmd_CloseWorkspaceAndSetupNew);
|
||||
Add("Comment Block", new => gApp.[Friend]CommentBlock);
|
||||
Add("Comment Lines", new => gApp.[Friend]CommentLines);
|
||||
Add("Comment Selection", new => gApp.[Friend]CommentSelection);
|
||||
Add("Compile File", new => gApp.Cmd_CompileFile);
|
||||
Add("Debug All Tests", new () => { gApp.[Friend]RunTests(true, true); });
|
||||
|
|
|
@ -2424,6 +2424,22 @@ namespace IDE
|
|||
sewc.DuplicateLine();
|
||||
}
|
||||
|
||||
[IDECommand]
|
||||
void CommentBlock()
|
||||
{
|
||||
var sewc = GetActiveSourceEditWidgetContent();
|
||||
if (sewc != null)
|
||||
sewc.CommentBlock();
|
||||
}
|
||||
|
||||
[IDECommand]
|
||||
void CommentLines()
|
||||
{
|
||||
var sewc = GetActiveSourceEditWidgetContent();
|
||||
if (sewc != null)
|
||||
sewc.CommentLines();
|
||||
}
|
||||
|
||||
[IDECommand]
|
||||
void CommentSelection()
|
||||
{
|
||||
|
@ -5386,6 +5402,8 @@ namespace IDE
|
|||
advancedEditMenu.AddMenuItem(null);
|
||||
AddMenuItem(advancedEditMenu, "Make Uppercase", "Make Uppercase");
|
||||
AddMenuItem(advancedEditMenu, "Make Lowercase", "Make Lowercase");
|
||||
AddMenuItem(advancedEditMenu, "Comment Block", "Comment Block");
|
||||
AddMenuItem(advancedEditMenu, "Comment Lines", "Comment Lines");
|
||||
AddMenuItem(advancedEditMenu, "Comment Selection", "Comment Selection");
|
||||
AddMenuItem(advancedEditMenu, "Uncomment Selection", "Uncomment Selection");
|
||||
AddMenuItem(advancedEditMenu, "Reformat Document", "Reformat Document");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue