cody: renamed: remove a "with" block

git-svn-id: trunk@30961 -
This commit is contained in:
mattias 2011-05-29 12:34:10 +00:00
parent 4cd04c1a87
commit 8d1d6f9318
9 changed files with 21 additions and 21 deletions

View File

@ -70,7 +70,7 @@ type
TCodeBrowserUnit = class
private
FChildNodes: TAVLTree;
FChildNodes: TAVLTree; // tree of TCodeBrowserNode
FCodeBuffer: TCodeBuffer;
FCodeTool: TStandardCodeTool;
FCodeTreeChangeStep: integer;

View File

@ -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 - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -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';

View File

@ -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

View File

@ -342,8 +342,8 @@ msgstr ""
msgid "Refresh"
msgstr ""
#: codystrconsts.crsremovewithblock
msgid "Remove With block"
#: codystrconsts.crsremoveawithblock
msgid "Remove a \"With\" block"
msgstr ""
#: codystrconsts.crsreport

View File

@ -333,8 +333,8 @@ msgstr ""
msgid "Refresh"
msgstr ""
#: codystrconsts.crsremovewithblock
msgid "Remove With block"
#: codystrconsts.crsremoveawithblock
msgid "Remove a \"With\" block"
msgstr ""
#: codystrconsts.crsreport

View File

@ -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"

View File

@ -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"

View File

@ -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='')