Skip to content

Commit be5cd83

Browse files
committed
refactor/rename-Shortcuts-to-KeyboardBinding
1 parent a9e6595 commit be5cd83

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Package/DelphiAIDeveloper.dpk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ contains
6868
DelphiAIDev.ModuleCreator in '..\Src\ModuleCreator\DelphiAIDev.ModuleCreator.pas',
6969
DelphiAIDev.ModuleCreator.Interfaces in '..\Src\ModuleCreator\DelphiAIDev.ModuleCreator.Interfaces.pas',
7070
DelphiAIDev.IDE.ImageListMain in '..\Src\IDE\ImageListMain\DelphiAIDev.IDE.ImageListMain.pas',
71-
DelphiAIDev.IDE.Shortcuts in '..\Src\IDE\Shortcuts\DelphiAIDev.IDE.Shortcuts.pas',
71+
DelphiAIDev.KeyboardBinding in '..\Src\KeyboardBinding\DelphiAIDev.KeyboardBinding.pas',
7272
DelphiAIDev.Utils.CnWizard in '..\Src\Utils\DelphiAIDev.Utils.CnWizard.pas',
7373
DelphiAIDev.DB.Registers.View in '..\Src\DB\Registers\DelphiAIDev.DB.Registers.View.pas' {DelphiAIDevDBRegistersView},
7474
DelphiAIDev.Utils.ListView in '..\Src\Utils\DelphiAIDev.Utils.ListView.pas',

Package/DelphiAIDeveloper.dproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
<DCCReference Include="..\Src\ModuleCreator\DelphiAIDev.ModuleCreator.pas"/>
168168
<DCCReference Include="..\Src\ModuleCreator\DelphiAIDev.ModuleCreator.Interfaces.pas"/>
169169
<DCCReference Include="..\Src\IDE\ImageListMain\DelphiAIDev.IDE.ImageListMain.pas"/>
170-
<DCCReference Include="..\Src\IDE\Shortcuts\DelphiAIDev.IDE.Shortcuts.pas"/>
170+
<DCCReference Include="..\Src\KeyboardBinding\DelphiAIDev.KeyboardBinding.pas"/>
171171
<DCCReference Include="..\Src\Utils\DelphiAIDev.Utils.CnWizard.pas"/>
172172
<DCCReference Include="..\Src\DB\Registers\DelphiAIDev.DB.Registers.View.pas">
173173
<Form>DelphiAIDevDBRegistersView</Form>

Src/DelphiAIDev.Register.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ interface
55
uses
66
DelphiAIDev.Chat.View,
77
DelphiAIDev.MainMenu.Register,
8-
DelphiAIDev.IDE.Shortcuts,
8+
DelphiAIDev.KeyboardBinding,
99
DelphiAIDev.PopupMenuProjects,
1010
DelphiAIDev.DB.Chat.View;
1111

@@ -17,7 +17,7 @@ procedure Register;
1717
begin
1818
DelphiAIDev.Chat.View.RegisterSelf;
1919
DelphiAIDev.MainMenu.Register.RegisterSelf;
20-
DelphiAIDev.IDE.Shortcuts.RefreshRegister;
20+
DelphiAIDev.KeyboardBinding.RefreshRegister;
2121
DelphiAIDev.PopupMenuProjects.RegisterSelf;
2222
DelphiAIDev.DB.Chat.View.RegisterSelf;
2323
end;

Src/IDE/Shortcuts/DelphiAIDev.IDE.Shortcuts.pas renamed to Src/KeyboardBinding/DelphiAIDev.KeyboardBinding.pas

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
unit DelphiAIDev.IDE.Shortcuts;
1+
unit DelphiAIDev.KeyboardBinding;
22

33
interface
44

@@ -12,7 +12,7 @@ interface
1212
DelphiAIDev.Chat.View;
1313

1414
type
15-
TDelphiAIDevIDEShortcuts = class(TNotifierObject, IOTAKeyboardBinding)
15+
TDelphiAIDevKeyboardBinding = class(TNotifierObject, IOTAKeyboardBinding)
1616
private
1717
//procedure KeyProcBlockReturn(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
1818
procedure KeyProcBlockReturnAndAlt(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
@@ -39,7 +39,7 @@ implementation
3939
procedure RegisterSelf;
4040
begin
4141
if Index < 0 then
42-
Index := TUtilsOTA.GetIOTAKeyboardServices.AddKeyboardBinding(TDelphiAIDevIDEShortcuts.New);
42+
Index := TUtilsOTA.GetIOTAKeyboardServices.AddKeyboardBinding(TDelphiAIDevKeyboardBinding.New);
4343
end;
4444

4545
procedure UnRegisterSelf;
@@ -57,27 +57,27 @@ procedure RefreshRegister;
5757
RegisterSelf;
5858
end;
5959

60-
class function TDelphiAIDevIDEShortcuts.New: IOTAKeyboardBinding;
60+
class function TDelphiAIDevKeyboardBinding.New: IOTAKeyboardBinding;
6161
begin
6262
Result := Self.Create;
6363
end;
6464

65-
function TDelphiAIDevIDEShortcuts.GetBindingType: TBindingType;
65+
function TDelphiAIDevKeyboardBinding.GetBindingType: TBindingType;
6666
begin
6767
Result := btPartial;
6868
end;
6969

70-
function TDelphiAIDevIDEShortcuts.GetDisplayName: string;
70+
function TDelphiAIDevKeyboardBinding.GetDisplayName: string;
7171
begin
7272
Result := Self.ClassName;
7373
end;
7474

75-
function TDelphiAIDevIDEShortcuts.GetName: string;
75+
function TDelphiAIDevKeyboardBinding.GetName: string;
7676
begin
7777
Result := Self.ClassName;
7878
end;
7979

80-
procedure TDelphiAIDevIDEShortcuts.BindKeyboard(const BindingServices: IOTAKeyBindingServices);
80+
procedure TDelphiAIDevKeyboardBinding.BindKeyboard(const BindingServices: IOTAKeyBindingServices);
8181
begin
8282
// if TUtilsOTA.CurrentProjectIsDelphiAIDeveloperDPROJ then
8383
// Exit;
@@ -86,7 +86,7 @@ procedure TDelphiAIDevIDEShortcuts.BindKeyboard(const BindingServices: IOTAKeyBi
8686
BindingServices.AddKeyBinding([Shortcut(VK_RETURN, [ssAlt])], Self.KeyProcBlockReturnAndAlt, nil);
8787
end;
8888

89-
//procedure TDelphiAIDevIDEShortcuts.KeyProcBlockReturn(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
89+
//procedure TDelphiAIDevKeyboardBinding.KeyProcBlockReturn(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
9090
//begin
9191
// if KeyCode <> Shortcut(VK_RETURN, []) then
9292
// Exit;
@@ -95,7 +95,7 @@ procedure TDelphiAIDevIDEShortcuts.BindKeyboard(const BindingServices: IOTAKeyBi
9595
// BindingResult := TKeyBindingResult.krNextProc; //krUnhandled;
9696
//end;
9797

98-
procedure TDelphiAIDevIDEShortcuts.KeyProcBlockReturnAndAlt(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
98+
procedure TDelphiAIDevKeyboardBinding.KeyProcBlockReturnAndAlt(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
9999
var
100100
LTextCurrentLineOrBlock: string;
101101
begin

0 commit comments

Comments
 (0)