File: Main.lfm

package info (click to toggle)
lazarus 1.2.4%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 170,220 kB
  • ctags: 115,165
  • sloc: pascal: 1,386,898; xml: 257,878; sh: 2,935; java: 603; makefile: 549; perl: 297; sql: 174; ansic: 137
file content (537 lines) | stat: -rw-r--r-- 15,093 bytes parent folder | download | duplicates (4)
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
object Form1: TForm1
  Left = 495
  Height = 590
  Top = 225
  Width = 786
  Caption = 'Form1'
  ClientHeight = 590
  ClientWidth = 786
  OnCreate = FormCreate
  LCLVersion = '1.3'
  object PageControl1: TPageControl
    Left = 0
    Height = 590
    Top = 0
    Width = 786
    ActivePage = tsMain
    Align = alClient
    TabIndex = 0
    TabOrder = 0
    object tsMain: TTabSheet
      Caption = 'Main'
      ClientHeight = 562
      ClientWidth = 778
      object StatusBar1: TStatusBar
        Left = 0
        Height = 23
        Top = 539
        Width = 778
        Panels = <>
      end
      object Panel2: TPanel
        Left = 0
        Height = 36
        Top = 503
        Width = 778
        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 = 0
        Height = 108
        Top = 395
        Width = 778
        Align = alBottom
        BevelOuter = bvNone
        ClientHeight = 108
        ClientWidth = 778
        TabOrder = 2
        object rgSnapMode: TRadioGroup
          Left = 8
          Height = 101
          Top = 5
          Width = 96
          AutoFill = 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 = 83
          ClientWidth = 92
          ItemIndex = 0
          Items.Strings = (
            'cdmXY'
            'cdmOnlyX'
            'cdmOnlyY'
          )
          OnClick = rgSnapModeClick
          TabOrder = 0
        end
        object rgDrawingMode: TRadioGroup
          Left = 208
          Height = 101
          Top = 5
          Width = 97
          AutoFill = True
          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 = 83
          ClientWidth = 93
          ItemIndex = 1
          Items.Strings = (
            'tdmDefault'
            'tdmNormal'
            'tdmXor'
          )
          OnClick = rgDrawingModeClick
          TabOrder = 1
        end
        object cbRotateLabel: TCheckBox
          Left = 420
          Height = 19
          Top = 29
          Width = 82
          Caption = 'Rotate label'
          Checked = True
          OnClick = cbRotateLabelClick
          State = cbChecked
          TabOrder = 2
        end
        object cbShowLabel: TCheckBox
          Left = 420
          Height = 19
          Top = 5
          Width = 77
          Caption = 'Show label'
          Checked = True
          OnClick = cbShowLabelClick
          State = cbChecked
          TabOrder = 3
        end
        object clrPenColor: TColorButton
          Left = 692
          Height = 25
          Top = 41
          Width = 78
          BorderWidth = 2
          ButtonColorAutoSize = False
          ButtonColorSize = 16
          ButtonColor = clBlack
          Caption = 'Pen'
          Margin = 4
          OnColorChanged = clrPenColorColorChanged
        end
        object clrFontColor: TColorButton
          Left = 692
          Height = 25
          Top = 70
          Width = 78
          BorderWidth = 2
          ButtonColorAutoSize = False
          ButtonColorSize = 16
          ButtonColor = clBlack
          Caption = 'Font'
          Margin = 4
          OnColorChanged = clrFontColorColorChanged
        end
        object clrBackgroundColor: TColorButton
          Left = 692
          Height = 25
          Top = 8
          Width = 78
          BorderWidth = 2
          ButtonColorAutoSize = False
          ButtonColorSize = 16
          ButtonColor = clBtnFace
          Caption = 'Backgr'
          Margin = 4
          OnColorChanged = clrBackgroundColorColorChanged
        end
        object edEndbarLength: TSpinEdit
          Left = 628
          Height = 23
          Top = 5
          Width = 50
          MaxValue = 1000
          OnChange = edEndbarLengthChange
          TabOrder = 4
          Value = 1000
        end
        object lblEndBarLength: TLabel
          Left = 548
          Height = 15
          Top = 8
          Width = 74
          Caption = 'Endbar length'
          ParentColor = False
        end
        object cbHide: TCheckBox
          Left = 420
          Height = 19
          Top = 81
          Width = 114
          Caption = 'Hide at mouse up'
          OnClick = cbHideClick
          TabOrder = 5
        end
        object rgMeasureMode: TRadioGroup
          Left = 108
          Height = 101
          Top = 5
          Width = 97
          AutoFill = True
          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 = 83
          ClientWidth = 93
          ItemIndex = 0
          Items.Strings = (
            'cdmXY'
            'cdmOnlyX'
            'cdmOnlyY'
          )
          OnClick = rgMeasureModeClick
          TabOrder = 6
        end
        object mDistanceText: TMemo
          Left = 548
          Height = 53
          Top = 42
          Width = 126
          Lines.Strings = (
            'axis dist = %0:.4g'
            'graph dist = %1:.4g'
          )
          OnChange = mDistanceTextChange
          TabOrder = 7
        end
        object rgDataPointMode: TRadioGroup
          Left = 308
          Height = 101
          Top = 5
          Width = 97
          AutoFill = True
          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 = 83
          ClientWidth = 93
          ItemIndex = 0
          Items.Strings = (
            'Free'
            'Snap'
            'Lock'
          )
          OnClick = rgDataPointModeClick
          TabOrder = 8
        end
        object cbFlipLabel: TCheckBox
          Left = 420
          Height = 19
          Top = 53
          Width = 67
          Caption = 'Flip label'
          OnClick = cbFlipLabelClick
          TabOrder = 9
        end
      end
      object Chart1: TChart
        Left = 0
        Height = 395
        Top = 0
        Width = 778
        AutoFocus = True
        AxisList = <        
          item
            TickColor = clBlue
            AxisPen.Color = clBlue
            AxisPen.Visible = True
            Marks.LabelFont.Color = clBlue
            Minors = <>
            Title.LabelFont.Orientation = 900
            Transformations = ChartAxisTransformations1
          end        
          item
            Alignment = calBottom
            Minors = <>
          end        
          item
            Grid.Visible = False
            TickColor = clTeal
            Alignment = calRight
            AxisPen.Color = clTeal
            AxisPen.Visible = True
            Marks.LabelFont.Color = clTeal
            Minors = <>
            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 = False
        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
          ShowPoints = True
          Source = RandomChartSource3
        end
      end
    end
    object tsFit: TTabSheet
      Caption = 'Fit'
      ClientHeight = 564
      ClientWidth = 795
      object pnlFit: TPanel
        Left = 0
        Height = 66
        Top = 0
        Width = 795
        Align = alTop
        ClientHeight = 66
        ClientWidth = 795
        TabOrder = 0
        object rgFitParamCount: TRadioGroup
          Left = 12
          Height = 50
          Top = 6
          Width = 450
          AutoFill = True
          Caption = 'Measure (by dragging right mouse button)'
          ChildSizing.LeftRightSpacing = 6
          ChildSizing.TopBottomSpacing = 6
          ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
          ChildSizing.EnlargeVertical = crsHomogenousChildResize
          ChildSizing.ShrinkHorizontal = crsScaleChilds
          ChildSizing.ShrinkVertical = crsScaleChilds
          ChildSizing.Layout = cclLeftToRightThenTopToBottom
          ChildSizing.ControlsPerLine = 3
          ClientHeight = 32
          ClientWidth = 446
          Columns = 3
          ItemIndex = 0
          Items.Strings = (
            'Mean value'
            'Slope'
            'Find peak'
          )
          OnClick = rgFitParamCountClick
          TabOrder = 0
        end
        object lblFit: TLabel
          Left = 472
          Height = 13
          Top = 8
          Width = 22
          Caption = 'lblFit'
          ParentColor = False
          Visible = False
        end
      end
      object chFit: TChart
        Left = 0
        Height = 498
        Top = 66
        Width = 795
        AxisList = <        
          item
            Minors = <>
            Title.LabelFont.Orientation = 900
          end        
          item
            Alignment = calBottom
            Minors = <>
          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
        ParentColor = False
        object chFitLineSeries1: TLineSeries
          LineType = ltNone
          Pointer.Brush.Color = clRed
          Pointer.HorizSize = 3
          Pointer.VertSize = 3
          ShowPoints = True
        end
        object chFitFitSeries1: TFitSeries
          Active = False
          FitRange.Min = 1
          FitRange.UseMax = True
          FitRange.UseMin = True
          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
      PointerStart.Brush.Style = bsClear
      PointerStart.Pen.Color = clRed
      PointerStart.VertSize = 1000
      Transparency = 128
      OnMeasure = ctDistance1Measure
    end
    object ctDistance2: TDataPointDistanceTool
      Shift = [ssCtrl, ssLeft]
      Marks.Format = '%0:.9g'
      PointerEnd.HorizSize = 8
      PointerEnd.Style = psRightTriangle
      PointerEnd.VertSize = 8
      PointerStart.Brush.Style = bsClear
      PointerStart.Style = psLeftBracket
      PointerStart.VertSize = 8
      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]
    end
  end
end