-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathu_tedsdatagenerator.lfm
347 lines (347 loc) · 9.32 KB
/
u_tedsdatagenerator.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
object Form1: TForm1
Left = 681
Height = 533
Top = 185
Width = 589
Caption = 'Teds Tremendous Data Generator, v1.0.0 by Ted Smith (c) 2017-2018'
ClientHeight = 533
ClientWidth = 589
OnCreate = FormCreate
Position = poScreenCenter
LCLVersion = '1.6.4.0'
object PageControl1: TPageControl
Left = 16
Height = 489
Top = 23
Width = 560
ActivePage = TabSheet2
Anchors = [akTop, akLeft, akRight, akBottom]
TabIndex = 1
TabOrder = 0
object TabSheet1: TTabSheet
Caption = 'Text Generator'
ClientHeight = 463
ClientWidth = 552
object memTextOutput: TMemo
Left = 8
Height = 279
Top = 136
Width = 478
Anchors = [akTop, akLeft, akRight, akBottom]
Lines.Strings = (
''
)
ScrollBars = ssAutoBoth
TabOrder = 0
end
object btnGenerateStringData: TButton
Left = 112
Height = 25
Top = 104
Width = 112
Caption = 'Generate Data'
OnClick = btnGenerateStringDataClick
TabOrder = 1
end
object lbledtHowManyLines: TLabeledEdit
Left = 8
Height = 21
Top = 24
Width = 216
EditLabel.AnchorSideLeft.Control = lbledtHowManyLines
EditLabel.AnchorSideRight.Control = lbledtHowManyLines
EditLabel.AnchorSideRight.Side = asrBottom
EditLabel.AnchorSideBottom.Control = lbledtHowManyLines
EditLabel.Left = 8
EditLabel.Height = 13
EditLabel.Top = 8
EditLabel.Width = 216
EditLabel.Caption = 'How many lines of text?'
EditLabel.ParentColor = False
TabOrder = 2
Text = '1000'
end
object cbStringType: TComboBox
Left = 8
Height = 21
Top = 64
Width = 216
ItemHeight = 13
Items.Strings = (
'My own string'
'Random strings'
'Just line numbers'
)
OnChange = cbStringTypeChange
TabOrder = 3
Text = 'cbStringType'
end
object ledtOwnString: TLabeledEdit
Left = 248
Height = 21
Top = 64
Width = 238
Anchors = [akTop, akLeft, akRight]
EditLabel.AnchorSideLeft.Control = ledtOwnString
EditLabel.AnchorSideRight.Control = ledtOwnString
EditLabel.AnchorSideRight.Side = asrBottom
EditLabel.AnchorSideBottom.Control = ledtOwnString
EditLabel.Left = 248
EditLabel.Height = 13
EditLabel.Top = 48
EditLabel.Width = 238
EditLabel.Caption = 'Enter your own string:'
EditLabel.ParentColor = False
TabOrder = 4
Visible = False
end
object lblStatus: TLabel
Left = 8
Height = 13
Top = 104
Width = 12
Caption = '...'
ParentColor = False
end
object btnSaveTextToFile: TButton
Left = 133
Height = 25
Top = 431
Width = 91
Anchors = [akLeft, akBottom]
Caption = 'Save to file...'
Enabled = False
OnClick = btnSaveTextToFileClick
TabOrder = 5
end
object btnClear: TButton
Left = 8
Height = 25
Top = 431
Width = 88
Anchors = [akLeft, akBottom]
Caption = 'Clear'
OnClick = btnClearClick
TabOrder = 6
end
end
object TabSheet2: TTabSheet
Caption = 'File Generator'
ClientHeight = 463
ClientWidth = 552
object lbledtNoOfFiles: TLabeledEdit
Left = 16
Height = 21
Top = 38
Width = 192
EditLabel.AnchorSideLeft.Control = lbledtNoOfFiles
EditLabel.AnchorSideRight.Control = lbledtNoOfFiles
EditLabel.AnchorSideRight.Side = asrBottom
EditLabel.AnchorSideBottom.Control = lbledtNoOfFiles
EditLabel.Left = 16
EditLabel.Height = 13
EditLabel.Top = 22
EditLabel.Width = 192
EditLabel.Caption = 'How many files to generate?'
EditLabel.ParentColor = False
TabOrder = 0
Text = '100'
end
object lbledtFileSize: TLabeledEdit
Left = 16
Height = 21
Top = 88
Width = 192
EditLabel.AnchorSideLeft.Control = lbledtFileSize
EditLabel.AnchorSideRight.Control = lbledtFileSize
EditLabel.AnchorSideRight.Side = asrBottom
EditLabel.AnchorSideBottom.Control = lbledtFileSize
EditLabel.Left = 16
EditLabel.Height = 13
EditLabel.Top = 72
EditLabel.Width = 192
EditLabel.Caption = 'How big should the files be?'
EditLabel.ParentColor = False
TabOrder = 1
Text = '1'
OnChange = cbFileSizeChange
end
object cbFileSize: TComboBox
Left = 216
Height = 21
Top = 88
Width = 112
ItemHeight = 13
Items.Strings = (
'Bytes (B)'
'Kilobytes (Kb)'
'Megabytes (Mb)'
'Gigabytes (Gb)'
'Terabytes (Tb)'
)
OnChange = cbFileSizeChange
Style = csDropDownList
TabOrder = 2
end
object Label1: TLabel
Left = 344
Height = 13
Top = 98
Width = 31
Caption = 'Label1'
ParentColor = False
end
object lbledtOutputPath: TLabeledEdit
Left = 16
Height = 21
Top = 151
Width = 360
EditLabel.AnchorSideLeft.Control = lbledtOutputPath
EditLabel.AnchorSideRight.Control = lbledtOutputPath
EditLabel.AnchorSideRight.Side = asrBottom
EditLabel.AnchorSideBottom.Control = lbledtOutputPath
EditLabel.Left = 16
EditLabel.Height = 13
EditLabel.Top = 135
EditLabel.Width = 360
EditLabel.Caption = 'Output files to:'
EditLabel.ParentColor = False
TabOrder = 3
end
object btnOutputFolder: TButton
Left = 393
Height = 25
Top = 151
Width = 144
Caption = 'Change Output Folder'
OnClick = btnOutputFolderClick
TabOrder = 4
end
object btnGenerateFiles: TButton
Left = 16
Height = 25
Top = 256
Width = 152
Caption = 'Generate Data Files'
OnClick = btnGenerateFilesClick
TabOrder = 5
end
object lblFilesCreated: TLabel
Left = 16
Height = 13
Top = 192
Width = 12
Caption = '...'
ParentColor = False
end
object btnFilesStop: TButton
Left = 232
Height = 25
Top = 256
Width = 144
Caption = 'Stop!'
OnClick = btnFilesStopClick
TabOrder = 6
end
object RadioGroup1: TRadioGroup
Left = 224
Height = 64
Top = 8
Width = 144
AutoFill = True
Caption = 'Data Output'
ChildSizing.LeftRightSpacing = 6
ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
ChildSizing.EnlargeVertical = crsHomogenousChildResize
ChildSizing.ShrinkHorizontal = crsScaleChilds
ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 1
ClientHeight = 46
ClientWidth = 140
Items.Strings = (
'Non-Random'
'Random'
)
TabOrder = 7
end
object pbFiles: TProgressBar
Left = 16
Height = 20
Top = 219
Width = 356
TabOrder = 8
end
object Panel1: TPanel
Left = 16
Height = 106
Top = 306
Width = 362
ClientHeight = 106
ClientWidth = 362
TabOrder = 9
object Label2: TLabel
Left = 16
Height = 13
Top = 16
Width = 56
Caption = 'Started at :'
ParentColor = False
end
object Label3: TLabel
Left = 16
Height = 13
Top = 48
Width = 50
Caption = 'Ended at :'
ParentColor = False
end
object Label4: TLabel
Left = 16
Height = 13
Top = 80
Width = 61
Caption = 'Time Taken :'
ParentColor = False
end
object lblStartTime: TLabel
Left = 125
Height = 13
Top = 16
Width = 12
Caption = '...'
ParentColor = False
end
object lblEndTime: TLabel
Left = 125
Height = 13
Top = 48
Width = 12
Caption = '...'
ParentColor = False
end
object lblTimeTaken: TLabel
Left = 125
Height = 13
Top = 80
Width = 12
Caption = '...'
ParentColor = False
end
end
end
end
object SelectOutputFolder: TSelectDirectoryDialog
left = 442
top = 328
end
object StopCheckTimer: TTimer
OnTimer = StopCheckTimerTimer
left = 442
top = 246
end
object sdSaveText: TSaveDialog
left = 67
top = 260
end
end