Skip to content

Commit 8c5729f

Browse files
committed
bk/2024-09-02-1148
1 parent 9b20b25 commit 8c5729f

7 files changed

+19
-19
lines changed

Src/DB/Chat/DelphiAIDev.DB.Chat.View.pas

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,17 +245,10 @@ constructor TDelphiAIDevDBChatView.Create(AOwner: TComponent);
245245
FConn := TC4DConn.New;
246246
FQueryExecuteSQL := FConn.Query.DataSource(DataSource1);
247247

248-
249248
Self.ConfScreenOnCreate;
250249
Self.FillMemoReturnWithFile;
251250
end;
252251

253-
procedure TDelphiAIDevDBChatView.DBGrid1DrawColumnCell(Sender: TObject;
254-
const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);
255-
begin
256-
TUtilsDBGrids.DrawColumnCell(TDBGrid(Sender), Rect, DataCol, Column, Vcl.Grids.TGridDrawState(State));
257-
end;
258-
259252
destructor TDelphiAIDevDBChatView.Destroy;
260253
begin
261254
Self.SaveMemoReturnInFile;
@@ -297,6 +290,12 @@ procedure TDelphiAIDevDBChatView.FormClose(Sender: TObject; var Action: TCloseAc
297290
Self.WaitingFormOFF;
298291
end;
299292

293+
procedure TDelphiAIDevDBChatView.DBGrid1DrawColumnCell(Sender: TObject;
294+
const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);
295+
begin
296+
TUtilsDBGrids.DrawColumnCell(TDBGrid(Sender), Rect, DataCol, Column, Vcl.Grids.TGridDrawState(State));
297+
end;
298+
300299
procedure TDelphiAIDevDBChatView.ConfScreenOnCreate;
301300
begin
302301
mmReturn.Lines.Clear;

Src/DB/Registers/DelphiAIDev.DB.Registers.Fields.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ procedure TDelphiAIDevDBRegistersFields.GetDataFromOtherObject(const AOtherObj:
7373
FLastReferences := AOtherObj.LastReferences;
7474
end;
7575

76+
7677
end.

Src/DelphiAIDev.Register.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ interface
44

55
uses
66
DelphiAIDev.Chat.View,
7+
DelphiAIDev.DB.Chat.View,
78
DelphiAIDev.MainMenu.Register,
89
DelphiAIDev.KeyboardBinding,
910
DelphiAIDev.PopupMenuProjects,
10-
DelphiAIDev.DB.Chat.View,
1111
DelphiAIDev.IDE.OTAIDENotifier;
1212

1313
procedure Register;
@@ -17,10 +17,10 @@ implementation
1717
procedure Register;
1818
begin
1919
DelphiAIDev.Chat.View.RegisterSelf;
20+
DelphiAIDev.DB.Chat.View.RegisterSelf;
2021
DelphiAIDev.MainMenu.Register.RegisterSelf;
2122
DelphiAIDev.KeyboardBinding.RefreshRegister;
2223
DelphiAIDev.PopupMenuProjects.RegisterSelf;
23-
DelphiAIDev.DB.Chat.View.RegisterSelf;
2424
DelphiAIDev.IDE.OTAIDENotifier.RegisterSelf;
2525
end;
2626

Src/MainMenu/DelphiAIDev.MainMenu.Clicks.pas

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ implementation
3131
DelphiAIDev.Settings.View,
3232
DelphiAIDev.View.About;
3333

34-
3534
class procedure TDelphiAIDevIDEMainMenuClicks.ChatClick(Sender: TObject);
3635
begin
3736
DelphiAIDev.Chat.View.DelphiAIDevChatViewShowDockableForm;

Src/Settings/DelphiAIDev.Settings.View.dfm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
207207
Top = 33
208208
Width = 667
209209
Height = 521
210-
ActivePage = TabSheet4
210+
ActivePage = TabSheet3
211211
TabOrder = 1
212212
object TabSheet1: TTabSheet
213213
Caption = 'Preferences'
@@ -981,7 +981,7 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
981981
Width = 82
982982
Height = 13
983983
Cursor = crHandPoint
984-
Hint = 'https://ollama.com/'
984+
Hint = 'https://ollama.com/download'
985985
Caption = 'Ollama Download'
986986
Font.Charset = DEFAULT_CHARSET
987987
Font.Color = clBlue

Src/Test/DelphiAIDev.Test.Client.pas

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ TDelphiAIDevTestClient = class
1010
FBairro: string;
1111
FNumero: Integer;
1212
FTelefone: string;
13-
FEmail: string;
14-
FSalario: Double;
13+
1514
public
1615
property Nome: string read FNome write FNome;
1716
property Endereco: string read FEndereco write FEndereco;
1817
property Bairro: string read FBairro write FBairro;
1918
property Numero: Integer read FNumero write FNumero;
2019
property Telefone: string read FTelefone write FTelefone;
21-
property Email: string read FEmail write FEmail;
22-
property Salario: Double read FSalario write FSalario;
2320

2421
procedure Clear;
2522
end;
@@ -28,7 +25,11 @@ implementation
2825

2926
procedure TDelphiAIDevTestClient.Clear;
3027
begin
31-
28+
FNome := '';
29+
FEndereco := '';
30+
FBairro := '';
31+
FNumero := 0;
32+
FTelefone := '';
3233
end;
3334

3435
end.

Src/Test/DelphiAIDev.Test.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ TDelphiAIDevTest = class
2323
property Email: string read FEmail write FEmail;
2424
property DataNascimento: TDateTime read FDataNascimento write FDataNascimento;
2525
property Apelido: string read FApelido write FApelido;
26-
27-
26+
property Cep: Integer read FCep write FCep;
2827
procedure Clear;
2928
end;
3029

3130
implementation
3231

3332
procedure TDelphiAIDevTest.Clear;
3433
begin
34+
3535
end;
3636

3737
end.

0 commit comments

Comments
 (0)