-
Notifications
You must be signed in to change notification settings - Fork 2
/
mainform.lfm
459 lines (459 loc) · 11 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
object mainfrm: Tmainfrm
Left = 852
Height = 661
Top = 53
Width = 733
Caption = 'NComp File Toolbox'
ClientHeight = 661
ClientWidth = 733
Position = poScreenCenter
LCLVersion = '2.2.6.0'
object ProgressBar1: TProgressBar
Left = 8
Height = 20
Top = 631
Width = 710
Anchors = [akLeft, akRight, akBottom]
TabOrder = 0
end
object PageControl1: TPageControl
Left = 8
Height = 616
Top = 8
Width = 715
ActivePage = CopyFilesSheet
Anchors = [akTop, akLeft, akRight, akBottom]
TabIndex = 1
TabOrder = 1
object ZipFilesinFolderSheet: TTabSheet
Caption = 'Zip files in Folder'
ClientHeight = 585
ClientWidth = 705
object SearchMaskEdit: TEdit
Left = 0
Height = 25
Hint = 'Search Mask Example "*.txt;*.csv"'
Top = 8
Width = 152
AutoSize = False
ParentShowHint = False
ShowHint = True
TabOrder = 0
Text = '*'
end
object DaysLabel: TLabel
Left = 424
Height = 17
Top = 13
Width = 73
Caption = 'older than:'
ParentColor = False
end
object DaysEdt: TEdit
Left = 504
Height = 25
Hint = 'Older Than {x} Days. Switch of with 0.'
Top = 8
Width = 56
AutoSize = False
NumbersOnly = True
ParentShowHint = False
ShowHint = True
TabOrder = 1
Text = '90'
end
object DaysLbl: TLabel
Left = 560
Height = 17
Top = 13
Width = 31
Caption = 'Days'
ParentColor = False
end
object listfiles2btn: TButton
Left = 622
Height = 25
Top = 8
Width = 75
Caption = 'List files'
OnClick = listfiles2btnClick
TabOrder = 2
end
object DirectoryLbl: TLabel
Left = 0
Height = 20
Top = 40
Width = 697
Anchors = [akTop, akLeft, akRight]
AutoSize = False
Caption = 'Nothing selected.'
ParentColor = False
WordWrap = True
end
object StringGrid1: TStringGrid
Left = 0
Height = 381
Top = 64
Width = 697
Anchors = [akTop, akLeft, akRight, akBottom]
ColCount = 2
Columns = <
item
MaxSize = 1000
Title.Caption = 'Filename'
Width = 450
end
item
Title.Caption = 'Filedate'
Width = 130
end>
FixedCols = 0
RowCount = 1
TabOrder = 3
end
object ToFolderBtn: TButton
Left = 0
Height = 25
Top = 445
Width = 96
Anchors = [akLeft, akBottom]
Caption = 'Set To Folder'
OnClick = ToFolderBtnClick
TabOrder = 4
end
object zipfileswithruncheck: TCheckBox
Left = 0
Height = 23
Top = 477
Width = 135
Anchors = [akLeft, akBottom]
Caption = 'Zip files with run'
TabOrder = 5
end
object deletefileswithruncheck: TCheckBox
Left = 0
Height = 23
Top = 501
Width = 158
Anchors = [akLeft, akBottom]
Caption = 'Delete files with run'
TabOrder = 6
end
object deleteemptyfolderscheck: TCheckBox
Left = 0
Height = 23
Top = 525
Width = 225
Anchors = [akLeft, akBottom]
Caption = 'Delete empty folders with run'
TabOrder = 7
end
object WriteINIBtn: TButton
Left = 0
Height = 25
Top = 557
Width = 75
Anchors = [akLeft, akBottom]
Caption = 'Write INI'
OnClick = WriteINIBtnClick
TabOrder = 8
end
object ReadINIBtn: TButton
Left = 80
Height = 25
Top = 557
Width = 75
Anchors = [akLeft, akBottom]
Caption = 'Read INI'
OnClick = ReadINIBtnClick
TabOrder = 9
end
object ZipBtn: TButton
Left = 328
Height = 25
Top = 557
Width = 75
Anchors = [akRight, akBottom]
Caption = 'Zip Files'
OnClick = ZipBtnClick
TabOrder = 10
end
object DeleteFilesBtn: TButton
Left = 408
Height = 25
Top = 557
Width = 91
Anchors = [akRight, akBottom]
Caption = 'Delete Files'
OnClick = DeleteFilesBtnClick
TabOrder = 11
end
object DeleteEmptyfoldersBtn: TButton
Left = 504
Height = 25
Top = 557
Width = 160
Anchors = [akRight, akBottom]
Caption = 'Delete Empty folders'
OnClick = DeleteEmptyfoldersBtnClick
ParentFont = False
TabOrder = 12
end
object StatusLbl: TLabel
Left = 646
Height = 17
Top = 531
Width = 47
Anchors = [akRight, akBottom]
Caption = 'Status:'
ParentColor = False
end
object ToFolderLbl: TLabel
Left = 112
Height = 17
Top = 453
Width = 108
Anchors = [akLeft, akBottom]
Caption = 'No To folder yet'
ParentColor = False
end
object CancelRunBtn: TBitBtn
Left = 668
Height = 25
Top = 557
Width = 25
Anchors = [akRight, akBottom]
Enabled = False
Kind = bkCancel
ModalResult = 2
OnClick = CancelRunBtnClick
TabOrder = 13
end
object IncludeSubFolderCheck: TCheckBox
Left = 160
Height = 23
Top = 10
Width = 156
Caption = 'Include Sub Folders'
Checked = True
State = cbChecked
TabOrder = 14
end
end
object CopyFilesSheet: TTabSheet
Caption = 'Copy Folder'
ClientHeight = 585
ClientWidth = 705
object CopyFilesSearchMaskEdit: TEdit
Left = 0
Height = 25
Hint = 'Search Mask Example "*.txt;*.csv"'
Top = 8
Width = 112
AutoSize = False
ParentShowHint = False
ShowHint = True
TabOrder = 0
Text = '*'
end
object CopyFileIncludeSubFolderCheck: TCheckBox
Left = 128
Height = 23
Top = 8
Width = 156
Caption = 'Include Sub Folders'
Checked = True
State = cbChecked
TabOrder = 1
end
object CopyFileStringGrid: TStringGrid
Left = 0
Height = 381
Top = 64
Width = 699
Anchors = [akTop, akLeft, akRight, akBottom]
ColCount = 3
Columns = <
item
MaxSize = 1000
Title.Caption = 'Filename'
Width = 450
end
item
Title.Caption = 'Filedate'
Width = 130
end
item
Title.Caption = 'Folder'
Width = 450
end>
FixedCols = 0
RowCount = 1
TabOrder = 3
end
object CopyFileDirectoryLbl: TLabel
Left = 0
Height = 20
Top = 40
Width = 697
Anchors = [akTop, akLeft, akRight]
AutoSize = False
Caption = 'Nothing selected.'
ParentColor = False
WordWrap = True
end
object OnlyNewestFileCheck: TCheckBox
Left = 296
Height = 23
Top = 8
Width = 197
Caption = 'Only Newest File in folder'
TabOrder = 2
end
object CopyFileslistfilesbtn: TButton
Left = 624
Height = 25
Top = 8
Width = 75
Caption = 'List files'
OnClick = CopyFileslistfilesbtnClick
TabOrder = 4
end
object CopyFileStatusLbl: TLabel
Left = 652
Height = 17
Top = 536
Width = 47
Anchors = [akRight, akBottom]
Caption = 'Status:'
ParentColor = False
end
object CopyFileCancelRunBtn: TBitBtn
Left = 674
Height = 25
Top = 557
Width = 25
Anchors = [akRight, akBottom]
Enabled = False
Kind = bkCancel
ModalResult = 2
OnClick = CancelRunBtnClick
TabOrder = 5
end
object CopyFileWriteINIBtn: TButton
Left = 0
Height = 25
Top = 557
Width = 75
Anchors = [akLeft, akBottom]
Caption = 'Write INI'
OnClick = CopyFileWriteINIBtnClick
TabOrder = 6
end
object CopyFileReadINIBtn: TButton
Left = 80
Height = 25
Top = 557
Width = 75
Anchors = [akLeft, akBottom]
Caption = 'Read INI'
OnClick = CopyFileReadINIBtnClick
TabOrder = 7
end
object CopyFileToFolderLbl: TLabel
Left = 104
Height = 17
Top = 445
Width = 108
Anchors = [akLeft, akBottom]
Caption = 'No To folder yet'
ParentColor = False
end
object CopyFileToFolderBtn: TButton
Left = 0
Height = 25
Top = 445
Width = 96
Anchors = [akLeft, akBottom]
Caption = 'Set To Folder'
OnClick = CopyFileToFolderBtnClick
TabOrder = 8
end
object CopyFileDaysEdt: TEdit
Left = 560
Height = 25
Hint = 'Newer Than {x} Days. Switch of with 0.'
Top = 8
Width = 56
AutoSize = False
NumbersOnly = True
ParentShowHint = False
ShowHint = True
TabOrder = 9
Text = '90'
end
object CopyFilesBtn: TButton
Left = 584
Height = 25
Top = 557
Width = 83
Anchors = [akRight, akBottom]
Caption = 'Copy Files'
OnClick = CopyFilesBtnClick
TabOrder = 10
end
object CopyFileOverwrite: TCheckBox
Left = 0
Height = 23
Top = 476
Width = 201
Caption = 'Overwrite Destination File'
TabOrder = 11
end
object CopyFilePreservetime: TCheckBox
Left = 0
Height = 23
Top = 497
Width = 121
Caption = 'Preserve Time'
Checked = True
State = cbChecked
TabOrder = 12
end
object CopyFileFilenameStructureEdt: TEdit
Left = 491
Height = 25
Hint = 'Destination filename: Keep empty if filename should stay unchanged. Keys to use [topmostfolder], [month:mmm]'
Top = 480
Width = 208
Anchors = [akRight, akBottom]
AutoSize = False
ParentShowHint = False
ShowHint = True
TabOrder = 13
end
end
end
object SelectDirectoryDialog1: TSelectDirectoryDialog
Left = 192
Top = 304
end
object SaveDialog1: TSaveDialog
DefaultExt = '.zip'
Filter = 'zip|*.zip'
Left = 56
Top = 296
end
object INISaveDialog1: TSaveDialog
DefaultExt = '.ini'
Filter = 'ini|*.ini'
Left = 376
Top = 304
end
object INIOpenDialog1: TOpenDialog
DefaultExt = '.ini'
Filter = 'INI|*.ini'
Left = 512
Top = 296
end
end