File tree Expand file tree Collapse file tree 3 files changed +35
-13
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +35
-13
lines changed
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ TDelphiAIDevKeyboardBinding = class(TNotifierObject, IOTAKeyboardBinding)
21
21
procedure KeyAltHome (const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
22
22
procedure KeyTab (const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
23
23
procedure CodeCompletionSearch (const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
24
+ // procedure HandleKeyBinding(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
24
25
protected
25
26
function GetBindingType : TBindingType;
26
27
function GetDisplayName : string;
@@ -98,8 +99,24 @@ procedure TDelphiAIDevKeyboardBinding.BindKeyboard(const BindingServices: IOTAKe
98
99
99
100
BindingServices.AddKeyBinding([Shortcut(VK_TAB, [])], Self.KeyTab, nil );
100
101
BindingServices.AddKeyBinding([Shortcut(VK_HOME, [ssAlt])], Self.KeyAltHome, nil );
102
+
103
+ // //**
104
+ // BindingServices.AddKeyBinding([], HandleKeyBinding, nil);
105
+ // //**
101
106
end ;
102
107
108
+ // //**
109
+ // procedure TDelphiAIDevKeyboardBinding.HandleKeyBinding(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
110
+ // var
111
+ // Key: Word;
112
+ // begin
113
+ // //Key := Word(KeyCode and $FF); // Extrai o código da tecla
114
+ // //TUtils.AddLog('Tecla pressionada: ' + IntToStr(Key));
115
+ // TUtils.ShowMsg('Aqui');
116
+ // BindingResult := TKeyBindingResult.krNextProc
117
+ // end;
118
+ // //**
119
+
103
120
procedure TDelphiAIDevKeyboardBinding.CodeCompletionSearch (const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
104
121
begin
105
122
try
Original file line number Diff line number Diff line change @@ -6,29 +6,34 @@ interface
6
6
TDelphiAIDevTestClient = class
7
7
private
8
8
FNome: string;
9
+ FCPF: string;
9
10
FEndereco: string;
10
- FBairro: string;
11
- FNumero: Integer;
12
- FTelefone: string;
11
+ FIdade: Integer;
13
12
public
13
+ constructor Create(ANome: string; ACpf: string; AEndereco: string);
14
14
property Nome: string read FNome write FNome;
15
+ property CPF: string read FCPF write FCPF;
15
16
property Endereco: string read FEndereco write FEndereco;
16
- property Bairro: string read FBairro write FBairro;
17
- property Numero: Integer read FNumero write FNumero;
18
- property Telefone: string read FTelefone write FTelefone;
19
-
20
- procedure Clear ;
17
+ property Idade: Integer read FIdade write FIdade;
18
+ procedure LimparVariaveis ;
21
19
end ;
22
20
23
21
implementation
24
22
25
- procedure TDelphiAIDevTestClient.Clear ;
23
+
24
+ { TDelphiAIDevTestClient }
25
+
26
+ constructor TDelphiAIDevTestClient.Create(ANome, ACpf, AEndereco: string);
27
+ begin
28
+
29
+ end ;
30
+
31
+ procedure TDelphiAIDevTestClient.LimparVariaveis ;
26
32
begin
27
33
FNome := ' ' ;
34
+ FCPF := ' ' ;
28
35
FEndereco := ' ' ;
29
- FBairro := ' ' ;
30
- FNumero := 0 ;
31
- FTelefone := ' ' ;
36
+ FIdade := 0 ;
32
37
end ;
33
38
34
39
end .
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ class procedure TUtils.AddLogInFileTxt(const AMessage: string; const ANameFile:
236
236
LTextFile: TextFile;
237
237
begin
238
238
try
239
- if not ( DirectoryExists(DIRECTORY) ) then
239
+ if not DirectoryExists(DIRECTORY) then
240
240
ForceDirectories(DIRECTORY);
241
241
242
242
LFileName := DIRECTORY + ANameFile + ' .txt' ;
You can’t perform that action at this time.
0 commit comments