@@ -2,7 +2,7 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
2
2
Left = 0
3
3
Top = 0
4
4
Caption = ' Delphi AI Developer - Settings'
5
- ClientHeight = 516
5
+ ClientHeight = 537
6
6
ClientWidth = 632
7
7
Color = clBtnFace
8
8
Font.Charset = DEFAULT_CHARSET
@@ -18,100 +18,32 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
18
18
OnShow = FormShow
19
19
PixelsPerInch = 96
20
20
TextHeight = 13
21
- object pnBottom: TPanel
22
- Left = 0
23
- Top = 481
24
- Width = 632
25
- Height = 35
26
- Align = alBottom
27
- BevelEdges = [beLeft, beRight, beBottom]
28
- BevelOuter = bvNone
29
- Padding.Left = 2
30
- Padding.Top = 2
31
- Padding.Right = 2
32
- Padding.Bottom = 2
33
- ParentBackground = False
34
- TabOrder = 0
35
- object lbRestoreDefaults: TLabel
36
- AlignWithMargins = True
37
- Left = 18
38
- Top = 12
39
- Width = 80
40
- Height = 18
41
- Cursor = crHandPoint
42
- Margins.Left = 16
43
- Margins.Top = 10
44
- Align = alLeft
45
- Caption = ' Restore defaults'
46
- Font.Charset = DEFAULT_CHARSET
47
- Font.Color = clBlue
48
- Font.Height = -11
49
- Font.Name = ' Tahoma'
50
- Font.Style = []
51
- ParentFont = False
52
- ParentShowHint = False
53
- ShowHint = True
54
- Layout = tlCenter
55
- OnClick = lbRestoreDefaultsClick
56
- ExplicitHeight = 13
57
- end
58
- object btnConfirm: TButton
59
- AlignWithMargins = True
60
- Left = 404
61
- Top = 2
62
- Width = 110
63
- Height = 31
64
- Cursor = crHandPoint
65
- Margins.Left = 0
66
- Margins.Top = 0
67
- Margins.Bottom = 0
68
- Align = alRight
69
- Caption = ' Confirm'
70
- TabOrder = 0
71
- OnClick = btnConfirmClick
72
- end
73
- object btnClose: TButton
74
- AlignWithMargins = True
75
- Left = 517
76
- Top = 2
77
- Width = 110
78
- Height = 31
79
- Cursor = crHandPoint
80
- Margins.Left = 0
81
- Margins.Top = 0
82
- Margins.Bottom = 0
83
- Align = alRight
84
- Caption = ' Close'
85
- TabOrder = 1
86
- OnClick = btnCloseClick
87
- end
88
- end
89
- object pnlMain: TPanel
21
+ object pnBackAll: TPanel
90
22
Left = 0
91
23
Top = 0
92
24
Width = 632
93
- Height = 481
25
+ Height = 537
94
26
Align = alClient
95
27
BevelOuter = bvNone
96
- TabOrder = 1
28
+ TabOrder = 0
97
29
object pnBody: TPanel
98
30
Left = 0
99
31
Top = 0
100
32
Width = 632
101
- Height = 481
33
+ Height = 502
102
34
Align = alClient
103
35
BevelOuter = bvNone
104
36
ParentBackground = False
105
37
TabOrder = 0
106
38
object gBoxGemini: TGroupBox
107
39
Left = 0
108
- Top = 84
40
+ Top = 110
109
41
Width = 632
110
42
Height = 163
111
43
Align = alTop
112
44
Caption = ' Gemini (Google) '
113
45
ParentBackground = False
114
- TabOrder = 0
46
+ TabOrder = 1
115
47
object pnGeminiBack: TPanel
116
48
AlignWithMargins = True
117
49
Left = 5
@@ -249,14 +181,14 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
249
181
Width = 563
250
182
Height = 21
251
183
PasswordChar = ' *'
252
- TabOrder = 1
184
+ TabOrder = 2
253
185
end
254
186
object cBoxModelGemini: TComboBox
255
187
Left = 267
256
188
Top = 20
257
189
Width = 333
258
190
Height = 21
259
- TabOrder = 2
191
+ TabOrder = 1
260
192
Items.Strings = (
261
193
' v1/models/gemini-1.5-flash:generateContent'
262
194
' v1beta/models/gemini-pro:generateContent'
@@ -268,49 +200,66 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
268
200
Left = 0
269
201
Top = 0
270
202
Width = 632
271
- Height = 84
203
+ Height = 110
272
204
Align = alTop
273
205
Caption = ' Preferences '
274
206
ParentBackground = False
275
- TabOrder = 1
207
+ TabOrder = 0
276
208
object Label11: TLabel
277
- Left = 17
209
+ Left = 272
278
210
Top = 23
279
211
Width = 48
280
212
Height = 13
281
213
Caption = ' AI default'
282
214
end
215
+ object Label4: TLabel
216
+ Left = 21
217
+ Top = 23
218
+ Width = 133
219
+ Height = 13
220
+ Caption = ' Language used in questions'
221
+ end
283
222
object cBoxAIDefault: TComboBox
284
- Left = 17
223
+ Left = 272
285
224
Top = 38
286
- Width = 249
225
+ Width = 333
287
226
Height = 21
288
227
Style = csDropDownList
289
- TabOrder = 0
228
+ TabOrder = 1
290
229
Items.Strings = (
291
- ' Gemini'
292
- ' OpenAI (ChatGPT)' )
230
+ ' ' )
293
231
end
294
232
object ColorBoxColorHighlightCodeDelphi: TColorBox
295
- Left = 472
296
- Top = 38
233
+ Left = 218
234
+ Top = 72
297
235
Width = 133
298
236
Height = 22
299
- TabOrder = 1
237
+ TabOrder = 3
300
238
end
301
239
object ckColorHighlightCodeDelphiUse: TCheckBox
302
- Left = 272
303
- Top = 40
304
- Width = 197
240
+ Left = 21
241
+ Top = 74
242
+ Width = 194
305
243
Height = 17
306
244
Caption = ' Color to highlight Delphi/Pascal code'
307
245
TabOrder = 2
308
246
OnClick = ckColorHighlightCodeDelphiUseClick
309
247
end
248
+ object cBoxLanguageQuestions: TComboBox
249
+ Left = 21
250
+ Top = 38
251
+ Width = 249
252
+ Height = 21
253
+ Hint = ' What is the standard language for questions?'
254
+ Style = csDropDownList
255
+ ParentShowHint = False
256
+ ShowHint = True
257
+ TabOrder = 0
258
+ end
310
259
end
311
260
object gBoxOpenAI: TGroupBox
312
261
Left = 0
313
- Top = 247
262
+ Top = 273
314
263
Width = 632
315
264
Height = 163
316
265
Align = alTop
@@ -342,7 +291,7 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
342
291
Caption = ' API key'
343
292
end
344
293
object Label2: TLabel
345
- Left = 476
294
+ Left = 478
346
295
Top = 5
347
296
Width = 28
348
297
Height = 13
@@ -436,15 +385,15 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
436
385
Width = 563
437
386
Height = 21
438
387
PasswordChar = ' *'
439
- TabOrder = 1
388
+ TabOrder = 2
440
389
end
441
390
object cBoxModelOpenAI: TComboBox
442
391
Left = 478
443
392
Top = 21
444
393
Width = 122
445
394
Height = 21
446
395
Style = csDropDownList
447
- TabOrder = 2
396
+ TabOrder = 1
448
397
Items.Strings = (
449
398
' gpt-3.5-turbo'
450
399
' gpt-3.5-turbo-16k'
@@ -454,5 +403,76 @@ object DelphiAIDevSettingsView: TDelphiAIDevSettingsView
454
403
end
455
404
end
456
405
end
406
+ object pnBottom: TPanel
407
+ Left = 0
408
+ Top = 502
409
+ Width = 632
410
+ Height = 35
411
+ Margins.Left = 0
412
+ Margins.Top = 0
413
+ Margins.Right = 0
414
+ Margins.Bottom = 0
415
+ Align = alBottom
416
+ BevelEdges = [beLeft, beRight, beBottom]
417
+ BevelOuter = bvNone
418
+ Padding.Top = 2
419
+ Padding.Right = 2
420
+ Padding.Bottom = 2
421
+ ParentBackground = False
422
+ TabOrder = 1
423
+ object lbRestoreDefaults: TLabel
424
+ AlignWithMargins = True
425
+ Left = 16
426
+ Top = 12
427
+ Width = 80
428
+ Height = 18
429
+ Cursor = crHandPoint
430
+ Margins.Left = 16
431
+ Margins.Top = 10
432
+ Align = alLeft
433
+ Caption = ' Restore defaults'
434
+ Font.Charset = DEFAULT_CHARSET
435
+ Font.Color = clBlue
436
+ Font.Height = -11
437
+ Font.Name = ' Tahoma'
438
+ Font.Style = []
439
+ ParentFont = False
440
+ ParentShowHint = False
441
+ ShowHint = True
442
+ Layout = tlCenter
443
+ OnClick = lbRestoreDefaultsClick
444
+ ExplicitHeight = 13
445
+ end
446
+ object btnConfirm: TButton
447
+ AlignWithMargins = True
448
+ Left = 404
449
+ Top = 2
450
+ Width = 110
451
+ Height = 31
452
+ Cursor = crHandPoint
453
+ Margins.Left = 0
454
+ Margins.Top = 0
455
+ Margins.Bottom = 0
456
+ Align = alRight
457
+ Caption = ' Confirm'
458
+ TabOrder = 0
459
+ OnClick = btnConfirmClick
460
+ end
461
+ object btnClose: TButton
462
+ AlignWithMargins = True
463
+ Left = 517
464
+ Top = 2
465
+ Width = 110
466
+ Height = 31
467
+ Cursor = crHandPoint
468
+ Margins.Left = 0
469
+ Margins.Top = 0
470
+ Margins.Bottom = 0
471
+ Align = alRight
472
+ Caption = ' Close'
473
+ TabOrder = 1
474
+ OnClick = btnCloseClick
475
+ end
476
+ end
457
477
end
458
478
end
0 commit comments