File: maincalleditor.lfm

package info (click to toggle)
lazarus 1.6.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 172,444 kB
  • ctags: 124,173
  • sloc: pascal: 1,528,777; xml: 260,232; sh: 3,008; java: 603; makefile: 512; perl: 297; sql: 222; ansic: 137
file content (643 lines) | stat: -rw-r--r-- 15,703 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
631
632
633
634
635
636
637
638
639
640
641
642
643
object frmMain: TfrmMain
  Left = 98
  Height = 545
  Top = 111
  Width = 828
  ActiveControl = Panel1
  Caption = 'LazReport Test Suite'
  ClientHeight = 526
  ClientWidth = 828
  Font.Name = 'Sans'
  Menu = MainMenu1
  OnCloseQuery = FormCloseQuery
  OnCreate = frmMainCreate
  ShowHint = True
  LCLVersion = '1.3'
  object lblIndex: TLabel
    AnchorSideLeft.Control = Owner
    AnchorSideBottom.Control = grid
    Left = 6
    Height = 17
    Top = 100
    Width = 36
    Anchors = [akLeft, akBottom]
    BorderSpacing.Around = 6
    Caption = 'Index'
    ParentColor = False
  end
  object lblExpr: TLabel
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    AnchorSideBottom.Control = grid
    Left = 751
    Height = 17
    Top = 100
    Width = 71
    Anchors = [akRight, akBottom]
    BorderSpacing.Around = 6
    Caption = 'Expression'
    ParentColor = False
  end
  object sbar: TStatusBar
    Left = 0
    Height = 19
    Top = 507
    Width = 828
    Panels = <    
      item
        Width = 250
      end>
    SimplePanel = False
  end
  object comboIndex: TComboBox
    AnchorSideLeft.Control = lblIndex
    AnchorSideLeft.Side = asrBottom
    AnchorSideTop.Control = Panel1
    AnchorSideTop.Side = asrBottom
    AnchorSideRight.Control = lblExpr
    AnchorSideBottom.Control = grid
    Left = 48
    Height = 27
    Top = 90
    Width = 697
    Anchors = [akTop, akLeft, akRight]
    BorderSpacing.Around = 6
    ItemHeight = 0
    OnSelect = comboIndexSelect
    TabOrder = 2
  end
  object mastergrid: TDBGrid
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = comboIndex
    AnchorSideTop.Side = asrBottom
    AnchorSideRight.Control = grid
    AnchorSideBottom.Control = sbar
    Left = 0
    Height = 384
    Top = 123
    Width = 204
    Anchors = [akTop, akLeft, akBottom]
    Color = clMoneyGreen
    Columns = <>
    DataSource = srcMaster
    TabOrder = 3
    TitleFont.Name = 'Sans'
    Visible = False
  end
  object grid: TDBGrid
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = comboIndex
    AnchorSideTop.Side = asrBottom
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    AnchorSideBottom.Control = sbar
    Left = 0
    Height = 384
    Top = 123
    Width = 828
    Anchors = [akTop, akLeft, akRight, akBottom]
    Color = clWhite
    Columns = <>
    DataSource = srcDetail
    Font.Name = 'Sans'
    Options = [dgEditing, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
    ParentFont = False
    TabOrder = 0
    TitleFont.Name = 'Sans'
    OnTitleClick = gridTitleClick
  end
  object Panel1: TPanel
    Left = 0
    Height = 84
    Top = 0
    Width = 828
    Align = alTop
    BevelOuter = bvNone
    ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
    ChildSizing.EnlargeVertical = crsHomogenousChildResize
    ChildSizing.Layout = cclLeftToRightThenTopToBottom
    ChildSizing.ControlsPerLine = 6
    ClientHeight = 84
    ClientWidth = 828
    TabOrder = 4
    object btnNewReport: TButton
      Left = 6
      Height = 33
      Top = 6
      Width = 118
      Action = accNewReport
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 0
    end
    object btnOpenReport: TButton
      Left = 130
      Height = 33
      Top = 6
      Width = 123
      Action = accOpenReport
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 2
    end
    object btnEditReport: TButton
      Left = 259
      Height = 33
      Top = 6
      Width = 119
      Action = accEditReport
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 3
    end
    object btnPreviewReport: TButton
      Left = 384
      Height = 33
      Top = 6
      Width = 147
      Action = accPreviewReport
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 4
    end
    object btnPrintReport: TButton
      Left = 537
      Height = 33
      Top = 6
      Width = 134
      Action = accPrintReport
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 5
    end
    object btnCustomPreview: TButton
      Left = 677
      Height = 33
      Top = 6
      Width = 145
      Action = accCustomPreview
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 1
    end
    object btnPrintGrid: TButton
      AnchorSideRight.Side = asrBottom
      Left = 6
      Height = 33
      Top = 45
      Width = 118
      Action = accPrintGrid
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 6
    end
    object btnComposite: TButton
      AnchorSideTop.Side = asrBottom
      Left = 130
      Height = 33
      Top = 45
      Width = 123
      Action = accComposite
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 8
    end
    object btnImageList: TButton
      AnchorSideTop.Side = asrBottom
      AnchorSideRight.Side = asrBottom
      Left = 259
      Height = 33
      Top = 45
      Width = 119
      Action = accThumbnails
      AutoSize = True
      BorderSpacing.Around = 6
      TabOrder = 7
    end
    object btnMasterDetail: TToggleBox
      Left = 384
      Height = 33
      Top = 45
      Width = 147
      AutoSize = True
      BorderSpacing.Around = 6
      Caption = 'Master-Detail Test'
      OnClick = btnMasterDetailClick
      TabOrder = 9
    end
    object btnExportLast: TButton
      Left = 537
      Height = 33
      Top = 45
      Width = 134
      Caption = 'Repeat Export'
      OnClick = btnExportLastClick
      TabOrder = 10
    end
  end
  object TheReport: TfrReport
    Dataset = frDbDetail
    DefaultCopies = 0
    InitialZoom = pzDefault
    Options = [roIgnoreFieldNotFound]
    PreviewButtons = [pbZoom, pbLoad, pbSave, pbPrint, pbFind, pbHelp, pbExit]
    DataType = dtDataSet
    OnBeginDoc = TheReportBeginDoc
    OnGetValue = TheReportGetValue
    OnEnterRect = TheReportEnterRect
    OnUserFunction = TheReportUserFunction
    OnExportFilterSetup = TheReportExportFilterSetup
    left = 40
    top = 192
  end
  object Detail: TDbf
    IndexDefs = <>
    TableName = 'disco.dbf'
    TableLevel = 3
    FilterOptions = []
    left = 184
    top = 192
    object DetailAUTHOR: TStringField
      DisplayWidth = 20
      FieldKind = fkData
      FieldName = 'AUTHOR'
      Index = 0
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
    end
    object DetailTITLE: TStringField
      DisplayWidth = 30
      FieldKind = fkData
      FieldName = 'TITLE'
      Index = 1
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
      Size = 30
    end
    object DetailCOMPANY1: TStringField
      DisplayLabel = 'COMPANY'
      DisplayWidth = 12
      FieldKind = fkLookup
      FieldName = 'COMPANY1'
      Index = 2
      KeyFields = 'COMPANYID'
      LookupCache = False
      LookupDataSet = LookCompanies
      LookupKeyFields = 'COMPANYID'
      LookupResultField = 'COMPANY'
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
      Size = 12
    end
    object DetailCOUNTRY1: TStringField
      DisplayLabel = 'COUNTRY'
      DisplayWidth = 3
      FieldKind = fkLookup
      FieldName = 'COUNTRY1'
      Index = 3
      KeyFields = 'COUNTRYID'
      LookupCache = False
      LookupDataSet = LookCountries
      LookupKeyFields = 'COUNTRYID'
      LookupResultField = 'COUNTRY'
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
      Size = 3
    end
    object DetailYEAR: TSmallintField
      DisplayWidth = 10
      FieldKind = fkData
      FieldName = 'YEAR'
      Index = 4
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
    end
    object DetailPRICE: TFloatField
      DisplayWidth = 10
      FieldKind = fkData
      FieldName = 'PRICE'
      Index = 5
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
      MaxValue = 0
      MinValue = 0
      Precision = 2
    end
    object DetailNOTE: TStringField
      DisplayWidth = 5
      FieldKind = fkData
      FieldName = 'NOTE'
      Index = 6
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
      Size = 5
    end
    object DetailQTY: TSmallintField
      DisplayWidth = 10
      FieldKind = fkData
      FieldName = 'QTY'
      Index = 7
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
    end
    object DetailLAST_SELL: TDateField
      DisplayWidth = 10
      FieldKind = fkData
      FieldName = 'LAST_SELL'
      Index = 8
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
    end
    object DetailIN_STOCK: TBooleanField
      DisplayWidth = 5
      FieldKind = fkData
      FieldName = 'IN_STOCK'
      Index = 9
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
      DisplayValues = 'True;False'
    end
    object DetailCOMPANYID: TLongintField
      DisplayWidth = 10
      FieldKind = fkData
      FieldName = 'COMPANYID'
      Index = 10
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
      Visible = False
    end
    object DetailCOUNTRYID: TLongintField
      DisplayWidth = 10
      FieldKind = fkData
      FieldName = 'COUNTRYID'
      Index = 11
      LookupCache = False
      ProviderFlags = [pfInUpdate, pfInWhere]
      ReadOnly = False
      Required = False
      Visible = False
    end
  end
  object srcDetail: TDataSource
    DataSet = Detail
    left = 184
    top = 248
  end
  object frDbDetail: TfrDBDataSet
    DataSet = Detail
    left = 112
    top = 192
  end
  object PrintGrid: TFrPrintGrid
    DBGrid = grid
    Orientation = poLandscape
    Font.Name = 'Sans'
    TitleFont.Name = 'Sans'
    Caption = 'Grid'
    ShowCaption = True
    left = 352
    top = 248
  end
  object MainMenu1: TMainMenu
    left = 112
    top = 96
    object MenuItem1: TMenuItem
      Caption = 'Files'
      object MenuItem2: TMenuItem
        Action = accClose
        OnClick = accCloseExecute
      end
    end
    object MenuItem3: TMenuItem
      Caption = 'Tests'
      object MenuItem4: TMenuItem
        Action = accNewReport
        OnClick = accNewReportExecute
      end
      object MenuItem5: TMenuItem
        Action = accEditReport
        OnClick = accEditReportExecute
      end
      object MenuItem6: TMenuItem
        Action = accPreviewReport
        OnClick = accPreviewReportExecute
      end
      object MenuItem7: TMenuItem
        Action = accPrintReport
        OnClick = accPrintReportExecute
      end
      object MenuItem8: TMenuItem
        Action = accPrintGrid
        OnClick = accPrintGridExecute
      end
      object MenuItem14: TMenuItem
        Action = accThumbnails
        OnClick = accThumbnailsExecute
      end
      object MenuItem15: TMenuItem
        Action = accComposite
        OnClick = accCompositeExecute
      end
    end
    object MenuItem9: TMenuItem
      Caption = 'Export'
      object MenuItem10: TMenuItem
        Action = accExportToText
        OnClick = accExportToTextExecute
      end
      object MenuItem11: TMenuItem
        Action = accExportToHtml
        OnClick = accExportToHtmlExecute
      end
      object MenuItem12: TMenuItem
        Action = accExportToCSV
        OnClick = accExportToCSVExecute
      end
      object MenuItem13: TMenuItem
        Action = accExportToDbg
        OnClick = accExportToDbgExecute
      end
    end
  end
  object ApplicationProperties1: TApplicationProperties
    HintPause = 10
    OnShowHint = ApplicationProperties1ShowHint
    left = 500
    top = 160
  end
  object ActionList1: TActionList
    left = 48
    top = 96
    object accNewReport: TAction
      Category = 'Tests'
      Caption = 'New Report'
      OnExecute = accNewReportExecute
    end
    object accEditReport: TAction
      Category = 'Tests'
      Caption = 'Edit Report'
      OnExecute = accEditReportExecute
    end
    object accPreviewReport: TAction
      Category = 'Tests'
      Caption = 'Preview Report'
      OnExecute = accPreviewReportExecute
    end
    object accPrintGrid: TAction
      Category = 'Tests'
      Caption = 'Print Grid'
      OnExecute = accPrintGridExecute
    end
    object accPrintReport: TAction
      Category = 'Tests'
      Caption = 'Print Report'
      OnExecute = accPrintReportExecute
    end
    object accClose: TAction
      Category = 'Files'
      Caption = 'Close'
      OnExecute = accCloseExecute
    end
    object accExportToText: TAction
      Category = 'Export'
      Caption = 'Export to text'
      OnExecute = accExportToTextExecute
    end
    object accExportToHtml: TAction
      Category = 'Export'
      Caption = 'Export to html'
      OnExecute = accExportToHtmlExecute
    end
    object accOpenReport: TAction
      Category = 'Files'
      Caption = 'Open Report'
      OnExecute = accOpenReportExecute
    end
    object accExportToCSV: TAction
      Category = 'Export'
      Caption = 'Export to CSV'
      OnExecute = accExportToCSVExecute
    end
    object accThumbnails: TAction
      Category = 'Sample Reports'
      Caption = 'Thumbnails'
      OnExecute = accThumbnailsExecute
    end
    object accExportToDbg: TAction
      Category = 'Export'
      Caption = 'Export Debug'
      OnExecute = accExportToDbgExecute
    end
    object accComposite: TAction
      Category = 'Sample Reports'
      Caption = 'Composite'
      OnExecute = accCompositeExecute
    end
    object accCustomPreview: TAction
      Category = 'Tests'
      Caption = 'Custom Preview'
      OnExecute = accCustomPreviewExecute
    end
  end
  object OpenDialog1: TOpenDialog
    Filter = 'LazReport Files|*.lrf|FreeReport Files|*.frf|All Files|*.*'
    FilterIndex = 0
    left = 572
    top = 160
  end
  object frCSVExport1: TfrCSVExport
    left = 352
    top = 192
  end
  object frUserDataset1: TfrUserDataset
    RangeEnd = reCount
    left = 112
    top = 248
  end
  object frBarCodeObject1: TfrBarCodeObject
    left = 272
    top = 192
  end
  object frRoundRectObject1: TfrRoundRectObject
    left = 272
    top = 248
  end
  object frShapeObject1: TfrShapeObject
    left = 272
    top = 304
  end
  object frCheckBoxObject1: TfrCheckBoxObject
    left = 272
    top = 360
  end
  object Composite: TfrCompositeReport
    DefaultCopies = 0
    InitialZoom = pzDefault
    Options = []
    PreviewButtons = [pbZoom, pbLoad, pbSave, pbPrint, pbFind, pbHelp, pbExit]
    DataType = dtDataSet
    left = 40
    top = 248
  end
  object LookCountries: TDbf
    IndexDefs = <>
    TableName = 'countries.dbf'
    TableLevel = 3
    FilterOptions = []
    left = 184
    top = 72
  end
  object LookCompanies: TDbf
    IndexDefs = <>
    TableName = 'companies.dbf'
    TableLevel = 3
    FilterOptions = []
    left = 184
    top = 128
  end
  object master: TDbf
    IndexDefs = <>
    TableLevel = 4
    FilterOptions = []
    left = 184
    top = 312
  end
  object srcMaster: TDataSource
    DataSet = master
    left = 184
    top = 368
  end
  object frDbMaster: TfrDBDataSet
    DataSet = master
    left = 112
    top = 312
  end
  object frHtmlDivExport1: TfrHtmlDivExport
    left = 500
    top = 228
  end
  object lrAddFunctionLibrary1: TlrAddFunctionLibrary
    left = 500
    top = 301
  end
end