-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainform.lfm
623 lines (623 loc) · 17.2 KB
/
mainform.lfm
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
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
object frmMain: TfrmMain
Left = 497
Height = 622
Top = 180
Width = 983
Caption = 'LazRestDebugger v2022.1'
ClientHeight = 622
ClientWidth = 983
OnCreate = FormCreate
Position = poScreenCenter
LCLVersion = '2.2.0.4'
object tlbMain: TToolBar
Left = 0
Height = 24
Top = 0
Width = 983
AutoSize = True
Images = il16
List = True
ShowCaptions = True
TabOrder = 0
object btnSendRequest: TToolButton
Left = 1
Top = 2
Caption = 'Send Request'
ImageIndex = 0
OnClick = btnSendRequestClick
end
object ToolButton1: TToolButton
Left = 98
Height = 22
Top = 2
Caption = 'ToolButton1'
Style = tbsSeparator
end
object btnNewRequest: TToolButton
Left = 106
Top = 2
Caption = 'New Request'
ImageIndex = 1
OnClick = btnNewRequestClick
end
object btnLoadRequest: TToolButton
Left = 201
Top = 2
Caption = 'Load Request'
ImageIndex = 2
OnClick = btnLoadRequestClick
end
object btnSaveRequest: TToolButton
Left = 298
Top = 2
Caption = 'Save Request'
ImageIndex = 3
OnClick = btnSaveRequestClick
end
object ToolButton2: TToolButton
Left = 393
Height = 22
Top = 2
Caption = 'ToolButton2'
Style = tbsSeparator
end
end
object gbRequest: TGroupBox
Left = 8
Height = 304
Top = 32
Width = 967
Align = alTop
BorderSpacing.Around = 8
Caption = 'Request'
ClientHeight = 284
ClientWidth = 963
Font.Style = [fsBold]
ParentFont = False
TabOrder = 1
object pgcRequest: TPageControl
Left = 8
Height = 268
Top = 8
Width = 947
ActivePage = tsParameters
Align = alClient
BorderSpacing.Around = 8
ParentFont = False
TabIndex = 1
TabOrder = 0
object tsRequest: TTabSheet
Caption = 'Request'
ClientHeight = 240
ClientWidth = 939
object cbbMethod: TComboBox
Left = 8
Height = 23
Top = 24
Width = 100
ItemHeight = 15
ItemIndex = 0
Items.Strings = (
'POST'
'PUT'
'GET'
'DELETE'
'PATCH'
)
Style = csDropDownList
TabOrder = 0
Text = 'POST'
end
object lblMethod: TLabel
Left = 8
Height = 15
Top = 8
Width = 45
Caption = 'Method:'
end
object lblUrl: TLabel
Left = 112
Height = 15
Top = 8
Width = 18
Caption = 'Url:'
end
object cbbUrl: TComboBox
Left = 112
Height = 23
Top = 24
Width = 817
Anchors = [akTop, akLeft, akRight]
ItemHeight = 15
Items.Strings = (
'https://api.brt.it/rest/v1/shipments/shipment'
)
TabOrder = 1
Text = 'https://collaudo-wsrest.sda.it/SPEDIZIONE-WS-WEB/rest/spedizioneService'
end
object lblContentType: TLabel
Left = 8
Height = 15
Top = 56
Width = 75
Caption = 'Content-Type:'
end
object cbbContentType: TComboBox
Left = 8
Height = 23
Top = 72
Width = 921
Anchors = [akTop, akLeft, akRight]
ItemHeight = 15
ItemIndex = 1
Items.Strings = (
'application/atom+xml'
'application/json'
'application/xml'
'application/x-www-form-urlencoded'
'text/html'
)
TabOrder = 2
Text = 'application/json'
end
object lblBody: TLabel
Left = 8
Height = 15
Top = 108
Width = 30
Caption = 'Body:'
end
object mmoBodyRequest: TMemo
Left = 8
Height = 106
Top = 128
Width = 921
Anchors = [akTop, akLeft, akRight, akBottom]
Lines.Strings = (
'{"formatoStampa":"A6","ldv":{"datiSpedizione":{"accessori":{},"codiceServizio":"S09","datiGenerali":{"contenuto":"PET","dataSpedizione":"24\/03\/2022","note":"","numRifInterno":"171-0603152-6824344"},"sezioneColli":{"colli":[{"altezza":15,"larghezza":50,"peso":12,"profondita":40}]}},"destinatario":{"cap":"45100","codNazione":"ITA","email":"521474djr1w3g12@marketplace.amazon.it","identificativoFiscale":"","indirizzo":"VIA CRISTOFORO COLOMBO 22","intestatario":"LUISA GUSELLA","localita":"ROVIGO","provincia":"RO","referente":"LUISA GUSELLA","telefono":"3402773031","tipoAnagrafica":"S"},"mittente":{"cap":"04017","codNazione":"ITA","email":"info@agrozootecnica.com","identificativoFiscale":"02091010591","indirizzo":"VIA MONTENERO 27","intestatario":"AGROZOOTECNICA DI FERRANTE MAURIZIO","localita":"SAN FELICE CIRCEO","provincia":"LT","referente":"SIG. MAURIZIO FERRANTE","telefono":"0773545049","tipoAnagrafica":"S"}}}'
)
ScrollBars = ssAutoBoth
TabOrder = 3
end
end
object tsParameters: TTabSheet
Caption = 'Parameters'
ClientHeight = 240
ClientWidth = 939
object lblResource: TLabel
Left = 8
Height = 15
Top = 8
Width = 51
Caption = 'Resource:'
end
object edtResource: TEdit
Left = 8
Height = 23
Top = 24
Width = 920
TabOrder = 0
end
object lblRequestParameters: TLabel
Left = 8
Height = 15
Top = 60
Width = 107
Caption = 'Request Parameters:'
end
object lvParameters: TListView
Left = 8
Height = 152
Top = 80
Width = 816
Anchors = [akTop, akLeft, akRight, akBottom]
AutoSort = False
Columns = <
item
Caption = 'Kind'
Width = 100
end
item
Caption = 'Name'
Width = 150
end
item
Caption = 'Value'
Width = 430
end
item
Alignment = taCenter
Caption = 'Not Encoded'
Width = 100
end>
GridLines = True
HideSelection = False
ReadOnly = True
RowSelect = True
TabOrder = 1
ViewStyle = vsReport
OnDblClick = lvParametersDblClick
end
object btnAddParam: TButton
Left = 832
Height = 25
Top = 80
Width = 96
Anchors = [akTop, akRight]
Caption = 'Add'
OnClick = btnAddParamClick
TabOrder = 2
end
object btnEditParam: TButton
Left = 832
Height = 25
Top = 112
Width = 96
Anchors = [akTop, akRight]
Caption = 'Edit'
OnClick = btnEditParamClick
TabOrder = 3
end
object btnDeleteParam: TButton
Left = 832
Height = 25
Top = 144
Width = 96
Anchors = [akTop, akRight]
Caption = 'Delete'
OnClick = btnDeleteParamClick
TabOrder = 4
end
object btnPaste: TButton
Left = 832
Height = 25
Top = 176
Width = 96
Anchors = [akTop, akRight]
Caption = 'Paste'
OnClick = btnPasteClick
TabOrder = 5
end
object btnLoad: TButton
Left = 832
Height = 25
Top = 207
Width = 96
Anchors = [akTop, akRight]
Caption = 'Load'
OnClick = btnLoadClick
TabOrder = 6
end
end
object tsAuthentication: TTabSheet
Caption = 'Authentication'
ClientHeight = 240
ClientWidth = 939
object lblMethod1: TLabel
Left = 8
Height = 15
Top = 8
Width = 45
Caption = 'Method:'
end
object cbbMethodAuth: TComboBox
Left = 8
Height = 23
Top = 24
Width = 100
ItemHeight = 15
ItemIndex = 2
Items.Strings = (
'NONE'
'SIMPLE'
'BASIC'
'OAUTH'
'OAUTH2'
)
Style = csDropDownList
TabOrder = 0
Text = 'BASIC'
end
object lblUsername: TLabel
Left = 112
Height = 15
Top = 8
Width = 56
Caption = 'Username:'
end
object edtUsername: TEdit
Left = 112
Height = 23
Top = 24
Width = 144
TabOrder = 1
Text = 'DEM210175'
end
object lblPassword: TLabel
Left = 112
Height = 15
Top = 56
Width = 53
Caption = 'Password:'
end
object edtPassword: TEdit
Left = 112
Height = 23
Top = 72
Width = 144
TabOrder = 2
Text = 'Gennaio10!'
end
object lblUsername1: TLabel
Left = 272
Height = 15
Top = 8
Width = 80
Caption = 'Username-Key:'
end
object edtUsernameKey: TEdit
Left = 272
Height = 23
Top = 24
Width = 144
TabOrder = 3
end
object lblPassword1: TLabel
Left = 272
Height = 15
Top = 56
Width = 77
Caption = 'Password-Key:'
end
object edtPasswordKey: TEdit
Left = 272
Height = 23
Top = 72
Width = 144
TabOrder = 4
end
object lblClientID: TLabel
Left = 432
Height = 15
Top = 8
Width = 50
Caption = 'Client-ID:'
end
object edtClientID: TEdit
Left = 432
Height = 23
Top = 24
Width = 144
TabOrder = 5
end
object lblClientSecret: TLabel
Left = 432
Height = 15
Top = 56
Width = 71
Caption = 'Client-Secret:'
end
object edtClientSecret: TEdit
Left = 432
Height = 23
Top = 72
Width = 144
TabOrder = 6
end
object lblAccessToken: TLabel
Left = 592
Height = 15
Top = 8
Width = 75
Caption = 'Access-Token:'
end
object edtAccessToken: TEdit
Left = 592
Height = 23
Top = 24
Width = 144
TabOrder = 7
end
object lblRequestToken: TLabel
Left = 592
Height = 15
Top = 56
Width = 81
Caption = 'Request-Token:'
end
object edtRequestToken: TEdit
Left = 592
Height = 23
Top = 72
Width = 144
TabOrder = 8
end
end
object tsConnection: TTabSheet
Caption = 'Connection'
ClientHeight = 240
ClientWidth = 939
object lblUserAgent: TLabel
Left = 8
Height = 15
Top = 8
Width = 61
Caption = 'User Agent:'
end
object cbbUserAgent: TComboBox
Left = 8
Height = 23
Top = 24
Width = 920
Anchors = [akTop, akLeft, akRight]
ItemHeight = 15
ItemIndex = 0
Items.Strings = (
'Lazarus RESTClient/1.0'
'Embarcadero RESTClient/1.0'
'Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.42000)'
)
TabOrder = 0
Text = 'Lazarus RESTClient/1.0'
end
end
end
end
object Splitter1: TSplitter
Cursor = crVSplit
Left = 0
Height = 5
Top = 344
Width = 983
Align = alTop
ResizeAnchor = akTop
end
object gbResponse: TGroupBox
Left = 8
Height = 234
Top = 357
Width = 967
Align = alClient
BorderSpacing.Around = 8
Caption = 'Response'
ClientHeight = 214
ClientWidth = 963
Font.Style = [fsBold]
ParentFont = False
TabOrder = 3
object pgcResponse: TPageControl
Left = 8
Height = 152
Top = 54
Width = 947
ActivePage = tsHeaders
Align = alClient
BorderSpacing.Around = 8
ParentFont = False
TabIndex = 0
TabOrder = 0
object tsHeaders: TTabSheet
Caption = 'Headers'
ClientHeight = 124
ClientWidth = 939
object mmoHeaders: TMemo
Left = 0
Height = 124
Top = 0
Width = 939
Align = alClient
ScrollBars = ssAutoBoth
TabOrder = 0
end
end
object tsBody: TTabSheet
Caption = 'Body'
ClientHeight = 124
ClientWidth = 939
object mmoBodyResponse: TMemo
Left = 0
Height = 124
Top = 0
Width = 939
Align = alClient
ScrollBars = ssAutoBoth
TabOrder = 0
end
end
object tsTabularData: TTabSheet
Caption = 'Tabular Data'
end
object tsDebug: TTabSheet
Caption = 'Debug'
ClientHeight = 124
ClientWidth = 939
object mmoLog: TMemo
Left = 0
Height = 124
Top = 0
Width = 939
Align = alClient
ScrollBars = ssAutoBoth
TabOrder = 0
end
end
end
object Label1: TLabel
Left = 8
Height = 15
Top = 8
Width = 947
Align = alTop
BorderSpacing.Around = 8
Caption = 'Label1'
Visible = False
end
object lblResponseMessage: TLabel
Left = 8
Height = 15
Top = 31
Width = 947
Align = alTop
BorderSpacing.Around = 8
Caption = 'Response Message:'
end
end
object sbStatus: TStatusBar
Left = 0
Height = 23
Top = 599
Width = 983
Panels = <
item
Width = 500
end
item
Text = 'New Request'
Width = 100
end
item
Width = 100
end>
SimplePanel = False
end
object il16: TImageList
Left = 712
Top = 192
Bitmap = {
4C7A0400000010000000100000000E0400000000000078DADD96DB531B7514C7
E3833E391DC707C7D119FF80FE075E66EA8C406941C7FAE0B47DD0565B748697
B6DA21F76C80A293259B0B0D4960777305CA2508D336D510A0A50869B8A4B681
D2366D090203451924C90285E9717FAB616258926CC6AAE377E6FBB27B3EE777
7EE7FC7E3B2B1209974D73F6559A909EA66B25F65C19B711DB4313F2E3CDE69A
71A751CDB8CE576ED15AA92C136332612F529A8A4F5CE7AB461C065562D0D719
5B987D049B4F36C0A693AF3B08D9EBE98CD55AF63C8957BCEFAA537BED7A05E3
EF72AF442393B0B5B509EB6B0C3CBA17868753B7C065548F261900D173546DC5
3B4E03E6649998B7B561E57E780C36D6D72029C4786C3A5863E2F07D3B15236B
C527104B6925A79C462CCAEE2B363AE8DBFC6D790952B5968883BFDB0D242EE6
72A09C34215B2789D32F23BE1117BF6B2364CC5C3402E9427537D59F03BB4E01
3D9D0EEED9D4ADE05376BD9ED43D53B8E44D36268EE253D7F4D05A181BB80CCD
A66AAE6EA42EA77195C2C587D2FBD6A0AD780BE5085EBBC2AD39D2DF0DCBF311
686BD4707523ADAE2CA3BEC7DB30EC05BE79A11C689F0FC201585D8AC290AF1D
7C7FD68D141AEEDB721894CE4C33473C621F4EDCF84BDD4817ACDFC6688D645F
363E69B497A47E599C07BB41F918CD3A97F34A6A246FDBF48A44347287E303FD
979ED8740AAD907B82CED41F3926C15557C9B0F765AFD0BB4669C445E8BCB033
9F16E5295407A59596E7DA373EDBF5CA60367E37A1771D1401CE3A75205F1EDD
1B0FAD63EB50FD940F8F847274D0C453F61C0C0BE5D32D84E7CBF76FF21D242E
888F6F6CC2628CEDDDED69B004EE4224721B8ACC3FBC922BDF3D3103A5B41F8E
5C1884639D37A084F24309DD4BE4C20F4D2FC2E1A601C0C6E7C0B50C9CF1A95F
A194F2270ED2FE2FB2F157EECCC2F1EF82DB6CD265DE9B0CCBD764E37D77E7B8
9AD3F993976F32A5746F55CEF58766B3D6BFF3CE292074FD12B4FC18E47A76B8
E53A7CEA19E6ED5F267D68EB7FA9C0DAF3C641BA575E62EB230B29DF6BE9F3CB
5705D27A4877A1DCAA10C29FECBABFEDCFDAC270406D63F62B1A9442F86CDFAF
DDEE702A2F44CF9A9F9C598033D445E0EBEF769FA596F86EEF0ED538A1DC1382
EAD1189C1B4FECB0F4EA1C14AB1A7F46B11F7CD3CC1B93C967BCF7D8395101C4
7F6CEC16CC97778460BF8A6C42FC31AA4F307FC235080572335624B7C297AD41
C1FC51B317DE93983E2FC6483875715230FF11DE0A85625351B18A0471DF8C60
BEA4D2CEAE6FD95B28B3649C71261FC08C7B44FF0139CEE2906AB3F22BD049CA
76D8A2F81A9A247A391FBF3A11E13CEF1BE262D13F60BAD1F376B58971CBF44A
217CF29F123D5F1A9B004F757DBC59AAABC98747318F47C3DC3EF9F8C5AB23E0
C695BCFB6F31546DC7EDC6E7EA67C567D33FC22F0CF0FB7FBC7E3EFE3BEEEEEF
E1DFFAFC
}
end
end