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 (658 lines) | stat: -rw-r--r-- 16,935 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
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
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
object Form1: TForm1
  Left = 653
  Height = 459
  Top = 209
  Width = 550
  Caption = 'Form1'
  ClientHeight = 459
  ClientWidth = 550
  Position = poScreenCenter
  LCLVersion = '1.1'
  object PageControl1: TPageControl
    Left = 0
    Height = 459
    Top = 0
    Width = 550
    ActivePage = tsDomain
    Align = alClient
    TabIndex = 0
    TabOrder = 0
    OnChange = PageControl1Change
    object tsDomain: TTabSheet
      Caption = 'Domain'
      ClientHeight = 433
      ClientWidth = 542
      object Chart1: TChart
        Left = 0
        Height = 433
        Top = 0
        Width = 542
        AxisList = <        
          item
            Grid.Color = clGray
            TickLength = 0
            Minors = <>
            Title.LabelFont.Orientation = 900
          end        
          item
            Grid.Color = clGray
            TickLength = 0
            Alignment = calBottom
            Minors = <>
          end>
        ExpandPercentage = 5
        Extent.UseYMax = True
        Extent.UseYMin = True
        Extent.YMax = 6
        Extent.YMin = -6
        Foot.Brush.Color = clBtnFace
        Foot.Font.Color = clBlue
        Frame.Visible = False
        Legend.Visible = True
        Title.Brush.Color = clBtnFace
        Title.Font.Color = clBlue
        Title.Text.Strings = (
          'TAChart'
        )
        Align = alClient
        ParentColor = False
        object Chart1FuncSeries1: TFuncSeries
          Extent.UseXMax = True
          Extent.UseXMin = True
          Extent.XMax = 6.28
          Extent.XMin = -6.28
          Extent.YMax = 2
          Extent.YMin = -2
          Title = '1 / Sin(x)'
          OnCalculate = Chart1FuncSeries1Calculate
          Pen.Color = clOlive
          Pen.Width = 2
          Step = 4
        end
        object Chart1XAxis: TConstantLine
          Legend.Visible = False
          Arrow.BaseLength = 5
          Arrow.Length = 12
          Arrow.Visible = True
          Arrow.Width = 4
          Position = 0
        end
        object Chart1YAxis: TConstantLine
          Legend.Visible = False
          Arrow.BaseLength = 5
          Arrow.Length = 12
          Arrow.Visible = True
          Arrow.Width = 4
          LineStyle = lsVertical
          Position = 0
        end
        object Chart1BarSeries1: TBarSeries
          Title = 'Cos(x)'
          BarBrush.Color = clMoneyGreen
          Source = UserDefinedChartSource1
        end
        object Chart1UserDrawnSeries1: TUserDrawnSeries
          OnDraw = Chart1UserDrawnSeries1Draw
        end
      end
      object cbDomain: TCheckBox
        Left = 477
        Height = 17
        Top = 395
        Width = 55
        Anchors = [akRight, akBottom]
        Caption = 'Domain'
        OnChange = cbDomainChange
        TabOrder = 1
      end
      object cbRotate: TCheckBox
        Left = 477
        Height = 17
        Top = 371
        Width = 53
        Anchors = [akRight, akBottom]
        Caption = 'Rotate'
        OnChange = cbRotateChange
        TabOrder = 2
      end
    end
    object tsColorMap: TTabSheet
      Caption = 'Color map'
      ClientHeight = 433
      ClientWidth = 542
      object ChartColorMap: TChart
        Left = 0
        Height = 433
        Top = 0
        Width = 416
        AxisList = <        
          item
            MarginsForMarks = False
            Minors = <>
            Title.LabelFont.Orientation = 900
            ZPosition = 1
          end        
          item
            Alignment = calBottom
            MarginsForMarks = False
            Minors = <>
            ZPosition = 1
          end>
        Extent.UseXMax = True
        Extent.UseXMin = True
        Extent.XMax = 1
        Extent.XMin = -1
        Foot.Brush.Color = clBtnFace
        Foot.Font.Color = clBlue
        Legend.SymbolWidth = 30
        Title.Brush.Color = clBtnFace
        Title.Font.Color = clBlue
        Title.Text.Strings = (
          'TAChart'
        )
        Toolset = chtsColorMap
        Align = alClient
        DoubleBuffered = True
        ParentColor = False
        object ChartColorMapColorMapSeries1: TColorMapSeries
          Extent.UseXMax = True
          Extent.UseXMin = True
          Extent.XMax = 0.5
          Extent.XMin = -0.5
          Title = 'sin(10x + 17y)'
          ColorSource = ListChartSource1
          OnCalculate = ChartColorMapColorMapSeries1Calculate
        end
      end
      object Panel1: TPanel
        Left = 421
        Height = 433
        Top = 0
        Width = 121
        Align = alRight
        BevelOuter = bvNone
        ClientHeight = 433
        ClientWidth = 121
        TabOrder = 1
        object ChartLegendPanel1: TChartLegendPanel
          Left = 0
          Height = 197
          Top = 0
          Width = 121
          Chart = ChartColorMap
          Align = alTop
        end
        object cbInterpolate: TCheckBox
          Left = 8
          Height = 17
          Top = 403
          Width = 74
          Anchors = [akLeft, akBottom]
          Caption = 'Interpolate'
          OnChange = cbInterpolateChange
          TabOrder = 1
        end
        object cbMultLegend: TCheckBox
          Left = 8
          Height = 17
          Top = 375
          Width = 91
          Anchors = [akLeft, akBottom]
          Caption = 'Expand legend'
          OnChange = cbMultLegendChange
          TabOrder = 2
        end
      end
      object Splitter1: TSplitter
        Left = 416
        Height = 433
        Top = 0
        Width = 5
        Align = alRight
        ResizeAnchor = akRight
      end
    end
    object tsSpline: TTabSheet
      Caption = 'Spline'
      ClientHeight = 433
      ClientWidth = 542
      object ChartSpline: TChart
        Left = 0
        Height = 395
        Top = 0
        Width = 542
        AxisList = <        
          item
            Grid.Color = clGray
            Grid.Cosmetic = False
            Intervals.Options = [aipGraphCoords, aipUseCount, aipUseMinLength, aipUseNiceSteps]
            Intervals.Tolerance = 2
            Minors = <>
            Title.LabelFont.Orientation = 900
            Transformations = catSpline
          end        
          item
            Grid.Color = clGray
            Grid.Cosmetic = False
            Alignment = calBottom
            Minors = <>
          end>
        ExpandPercentage = 5
        Foot.Brush.Color = clBtnFace
        Foot.Font.Color = clBlue
        Title.Brush.Color = clBtnFace
        Title.Font.Color = clBlue
        Title.Text.Strings = (
          'TAChart'
        )
        Align = alClient
        DoubleBuffered = True
        ParentColor = False
        object ChartSplineLineSeries1: TLineSeries
          AxisIndexX = 1
          AxisIndexY = 0
          Source = RandomChartSource1
        end
        object ChartSplineBSplineSeries1: TBSplineSeries
          Active = False
          AxisIndexX = 1
          AxisIndexY = 0
          Source = RandomChartSource1
          Pen.Color = clLime
          Pen.Width = 3
          Pointer.Brush.Color = clLime
        end
        object ChartSplineCubicSplineSeries1: TCubicSplineSeries
          ZPosition = 1
          AxisIndexX = 1
          AxisIndexY = 0
          Pointer.Brush.Color = clAqua
          Source = RandomChartSource1
          Options = [csoDrawFewPoints, csoDrawUnorderedX]
          Pen.Color = clAqua
          Pen.Width = 2
        end
      end
      object pnSpline: TPanel
        Left = 0
        Height = 38
        Top = 395
        Width = 542
        Align = alBottom
        ClientHeight = 38
        ClientWidth = 542
        TabOrder = 1
        object iseSplineDegree: TTISpinEdit
          Left = 60
          Height = 21
          Top = 4
          Width = 50
          Link.TIObject = ChartSplineBSplineSeries1
          Link.TIPropertyName = 'Degree'
          MinValue = 1
          OnChange = iseSplineDegreeChange
          TabOrder = 0
        end
        object icbSplineRandomX: TTICheckBox
          Left = 128
          Height = 23
          Top = 4
          Width = 90
          Caption = 'Random X'
          Link.TIObject = RandomChartSource1
          Link.TIPropertyName = 'RandomX'
          PropertyNameAsCaption = False
          TabOrder = 1
        end
        object lblSplineDegree: TLabel
          Left = 12
          Height = 13
          Top = 8
          Width = 35
          Caption = 'Degree'
          ParentColor = False
        end
        object cbCubic: TTICheckBox
          Left = 312
          Height = 23
          Top = 4
          Width = 90
          Caption = 'Cubic'
          Link.TIObject = ChartSplineCubicSplineSeries1
          Link.TIPropertyName = 'Active'
          PropertyNameAsCaption = False
          State = cbChecked
          TabOrder = 2
        end
        object cbBSpline: TTICheckBox
          Left = 220
          Height = 23
          Top = 4
          Width = 90
          Caption = 'B-Spline'
          Link.TIObject = ChartSplineBSplineSeries1
          Link.TIPropertyName = 'Active'
          PropertyNameAsCaption = False
          TabOrder = 3
        end
        object cbLogY: TTICheckBox
          Left = 404
          Height = 23
          Top = 4
          Width = 90
          Caption = 'Log Y'
          Link.TIObject = catSplineLogarithmAxisTransform
          Link.TIPropertyName = 'Enabled'
          PropertyNameAsCaption = False
          TabOrder = 4
        end
      end
    end
    object tsAutoExtentY: TTabSheet
      Caption = 'Auto Y extent'
      ClientHeight = 433
      ClientWidth = 542
      object chAutoExtentY: TChart
        Left = 0
        Height = 402
        Top = 0
        Width = 542
        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'
        )
        Align = alClient
        DoubleBuffered = True
        ParentColor = False
        object chAutoExtentYFuncSeries1: TFuncSeries
          Extent.UseXMax = True
          Extent.UseXMin = True
          Extent.UseYMax = True
          Extent.UseYMin = True
          Extent.XMax = 1
          Extent.YMax = 5
          Extent.YMin = -5
          OnCalculate = chAutoExtentYFuncSeries1Calculate
          Pen.Color = 16711808
          Pen.Width = 2
        end
      end
      object pnlAutoExtentY: TPanel
        Left = 0
        Height = 31
        Top = 402
        Width = 542
        Align = alBottom
        ClientHeight = 31
        ClientWidth = 542
        TabOrder = 1
        object cbAutoExtentY: TCheckBox
          Left = 8
          Height = 17
          Top = 8
          Width = 87
          Caption = 'Auto Y extent'
          OnChange = cbAutoExtentYChange
          TabOrder = 0
        end
      end
    end
    object tsParametric: TTabSheet
      Caption = 'Parametric'
      ClientHeight = 433
      ClientWidth = 542
      object chParametric: TChart
        Left = 0
        Height = 433
        Top = 0
        Width = 412
        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'
        )
        Align = alClient
        ParentColor = False
        object chParametricParametricCurveSeries1: TParametricCurveSeries
          Extent.UseXMax = True
          Extent.UseXMin = True
          Extent.UseYMax = True
          Extent.UseYMin = True
          Extent.XMax = 2
          Extent.XMin = -2
          Extent.YMax = 2
          Extent.YMin = -2
          OnCalculate = chParametricParametricCurveSeries1Calculate
          ParamMax = 32
          Pen.Color = clMaroon
          Pen.Width = 2
        end
      end
      object pnlParametric: TPanel
        Left = 412
        Height = 433
        Top = 0
        Width = 130
        Align = alRight
        BevelOuter = bvNone
        ClientHeight = 433
        ClientWidth = 130
        TabOrder = 1
        object seJ: TSpinEdit
          Left = 24
          Height = 21
          Top = 182
          Width = 50
          OnChange = ParamChange
          TabOrder = 0
          Value = 2
        end
        object seK: TSpinEdit
          Left = 24
          Height = 21
          Top = 210
          Width = 50
          OnChange = ParamChange
          TabOrder = 1
          Value = 2
        end
        object tbA: TTrackBar
          Left = 24
          Height = 32
          Top = 46
          Width = 104
          Frequency = 4
          Max = 40
          OnChange = ParamChange
          Position = 1
          TabOrder = 2
        end
        object lblA: TLabel
          Left = 8
          Height = 13
          Top = 50
          Width = 12
          AutoSize = False
          Caption = 'a'
          Font.Style = [fsItalic]
          ParentColor = False
          ParentFont = False
        end
        object stEq: TStaticText
          Left = 4
          Height = 37
          Top = 4
          Width = 122
          Align = alTop
          BorderSpacing.Around = 4
          Caption = 'x = cos(at) - cos(bt)^j'#13#10'y = sin(ct) - sin(dt)^k'
          Font.Style = [fsItalic]
          ParentFont = False
          TabOrder = 3
        end
        object tbB: TTrackBar
          Left = 24
          Height = 32
          Top = 78
          Width = 104
          Frequency = 4
          Max = 40
          OnChange = ParamChange
          Position = 1
          TabOrder = 4
        end
        object lblB: TLabel
          Left = 8
          Height = 13
          Top = 82
          Width = 12
          AutoSize = False
          Caption = 'b'
          Font.Style = [fsItalic]
          ParentColor = False
          ParentFont = False
        end
        object tbC: TTrackBar
          Left = 24
          Height = 32
          Top = 110
          Width = 104
          Frequency = 4
          Max = 40
          OnChange = ParamChange
          Position = 1
          TabOrder = 5
        end
        object tbD: TTrackBar
          Left = 24
          Height = 32
          Top = 142
          Width = 104
          Frequency = 4
          Max = 40
          OnChange = ParamChange
          Position = 1
          TabOrder = 6
        end
        object lblD: TLabel
          Left = 8
          Height = 13
          Top = 146
          Width = 12
          AutoSize = False
          Caption = 'd'
          Font.Style = [fsItalic]
          ParentColor = False
          ParentFont = False
        end
        object lblC: TLabel
          Left = 8
          Height = 13
          Top = 114
          Width = 12
          AutoSize = False
          Caption = 'c'
          Font.Style = [fsItalic]
          ParentColor = False
          ParentFont = False
        end
        object lblK: TLabel
          Left = 8
          Height = 13
          Top = 214
          Width = 12
          AutoSize = False
          Caption = 'k'
          Font.Style = [fsItalic]
          ParentColor = False
          ParentFont = False
        end
        object lblJ: TLabel
          Left = 9
          Height = 13
          Top = 186
          Width = 12
          AutoSize = False
          Caption = 'j'
          Font.Style = [fsItalic]
          ParentColor = False
          ParentFont = False
        end
      end
    end
  end
  object UserDefinedChartSource1: TUserDefinedChartSource
    OnGetChartDataItem = UserDefinedChartSource1GetChartDataItem
    PointsNumber = 14
    left = 135
    top = 114
  end
  object ListChartSource1: TListChartSource
    DataPoints.Strings = (
      '-1|0|$0000FF|'
      '-0.5|0|$C00000|'
      '0|0|$808000|'
      '0.5|0|$00C000|'
      '1|0|$00FF00|'
    )
    left = 280
    top = 112
  end
  object chtsColorMap: TChartToolset
    left = 280
    top = 180
    object chtsColorMapZoomDragTool1: TZoomDragTool
      Shift = [ssLeft]
    end
    object chtsColorMapPanDragTool1: TPanDragTool
      Shift = [ssRight]
    end
  end
  object RandomChartSource1: TRandomChartSource
    PointsNumber = 21
    RandSeed = 1859411043
    XMax = 10
    XMin = 0
    YMax = 1000
    YMin = 1
    left = 280
    top = 56
  end
  object catSpline: TChartAxisTransformations
    left = 135
    top = 56
    object catSplineLogarithmAxisTransform: TLogarithmAxisTransform
      Enabled = False
      Base = 10
    end
  end
  object Timer1: TTimer
    Interval = 200
    OnTimer = Timer1Timer
    left = 448
    top = 296
  end
end