-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainForm.dfm
More file actions
518 lines (517 loc) · 12.7 KB
/
MainForm.dfm
File metadata and controls
518 lines (517 loc) · 12.7 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
506
507
508
509
510
511
512
513
514
515
516
517
518
object frmMain: TfrmMain
Left = 100
Top = 100
Caption = 'PNDTools'
ClientHeight = 578
ClientWidth = 524
Color = clBtnFace
Constraints.MinHeight = 500
Constraints.MinWidth = 450
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
KeyPreview = True
Menu = menMain
OldCreateOrder = False
Position = poDesigned
OnClose = FormClose
OnCreate = FormCreate
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object pnlButtons: TPanel
AlignWithMargins = True
Left = 4
Top = 541
Width = 516
Height = 33
Margins.Left = 4
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alBottom
BevelOuter = bvNone
TabOrder = 4
object btnCreate: TButton
AlignWithMargins = True
Left = 407
Top = 4
Width = 105
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alRight
Caption = 'Create PND...'
TabOrder = 0
OnClick = btnCreateClick
end
end
object grbLog: TGroupBox
AlignWithMargins = True
Left = 4
Top = 437
Width = 516
Height = 100
Margins.Left = 4
Margins.Top = 2
Margins.Right = 4
Margins.Bottom = 4
Align = alBottom
Caption = ' Log (double-click to hide/expand) '
Constraints.MaxHeight = 100
Constraints.MinHeight = 20
TabOrder = 3
OnDblClick = grbLogDblClick
object redLog: TRichEdit
AlignWithMargins = True
Left = 6
Top = 15
Width = 504
Height = 79
Margins.Left = 4
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
HideSelection = False
Lines.Strings = (
'Welcome to the PNDTools'
'To get started just drop some files in the top-most area to crea' +
'te a new PND'
'or load an existing PND via File -> Open PND...')
ReadOnly = True
ScrollBars = ssVertical
TabOrder = 0
end
end
object grbFiles: TGroupBox
AlignWithMargins = True
Left = 4
Top = 4
Width = 516
Height = 337
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
Caption = ' Files (drag&&drop stuff here) '
TabOrder = 0
object vstFiles: TVirtualStringTree
AlignWithMargins = True
Left = 6
Top = 15
Width = 504
Height = 266
Margins.Left = 4
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 0
Align = alClient
ClipboardFormats.Strings = (
'Virtual Tree Data')
DragMode = dmAutomatic
DragOperations = [doMove]
DrawSelectionMode = smBlendedRectangle
Header.AutoSizeIndex = 0
Header.Font.Charset = DEFAULT_CHARSET
Header.Font.Color = clWindowText
Header.Font.Height = -11
Header.Font.Name = 'Tahoma'
Header.Font.Style = []
Header.Options = [hoColumnResize, hoDblClickResize, hoDrag, hoShowSortGlyphs, hoVisible]
Header.SortColumn = 0
Images = imlFileTree
LineStyle = lsSolid
TabOrder = 0
TreeOptions.AutoOptions = [toAutoDropExpand, toAutoScroll, toAutoScrollOnExpand, toAutoTristateTracking, toAutoDeleteMovedNodes]
TreeOptions.PaintOptions = [toShowButtons, toShowDropmark, toShowHorzGridLines, toShowRoot, toShowTreeLines, toShowVertGridLines, toThemeAware, toFullVertGridLines]
TreeOptions.SelectionOptions = [toFullRowSelect, toMultiSelect]
OnCompareNodes = vstFilesCompareNodes
OnDragOver = vstFilesDragOver
OnGetText = vstFilesGetText
OnGetImageIndex = vstFilesGetImageIndex
OnHeaderClick = vstFilesHeaderClick
OnKeyDown = vstFilesKeyDown
OnMouseUp = vstFilesMouseUp
OnNodeMoving = vstFilesNodeMoving
OnStructureChange = vstFilesStructureChange
Columns = <
item
Position = 0
Width = 300
WideText = 'Filename'
end
item
Position = 1
Width = 70
WideText = 'Size'
end
item
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coVisible, coAllowFocus]
Position = 2
Width = 150
WideText = 'Source path'
end>
end
object pnlFilesButtons: TPanel
Left = 2
Top = 302
Width = 512
Height = 33
Align = alBottom
BevelOuter = bvNone
TabOrder = 2
object btnFilesClear: TButton
AlignWithMargins = True
Left = 433
Top = 4
Width = 75
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alRight
Caption = 'Clear'
TabOrder = 3
OnClick = btnFilesClearClick
end
object btnFilesFolder: TButton
AlignWithMargins = True
Left = 271
Top = 4
Width = 75
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 0
Margins.Bottom = 4
Align = alRight
Caption = 'Add folder...'
TabOrder = 1
OnClick = btnFilesFolderClick
end
object btnFilesFile: TButton
AlignWithMargins = True
Left = 192
Top = 4
Width = 75
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 0
Margins.Bottom = 4
Align = alRight
Caption = 'Add files...'
TabOrder = 0
OnClick = btnFilesFileClick
end
object cbxRecursive: TCheckBox
AlignWithMargins = True
Left = 350
Top = 4
Width = 79
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 0
Margins.Bottom = 4
Align = alRight
Caption = 'Recursive'
Checked = True
State = cbChecked
TabOrder = 2
end
end
object pnlFilesInfo: TPanel
Left = 2
Top = 281
Width = 512
Height = 21
Align = alBottom
BevelOuter = bvNone
TabOrder = 1
object lblFilesSizeLbl: TLabel
AlignWithMargins = True
Left = 415
Top = 4
Width = 52
Height = 13
Margins.Left = 4
Margins.Top = 4
Margins.Right = 0
Margins.Bottom = 4
Align = alRight
Alignment = taRightJustify
Caption = 'Total size: '
ExplicitLeft = 468
ExplicitTop = 1
end
object lblFilesSize: TLabel
AlignWithMargins = True
Left = 471
Top = 4
Width = 31
Height = 13
Margins.Left = 4
Margins.Top = 4
Margins.Right = 10
Margins.Bottom = 4
Align = alRight
Alignment = taRightJustify
Caption = '0 Byte'
ExplicitLeft = 588
end
end
end
object grbIcon: TGroupBox
AlignWithMargins = True
Left = 4
Top = 345
Width = 516
Height = 42
Margins.Left = 4
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alBottom
Caption = ' Icon '
TabOrder = 1
object edtIcon: TEdit
AlignWithMargins = True
Left = 6
Top = 15
Width = 346
Height = 21
Margins.Left = 4
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
TabOrder = 0
end
object btnIconLoad: TButton
AlignWithMargins = True
Left = 356
Top = 15
Width = 75
Height = 21
Margins.Left = 0
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alRight
Caption = 'Load icon...'
TabOrder = 1
OnClick = btnIconLoadClick
end
object btnIconClear: TButton
AlignWithMargins = True
Left = 435
Top = 15
Width = 75
Height = 21
Margins.Left = 0
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alRight
Caption = 'Clear'
TabOrder = 2
OnClick = btnIconClearClick
end
end
object grbPXML: TGroupBox
AlignWithMargins = True
Left = 4
Top = 391
Width = 516
Height = 42
Margins.Left = 4
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 2
Align = alBottom
Caption = ' PXML '
TabOrder = 2
object btnPXMLLoad: TButton
AlignWithMargins = True
Left = 277
Top = 15
Width = 75
Height = 21
Margins.Left = 0
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alRight
Caption = 'Load PXML...'
TabOrder = 1
OnClick = btnPXMLLoadClick
end
object edtPXML: TEdit
AlignWithMargins = True
Left = 6
Top = 15
Width = 267
Height = 21
Margins.Left = 4
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
TabOrder = 0
OnChange = edtPXMLChange
end
object btnPXMLClear: TButton
AlignWithMargins = True
Left = 435
Top = 15
Width = 75
Height = 21
Margins.Left = 0
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alRight
Caption = 'Clear'
TabOrder = 3
OnClick = btnPXMLClearClick
end
object btnPXMLEdit: TButton
AlignWithMargins = True
Left = 356
Top = 15
Width = 75
Height = 21
Margins.Left = 0
Margins.Top = 0
Margins.Right = 4
Margins.Bottom = 4
Align = alRight
Caption = 'Create PXML'
TabOrder = 2
OnClick = btnPXMLEditClick
end
end
object imlFileTree: TImageList
Left = 272
Top = 80
end
object opdFileAny: TOpenDialog
FileName = 'H:\Delphi Projekte\PNDTools\PNDTools.bdsproj'
Filter = 'Any file|*'
FilterIndex = 0
Options = [ofHideReadOnly, ofAllowMultiSelect, ofPathMustExist, ofFileMustExist, ofEnableSizing]
Title = 'Select file(s) to add to the PND'
Left = 272
Top = 48
end
object opdPXML: TOpenDialog
DefaultExt = 'xml'
Filter =
'PXML-file (pxml.xml)|PXML.xml;pxml.xml|XML-file (*.xml)|*.xml|An' +
'y file|*'
FilterIndex = 0
Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
Title = 'Select PXML file'
Left = 240
Top = 48
end
object opdIcon: TOpenDialog
Filter = 'PNG-Image (*.png)|*.png|Any file|*'
FilterIndex = 0
Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
Title = 'Select icon for the PND'
Left = 208
Top = 48
end
object sadPND: TSaveDialog
DefaultExt = 'pnd'
Filter = 'PND files (*.pnd)|*.pnd'
Options = [ofOverwritePrompt, ofHideReadOnly, ofPathMustExist, ofCreatePrompt, ofEnableSizing]
Title = 'Select a destination for the PND file'
Left = 144
Top = 48
end
object opdPND: TOpenDialog
Filter = 'PND file (*.pnd)|*.pnd|Any file|*'
Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
Title = 'Select a PND file to open'
Left = 176
Top = 48
end
object menMain: TMainMenu
Left = 240
Top = 112
object menMainFile: TMenuItem
Caption = 'File'
object menMainFileNew: TMenuItem
Caption = 'New'
OnClick = menMainFileNewClick
end
object menMainFileOpen: TMenuItem
Caption = 'Open PND...'
OnClick = menMainFileOpenClick
end
object N2: TMenuItem
Caption = '-'
end
object menMainFileOptions: TMenuItem
Caption = 'Options...'
OnClick = menMainFileOptionsClick
end
object N3: TMenuItem
Caption = '-'
end
object menMainFileExit: TMenuItem
Caption = 'Exit'
OnClick = menMainFileExitClick
end
end
object menMainHelp: TMenuItem
Caption = 'Help'
object menMainHelpPXML: TMenuItem
Caption = 'PXML specification (online)'
OnClick = menMainHelpPXMLClick
end
object menMainHelpPND: TMenuItem
Caption = 'PND quickstart (online)'
OnClick = menMainHelpPNDClick
end
object menMainHelpThread: TMenuItem
Caption = 'Website (online)'
OnClick = menMainHelpThreadClick
end
object N1: TMenuItem
Caption = '-'
end
object menMainHelpAbout: TMenuItem
Caption = 'About'
OnClick = menMainHelpAboutClick
end
end
end
object pomFiles: TPopupMenu
AutoPopup = False
Left = 272
Top = 112
object pomFilesOpen: TMenuItem
Caption = 'Open'
OnClick = pomFilesOpenClick
end
object pomFilesFolder: TMenuItem
Caption = 'Open containing folder'
OnClick = pomFilesFolderClick
end
object pomFilesDelete: TMenuItem
Caption = 'Delete'
OnClick = pomFilesDeleteClick
end
end
end