-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathglobalsettings.lfm
More file actions
505 lines (505 loc) · 12.5 KB
/
globalsettings.lfm
File metadata and controls
505 lines (505 loc) · 12.5 KB
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
object FormGlobalSettings: TFormGlobalSettings
Left = 0
Height = 303
Top = 0
Width = 454
BorderIcons = [biSystemMenu]
BorderStyle = bsSingle
Caption = 'Settings'
ClientHeight = 303
ClientWidth = 454
OnClose = FormClose
OnCreate = FormCreate
Position = poMainFormCenter
LCLVersion = '2.0.10.0'
object PageControlGlobalSettings: TPageControl
Left = 8
Height = 248
Top = 8
Width = 440
ActivePage = TabSheetGeneralSettings
TabIndex = 0
TabOrder = 0
object TabSheetGeneralSettings: TTabSheet
Caption = 'General'
ClientHeight = 220
ClientWidth = 432
object GroupBoxInbound: TGroupBox
Left = 8
Height = 81
Top = 8
Width = 409
Caption = 'Inbound connection'
ClientHeight = 61
ClientWidth = 405
TabOrder = 0
object CheckBoxEnableHTTPProxy: TCheckBox
Left = 8
Height = 19
Top = 29
Width = 119
Caption = 'Enable HTTP proxy'
OnEditingDone = CheckBoxEnableHTTPProxyEditingDone
TabOrder = 2
end
object SpinEditSocksPort: TSpinEdit
Left = 256
Height = 23
Top = 0
Width = 82
MaxValue = 65535
MinValue = 1
TabOrder = 1
Value = 1
end
object LabelSocksPort: TLabel
Left = 192
Height = 15
Top = 4
Width = 58
Caption = 'Socks port:'
ParentColor = False
end
object CheckBoxEnableSocksProxy: TCheckBox
Left = 8
Height = 19
Top = 0
Width = 120
Caption = 'Enable socks proxy'
OnEditingDone = CheckBoxEnableSocksProxyEditingDone
TabOrder = 0
end
object LabelHTTPPort: TLabel
Left = 193
Height = 15
Top = 33
Width = 56
Caption = 'HTTP port:'
ParentColor = False
end
object SpinEditHTTPPort: TSpinEdit
Left = 256
Height = 23
Top = 29
Width = 82
MaxValue = 65535
MinValue = 1
TabOrder = 3
Value = 1
end
end
object GroupBoxV2rayConfig: TGroupBox
Left = 8
Height = 105
Top = 96
Width = 408
Caption = 'V2ray config'
ClientHeight = 85
ClientWidth = 404
TabOrder = 1
object LabelV2RayBinaryPath: TLabel
Left = 8
Height = 15
Top = 4
Width = 95
Caption = 'V2ray binary path:'
ParentColor = False
end
object EditV2rayPath: TEdit
Left = 120
Height = 23
Top = 0
Width = 248
Anchors = [akTop, akLeft, akRight]
TabOrder = 0
end
object ButtonFindV2rayBinary: TButton
Left = 368
Height = 25
Top = -2
Width = 24
Anchors = [akTop, akRight]
Caption = '...'
OnClick = ButtonFindV2rayBinaryClick
TabOrder = 1
end
object LabelV2rayAssetsPath: TLabel
Left = 8
Height = 15
Top = 28
Width = 93
Caption = 'V2ray assets path:'
ParentColor = False
end
object EditV2rayAssetsPath: TEdit
Left = 120
Height = 23
Top = 24
Width = 248
Anchors = [akTop, akLeft, akRight]
TabOrder = 2
end
object ButtonFindV2rayAssets: TButton
Left = 368
Height = 25
Top = 24
Width = 24
Anchors = [akTop, akRight]
Caption = '...'
OnClick = ButtonFindV2rayAssetsClick
TabOrder = 3
end
object LabelLogLevel: TLabel
Left = 8
Height = 15
Top = 52
Width = 50
Caption = 'Log level:'
ParentColor = False
end
object ComboBoxLogLevel: TComboBox
Left = 280
Height = 23
Top = 48
Width = 88
Anchors = [akTop, akRight]
ItemHeight = 15
ItemIndex = 3
Items.Strings = (
'Debug'
'Info'
'Warning'
'Error'
'None'
)
Style = csDropDownList
TabOrder = 4
Text = 'Error'
end
end
end
object TabSheetRouteSettings: TTabSheet
Caption = 'Routes'
ClientHeight = 220
ClientWidth = 432
object TabControlRouteSetting: TTabControl
Left = 0
Height = 216
Top = 0
Width = 424
OnChange = TabControlRouteSettingChange
TabIndex = 0
Tabs.Strings = (
'Direct'
'Proxy'
'Deny'
)
TabOrder = 0
object MemoRuleList: TMemo
Left = 8
Height = 176
Top = 32
Width = 344
TabOrder = 1
end
object ButtonRouteClear: TButton
Left = 360
Height = 25
Top = 32
Width = 56
Caption = 'Clear'
OnClick = ButtonRouteClearClick
TabOrder = 2
end
object ButtonRouteRestore: TButton
Left = 360
Height = 25
Top = 64
Width = 56
Caption = 'Restore'
OnClick = ButtonRouteRestoreClick
TabOrder = 3
end
object ButtonRouteSave: TButton
Left = 360
Height = 25
Top = 183
Width = 56
Caption = 'Save'
OnClick = ButtonRouteSaveClick
TabOrder = 4
end
end
end
object TabSheetMisc: TTabSheet
Caption = 'Misc'
ClientHeight = 220
ClientWidth = 432
object GroupBoxKCPSettings: TGroupBox
Left = 0
Height = 216
Top = 0
Width = 185
Caption = 'Default KCP'
ClientHeight = 196
ClientWidth = 181
TabOrder = 0
object LabelKCPMTU: TLabel
Left = 8
Height = 15
Top = 4
Width = 28
Caption = 'MTU:'
ParentColor = False
end
object SpinEditKCPMTU: TSpinEdit
Left = 120
Height = 23
Top = 0
Width = 50
MaxValue = 1460
MinValue = 576
TabOrder = 0
Value = 576
end
object SpinEditKCPTTI: TSpinEdit
Left = 120
Height = 23
Top = 24
Width = 50
MinValue = 10
TabOrder = 1
Value = 10
end
object SpinEditUplinkCapacity: TSpinEdit
Left = 120
Height = 23
Top = 48
Width = 50
MaxValue = 65535
TabOrder = 2
end
object SpinEditDownlinkCapacity: TSpinEdit
Left = 120
Height = 23
Top = 72
Width = 50
MaxValue = 65535
TabOrder = 3
end
object SpinEditReadBufferSize: TSpinEdit
Left = 120
Height = 23
Top = 96
Width = 50
MaxValue = 255
TabOrder = 4
end
object SpinEditWriteBufferSize: TSpinEdit
Left = 120
Height = 23
Top = 120
Width = 50
MaxValue = 255
TabOrder = 5
end
object CheckBoxCongestion: TCheckBox
Left = 8
Height = 19
Top = 146
Width = 81
Caption = 'Congestion'
TabOrder = 6
end
object LabelKCPTTI: TLabel
Left = 8
Height = 15
Top = 28
Width = 18
Caption = 'TTI:'
ParentColor = False
end
object LabelUplinkCapacity: TLabel
Left = 8
Height = 15
Top = 52
Width = 83
Caption = 'UplinkCapacity:'
ParentColor = False
end
object LabelDownlinkCapacity: TLabel
Left = 8
Height = 15
Top = 76
Width = 99
Caption = 'DownlinkCapacity:'
ParentColor = False
end
object LabelReadBufferSize: TLabel
Left = 8
Height = 15
Top = 100
Width = 81
Caption = 'ReadBufferSize:'
ParentColor = False
end
object LabelWriteBufferSize: TLabel
Left = 8
Height = 15
Top = 124
Width = 83
Caption = 'WriteBufferSize:'
ParentColor = False
end
end
object GroupBoxDNSServers: TGroupBox
Left = 200
Height = 72
Top = 0
Width = 225
Caption = 'Remote DNS'
ClientHeight = 52
ClientWidth = 221
TabOrder = 1
object EditDnsServers: TEdit
Left = 8
Height = 23
Top = 0
Width = 208
TabOrder = 0
end
object LabelDomainStrategy: TLabel
Left = 8
Height = 15
Top = 28
Width = 91
Caption = 'Domain Strategy:'
ParentColor = False
end
object ComboBoxDomainStrategy: TComboBox
Left = 116
Height = 23
Top = 24
Width = 100
DropDownCount = 3
ItemHeight = 15
ItemIndex = 1
Items.Strings = (
'AsIs'
'IPIfNonMatch'
'IPOnDemand'
)
Style = csDropDownList
TabOrder = 1
Text = 'IPIfNonMatch'
end
end
object GroupBoxOthers: TGroupBox
Left = 200
Height = 144
Top = 72
Width = 225
Caption = 'Others'
ClientHeight = 124
ClientWidth = 221
TabOrder = 2
object CheckBoxEnableMux: TCheckBox
Left = 7
Height = 19
Top = 2
Width = 82
Caption = 'Enable Mux'
OnEditingDone = CheckBoxEnableMuxEditingDone
TabOrder = 0
end
object SpinEditMuxConcurrency: TSpinEdit
Left = 166
Height = 23
Top = 0
Width = 50
Anchors = [akTop, akRight]
MaxValue = 256
MinValue = 1
TabOrder = 1
Value = 1
end
object LabelMuxConcurrency: TLabel
Left = 88
Height = 15
Top = 4
Width = 71
Anchors = [akTop, akRight]
Caption = 'Concurrency:'
ParentColor = False
end
object CheckBoxTLSAllowInsecure: TCheckBox
Left = 7
Height = 19
Top = 24
Width = 118
Caption = 'TLS Allow Insecure'
TabOrder = 2
end
end
end
end
object ButtonSaveConfigs: TButton
Left = 264
Height = 25
Top = 264
Width = 75
Caption = 'Save'
OnClick = ButtonSaveConfigsClick
TabOrder = 1
end
object ButtonCancel: TButton
Left = 360
Height = 25
Top = 264
Width = 75
Caption = 'Cancel'
OnClick = ButtonCancelClick
TabOrder = 2
end
object OpenDialogFindV2rayBinary: TOpenDialog
Filter = 'V2ray binary|v2ray.exe|Executable file|*.exe'
Left = 8
Top = 272
end
object SelectDirectoryDialogFindV2rayAssets: TSelectDirectoryDialog
Left = 40
Top = 272
end
object SQLQueryReadSettings: TSQLQuery
FieldDefs = <>
Database = PrayMainWindow.SQLConnectorPrayDB
Transaction = PrayMainWindow.SQLTransactionPrayDB
SQL.Strings = (
'SELECT * FROM `settings`'
)
Params = <>
Left = 72
Top = 272
end
object SQLQueryUpdateSettings: TSQLQuery
FieldDefs = <>
Database = PrayMainWindow.SQLConnectorPrayDB
Transaction = PrayMainWindow.SQLTransactionPrayDB
SQL.Strings = (
'UPDATE `settings` SET `value` = :value WHERE `name` = :name'
)
Params = <
item
DataType = ftUnknown
Name = 'value'
ParamType = ptInput
end
item
DataType = ftUnknown
Name = 'name'
ParamType = ptInput
end>
Left = 104
Top = 272
end
end