File: vtmain.lfm

package info (click to toggle)
lazarus 2.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 214,460 kB
  • sloc: pascal: 1,862,622; xml: 265,709; cpp: 56,595; sh: 3,008; java: 609; makefile: 535; perl: 297; sql: 222; ansic: 137
file content (557 lines) | stat: -rw-r--r-- 17,009 bytes parent folder | download | duplicates (3)
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
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
object MainForm: TMainForm
  Left = 307
  Height = 694
  Top = 164
  Width = 852
  Caption = 'Visual fpvectorial test'
  ClientHeight = 694
  ClientWidth = 852
  OnCreate = FormCreate
  OnDestroy = FormDestroy
  ShowHint = True
  LCLVersion = '1.7'
  object GbTree: TGroupBox
    Left = 4
    Height = 686
    Top = 4
    Width = 296
    Align = alClient
    BorderSpacing.Around = 4
    Caption = 'Test shapes and objects'
    ClientHeight = 666
    ClientWidth = 292
    Font.Style = [fsBold]
    ParentFont = False
    TabOrder = 0
    object Tree: TTreeView
      Left = 4
      Height = 654
      Top = 4
      Width = 284
      Align = alClient
      BorderSpacing.Bottom = 4
      BorderSpacing.Around = 4
      DefaultItemHeight = 18
      HideSelection = False
      ParentFont = False
      ReadOnly = True
      TabOrder = 0
      OnCustomDrawItem = TreeCustomDrawItem
      OnSelectionChanged = TreeSelectionChanged
      Options = [tvoAutoItemHeight, tvoKeepCollapsedNodes, tvoReadOnly, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]
    end
  end
  object ScrollBox1: TScrollBox
    Left = 304
    Height = 694
    Top = 0
    Width = 548
    HorzScrollBar.Increment = 54
    HorzScrollBar.Page = 543
    HorzScrollBar.Smooth = True
    HorzScrollBar.Tracking = True
    VertScrollBar.Increment = 62
    VertScrollBar.Page = 627
    VertScrollBar.Smooth = True
    VertScrollBar.Tracking = True
    Align = alRight
    BorderStyle = bsNone
    ClientHeight = 694
    ClientWidth = 548
    TabOrder = 1
    object AllTestsPanel: TPanel
      Left = 4
      Height = 619
      Top = 4
      Width = 536
      Align = alTop
      AutoSize = True
      BorderSpacing.Right = 4
      BorderSpacing.Around = 4
      BevelOuter = bvNone
      ClientHeight = 619
      ClientWidth = 536
      TabOrder = 0
      object gbRenderTest: TGroupBox
        AnchorSideLeft.Control = AllTestsPanel
        AnchorSideBottom.Side = asrBottom
        Left = 0
        Height = 282
        Top = 0
        Width = 255
        Anchors = [akTop, akLeft, akRight]
        AutoSize = True
        BorderSpacing.Right = 31
        Caption = 'Render test'
        ClientHeight = 262
        ClientWidth = 251
        Font.Style = [fsBold]
        ParentFont = False
        TabOrder = 0
        object Label6: TLabel
          Left = 8
          Height = 30
          Top = 2
          Width = 239
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 2
          BorderSpacing.Right = 4
          Caption = 'The selected shape is rendered in two coordinate systems:'
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object Label8: TLabel
          Left = 16
          Height = 15
          Top = 36
          Width = 231
          Align = alTop
          BorderSpacing.Left = 16
          BorderSpacing.Top = 4
          BorderSpacing.Right = 4
          Caption = 'origin at bottom/left corner (fpv default)'
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object Label7: TLabel
          Left = 16
          Height = 15
          Top = 55
          Width = 231
          Align = alTop
          BorderSpacing.Left = 16
          BorderSpacing.Top = 4
          BorderSpacing.Right = 4
          Caption = 'origin at top/left corner'
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object LblBothImagesMustMatch: TLabel
          Left = 8
          Height = 15
          Top = 74
          Width = 239
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 4
          BorderSpacing.Right = 4
          Caption = 'Both images must match.'
          Font.Style = [fsBold]
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object gbBottomLeft: TGroupBox
          AnchorSideLeft.Control = gbRenderTest
          AnchorSideTop.Control = BtnSaveAsRef
          AnchorSideTop.Side = asrBottom
          AnchorSideBottom.Side = asrBottom
          Left = 4
          Height = 128
          Top = 130
          Width = 118
          AutoSize = True
          BorderSpacing.Left = 4
          BorderSpacing.Top = 6
          BorderSpacing.Right = 4
          BorderSpacing.Bottom = 4
          Caption = 'Origin at BOTTOM'
          ClientHeight = 108
          ClientWidth = 114
          ParentFont = False
          TabOrder = 0
          object BottomLeftPaintbox: TPaintBox
            AnchorSideLeft.Control = gbBottomLeft
            AnchorSideTop.Control = gbBottomLeft
            Left = 6
            Height = 100
            Top = 2
            Width = 100
            BorderSpacing.Left = 6
            BorderSpacing.Top = 2
            BorderSpacing.Right = 4
            BorderSpacing.Bottom = 6
            OnPaint = PaintBoxPaint
          end
        end
        object gbTopLeft: TGroupBox
          AnchorSideLeft.Control = gbBottomLeft
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = gbBottomLeft
          AnchorSideBottom.Control = gbRenderTest
          AnchorSideBottom.Side = asrBottom
          Left = 130
          Height = 128
          Top = 130
          Width = 114
          Anchors = [akTop, akLeft, akBottom]
          AutoSize = True
          BorderSpacing.Left = 8
          BorderSpacing.Right = 4
          BorderSpacing.Bottom = 4
          Caption = 'Origin at TOP'
          ClientHeight = 108
          ClientWidth = 110
          ParentFont = False
          TabOrder = 1
          object TopLeftPaintbox: TPaintBox
            AnchorSideLeft.Control = gbTopLeft
            AnchorSideTop.Control = gbTopLeft
            Left = 6
            Height = 100
            Top = 2
            Width = 100
            BorderSpacing.Left = 6
            BorderSpacing.Top = 2
            BorderSpacing.Right = 4
            BorderSpacing.Bottom = 6
            OnPaint = PaintBoxPaint
          end
        end
        object BtnSaveAsRef: TButton
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = LblBothImagesMustMatch
          AnchorSideTop.Side = asrBottom
          AnchorSideBottom.Side = asrBottom
          Left = 16
          Height = 25
          Top = 97
          Width = 75
          BorderSpacing.Left = 16
          BorderSpacing.Top = 8
          BorderSpacing.Bottom = 8
          Caption = 'Save as ref'
          OnClick = BtnSaveAsRefClick
          ParentFont = False
          TabOrder = 2
        end
      end
      object gbReferenceImageTest: TGroupBox
        AnchorSideLeft.Control = gbRenderTest
        AnchorSideLeft.Side = asrBottom
        AnchorSideTop.Control = gbRenderTest
        AnchorSideRight.Side = asrBottom
        AnchorSideBottom.Control = gbRenderTest
        AnchorSideBottom.Side = asrBottom
        Left = 286
        Height = 282
        Top = 0
        Width = 250
        Anchors = [akTop, akLeft, akRight, akBottom]
        Caption = 'Reference image test'
        ClientHeight = 262
        ClientWidth = 246
        Font.Style = [fsBold]
        ParentFont = False
        TabOrder = 1
        object Label10: TLabel
          Left = 8
          Height = 30
          Top = 2
          Width = 230
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 2
          BorderSpacing.Right = 8
          Caption = 'Save the bottom-origin image of the "Render test" to a bitmap file for reference.'
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object Label11: TLabel
          Left = 8
          Height = 30
          Top = 36
          Width = 230
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 4
          BorderSpacing.Right = 8
          Caption = 'This reference image is loaded for each test shape/object.'
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object LblRefImgMustMatch: TLabel
          Left = 8
          Height = 30
          Top = 70
          Width = 230
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 4
          BorderSpacing.Right = 8
          Caption = 'The reference image must match the "Render test" images.'
          Font.Style = [fsBold]
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object GroupBox1: TGroupBox
          AnchorSideLeft.Control = gbReferenceImageTest
          AnchorSideTop.Side = asrBottom
          AnchorSideBottom.Control = gbReferenceImageTest
          AnchorSideBottom.Side = asrBottom
          Left = 4
          Height = 128
          Top = 130
          Width = 116
          Anchors = [akLeft, akBottom]
          AutoSize = True
          BorderSpacing.Left = 4
          BorderSpacing.Top = 8
          BorderSpacing.Bottom = 4
          Caption = 'Reference image'
          ClientHeight = 108
          ClientWidth = 112
          ParentFont = False
          TabOrder = 0
          object RefImage: TImage
            AnchorSideTop.Control = GroupBox1
            Left = 6
            Height = 100
            Top = 2
            Width = 100
            BorderSpacing.Left = 6
            BorderSpacing.Top = 2
            BorderSpacing.Right = 6
            BorderSpacing.Bottom = 6
          end
        end
      end
      object gbReadWriteTest: TGroupBox
        AnchorSideLeft.Control = gbRenderTest
        AnchorSideTop.Control = gbReferenceImageTest
        AnchorSideTop.Side = asrBottom
        AnchorSideRight.Control = AllTestsPanel
        AnchorSideRight.Side = asrBottom
        Left = 0
        Height = 313
        Top = 306
        Width = 536
        Anchors = [akTop, akLeft, akRight]
        AutoSize = True
        BorderSpacing.Top = 24
        Caption = 'Read/write test'
        ClientHeight = 293
        ClientWidth = 532
        Font.Style = [fsBold]
        ParentFont = False
        TabOrder = 2
        object Label13: TLabel
          Left = 8
          Height = 15
          Top = 2
          Width = 516
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 2
          BorderSpacing.Right = 8
          Caption = 'This test is for reading and writing of the selected shape to/from an svg or wmf file.'
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object LblReadWriteInstructions: TLabel
          Left = 8
          Height = 45
          Top = 72
          Width = 516
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 4
          BorderSpacing.Right = 8
          Caption = 'If it does not click "Ext. viewer..." to open the image in an external viewer of the operating system. If the image is displayed correctly by the external viewer there is a bug in the file reader, otherwise the bug is in the writer.'
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object gbWRBottomLeft: TGroupBox
          AnchorSideLeft.Control = gbReadWriteTest
          AnchorSideTop.Control = CbFileFormat
          AnchorSideTop.Side = asrBottom
          Left = 4
          Height = 129
          Top = 156
          Width = 209
          AutoSize = True
          BorderSpacing.Left = 4
          BorderSpacing.Top = 8
          BorderSpacing.Right = 4
          BorderSpacing.Bottom = 8
          Caption = 'Written with origin at BOTTOM'
          ClientHeight = 109
          ClientWidth = 205
          ParentFont = False
          TabOrder = 0
          object BtnViewBottomLeft: TButton
            AnchorSideLeft.Control = WRBottomLeftPaintbox
            AnchorSideLeft.Side = asrBottom
            AnchorSideTop.Control = gbWRBottomLeft
            AnchorSideTop.Side = asrCenter
            Left = 114
            Height = 25
            Top = 42
            Width = 87
            AutoSize = True
            BorderSpacing.Left = 8
            BorderSpacing.Right = 4
            BorderSpacing.Bottom = 6
            Caption = 'Ext viewer...'
            OnClick = BtnViewImageClick
            TabOrder = 0
          end
          object WRBottomLeftPaintbox: TPaintBox
            AnchorSideLeft.Control = gbWRBottomLeft
            AnchorSideTop.Control = gbWRBottomLeft
            Left = 6
            Height = 100
            Top = 3
            Width = 100
            BorderSpacing.Left = 6
            BorderSpacing.Top = 3
            BorderSpacing.Bottom = 6
            OnPaint = PaintBoxPaint
          end
        end
        object Label14: TLabel
          Left = 8
          Height = 30
          Top = 19
          Width = 516
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 2
          BorderSpacing.Right = 8
          Caption = 'After clicking "Save && load" both images (with bottom and top origin) are written to file and reloaded for display in the boxes below.'
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object LblBothImagesMustMatch1: TLabel
          Left = 8
          Height = 15
          Top = 53
          Width = 520
          Align = alTop
          BorderSpacing.Left = 8
          BorderSpacing.Top = 4
          BorderSpacing.Right = 4
          Caption = 'These images must match the "Render test" images.'
          Font.Style = [fsBold]
          ParentColor = False
          ParentFont = False
          WordWrap = True
        end
        object CbFileFormat: TComboBox
          AnchorSideLeft.Control = Label1
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = LblReadWriteInstructions
          AnchorSideTop.Side = asrBottom
          Left = 116
          Height = 23
          Top = 125
          Width = 87
          BorderSpacing.Top = 8
          ItemHeight = 15
          ItemIndex = 0
          Items.Strings = (
            'svg'
            'wmf'
          )
          OnChange = CbFileFormatChange
          ParentFont = False
          Style = csDropDownList
          TabOrder = 1
          Text = 'svg'
        end
        object Label1: TLabel
          AnchorSideLeft.Control = LblReadWriteInstructions
          AnchorSideTop.Control = CbFileFormat
          AnchorSideTop.Side = asrCenter
          Left = 8
          Height = 15
          Top = 129
          Width = 100
          BorderSpacing.Top = 8
          BorderSpacing.Right = 8
          Caption = 'File format for test:'
          ParentColor = False
          ParentFont = False
        end
        object BtnSaveToFiles: TButton
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = CbFileFormat
          AnchorSideTop.Side = asrCenter
          AnchorSideRight.Control = gbReadWriteTest
          AnchorSideRight.Side = asrBottom
          Left = 435
          Height = 25
          Top = 124
          Width = 89
          Anchors = [akTop, akRight]
          AutoSize = True
          BorderSpacing.Left = 16
          BorderSpacing.Right = 8
          BorderSpacing.Bottom = 6
          Caption = 'Save && load'
          OnClick = BtnSaveToFilesClick
          ParentFont = False
          TabOrder = 2
        end
        object gbWRTopLeft: TGroupBox
          AnchorSideLeft.Control = gbWRBottomLeft
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = CbFileFormat
          AnchorSideTop.Side = asrBottom
          Left = 221
          Height = 129
          Top = 156
          Width = 212
          AutoSize = True
          BorderSpacing.Left = 8
          BorderSpacing.Top = 8
          BorderSpacing.Bottom = 8
          Caption = 'Written with origin at TOP'
          ClientHeight = 109
          ClientWidth = 208
          ParentFont = False
          TabOrder = 3
          object BtnViewTopLeft: TButton
            AnchorSideLeft.Control = WRTopLeftPaintbox
            AnchorSideLeft.Side = asrBottom
            AnchorSideTop.Control = WRTopLeftPaintbox
            AnchorSideTop.Side = asrCenter
            Left = 114
            Height = 25
            Top = 41
            Width = 90
            AutoSize = True
            BorderSpacing.Left = 8
            BorderSpacing.Right = 4
            BorderSpacing.Bottom = 6
            Caption = 'Ext. viewer...'
            OnClick = BtnViewImageClick
            TabOrder = 0
          end
          object WRTopLeftPaintbox: TPaintBox
            AnchorSideLeft.Control = gbWRTopLeft
            AnchorSideTop.Control = gbWRTopLeft
            Left = 6
            Height = 100
            Top = 3
            Width = 100
            BorderSpacing.Left = 6
            BorderSpacing.Top = 3
            BorderSpacing.Bottom = 6
            OnPaint = PaintBoxPaint
          end
        end
      end
    end
  end
end