File: Main.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 (630 lines) | stat: -rw-r--r-- 18,830 bytes parent folder | download | duplicates (2)
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
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
object Form1: TForm1
  Left = 495
  Height = 594
  Top = 225
  Width = 817
  Caption = 'Form1'
  ClientHeight = 594
  ClientWidth = 817
  OnCreate = FormCreate
  LCLVersion = '2.1.0.0'
  object PageControl1: TPageControl
    Left = 0
    Height = 594
    Top = 0
    Width = 817
    ActivePage = tsMain
    Align = alClient
    TabIndex = 0
    TabOrder = 0
    object tsMain: TTabSheet
      Caption = 'Main'
      ClientHeight = 566
      ClientWidth = 809
      object StatusBar1: TStatusBar
        Left = 0
        Height = 23
        Top = 543
        Width = 809
        Panels = <>
      end
      object Panel2: TPanel
        Left = 0
        Height = 36
        Top = 507
        Width = 809
        Align = alBottom
        BevelOuter = bvNone
        Caption = 'Left-drag --> measure 1st distance, Shift to zoom while dragging         Ctrl+left-drag --> measure 2nd distance          Right-drag --> show values'
        Color = clGray
        Font.Color = clWhite
        ParentColor = False
        ParentFont = False
        TabOrder = 1
      end
      object Panel1: TPanel
        Left = 4
        Height = 92
        Top = 407
        Width = 797
        Align = alBottom
        BorderSpacing.Left = 4
        BorderSpacing.Top = 8
        BorderSpacing.Right = 8
        BorderSpacing.Bottom = 8
        BevelOuter = bvNone
        ClientHeight = 92
        ClientWidth = 797
        TabOrder = 2
        object rgSnapMode: TRadioGroup
          AnchorSideLeft.Control = Panel1
          AnchorSideTop.Control = Panel1
          Left = 0
          Height = 89
          Top = 0
          Width = 103
          AutoFill = True
          AutoSize = True
          Caption = 'Snapping mode'
          ChildSizing.LeftRightSpacing = 6
          ChildSizing.TopBottomSpacing = 6
          ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
          ChildSizing.EnlargeVertical = crsHomogenousChildResize
          ChildSizing.ShrinkHorizontal = crsScaleChilds
          ChildSizing.ShrinkVertical = crsScaleChilds
          ChildSizing.Layout = cclLeftToRightThenTopToBottom
          ChildSizing.ControlsPerLine = 1
          ClientHeight = 69
          ClientWidth = 99
          ItemIndex = 0
          Items.Strings = (
            'cdmXY'
            'cdmOnlyX'
            'cdmOnlyY'
          )
          OnClick = rgSnapModeClick
          TabOrder = 0
        end
        object rgDrawingMode: TRadioGroup
          AnchorSideLeft.Control = rgMeasureMode
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = Panel1
          Left = 217
          Height = 89
          Top = 0
          Width = 98
          AutoFill = True
          AutoSize = True
          BorderSpacing.Left = 8
          Caption = 'Drawing mode'
          ChildSizing.LeftRightSpacing = 6
          ChildSizing.TopBottomSpacing = 6
          ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
          ChildSizing.EnlargeVertical = crsHomogenousChildResize
          ChildSizing.ShrinkHorizontal = crsScaleChilds
          ChildSizing.ShrinkVertical = crsScaleChilds
          ChildSizing.Layout = cclLeftToRightThenTopToBottom
          ChildSizing.ControlsPerLine = 1
          ClientHeight = 69
          ClientWidth = 94
          ItemIndex = 1
          Items.Strings = (
            'tdmDefault'
            'tdmNormal'
            'tdmXor'
          )
          OnClick = rgDrawingModeClick
          TabOrder = 1
        end
        object cbRotateLabel: TCheckBox
          AnchorSideLeft.Control = cbShowLabel
          AnchorSideTop.Control = cbShowLabel
          AnchorSideTop.Side = asrBottom
          Left = 439
          Height = 19
          Top = 27
          Width = 82
          BorderSpacing.Top = 4
          Caption = 'Rotate label'
          Checked = True
          OnClick = cbRotateLabelClick
          State = cbChecked
          TabOrder = 2
        end
        object cbShowLabel: TCheckBox
          AnchorSideLeft.Control = rgDataPointMode
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = Panel1
          Left = 439
          Height = 19
          Top = 4
          Width = 77
          BorderSpacing.Left = 8
          BorderSpacing.Top = 4
          Caption = 'Show label'
          Checked = True
          OnClick = cbShowLabelClick
          State = cbChecked
          TabOrder = 3
        end
        object clrPenColor: TColorButton
          AnchorSideLeft.Control = clrBackgroundColor
          AnchorSideTop.Control = clrBackgroundColor
          AnchorSideTop.Side = asrBottom
          Left = 697
          Height = 25
          Top = 31
          Width = 78
          BorderSpacing.Top = 4
          BorderSpacing.Right = 8
          BorderWidth = 2
          ButtonColorAutoSize = False
          ButtonColorSize = 16
          ButtonColor = clBlack
          Caption = 'Pen'
          Margin = 4
          OnColorChanged = clrPenColorColorChanged
        end
        object clrFontColor: TColorButton
          AnchorSideLeft.Control = clrBackgroundColor
          AnchorSideTop.Control = clrPenColor
          AnchorSideTop.Side = asrBottom
          Left = 697
          Height = 25
          Top = 60
          Width = 78
          BorderSpacing.Top = 4
          BorderSpacing.Right = 8
          BorderWidth = 2
          ButtonColorAutoSize = False
          ButtonColorSize = 16
          ButtonColor = clBlack
          Caption = 'Font'
          Margin = 4
          OnColorChanged = clrFontColorColorChanged
        end
        object clrBackgroundColor: TColorButton
          AnchorSideLeft.Control = edEndbarLength
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = edEndbarLength
          Left = 697
          Height = 25
          Top = 2
          Width = 78
          BorderSpacing.Left = 8
          BorderSpacing.Right = 8
          BorderWidth = 2
          ButtonColorAutoSize = False
          ButtonColorSize = 16
          ButtonColor = clBtnFace
          Caption = 'Backgr'
          Margin = 4
          OnColorChanged = clrBackgroundColorColorChanged
        end
        object edEndbarLength: TSpinEdit
          AnchorSideLeft.Control = lblEndBarLength
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = cbShowLabel
          AnchorSideTop.Side = asrCenter
          Left = 639
          Height = 23
          Top = 2
          Width = 50
          BorderSpacing.Left = 4
          MaxValue = 1000
          OnChange = edEndbarLengthChange
          TabOrder = 4
          Value = 1000
        end
        object lblEndBarLength: TLabel
          AnchorSideLeft.Control = cbHide
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = edEndbarLength
          AnchorSideTop.Side = asrCenter
          Left = 561
          Height = 15
          Top = 6
          Width = 74
          BorderSpacing.Left = 8
          Caption = 'Endbar length'
          ParentColor = False
        end
        object cbHide: TCheckBox
          AnchorSideLeft.Control = cbShowLabel
          AnchorSideTop.Control = cbFlipLabel
          AnchorSideTop.Side = asrBottom
          Left = 439
          Height = 19
          Top = 73
          Width = 114
          BorderSpacing.Top = 4
          Caption = 'Hide at mouse up'
          OnClick = cbHideClick
          TabOrder = 5
        end
        object rgMeasureMode: TRadioGroup
          AnchorSideLeft.Control = rgSnapMode
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = Panel1
          Left = 111
          Height = 89
          Top = 0
          Width = 98
          AutoFill = True
          AutoSize = True
          BorderSpacing.Left = 8
          Caption = 'Measure mode'
          ChildSizing.LeftRightSpacing = 6
          ChildSizing.TopBottomSpacing = 6
          ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
          ChildSizing.EnlargeVertical = crsHomogenousChildResize
          ChildSizing.ShrinkHorizontal = crsScaleChilds
          ChildSizing.ShrinkVertical = crsScaleChilds
          ChildSizing.Layout = cclLeftToRightThenTopToBottom
          ChildSizing.ControlsPerLine = 1
          ClientHeight = 69
          ClientWidth = 94
          ItemIndex = 0
          Items.Strings = (
            'cdmXY'
            'cdmOnlyX'
            'cdmOnlyY'
          )
          OnClick = rgMeasureModeClick
          TabOrder = 6
        end
        object mDistanceText: TMemo
          AnchorSideLeft.Control = lblEndBarLength
          AnchorSideRight.Control = edEndbarLength
          AnchorSideRight.Side = asrBottom
          AnchorSideBottom.Control = cbHide
          AnchorSideBottom.Side = asrBottom
          Left = 561
          Height = 42
          Top = 50
          Width = 128
          Anchors = [akTop, akLeft, akRight, akBottom]
          Lines.Strings = (
            'axis dist = %0:.4g'
            'graph dist = %1:.4g'
          )
          OnChange = mDistanceTextChange
          TabOrder = 7
        end
        object rgDataPointMode: TRadioGroup
          AnchorSideLeft.Control = rgDrawingMode
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = Panel1
          Left = 323
          Height = 89
          Top = 0
          Width = 108
          AutoFill = True
          AutoSize = True
          BorderSpacing.Left = 8
          Caption = 'Data point mode'
          ChildSizing.LeftRightSpacing = 6
          ChildSizing.TopBottomSpacing = 6
          ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
          ChildSizing.EnlargeVertical = crsHomogenousChildResize
          ChildSizing.ShrinkHorizontal = crsScaleChilds
          ChildSizing.ShrinkVertical = crsScaleChilds
          ChildSizing.Layout = cclLeftToRightThenTopToBottom
          ChildSizing.ControlsPerLine = 1
          ClientHeight = 69
          ClientWidth = 104
          ItemIndex = 0
          Items.Strings = (
            'Free'
            'Snap'
            'Lock'
          )
          OnClick = rgDataPointModeClick
          TabOrder = 8
        end
        object cbFlipLabel: TCheckBox
          AnchorSideLeft.Control = cbShowLabel
          AnchorSideTop.Control = cbRotateLabel
          AnchorSideTop.Side = asrBottom
          Left = 439
          Height = 19
          Top = 50
          Width = 67
          BorderSpacing.Top = 4
          Caption = 'Flip label'
          OnClick = cbFlipLabelClick
          TabOrder = 9
        end
      end
      object Chart1: TChart
        Left = 0
        Height = 399
        Top = 0
        Width = 809
        AutoFocus = True
        AxisList = <        
          item
            TickColor = clBlue
            AxisPen.Color = clBlue
            AxisPen.Visible = True
            Marks.LabelFont.Color = clBlue
            Marks.LabelBrush.Style = bsClear
            Minors = <>
            Title.LabelFont.Orientation = 900
            Title.LabelBrush.Style = bsClear
            Transformations = ChartAxisTransformations1
          end        
          item
            Alignment = calBottom
            Marks.LabelBrush.Style = bsClear
            Minors = <>
            Title.LabelBrush.Style = bsClear
          end        
          item
            Grid.Visible = False
            TickColor = clTeal
            Alignment = calRight
            AxisPen.Color = clTeal
            AxisPen.Visible = True
            Marks.LabelFont.Color = clTeal
            Marks.LabelBrush.Style = bsClear
            Minors = <>
            Title.LabelBrush.Style = bsClear
            Transformations = ChartAxisTransformations3
          end>
        BackColor = clCream
        Foot.Brush.Color = clBtnFace
        Foot.Font.Color = clBlue
        MarginsExternal.Left = 8
        MarginsExternal.Top = 8
        MarginsExternal.Right = 8
        MarginsExternal.Bottom = 8
        Title.Brush.Color = clBtnFace
        Title.Font.Color = clBlue
        Title.Text.Strings = (
          'TAChart'
        )
        Toolset = ctDist
        Align = alClient
        DoubleBuffered = True
        ParentColor = True
        object Chart1LineSeries1: TLineSeries
          AxisIndexX = 1
          AxisIndexY = 0
          LinePen.Color = clBlue
          Source = RandomChartSource1
        end
        object Chart1LineSeries2: TLineSeries
          AxisIndexX = 1
          AxisIndexY = 0
          LinePen.Color = clBlue
          LinePen.Style = psDash
          Source = RandomChartSource2
        end
        object Chart1LineSeries3: TLineSeries
          AxisIndexX = 1
          AxisIndexY = 2
          LinePen.Color = clTeal
          LinePen.Width = 3
          Pointer.Brush.Color = clMoneyGreen
          Pointer.Style = psCircle
          Pointer.Visible = True
          ShowPoints = True
          Source = RandomChartSource3
        end
      end
    end
    object tsFit: TTabSheet
      Caption = 'Fit'
      ClientHeight = 566
      ClientWidth = 809
      object pnlFit: TPanel
        Left = 0
        Height = 71
        Top = 0
        Width = 809
        Align = alTop
        AutoSize = True
        ClientHeight = 71
        ClientWidth = 809
        TabOrder = 0
        object rgFitParamCount: TRadioGroup
          AnchorSideLeft.Control = pnlFit
          AnchorSideTop.Control = pnlFit
          Left = 9
          Height = 53
          Top = 9
          Width = 285
          AutoFill = False
          AutoSize = True
          BorderSpacing.Around = 8
          BorderSpacing.InnerBorder = 4
          Caption = 'Measure (by dragging right mouse button)'
          ChildSizing.LeftRightSpacing = 12
          ChildSizing.TopBottomSpacing = 3
          ChildSizing.HorizontalSpacing = 24
          ChildSizing.ShrinkHorizontal = crsScaleChilds
          ChildSizing.ShrinkVertical = crsScaleChilds
          ChildSizing.Layout = cclLeftToRightThenTopToBottom
          ChildSizing.ControlsPerLine = 3
          ClientHeight = 33
          ClientWidth = 281
          Columns = 3
          ItemIndex = 0
          Items.Strings = (
            'Mean value'
            'Slope'
            'Find peak'
          )
          OnClick = rgFitParamCountClick
          TabOrder = 0
        end
        object lblFit: TLabel
          AnchorSideLeft.Control = rgFitParamCount
          AnchorSideLeft.Side = asrBottom
          AnchorSideTop.Control = rgFitParamCount
          AnchorSideTop.Side = asrCenter
          Left = 326
          Height = 15
          Top = 28
          Width = 26
          BorderSpacing.Left = 32
          Caption = 'lblFit'
          ParentColor = False
          Visible = False
        end
      end
      object chFit: TChart
        Left = 0
        Height = 495
        Top = 71
        Width = 809
        AxisList = <        
          item
            Marks.LabelBrush.Style = bsClear
            Minors = <>
            Title.LabelFont.Orientation = 900
            Title.LabelBrush.Style = bsClear
          end        
          item
            Alignment = calBottom
            Marks.LabelBrush.Style = bsClear
            Minors = <>
            Title.LabelBrush.Style = bsClear
          end>
        Foot.Brush.Color = clBtnFace
        Foot.Font.Color = clBlue
        Title.Brush.Color = clBtnFace
        Title.Font.Color = clBlue
        Title.Text.Strings = (
          'TAChart'
        )
        Toolset = ctFit
        Align = alClient
        DoubleBuffered = True
        object chFitLineSeries1: TLineSeries
          LineType = ltNone
          Pointer.Brush.Color = clRed
          Pointer.HorizSize = 3
          Pointer.VertSize = 3
          Pointer.Visible = True
          ShowPoints = True
        end
        object chFitFitSeries1: TFitSeries
          Active = False
          ParamCount = 1
          Pen.Color = clLime
          Pen.Width = 3
        end
      end
    end
  end
  object RandomChartSource1: TRandomChartSource
    PointsNumber = 100
    RandSeed = 2143215771
    XMax = 10
    XMin = 0
    YMax = 10
    YMin = 4
    left = 73
    top = 28
  end
  object RandomChartSource2: TRandomChartSource
    PointsNumber = 15
    RandSeed = 2143294090
    XMax = 10
    XMin = 0
    YMax = 5
    YMin = 0
    left = 73
    top = 97
  end
  object ctDist: TChartToolset
    left = 72
    top = 232
    object ctCrosshair: TDataPointCrosshairTool
      Shift = [ssRight]
      OnDraw = ctCrosshairDraw
      Size = 16
    end
    object ctDistance1: TDataPointDistanceTool
      Shift = [ssLeft]
      OnBeforeKeyDown = ctDistance1BeforeKeyDown
      OnBeforeKeyUp = ctDistance1BeforeKeyUp
      LinePen.Width = 2
      Marks.Distance = 30
      Marks.Format = 'dist='#13#10'%0:.9g / %1:.9g'
      Marks.LinkPen.Color = clBlue
      PointerEnd.Brush.Style = bsClear
      PointerEnd.VertSize = 1000
      PointerEnd.Visible = True
      PointerStart.Brush.Style = bsClear
      PointerStart.Pen.Color = clRed
      PointerStart.VertSize = 1000
      PointerStart.Visible = True
      Transparency = 128
      OnMeasure = ctDistance1Measure
    end
    object ctDistance2: TDataPointDistanceTool
      Shift = [ssCtrl, ssLeft]
      Marks.Format = '%0:.9g'
      PointerEnd.HorizSize = 8
      PointerEnd.Style = psRightTriangle
      PointerEnd.VertSize = 8
      PointerEnd.Visible = True
      PointerStart.Brush.Style = bsClear
      PointerStart.Style = psLeftBracket
      PointerStart.VertSize = 8
      PointerStart.Visible = True
      OnMeasure = ctDistance1Measure
    end
    object ctDistPanMouseWheelTool1: TPanMouseWheelTool
    end
  end
  object ChartAxisTransformations1: TChartAxisTransformations
    left = 260
    top = 128
    object ChartAxisTransformations1LogarithmAxisTransform1: TLogarithmAxisTransform
      Enabled = False
      Base = 10
    end
  end
  object RandomChartSource3: TRandomChartSource
    PointsNumber = 16
    RandSeed = 1603408474
    XMax = 10
    XMin = 0
    YMax = 1000
    YMin = 900
    left = 72
    top = 169
  end
  object ChartAxisTransformations3: TChartAxisTransformations
    left = 440
    top = 128
    object ChartAxisTransformations3AutoScaleAxisTransform1: TAutoScaleAxisTransform
      MaxValue = 20
      MinValue = 10
    end
  end
  object ctFit: TChartToolset
    left = 260
    top = 192
    object ctFitDataPointDistanceTool1: TDataPointDistanceTool
      Shift = [ssRight]
      DrawingMode = tdmNormal
      LinePen.Visible = False
      Marks.Format = '%0:.9g'
      Marks.LinkPen.Visible = False
      MeasureMode = cdmOnlyX
      PointerEnd.VertSize = 10000
      PointerStart.VertSize = 10000
      OnGetDistanceText = ctFitDataPointDistanceTool1GetDistanceText
      OnMeasure = ctFitDataPointDistanceTool1Measure
    end
    object ctFitZoomDragTool1: TZoomDragTool
      Shift = [ssLeft]
      Brush.Style = bsClear
    end
  end
end