-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
ChatGPT.ImportExport.fmx
441 lines (441 loc) · 17.9 KB
/
ChatGPT.ImportExport.fmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
inherited FrameImportExport: TFrameImportExport
Size.Width = 772.000000000000000000
Size.Height = 703.000000000000000000
OnResize = FrameResize
OnResized = FrameResize
inherited RectangleBG: TRectangle
Size.Width = 772.000000000000000000
Size.Height = 703.000000000000000000
OnClick = RectangleBGClick
end
object LayoutClient: TLayout
Align = Center
Padding.Left = 10.000000000000000000
Padding.Top = 10.000000000000000000
Padding.Right = 10.000000000000000000
Padding.Bottom = 10.000000000000000000
Size.Width = 440.000000000000000000
Size.Height = 589.000000000000000000
Size.PlatformDefault = False
TabOrder = 0
object RectangleFrame: TRectangle
Align = Contents
Fill.Color = xFF202123
Locked = True
Size.Width = 440.000000000000000000
Size.Height = 589.000000000000000000
Size.PlatformDefault = False
Stroke.Kind = None
XRadius = 6.000000000000000000
YRadius = 6.000000000000000000
end
object LayoutActions: TLayout
Align = Bottom
Position.X = 10.000000000000000000
Position.Y = 533.000000000000000000
Size.Width = 420.000000000000000000
Size.Height = 46.000000000000000000
Size.PlatformDefault = False
TabOrder = 2
object ButtonOk: TButton
Align = Right
Position.X = 260.000000000000000000
Size.Width = 80.000000000000000000
Size.Height = 46.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'buttonstyle_menu'
TabOrder = 0
Text = 'OK'
TextSettings.Trimming = None
OnClick = ButtonOkClick
end
object ButtonCancel: TButton
Align = Right
Cancel = True
Position.X = 340.000000000000000000
Size.Width = 80.000000000000000000
Size.Height = 46.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'buttonstyle_menu'
TabOrder = 1
Text = 'CANCEL'
TextSettings.Trimming = None
OnClick = ButtonCancelClick
end
end
object LabelCaption: TLabel
Align = Top
AutoSize = True
StyledSettings = [Style]
Margins.Top = 10.000000000000000000
Position.X = 10.000000000000000000
Position.Y = 20.000000000000000000
Size.Width = 420.000000000000000000
Size.Height = 20.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Family = 'Roboto'
TextSettings.Font.Size = 16.000000000000000000
TextSettings.FontColor = xFFE9E9E9
TextSettings.WordWrap = False
Text = 'Import && Export'
TabOrder = 44
end
object VertScrollBox: TVertScrollBox
Align = Client
Padding.Right = 10.000000000000000000
Padding.Bottom = 10.000000000000000000
Margins.Right = -10.000000000000000000
Size.Width = 430.000000000000000000
Size.Height = 493.000000000000000000
Size.PlatformDefault = False
TabOrder = 21
Viewport.Width = 430.000000000000000000
Viewport.Height = 493.000000000000000000
object Layout1: TLayout
Align = Top
Margins.Left = 10.000000000000000000
Margins.Top = 20.000000000000000000
Margins.Right = 10.000000000000000000
Margins.Bottom = 20.000000000000000000
Position.X = 10.000000000000000000
Position.Y = 20.000000000000000000
Size.Width = 400.000000000000000000
Size.Height = 456.000000000000000000
Size.PlatformDefault = False
TabOrder = 0
object RadioButtonImport: TRadioButton
Align = Top
StyledSettings = [Family, Style, FontColor]
Margins.Top = 10.000000000000000000
Position.Y = 163.000000000000000000
Size.Width = 400.000000000000000000
Size.Height = 19.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'radiobuttonstyle_md'
TabOrder = 2
Text = 'Import'
TextSettings.Font.Size = 14.000000000000000000
OnChange = RadioButtonExportChange
end
object RadioButtonExport: TRadioButton
Align = Top
StyledSettings = [Family, Style, FontColor]
IsChecked = True
Margins.Top = 10.000000000000000000
Position.Y = 10.000000000000000000
Size.Width = 400.000000000000000000
Size.Height = 19.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'radiobuttonstyle_md'
TabOrder = 0
Text = 'Export'
TextSettings.Font.Size = 14.000000000000000000
OnChange = RadioButtonExportChange
end
object LayoutExport: TLayout
Align = Top
Margins.Left = 10.000000000000000000
Margins.Right = 10.000000000000000000
Position.X = 10.000000000000000000
Position.Y = 29.000000000000000000
Size.Width = 380.000000000000000000
Size.Height = 124.000000000000000000
Size.PlatformDefault = False
TabOrder = 1
object Label17: TLabel
Align = Top
AutoSize = True
StyledSettings = [Style]
Margins.Left = 5.000000000000000000
Margins.Top = 10.000000000000000000
Margins.Right = 5.000000000000000000
Margins.Bottom = 5.000000000000000000
Position.X = 5.000000000000000000
Position.Y = 90.000000000000000000
Size.Width = 370.000000000000000000
Size.Height = 15.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Family = 'Roboto'
TextSettings.FontColor = x78FFFFFF
Text = '*.txt, *.json'
TabOrder = 8
TabStop = False
end
object EditExport: TEdit
Touch.InteractiveGestures = [LongTap, DoubleTap]
Align = Top
StyleLookup = 'editstyle_clear'
TabOrder = 0
Position.Y = 47.000000000000000000
Margins.Top = 5.000000000000000000
Size.Width = 380.000000000000000000
Size.Height = 33.000000000000000000
Size.PlatformDefault = False
object ClearEditButtonExport: TClearEditButton
Touch.InteractiveGestures = [LongTap]
CanFocus = False
Cursor = crArrow
TextSettings.Trimming = None
Hint = 'Clear'
Position.X = 28.000000000000000000
Size.Width = 28.000000000000000000
Size.Height = 29.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'buttonstyle_clearmini'
TabOrder = 1
Text = 'buttonstyle_clearmini'
object Path2: TPath
Align = Center
Data.Path = {
0E00000000000000000060413333B33F010000009A9949410000000001000000
0000E0403333B340010000003333B33F0000000001000000000000003333B33F
010000003333B3400000E04001000000000000009A994941010000003333B33F
00006041010000000000E04066660641010000009A9949410000604101000000
000060419A99494101000000666606410000E04001000000000060413333B33F
03000000000060413333B33F}
Fill.Color = xFFACACBE
Locked = True
HitTest = False
Margins.Left = 2.000000000000000000
Size.Width = 13.000000000000000000
Size.Height = 13.000000000000000000
Size.PlatformDefault = False
Stroke.Kind = None
WrapMode = Fit
end
end
object EditButtonExportFile: TEditButton
Touch.InteractiveGestures = [LongTap]
CanFocus = False
Cursor = crArrow
TextSettings.Trimming = None
Size.Width = 28.000000000000000000
Size.Height = 29.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'editbuttonstyle'
TabOrder = 0
Text = 'editbuttonstyle'
OnClick = EditButtonExportFileClick
object Path1: TPath
Align = Center
Data.Path = {
2F0000000000000066260F446626874301000000CC4CEE436626E74302000000
9A99EB439A99EC4302000000CD0CE6430000F04302000000CD8CDF430000F043
01000000000080420000F043020000003433E5410000F0430200000000000000
85ABE14302000000000000000000D04301000000000000000000C04202000000
00000000D7A37242020000003333E54100000042020000000000804200000042
0100000000803543000000420200000052784643000000420200000000C05643
CFF71A42020000008FC2624300004B420100000033F389430000C04201000000
0000D0430000C04202000000CDACE1430000C042020000000000F043EC51F942
020000000000F04300002043010000000000F04300004043010000000000D843
00004043010000000000D84300002043020000000000D8430E2D174302000000
3769D44300001043020000000000D04300001043010000000000804300001043
01000000CDCC40434861A94202000000CDCC3D43EC51A34202000000CDCC3943
0000A04202000000008035430000A04201000000000080420000A04202000000
52B85C420000A0420200000000004042295CAE4202000000000040420000C042
01000000000040420000C04301000000EC51EE4233B37143020000003333F942
CDCC66430200000033B307430000604302000000CDCC13430000604301000000
000008440000604302000000CDEC0D440000604302000000CDCC114400007943
0200000066260F44662687430300000066260F4466268743}
Fill.Color = xFFACACBE
Locked = True
HitTest = False
Margins.Left = 2.000000000000000000
Size.Width = 13.000000000000000000
Size.Height = 13.000000000000000000
Size.PlatformDefault = False
Stroke.Kind = None
WrapMode = Fit
end
end
end
object Label9: TLabel
Align = Top
AutoSize = True
StyledSettings = [Style]
Margins.Top = 20.000000000000000000
Margins.Bottom = 5.000000000000000000
Position.Y = 20.000000000000000000
Size.Width = 380.000000000000000000
Size.Height = 17.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Family = 'Roboto'
TextSettings.Font.Size = 14.000000000000000000
TextSettings.FontColor = xB4FFFFFF
Text = 'File name'
TabOrder = 30
TabStop = False
end
end
object LayoutImport: TLayout
Align = Top
Margins.Left = 10.000000000000000000
Margins.Right = 10.000000000000000000
Position.X = 10.000000000000000000
Position.Y = 182.000000000000000000
Size.Width = 380.000000000000000000
Size.Height = 147.000000000000000000
Size.PlatformDefault = False
TabOrder = 3
object Label1: TLabel
Align = Top
AutoSize = True
StyledSettings = [Style]
Margins.Left = 5.000000000000000000
Margins.Top = 10.000000000000000000
Margins.Right = 5.000000000000000000
Margins.Bottom = 5.000000000000000000
Position.X = 5.000000000000000000
Position.Y = 90.000000000000000000
Size.Width = 370.000000000000000000
Size.Height = 15.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Family = 'Roboto'
TextSettings.FontColor = x78FFFFFF
Text = '*.json'
TabOrder = 8
TabStop = False
end
object EditImport: TEdit
Touch.InteractiveGestures = [LongTap, DoubleTap]
Align = Top
StyleLookup = 'editstyle_clear'
TabOrder = 0
Position.Y = 47.000000000000000000
Margins.Top = 5.000000000000000000
Size.Width = 380.000000000000000000
Size.Height = 33.000000000000000000
Size.PlatformDefault = False
object ClearEditButtonImport: TClearEditButton
Touch.InteractiveGestures = [LongTap]
CanFocus = False
Cursor = crArrow
TextSettings.Trimming = None
Hint = 'Clear'
Position.X = 28.000000000000000000
Size.Width = 28.000000000000000000
Size.Height = 29.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'buttonstyle_clearmini'
TabOrder = 1
Text = 'buttonstyle_clearmini'
object Path3: TPath
Align = Center
Data.Path = {
0E00000000000000000060413333B33F010000009A9949410000000001000000
0000E0403333B340010000003333B33F0000000001000000000000003333B33F
010000003333B3400000E04001000000000000009A994941010000003333B33F
00006041010000000000E04066660641010000009A9949410000604101000000
000060419A99494101000000666606410000E04001000000000060413333B33F
03000000000060413333B33F}
Fill.Color = xFFACACBE
Locked = True
HitTest = False
Margins.Left = 2.000000000000000000
Size.Width = 13.000000000000000000
Size.Height = 13.000000000000000000
Size.PlatformDefault = False
Stroke.Kind = None
WrapMode = Fit
end
end
object EditButtonImportFile: TEditButton
Touch.InteractiveGestures = [LongTap]
CanFocus = False
Cursor = crArrow
TextSettings.Trimming = None
Size.Width = 28.000000000000000000
Size.Height = 29.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'editbuttonstyle'
TabOrder = 0
Text = 'editbuttonstyle'
OnClick = EditButtonImportFileClick
object Path4: TPath
Align = Center
Data.Path = {
2F0000000000000066260F446626874301000000CC4CEE436626E74302000000
9A99EB439A99EC4302000000CD0CE6430000F04302000000CD8CDF430000F043
01000000000080420000F043020000003433E5410000F0430200000000000000
85ABE14302000000000000000000D04301000000000000000000C04202000000
00000000D7A37242020000003333E54100000042020000000000804200000042
0100000000803543000000420200000052784643000000420200000000C05643
CFF71A42020000008FC2624300004B420100000033F389430000C04201000000
0000D0430000C04202000000CDACE1430000C042020000000000F043EC51F942
020000000000F04300002043010000000000F04300004043010000000000D843
00004043010000000000D84300002043020000000000D8430E2D174302000000
3769D44300001043020000000000D04300001043010000000000804300001043
01000000CDCC40434861A94202000000CDCC3D43EC51A34202000000CDCC3943
0000A04202000000008035430000A04201000000000080420000A04202000000
52B85C420000A0420200000000004042295CAE4202000000000040420000C042
01000000000040420000C04301000000EC51EE4233B37143020000003333F942
CDCC66430200000033B307430000604302000000CDCC13430000604301000000
000008440000604302000000CDEC0D440000604302000000CDCC114400007943
0200000066260F44662687430300000066260F4466268743}
Fill.Color = xFFACACBE
Locked = True
HitTest = False
Margins.Left = 2.000000000000000000
Size.Width = 13.000000000000000000
Size.Height = 13.000000000000000000
Size.PlatformDefault = False
Stroke.Kind = None
WrapMode = Fit
end
end
end
object Label2: TLabel
Align = Top
AutoSize = True
StyledSettings = [Style]
Margins.Top = 20.000000000000000000
Margins.Bottom = 5.000000000000000000
Position.Y = 20.000000000000000000
Size.Width = 380.000000000000000000
Size.Height = 17.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Family = 'Roboto'
TextSettings.Font.Size = 14.000000000000000000
TextSettings.FontColor = xB4FFFFFF
Text = 'File name'
TabOrder = 29
TabStop = False
end
object Label3: TLabel
Align = Top
AutoSize = True
StyledSettings = [Style]
Margins.Left = 5.000000000000000000
Margins.Top = 10.000000000000000000
Margins.Right = 5.000000000000000000
Margins.Bottom = 5.000000000000000000
Position.X = 5.000000000000000000
Position.Y = 120.000000000000000000
Size.Width = 370.000000000000000000
Size.Height = 15.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Family = 'Roboto'
TextSettings.FontColor = x78FFFFFF
Text =
'The current chat data will not be deleted, but will be supplemen' +
'ted'
TabOrder = 10
TabStop = False
end
end
end
end
end
object SaveDialogExport: TSaveDialog
DefaultExt = '.json'
Filter = 'JSON|*.json|Text|*.txt'
Left = 664
Top = 176
end
object OpenDialogImport: TOpenDialog
DefaultExt = '.json'
Filter = 'JSON|*.json'
Left = 664
Top = 328
end
end