mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-23 20:00:03 +01:00
IDE: add a new EditorFileManager to Windows menu
git-svn-id: trunk@35417 -
This commit is contained in:
parent
a21ba83d61
commit
a2885ca4d0
@ -242,6 +242,7 @@ resourcestring
|
|||||||
lisKMSelectPageBottom = 'Select Page Bottom';
|
lisKMSelectPageBottom = 'Select Page Bottom';
|
||||||
lisMenuSelect = 'Select';
|
lisMenuSelect = 'Select';
|
||||||
lisMenuSelectAll = 'Select All';
|
lisMenuSelectAll = 'Select All';
|
||||||
|
lisMenuUnselectAll = 'Unelect All';
|
||||||
lisSAMAbstractMethodsNotYetOverridden = 'Abstract Methods - not yet overridden';
|
lisSAMAbstractMethodsNotYetOverridden = 'Abstract Methods - not yet overridden';
|
||||||
lisMenuSelectToBrace = 'Select to Brace';
|
lisMenuSelectToBrace = 'Select to Brace';
|
||||||
lisMenuSelectCodeBlock = 'Select Code Block';
|
lisMenuSelectCodeBlock = 'Select Code Block';
|
||||||
@ -449,6 +450,7 @@ resourcestring
|
|||||||
lisMenuBuildLazarus = 'Build Lazarus with Current Profile';
|
lisMenuBuildLazarus = 'Build Lazarus with Current Profile';
|
||||||
lisMenuBuildLazarusProf = 'Build Lazarus with Profile: %s';
|
lisMenuBuildLazarusProf = 'Build Lazarus with Profile: %s';
|
||||||
lisMenuConfigureBuildLazarus = 'Configure "Build Lazarus" ...';
|
lisMenuConfigureBuildLazarus = 'Configure "Build Lazarus" ...';
|
||||||
|
lisEditorFileManager = 'Editor File Manager ...';
|
||||||
|
|
||||||
lisSearchProjectsFrom = 'Search projects from';
|
lisSearchProjectsFrom = 'Search projects from';
|
||||||
lisMEOther = 'Other';
|
lisMEOther = 'Other';
|
||||||
@ -461,7 +463,7 @@ resourcestring
|
|||||||
dlgEdCodeTempl = 'Code Templates';
|
dlgEdCodeTempl = 'Code Templates';
|
||||||
dlgTplFName = 'Template file name';
|
dlgTplFName = 'Template file name';
|
||||||
lisMenuCodeToolsDefinesEditor = 'CodeTools Defines Editor ...';
|
lisMenuCodeToolsDefinesEditor = 'CodeTools Defines Editor ...';
|
||||||
|
|
||||||
lisMenuOnlineHelp = 'Online Help';
|
lisMenuOnlineHelp = 'Online Help';
|
||||||
lisMenuReportingBug = 'Reporting a Bug';
|
lisMenuReportingBug = 'Reporting a Bug';
|
||||||
lisReportingBugURL = 'http://wiki.lazarus.freepascal.org/How_do_I_create_a_bug_report';
|
lisReportingBugURL = 'http://wiki.lazarus.freepascal.org/How_do_I_create_a_bug_report';
|
||||||
@ -921,6 +923,9 @@ resourcestring
|
|||||||
lisCloseAllTabsTitle = 'Close Source Editor Window';
|
lisCloseAllTabsTitle = 'Close Source Editor Window';
|
||||||
lisCloseAllTabsQuestion = 'Closing a Source Editor Window. Do you want close all files or hide the window?';
|
lisCloseAllTabsQuestion = 'Closing a Source Editor Window. Do you want close all files or hide the window?';
|
||||||
lisCloseAllTabsClose = 'Close files';
|
lisCloseAllTabsClose = 'Close files';
|
||||||
|
lisCloseAllChecked = 'Close All Checked';
|
||||||
|
lisSaveAllChecked = 'Save All Checked';
|
||||||
|
lisActivateSelected = 'Activate Selected';
|
||||||
lisCloseAllTabsHide = 'Hide window';
|
lisCloseAllTabsHide = 'Hide window';
|
||||||
|
|
||||||
// hints
|
// hints
|
||||||
|
|||||||
11
ide/main.pp
11
ide/main.pp
@ -149,7 +149,7 @@ uses
|
|||||||
NewDialog, MakeResStrDlg, DialogProcs, FindReplaceDialog, FindInFilesDlg,
|
NewDialog, MakeResStrDlg, DialogProcs, FindReplaceDialog, FindInFilesDlg,
|
||||||
CodeExplorer, BuildFileDlg, ProcedureList, ExtractProcDlg,
|
CodeExplorer, BuildFileDlg, ProcedureList, ExtractProcDlg,
|
||||||
FindRenameIdentifier, AbstractsMethodsDlg, EmptyMethodsDlg, UnusedUnitsDlg,
|
FindRenameIdentifier, AbstractsMethodsDlg, EmptyMethodsDlg, UnusedUnitsDlg,
|
||||||
UseUnitDlg, FindOverloadsDlg,
|
UseUnitDlg, FindOverloadsDlg, EditorFileManager,
|
||||||
CleanDirDlg, CodeContextForm, AboutFrm, CompatibilityRestrictions,
|
CleanDirDlg, CodeContextForm, AboutFrm, CompatibilityRestrictions,
|
||||||
RestrictionBrowser, ProjectWizardDlg, IDECmdLine, IDEGuiCmdLine, CodeExplOpts,
|
RestrictionBrowser, ProjectWizardDlg, IDECmdLine, IDEGuiCmdLine, CodeExplOpts,
|
||||||
// main ide
|
// main ide
|
||||||
@ -372,6 +372,7 @@ type
|
|||||||
procedure mnuEnvRescanFPCSrcDirClicked(Sender: TObject);
|
procedure mnuEnvRescanFPCSrcDirClicked(Sender: TObject);
|
||||||
|
|
||||||
// windows menu
|
// windows menu
|
||||||
|
procedure mnuWindowManagerClicked(Sender: TObject);
|
||||||
|
|
||||||
// help menu
|
// help menu
|
||||||
// see helpmanager.pas
|
// see helpmanager.pas
|
||||||
@ -2662,6 +2663,9 @@ end;
|
|||||||
procedure TMainIDE.SetupWindowsMenu;
|
procedure TMainIDE.SetupWindowsMenu;
|
||||||
begin
|
begin
|
||||||
inherited SetupWindowsMenu;
|
inherited SetupWindowsMenu;
|
||||||
|
with MainIDEBar do begin
|
||||||
|
itmWindowManager.OnClick := @mnuWindowManagerClicked;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMainIDE.SetupHelpMenu;
|
procedure TMainIDE.SetupHelpMenu;
|
||||||
@ -5153,6 +5157,11 @@ begin
|
|||||||
MainBuildBoss.RescanCompilerDefines(false,true,false,false);
|
MainBuildBoss.RescanCompilerDefines(false,true,false,false);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TMainIDE.mnuWindowManagerClicked(Sender: TObject);
|
||||||
|
begin
|
||||||
|
ShowEditorFileManagerForm;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TMainIDE.SaveEnvironment;
|
procedure TMainIDE.SaveEnvironment;
|
||||||
begin
|
begin
|
||||||
SaveDesktopSettings(EnvironmentOptions);
|
SaveDesktopSettings(EnvironmentOptions);
|
||||||
|
|||||||
@ -347,6 +347,8 @@ type
|
|||||||
|
|
||||||
// windows menu
|
// windows menu
|
||||||
//mnuWindow: TIDEMenuSection;
|
//mnuWindow: TIDEMenuSection;
|
||||||
|
//itmWindowManagers: TIDEMenuSection;
|
||||||
|
itmWindowManager: TIDEMenuCommand;
|
||||||
|
|
||||||
// help menu
|
// help menu
|
||||||
//mnuHelp: TIDEMenuSection;
|
//mnuHelp: TIDEMenuSection;
|
||||||
|
|||||||
@ -776,8 +776,16 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMainIDEBase.SetupWindowsMenu;
|
procedure TMainIDEBase.SetupWindowsMenu;
|
||||||
|
var
|
||||||
|
ParentMI: TIDEMenuSection;
|
||||||
begin
|
begin
|
||||||
|
with MainIDEBar do begin
|
||||||
|
CreateMenuSeparatorSection(mnuWindow,itmWindowManagers,'itmWindowManagers');
|
||||||
|
ParentMI:=itmWindowManagers;
|
||||||
|
CreateMenuItem(ParentMI,itmWindowManager,'itmWindowManager', lisEditorFileManager, 'pkg_files');
|
||||||
|
// Populated later with a list of editor names
|
||||||
|
CreateMenuSeparatorSection(mnuWindow,itmWindowLists,'itmWindowLists');
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMainIDEBase.SetupHelpMenu;
|
procedure TMainIDEBase.SetupHelpMenu;
|
||||||
@ -1044,11 +1052,10 @@ const
|
|||||||
|
|
||||||
function GetMenuItem(Index: Integer): TIDEMenuItem; inline;
|
function GetMenuItem(Index: Integer): TIDEMenuItem; inline;
|
||||||
begin
|
begin
|
||||||
if mnuWindow.Count > Index then
|
if itmWindowLists.Count > Index then
|
||||||
Result := mnuWindow.Items[Index]
|
Result := itmWindowLists.Items[Index]
|
||||||
else
|
else
|
||||||
Result := RegisterIDEMenuCommand(mnuWindow.GetPath,
|
Result := RegisterIDEMenuCommand(itmWindowLists.GetPath,'Window'+IntToStr(Index),'');
|
||||||
'Window'+IntToStr(Index),'');
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -1124,8 +1131,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
// remove unused menuitems
|
// remove unused menuitems
|
||||||
while mnuWindow.Count > ItemCount do
|
with itmWindowLists do
|
||||||
mnuWindow.Items[mnuWindow.Count-1].Free;
|
while Count > ItemCount do
|
||||||
|
Items[Count-1].Free;
|
||||||
|
|
||||||
// clean up
|
// clean up
|
||||||
WindowsList.Free;
|
WindowsList.Free;
|
||||||
|
|||||||
@ -366,7 +366,8 @@ var
|
|||||||
|
|
||||||
// windows menu
|
// windows menu
|
||||||
mnuWindow: TIDEMenuSection;
|
mnuWindow: TIDEMenuSection;
|
||||||
itmDesignerWindow: TIDEMenuSection;
|
itmWindowManagers: TIDEMenuSection;
|
||||||
|
itmWindowLists: TIDEMenuSection;
|
||||||
|
|
||||||
// help menu
|
// help menu
|
||||||
mnuHelp: TIDEMenuSection;
|
mnuHelp: TIDEMenuSection;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user