mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 13:41:35 +02:00
cody: moved unit dictionary menu item to src edit
git-svn-id: trunk@33700 -
This commit is contained in:
parent
ae01fefa3a
commit
0380dd7344
@ -344,7 +344,7 @@ end;
|
||||
|
||||
function TCodyUnitDictionary.GetFilename: string;
|
||||
begin
|
||||
Result:=AppendPathDelim(LazarusIDE.GetPrimaryConfigPath)+'codyunitdictionary.gz';
|
||||
Result:=AppendPathDelim(LazarusIDE.GetPrimaryConfigPath)+'codyunitdictionary.txt';
|
||||
end;
|
||||
|
||||
function TCodyUnitDictionary.StartLoadSaveThread: boolean;
|
||||
|
@ -77,6 +77,15 @@ begin
|
||||
raise Exception.Create('cody: command category '+CommandCategoryViewName+' not found');
|
||||
|
||||
|
||||
// Project menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
// show ppu list of project
|
||||
PPUListCommand:=RegisterIDECommand(CmdCatProjectMenu, 'ShowPPUList',
|
||||
crsShowUsedPpuFiles,
|
||||
CleanIDEShortCut,CleanIDEShortCut,nil,@ShowPPUList);
|
||||
RegisterIDEMenuCommand(itmProjectWindowSection,'PPUList',crsShowUsedPpuFiles,
|
||||
nil,nil,PPUListCommand);
|
||||
|
||||
// Source menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
// insert file at cursor
|
||||
@ -86,13 +95,6 @@ begin
|
||||
RegisterIDEMenuCommand(SrcEditSubMenuSource,'InsertFileAtCursor',
|
||||
crsInsertFileAtCursor,nil,nil,InsertFileAtCursorCommand);
|
||||
|
||||
// show ppu list of project
|
||||
PPUListCommand:=RegisterIDECommand(CmdCatProjectMenu, 'ShowPPUList',
|
||||
crsShowUsedPpuFiles,
|
||||
CleanIDEShortCut,CleanIDEShortCut,nil,@ShowPPUList);
|
||||
RegisterIDEMenuCommand(itmProjectWindowSection,'PPUList',crsShowUsedPpuFiles,
|
||||
nil,nil,PPUListCommand);
|
||||
|
||||
// add call inherited
|
||||
AddCallInheritedCommand:=RegisterIDECommand(CmdCatCodeTools, 'AddCallInherited',
|
||||
crsAddCallInherited,
|
||||
@ -107,6 +109,14 @@ begin
|
||||
RegisterIDEMenuCommand(SrcEditSubMenuRefactor, 'DeclareVariable',
|
||||
crsDeclareVariable2, nil, nil, DeclareVariableCommand);
|
||||
|
||||
// Show unit / identifier dictionary
|
||||
InitUnitDictionary;
|
||||
ShowIdentifierDictionaryCommand:=RegisterIDECommand(CmdCatCodeTools, 'ShowUnitDictionary',
|
||||
crsShowUnitIdentifierDictionary,
|
||||
CleanIDEShortCut,CleanIDEShortCut,nil,@ShowUnitDictionaryDialog);
|
||||
RegisterIDEMenuCommand(SrcEditSubMenuSource, 'ShowIdentifierDictionary',
|
||||
crsShowUnitIdentifierDictionary, nil, nil, ShowIdentifierDictionaryCommand);
|
||||
|
||||
|
||||
// Refactor menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
@ -153,14 +163,6 @@ begin
|
||||
RegisterIDEMenuCommand(itmViewIDEInternalsWindows, 'ShowCodeNodeInfo',
|
||||
crsShowCodeToolsNodeInfo, nil, nil, ShowCodeNodeInfoCommand);
|
||||
|
||||
// Show unit / identifier dictionary
|
||||
InitUnitDictionary;
|
||||
ShowIdentifierDictionaryCommand:=RegisterIDECommand(CmdCatCodeTools, 'ShowUnitDictionary',
|
||||
crsShowUnitIdentifierDictionary,
|
||||
CleanIDEShortCut,CleanIDEShortCut,nil,@ShowUnitDictionaryDialog);
|
||||
RegisterIDEMenuCommand(itmViewIDEInternalsWindows, 'ShowIdentifierDictionary',
|
||||
crsShowUnitIdentifierDictionary, nil, nil, ShowIdentifierDictionaryCommand);
|
||||
|
||||
// View menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ViewCodyWindowCommand:=RegisterIDECommand(CmdCatView, 'Cody',
|
||||
'Cody', CleanIDEShortCut, CleanIDEShortCut, nil, @ShowCodyWindow);
|
||||
@ -170,7 +172,6 @@ begin
|
||||
.Visible:=false
|
||||
{$ENDIF};
|
||||
|
||||
|
||||
// Components - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
TVIconRes:=LazarusResources.Find('TTreeView');
|
||||
LazarusResources.Add(TCodyTreeView.ClassName,TVIconRes.ValueType,TVIconRes.Value);
|
||||
@ -180,7 +181,7 @@ begin
|
||||
CodyWindowCreator:=IDEWindowCreators.Add(CodyWindowName,@CreateCodyWindow,nil,
|
||||
'80%','50%','+18%','+25%','CodeExplorer',alBottom);
|
||||
|
||||
// Options
|
||||
// Options - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
CodyMiscOptionID:=RegisterIDEOptionsEditor(GroupCodetools,
|
||||
TCodyMiscOptionsFrame,CodyMiscOptionID)^.Index;
|
||||
CodyOptions.Apply;
|
||||
|
Loading…
Reference in New Issue
Block a user