From dea040f1e554ae91a13354613fc7b7fffbe1f839 Mon Sep 17 00:00:00 2001 From: juha Date: Sun, 19 Feb 2012 13:00:01 +0000 Subject: [PATCH] IDE: Rename TKeyCommandRelationList.CreateDefaultMapping to DefineCommandCategories git-svn-id: trunk@35480 - --- ide/keymapping.pp | 4 ++-- ide/main.pp | 2 +- ideintf/idecommands.pas | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ide/keymapping.pp b/ide/keymapping.pp index fb16b089b5..9cb7406375 100644 --- a/ide/keymapping.pp +++ b/ide/keymapping.pp @@ -147,7 +147,7 @@ type public constructor Create; destructor Destroy; override; - procedure CreateDefaultMapping; + procedure DefineCommandCategories; procedure Clear; function Count: integer; function CategoryCount: integer; override; @@ -2390,7 +2390,7 @@ begin inherited Destroy; end; -procedure TKeyCommandRelationList.CreateDefaultMapping; +procedure TKeyCommandRelationList.DefineCommandCategories; // Define a category for each command var C: TIDECommandCategory; diff --git a/ide/main.pp b/ide/main.pp index b139703587..c843e668f7 100644 --- a/ide/main.pp +++ b/ide/main.pp @@ -2159,7 +2159,7 @@ begin IDECmdScopeSrcEditOnlySyncroEdit.AddWindowClass(TLazSynPluginSyncroEditForm); IDECmdScopeSrcEditOnlySyncroEditOff.AddWindowClass(TLazSynPluginSyncroEditFormOff); - EditorOpts.KeyMap.CreateDefaultMapping; + EditorOpts.KeyMap.DefineCommandCategories; end; procedure TMainIDE.SetupIDEMsgQuickFixItems; diff --git a/ideintf/idecommands.pas b/ideintf/idecommands.pas index c289920c44..eba39b4c95 100644 --- a/ideintf/idecommands.pas +++ b/ideintf/idecommands.pas @@ -47,7 +47,7 @@ const 1. Add a constant with a unique value in the list below. 2. Add it to GetDefaultKeyForCommand to define the default keys+shiftstates 3. Add it to EditorCommandToDescriptionString to define the description - 4. Add it to TKeyCommandRelationList.CreateDefaultMapping to define the category. + 4. Add it to TKeyCommandRelationList.DefineCommandCategories to define the category. } ecNone = 0;