-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathmainform.lfm
467 lines (467 loc) · 12.9 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
object FormMain: TFormMain
Left = 1017
Height = 661
Top = 437
Width = 530
AllowDropFiles = True
Caption = 'Deskew GUI'
ClientHeight = 661
ClientWidth = 530
Constraints.MinHeight = 520
Constraints.MinWidth = 520
OnCreate = FormCreate
OnDestroy = FormDestroy
OnDropFiles = FormDropFiles
Position = poWorkAreaCenter
SessionProperties = 'Position'
LCLVersion = '3.4.0.0'
object Notebook: TNotebook
Left = 8
Height = 645
Top = 8
Width = 514
PageIndex = 1
Align = alClient
BorderSpacing.Around = 8
TabOrder = 0
object PageIn: TPage
object PanelFiles: TPanel
Left = 0
Height = 368
Top = 0
Width = 514
Align = alClient
BevelOuter = bvNone
ClientHeight = 368
ClientWidth = 514
TabOrder = 0
object MemoFiles: TMemo
Left = 0
Height = 266
Top = 48
Width = 514
Align = alClient
BorderSpacing.Bottom = 54
Lines.Strings = (
'File1'
'File2'
)
ScrollBars = ssAutoBoth
TabOrder = 0
WordWrap = False
end
object BtnAbout: TButton
Left = 490
Height = 33
Top = 0
Width = 24
Action = ActShowAbout
Anchors = [akTop, akRight]
AutoSize = True
TabOrder = 1
TabStop = False
end
object BitBtn1: TBitBtn
Left = 136
Height = 45
Top = 443
Width = 160
Caption = 'BitBtn1'
TabOrder = 2
end
object BtnAddFiles: TBitBtn
Left = 0
Height = 31
Top = 330
Width = 120
Action = ActAddFiles
Anchors = [akLeft, akBottom]
Font.Height = -16
ParentFont = False
TabOrder = 3
end
object BtnClear: TBitBtn
Left = 392
Height = 31
Top = 334
Width = 120
Action = ActClearFiles
Anchors = [akRight, akBottom]
Font.Height = -16
ParentFont = False
TabOrder = 4
end
object Label1: TLabel
Left = 0
Height = 34
Top = 4
Width = 514
Align = alTop
BorderSpacing.Top = 4
BorderSpacing.Bottom = 10
Caption = 'Input Files'
Font.Color = 11428096
Font.Height = 24
Font.Style = [fsBold]
ParentColor = False
ParentFont = False
end
end
object PanelOptions: TPanel
Left = 0
Height = 198
Top = 374
Width = 514
Align = alBottom
AutoSize = True
BorderSpacing.Top = 6
BorderSpacing.Bottom = 14
BevelOuter = bvNone
ClientHeight = 198
ClientWidth = 514
TabOrder = 1
object Panel1: TPanel
Left = 0
Height = 148
Top = 42
Width = 514
Align = alClient
BorderSpacing.Bottom = 8
BevelOuter = bvNone
ClientHeight = 148
ClientWidth = 514
TabOrder = 0
object ColorBtnBackground: TColorButton
AnchorSideLeft.Control = LabBackColor
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = LabBackColor
AnchorSideTop.Side = asrCenter
AnchorSideBottom.Side = asrCenter
Left = 132
Height = 28
Top = 117
Width = 64
BorderSpacing.Left = 12
BorderWidth = 2
ButtonColorSize = 16
ButtonColor = clWhite
Flat = True
end
object LabOptOutputFolder: TLabel
AnchorSideTop.Control = CheckDefaultOutputFileOptions
AnchorSideTop.Side = asrBottom
Left = 8
Height = 19
Top = 45
Width = 89
BorderSpacing.Top = 12
Caption = 'Output folder:'
ParentColor = False
end
object LabBackColor: TLabel
Left = 8
Height = 19
Top = 122
Width = 112
Caption = 'Background color:'
ParentColor = False
end
object CheckDefaultOutputFileOptions: TCheckBox
Left = 8
Height = 21
Top = 12
Width = 211
Caption = 'Use default output file options'
Checked = True
State = cbChecked
TabOrder = 0
end
object LabOptFileFormat: TLabel
AnchorSideTop.Control = LabOptOutputFolder
AnchorSideTop.Side = asrBottom
Left = 8
Height = 19
Top = 82
Width = 71
BorderSpacing.Top = 18
Caption = 'File format:'
ParentColor = False
end
object ComboFileFormat: TComboBox
AnchorSideLeft.Control = EdDirOutput
AnchorSideTop.Control = LabOptFileFormat
AnchorSideTop.Side = asrCenter
AnchorSideBottom.Side = asrCenter
Left = 109
Height = 35
Top = 74
Width = 256
ItemHeight = 0
Style = csDropDownList
TabOrder = 3
end
object EdDirOutput: TEdit
AnchorSideLeft.Control = LabOptOutputFolder
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = LabOptOutputFolder
AnchorSideTop.Side = asrCenter
AnchorSideRight.Control = BtnBrowseOutputDir
Left = 109
Height = 31
Top = 39
Width = 321
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 12
BorderSpacing.Right = 4
TabOrder = 1
end
object BtnBrowseOutputDir: TButton
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = EdDirOutput
AnchorSideTop.Side = asrCenter
AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Side = asrCenter
Left = 436
Height = 33
Top = 38
Width = 70
Action = ActBrowseOutputDir
Anchors = [akTop, akRight]
AutoSize = True
BorderSpacing.Left = 6
BorderSpacing.Right = 8
TabOrder = 2
end
object CheckCropToInput: TCheckBox
AnchorSideLeft.Control = ColorBtnBackground
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = LabBackColor
AnchorSideTop.Side = asrCenter
Left = 256
Height = 21
Top = 121
Width = 107
BorderSpacing.Left = 60
Caption = 'Crop To Input'
TabOrder = 4
end
object BtnAdvOptions: TBitBtn
AnchorSideTop.Control = LabBackColor
AnchorSideTop.Side = asrCenter
AnchorSideRight.Control = BtnBrowseOutputDir
AnchorSideRight.Side = asrBottom
Left = 421
Height = 33
Top = 115
Width = 85
Action = ActShowAdvOptions
Anchors = [akTop, akRight]
AutoSize = True
TabOrder = 5
end
end
object Label2: TLabel
Left = 0
Height = 34
Top = 4
Width = 514
Align = alTop
BorderSpacing.Top = 4
BorderSpacing.Bottom = 4
Caption = 'Options && Parameters'
Font.Color = 11428096
Font.Height = 24
Font.Style = [fsBold]
ParentColor = False
ParentFont = False
end
end
object BtnDeskew: TBitBtn
Left = 0
Height = 59
Top = 586
Width = 514
Action = ActDeskew
Align = alBottom
Anchors = []
AutoSize = True
Font.Height = -32
ParentFont = False
TabOrder = 2
end
end
object PageOut: TPage
object PanelProgress: TPanel
Left = 0
Height = 106
Top = 0
Width = 514
Align = alTop
BevelOuter = bvNone
ClientHeight = 106
ClientWidth = 514
TabOrder = 0
object LabDeskewProgressTitle: TLabel
Left = 0
Height = 34
Top = 4
Width = 514
Align = alTop
BorderSpacing.Top = 4
BorderSpacing.Bottom = 4
Caption = 'Deskew in Progress'
Font.Color = 11428096
Font.Height = 24
Font.Style = [fsBold]
ParentColor = False
ParentFont = False
end
object ProgressBar: TProgressBar
Left = 8
Height = 20
Top = 76
Width = 498
Align = alBottom
BorderSpacing.Left = 8
BorderSpacing.Top = 8
BorderSpacing.Right = 8
BorderSpacing.Bottom = 10
Max = 10
ParentColor = False
Position = 4
Smooth = True
TabOrder = 0
end
object LabProgressTitle: TLabel
Left = 8
Height = 19
Top = 52
Width = 74
BorderSpacing.Left = 8
BorderSpacing.Right = 4
Caption = 'Current file:'
Layout = tlBottom
ParentColor = False
end
object LabCurrentFile: TLabel
AnchorSideLeft.Control = LabProgressTitle
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = PanelProgress
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = LabProgressTitle
AnchorSideBottom.Side = asrBottom
Left = 87
Height = 18
Top = 53
Width = 427
Anchors = [akLeft, akRight, akBottom]
AutoSize = False
BorderSpacing.Left = 5
Caption = 'FileName.ext [22/152]'
Font.Height = 16
Font.Style = [fsBold]
Layout = tlBottom
OptimalFill = True
ParentColor = False
ParentFont = False
end
end
object PanelOut: TPanel
Left = 0
Height = 464
Top = 106
Width = 514
Align = alClient
BorderSpacing.Bottom = 18
BevelOuter = bvNone
ClientHeight = 464
ClientWidth = 514
TabOrder = 1
object Label3: TLabel
Left = 0
Height = 34
Top = 4
Width = 514
Align = alTop
BorderSpacing.Top = 4
BorderSpacing.Bottom = 10
Caption = 'Output Log'
Font.Color = 11428096
Font.Height = 24
Font.Style = [fsBold]
ParentColor = False
ParentFont = False
end
object MemoOutput: TMemo
Left = 0
Height = 416
Top = 48
Width = 514
Align = alClient
Lines.Strings = (
'Captured output of CLI tool'
)
ParentColor = True
ParentFont = False
ReadOnly = True
ScrollBars = ssAutoBoth
TabOrder = 0
WantReturns = False
WordWrap = False
end
end
object BtnFinish: TBitBtn
Left = 0
Height = 57
Top = 588
Width = 514
Action = ActFinish
Align = alBottom
Anchors = [akLeft]
Font.Height = -32
ParentFont = False
TabOrder = 2
end
end
end
object ApplicationProperties: TApplicationProperties
OnIdle = ApplicationPropertiesIdle
Left = 176
Top = 200
end
object ActionList: TActionList
Left = 280
Top = 200
object ActDeskew: TAction
Caption = 'Deskew!'
OnExecute = ActDeskewExecute
OnUpdate = ActDeskewUpdate
end
object ActFinish: TAction
Caption = 'Stop'
OnExecute = ActFinishExecute
end
object ActAddFiles: TAction
Caption = 'Add files...'
OnExecute = ActAddFilesExecute
end
object ActClearFiles: TAction
Caption = 'Clear'
OnExecute = ActClearFilesExecute
end
object ActBrowseOutputDir: TAction
Caption = 'Browse...'
OnExecute = ActBrowseOutputDirExecute
end
object ActShowAdvOptions: TAction
Caption = 'Advanced...'
OnExecute = ActShowAdvOptionsExecute
end
object ActShowAbout: TAction
Caption = ' ? '
OnExecute = ActShowAboutExecute
end
end
end