mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 14:29:31 +02:00
cody: renamed: remove a "with" block
git-svn-id: trunk@30961 -
This commit is contained in:
parent
4cd04c1a87
commit
8d1d6f9318
@ -70,7 +70,7 @@ type
|
||||
|
||||
TCodeBrowserUnit = class
|
||||
private
|
||||
FChildNodes: TAVLTree;
|
||||
FChildNodes: TAVLTree; // tree of TCodeBrowserNode
|
||||
FCodeBuffer: TCodeBuffer;
|
||||
FCodeTool: TStandardCodeTool;
|
||||
FCodeTreeChangeStep: integer;
|
||||
|
@ -46,7 +46,7 @@ var
|
||||
CmdCatFileMenu: TIDECommandCategory;
|
||||
PPUListCommand: TIDECommand;
|
||||
AddAssignMethodCommand: TIDECommand;
|
||||
RemoveWithBlockCommand: TIDECommand;
|
||||
RemoveAWithBlockCommand: TIDECommand;
|
||||
InsertFileAtCursorCommand: TIDECommand;
|
||||
DeclareVariableCommand: TIDECommand;
|
||||
TVIconRes: TLResource;
|
||||
@ -110,11 +110,11 @@ begin
|
||||
crsAddAssignMethod2,nil,nil,AddAssignMethodCommand);
|
||||
|
||||
// remove With block
|
||||
RemoveWithBlockCommand:=RegisterIDECommand(CmdCatCodeTools, 'RemoveWithBlock',
|
||||
crsRemoveWithBlock,
|
||||
CleanIDEShortCut,CleanIDEShortCut,nil,@RemoveWithBlockCmd);
|
||||
RegisterIDEMenuCommand(SrcEditSubMenuRefactor, 'RemoveWithBlock',
|
||||
crsRemoveWithBlock, nil, nil, RemoveWithBlockCommand);
|
||||
RemoveAWithBlockCommand:=RegisterIDECommand(CmdCatCodeTools, 'RemoveAWithBlock',
|
||||
crsRemoveAWithBlock,
|
||||
CleanIDEShortCut,CleanIDEShortCut,nil,@RemoveAWithBlockCmd);
|
||||
RegisterIDEMenuCommand(SrcEditSubMenuRefactor, 'RemoveAWithBlock',
|
||||
crsRemoveAWithBlock, nil, nil, RemoveAWithBlockCommand);
|
||||
|
||||
// IDE internals menu - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
|
@ -76,7 +76,7 @@ resourcestring
|
||||
crsAddAssignMethod = 'Add Assign method';
|
||||
crsShowCodeToolsNodeInfo = 'Show CodeTools node info ...';
|
||||
crsAddAssignMethod2 = 'Add Assign method ...';
|
||||
crsRemoveWithBlock = 'Remove With block';
|
||||
crsRemoveAWithBlock = 'Remove a "With" block';
|
||||
|
||||
crsCWError = 'Error';
|
||||
crsPleaseSpecifyAType = 'Please specify a type';
|
||||
|
@ -108,7 +108,7 @@ type
|
||||
cupeSuccess
|
||||
);
|
||||
|
||||
procedure RemoveWithBlockCmd(Sender: TObject);
|
||||
procedure RemoveAWithBlockCmd(Sender: TObject);
|
||||
procedure InsertFileAtCursor(Sender: TObject);
|
||||
procedure AddCallInherited(Sender: TObject);
|
||||
|
||||
@ -119,7 +119,7 @@ procedure OpenCodyHelp(Path: string);
|
||||
|
||||
implementation
|
||||
|
||||
procedure RemoveWithBlockCmd(Sender: TObject);
|
||||
procedure RemoveAWithBlockCmd(Sender: TObject);
|
||||
|
||||
procedure ErrorNotInWithVar;
|
||||
begin
|
||||
|
@ -342,8 +342,8 @@ msgstr ""
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
|
||||
#: codystrconsts.crsremovewithblock
|
||||
msgid "Remove With block"
|
||||
#: codystrconsts.crsremoveawithblock
|
||||
msgid "Remove a \"With\" block"
|
||||
msgstr ""
|
||||
|
||||
#: codystrconsts.crsreport
|
||||
|
@ -333,8 +333,8 @@ msgstr ""
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
|
||||
#: codystrconsts.crsremovewithblock
|
||||
msgid "Remove With block"
|
||||
#: codystrconsts.crsremoveawithblock
|
||||
msgid "Remove a \"With\" block"
|
||||
msgstr ""
|
||||
|
||||
#: codystrconsts.crsreport
|
||||
|
@ -341,9 +341,9 @@ msgstr ""
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
|
||||
#: codystrconsts.crsremovewithblock
|
||||
msgid "Remove With block"
|
||||
msgstr "Remover bloco \"With\""
|
||||
#: codystrconsts.crsremoveawithblock
|
||||
msgid "Remove a \"With\" block"
|
||||
msgstr ""
|
||||
|
||||
#: codystrconsts.crsreport
|
||||
msgid "Report"
|
||||
|
@ -342,9 +342,9 @@ msgstr "Published"
|
||||
msgid "Refresh"
|
||||
msgstr "Обновить"
|
||||
|
||||
#: codystrconsts.crsremovewithblock
|
||||
msgid "Remove With block"
|
||||
msgstr "Удалить блок With"
|
||||
#: codystrconsts.crsremoveawithblock
|
||||
msgid "Remove a \"With\" block"
|
||||
msgstr ""
|
||||
|
||||
#: codystrconsts.crsreport
|
||||
msgid "Report"
|
||||
|
@ -2087,8 +2087,8 @@ var
|
||||
//DebugLn(['AddUnits SrcList.Owner="',SrcList.Owner,'" HasUnits=',SrcList.Units<>nil]);
|
||||
if SrcList.Units=nil then exit;
|
||||
OldDestParentList:=DestParentList;
|
||||
Node:=SrcList.Units.FindLowest;
|
||||
NewUnit:=nil;
|
||||
Node:=SrcList.Units.FindLowest;
|
||||
while Node<>nil do begin
|
||||
CurUnit:=TCodeBrowserUnit(Node.Data);
|
||||
if (CurUnit.Filename='')
|
||||
|
Loading…
Reference in New Issue
Block a user