mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 09:20:49 +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;
|
function TCodyUnitDictionary.GetFilename: string;
|
||||||
begin
|
begin
|
||||||
Result:=AppendPathDelim(LazarusIDE.GetPrimaryConfigPath)+'codyunitdictionary.gz';
|
Result:=AppendPathDelim(LazarusIDE.GetPrimaryConfigPath)+'codyunitdictionary.txt';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCodyUnitDictionary.StartLoadSaveThread: boolean;
|
function TCodyUnitDictionary.StartLoadSaveThread: boolean;
|
||||||
|
@ -77,6 +77,15 @@ begin
|
|||||||
raise Exception.Create('cody: command category '+CommandCategoryViewName+' not found');
|
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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// Source menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
// insert file at cursor
|
// insert file at cursor
|
||||||
@ -86,13 +95,6 @@ begin
|
|||||||
RegisterIDEMenuCommand(SrcEditSubMenuSource,'InsertFileAtCursor',
|
RegisterIDEMenuCommand(SrcEditSubMenuSource,'InsertFileAtCursor',
|
||||||
crsInsertFileAtCursor,nil,nil,InsertFileAtCursorCommand);
|
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
|
// add call inherited
|
||||||
AddCallInheritedCommand:=RegisterIDECommand(CmdCatCodeTools, 'AddCallInherited',
|
AddCallInheritedCommand:=RegisterIDECommand(CmdCatCodeTools, 'AddCallInherited',
|
||||||
crsAddCallInherited,
|
crsAddCallInherited,
|
||||||
@ -107,6 +109,14 @@ begin
|
|||||||
RegisterIDEMenuCommand(SrcEditSubMenuRefactor, 'DeclareVariable',
|
RegisterIDEMenuCommand(SrcEditSubMenuRefactor, 'DeclareVariable',
|
||||||
crsDeclareVariable2, nil, nil, DeclareVariableCommand);
|
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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// Refactor menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
@ -153,14 +163,6 @@ begin
|
|||||||
RegisterIDEMenuCommand(itmViewIDEInternalsWindows, 'ShowCodeNodeInfo',
|
RegisterIDEMenuCommand(itmViewIDEInternalsWindows, 'ShowCodeNodeInfo',
|
||||||
crsShowCodeToolsNodeInfo, nil, nil, ShowCodeNodeInfoCommand);
|
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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// View menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
ViewCodyWindowCommand:=RegisterIDECommand(CmdCatView, 'Cody',
|
ViewCodyWindowCommand:=RegisterIDECommand(CmdCatView, 'Cody',
|
||||||
'Cody', CleanIDEShortCut, CleanIDEShortCut, nil, @ShowCodyWindow);
|
'Cody', CleanIDEShortCut, CleanIDEShortCut, nil, @ShowCodyWindow);
|
||||||
@ -170,7 +172,6 @@ begin
|
|||||||
.Visible:=false
|
.Visible:=false
|
||||||
{$ENDIF};
|
{$ENDIF};
|
||||||
|
|
||||||
|
|
||||||
// Components - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// Components - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
TVIconRes:=LazarusResources.Find('TTreeView');
|
TVIconRes:=LazarusResources.Find('TTreeView');
|
||||||
LazarusResources.Add(TCodyTreeView.ClassName,TVIconRes.ValueType,TVIconRes.Value);
|
LazarusResources.Add(TCodyTreeView.ClassName,TVIconRes.ValueType,TVIconRes.Value);
|
||||||
@ -180,7 +181,7 @@ begin
|
|||||||
CodyWindowCreator:=IDEWindowCreators.Add(CodyWindowName,@CreateCodyWindow,nil,
|
CodyWindowCreator:=IDEWindowCreators.Add(CodyWindowName,@CreateCodyWindow,nil,
|
||||||
'80%','50%','+18%','+25%','CodeExplorer',alBottom);
|
'80%','50%','+18%','+25%','CodeExplorer',alBottom);
|
||||||
|
|
||||||
// Options
|
// Options - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
CodyMiscOptionID:=RegisterIDEOptionsEditor(GroupCodetools,
|
CodyMiscOptionID:=RegisterIDEOptionsEditor(GroupCodetools,
|
||||||
TCodyMiscOptionsFrame,CodyMiscOptionID)^.Index;
|
TCodyMiscOptionsFrame,CodyMiscOptionID)^.Index;
|
||||||
CodyOptions.Apply;
|
CodyOptions.Apply;
|
||||||
|
Loading…
Reference in New Issue
Block a user