File: frmmain.lfm

package info (click to toggle)
lazarus 4.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 275,760 kB
  • sloc: pascal: 2,341,904; xml: 509,420; makefile: 348,726; cpp: 93,608; sh: 3,387; java: 609; perl: 297; sql: 222; ansic: 137
file content (675 lines) | stat: -rw-r--r-- 16,316 bytes parent folder | download
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
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
object MainForm: TMainForm
  Left = 450
  Height = 384
  Top = 226
  Width = 666
  ActiveControl = PCRecent
  Caption = 'Lazarus Database Desktop'
  ClientHeight = 384
  ClientWidth = 666
  Menu = MainMenu1
  Position = poScreenCenter
  SessionProperties = 'Height;Left;Top;Width;WindowState'
  LCLVersion = '3.99.0.0'
  OnClose = FormClose
  OnCloseQuery = FormCloseQuery
  OnCreate = FormCreate
  OnDestroy = FormDestroy
  OnShow = FormShow
  object TBMain: TToolBar
    Left = 0
    Height = 26
    Top = 0
    Width = 666
    ButtonHeight = 24
    ButtonWidth = 24
    Images = ImgDatamodule.AppImages
    ParentShowHint = False
    ShowHint = True
    TabOrder = 0
    object TBSave: TToolButton
      Left = 49
      Top = 2
      Action = ASave
    end
    object TBOPen: TToolButton
      Left = 25
      Top = 2
      HelpType = htKeyword
      HelpKeyword = 'Open a new Data Dictionary'
      Action = AOpen
    end
    object TBNew: TToolButton
      Left = 1
      Top = 2
      Action = ANew
    end
    object ToolButton1: TToolButton
      Left = 73
      Height = 24
      Top = 2
      Style = tbsSeparator
    end
    object TBNewTable: TToolButton
      Left = 113
      Top = 2
      Action = ANewTable
    end
    object TBNewField: TToolButton
      Left = 137
      Top = 2
      Action = ANewField
    end
    object ToolButton2: TToolButton
      Left = 257
      Height = 24
      Top = 2
      Style = tbsSeparator
    end
    object TBDeleteTable: TToolButton
      Left = 265
      Top = 2
      Action = ADeleteObject
    end
    object ToolButton3: TToolButton
      Left = 289
      Height = 24
      Top = 2
      Style = tbsSeparator
    end
    object TBGenerateSQL: TToolButton
      Left = 297
      Top = 2
      Action = AGenerateSQL
    end
    object TBAddIndex: TToolButton
      Left = 185
      Top = 2
      Action = ANewIndex
    end
    object ToolButton5: TToolButton
      Left = 321
      Top = 2
      Action = ACreateCode
    end
    object TBAddSequence: TToolButton
      Left = 209
      Top = 2
      Action = AAddSequence
    end
    object ToolButton4: TToolButton
      Left = 233
      Top = 2
      Action = AAddDomain
    end
    object ToolButton6: TToolButton
      Left = 161
      Top = 2
      Action = AAddForeignKey
    end
    object ToolButton7: TToolButton
      Left = 105
      Height = 24
      Top = 2
      Caption = 'ToolButton7'
      Style = tbsSeparator
    end
    object ToolButton8: TToolButton
      Left = 81
      Top = 2
      Action = ANewConnection
    end
    object ToolButton9: TToolButton
      Left = 345
      Height = 24
      Top = 2
      Caption = 'ToolButton9'
      Style = tbsDivider
    end
    object ToolButton10: TToolButton
      Left = 350
      Top = 2
      Action = AExit
    end
  end
  object PCRecent: TPageControl
    Left = 0
    Height = 338
    Top = 26
    Width = 460
    ActivePage = TSAll
    Align = alClient
    Images = ImgDatamodule.AppImages
    TabIndex = 2
    TabOrder = 1
    object TSConnections: TTabSheet
      Caption = 'Connections'
      ClientHeight = 308
      ClientWidth = 450
      ImageIndex = 38
      object LVConnections: TListView
        Left = 0
        Height = 308
        Top = 0
        Width = 450
        Align = alClient
        Columns = <        
          item
            Caption = 'Name'
            Width = 120
          end        
          item
            Caption = 'Driver'
            Width = 120
          end        
          item
            Caption = 'Last used'
            Width = 150
          end        
          item
            Caption = 'Description'
            Width = 260
          end>
        PopupMenu = PMRecentConnections
        ReadOnly = True
        RowSelect = True
        SortType = stText
        TabOrder = 0
        ViewStyle = vsReport
        OnDblClick = OpenRecentConnection
        OnKeyUp = LVConnectionsKeyUp
      end
    end
    object TSRecent: TTabSheet
      Caption = 'Dictionaries'
      ClientHeight = 308
      ClientWidth = 450
      ImageIndex = 32
      object LVDicts: TListView
        Left = 0
        Height = 308
        Top = 0
        Width = 450
        Align = alClient
        Columns = <        
          item
            Caption = 'Name'
            Width = 10
          end        
          item
            Caption = 'Filename'
            Width = 10
          end        
          item
            Caption = 'Last used on'
            Width = 617
          end>
        PopupMenu = PMDataDict
        ReadOnly = True
        RowSelect = True
        SortColumn = 2
        SortType = stText
        TabOrder = 0
        ViewStyle = vsReport
        OnDblClick = OpenRecentDatadict
        OnKeyUp = LVDictsKeyUp
      end
    end
    object TSAll: TTabSheet
      Caption = 'Connections/Dictionaries'
      ClientHeight = 308
      ClientWidth = 450
      ImageIndex = 29
      object TVAll: TTreeView
        Left = 0
        Height = 308
        Top = 0
        Width = 450
        Align = alClient
        Images = ImgDatamodule.AppImages
        PopupMenu = PMAll
        ReadOnly = True
        TabOrder = 0
        Options = [tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]
        OnDblClick = TVAllDblClick
      end
    end
  end
  object PStatus: TPanel
    Left = 0
    Height = 20
    Top = 364
    Width = 666
    Align = alBottom
    BevelOuter = bvNone
    ClientHeight = 20
    ClientWidth = 666
    TabOrder = 2
    Visible = False
    object PBSTatus: TProgressBar
      Left = 0
      Height = 20
      Top = 0
      Width = 128
      Align = alLeft
      TabOrder = 1
    end
    object PStatusText: TPanel
      Left = 128
      Height = 20
      Top = 0
      Width = 538
      Align = alClient
      Alignment = taLeftJustify
      BevelOuter = bvLowered
      TabOrder = 0
    end
  end
  object PCItems: TPageControl
    Left = 466
    Height = 338
    Top = 26
    Width = 200
    Align = alRight
    Images = ImgDatamodule.AppImages
    Options = [nboShowCloseButtons, nboKeyboardTabSwitch]
    TabOrder = 3
    OnCloseTabClicked = DoCloseTabClick
  end
  object SRecent: TSplitter
    Left = 460
    Height = 338
    Top = 26
    Width = 6
    Align = alRight
    ResizeAnchor = akRight
  end
  object MainMenu1: TMainMenu
    Images = ImgDatamodule.AppImages
    Left = 40
    Top = 80
    object MFIle: TMenuItem
      Caption = '&File'
      object MenuItem1: TMenuItem
        Action = ANew
      end
      object MIOpen: TMenuItem
        Action = AOpen
      end
      object MISave: TMenuItem
        Action = ASave
      end
      object MISaveAs: TMenuItem
        Action = ASaveAs
      end
      object MICloseSep: TMenuItem
        Caption = '-'
      end
      object MIClose: TMenuItem
        Action = AClose
      end
      object MICloseAll: TMenuItem
        Action = ACloseAll
      end
      object MISep: TMenuItem
        Caption = '-'
      end
      object MIExit: TMenuItem
        Action = AExit
      end
    end
    object MenuItem2: TMenuItem
      Caption = '&Edit'
      object MICut: TMenuItem
        Action = ACut
      end
      object MenuItem3: TMenuItem
        Action = ACopy
      end
      object MIPaste: TMenuItem
        Action = APaste
      end
    end
    object MIDataDict: TMenuItem
      Caption = '&Dictionary'
      OnClick = MIDataDictClick
      object MIImport: TMenuItem
        Caption = '&Import'
        ImageIndex = 37
      end
      object MIDDSep: TMenuItem
        Caption = '-'
      end
      object MINewTable: TMenuItem
        Action = ANewTable
      end
      object MINewField: TMenuItem
        Action = ANewField
      end
      object MenuItem4: TMenuItem
        Action = ANewIndex
      end
      object MenuItem7: TMenuItem
        Action = AAddForeignKey
      end
      object MenuItem5: TMenuItem
        Action = AAddDomain
      end
      object MenuItem6: TMenuItem
        Action = AAddSequence
      end
      object MIDDSep2: TMenuItem
        Caption = '-'
      end
      object MIDeleteTable: TMenuItem
        Action = ADeleteObject
      end
      object MIDDSep3: TMenuItem
        Caption = '-'
      end
      object MIGenerateSQL: TMenuItem
        Action = AGenerateSQL
      end
      object MICreateCode: TMenuItem
        Action = ACreateCode
      end
    end
    object MIConnection: TMenuItem
      Caption = 'Connections'
      object MINewConnection: TMenuItem
        Caption = '&New connection'
        ImageIndex = 31
      end
      object MIOpenRecentConnection: TMenuItem
        Action = AOpenConnection
      end
      object MIDeleteRecentConnection: TMenuItem
        Action = ADeleteConnection
      end
    end
    object MView: TMenuItem
      Caption = '&View'
      object MIListView: TMenuItem
        AutoCheck = True
        Caption = 'Legacy List View'
        OnClick = MIListViewClick
      end
    end
  end
  object ALMain: TActionList
    Images = ImgDatamodule.AppImages
    Left = 104
    Top = 136
    object ASave: TAction
      Category = 'File'
      Caption = '&Save'
      Hint = 'Save Data Dictionary'
      ImageIndex = 14
      ShortCut = 16467
      OnExecute = ASaveExecute
      OnUpdate = HaveDDEditor
    end
    object ANew: TAction
      Category = 'File'
      Caption = '&New'
      Hint = 'Create a new Data Dictionary'
      ImageIndex = 13
      ShortCut = 16462
      OnExecute = ANewExecute
    end
    object AExit: TAction
      Category = 'File'
      Caption = 'E&xit'
      Hint = 'Quit this program'
      ImageIndex = 33
      ShortCut = 16465
      OnExecute = AExitExecute
    end
    object AOpen: TAction
      Category = 'File'
      Caption = '&Open...'
      HelpKeyword = 'Open a new Data Dictionary'
      ImageIndex = 12
      ShortCut = 16463
      OnExecute = AOpenExecute
    end
    object AClose: TAction
      Category = 'File'
      Caption = '&Close'
      Hint = 'Close current Data Dictionary'
      ShortCut = 16471
      OnExecute = ACloseExecute
      OnUpdate = HaveTab
    end
    object ACut: TEditCut
      Category = 'Edit'
      Caption = 'Cu&t'
      Hint = 'Cut'
      ImageIndex = 34
      ShortCut = 16472
    end
    object ACopy: TEditCopy
      Category = 'Edit'
      Caption = '&Copy'
      Hint = 'Copy'
      ImageIndex = 35
      ShortCut = 16451
    end
    object APaste: TEditPaste
      Category = 'Edit'
      Caption = '&Paste'
      Hint = 'Paste'
      ImageIndex = 36
      ShortCut = 16470
    end
    object ACloseAll: TAction
      Category = 'File'
      Caption = 'Close &All'
      Hint = 'Close all Data Dictionaries'
      ShortCut = 49239
      OnExecute = ACloseAllExecute
      OnUpdate = HaveTabs
    end
    object ANewTable: TAction
      Category = 'Dictionary'
      Caption = 'New &table'
      Hint = 'Create a new table'
      ImageIndex = 17
      ShortCut = 16468
      OnExecute = ANewTableExecute
      OnUpdate = HaveDataDict
    end
    object ANewField: TAction
      Category = 'Dictionary'
      Caption = 'New &field'
      Hint = 'Create a new field in the current table'
      ImageIndex = 18
      ShortCut = 16454
      OnExecute = ANewFieldExecute
      OnUpdate = ANewFieldUpdate
    end
    object ADeleteObject: TAction
      Category = 'Dictionary'
      Caption = 'Delete &Object'
      Hint = 'Delete the currently selected object'
      ImageIndex = 16
      OnExecute = ADeleteObjectExecute
      OnUpdate = ADeleteObjectUpdate
    end
    object AGenerateSQL: TAction
      Category = 'Dictionary'
      Caption = '&Generate SQL'
      Hint = 'Generate SQL statements for the current table'
      ImageIndex = 20
      ShortCut = 16455
      OnExecute = AGenerateSQLExecute
      OnUpdate = AllowSQL
    end
    object ASaveAs: TAction
      Category = 'File'
      Caption = 'Save &as'
      Hint = 'Save datadictionary as'
      ImageIndex = 15
      OnExecute = SaveAsExecute
      OnUpdate = HaveDDEditor
    end
    object ANewConnection: TAction
      Category = 'Connections'
      Caption = '&New connection'
      ImageIndex = 31
      ShortCut = 49230
      OnExecute = ANewConnectionExecute
    end
    object ADeleteConnection: TAction
      Category = 'Connections'
      Caption = '&Delete connection'
      ImageIndex = 48
      ShortCut = 49220
      OnExecute = ADeleteConnectionExecute
      OnUpdate = HaveRecentConnection
    end
    object ACopyConnection: TAction
      Category = 'Connections'
      Caption = '&Copy connection'
    end
    object ANewIndex: TAction
      Category = 'Dictionary'
      Caption = 'New index'
      Hint = 'Add new index to current table'
      ImageIndex = 28
      OnExecute = ANewIndexExecute
      OnUpdate = ANewIndexUpdate
    end
    object ACreateCode: TAction
      Category = 'Dictionary'
      Caption = 'Create &code'
      Hint = 'Create code from definition or data'
      ImageIndex = 11
      OnExecute = ACreateCodeExecute
      OnUpdate = ACreateCodeUpdate
    end
    object AAddSequence: TAction
      Category = 'Dictionary'
      Caption = 'New sequence'
      Hint = 'Add a sequence'
      ImageIndex = 24
      OnExecute = AAddSequenceExecute
      OnUpdate = AAddSequenceUpdate
    end
    object AAddForeignKey: TAction
      Category = 'Dictionary'
      Caption = 'New Foreign key'
      Hint = 'Add a foreign key to the table'
      ImageIndex = 26
      OnExecute = AAddForeignKeyExecute
      OnUpdate = AAddForeignKeyUpdate
    end
    object AAddDomain: TAction
      Category = 'Dictionary'
      Caption = 'New domain'
      Hint = 'Add a domain to the data dictionary'
      ImageIndex = 22
      OnExecute = AAddDomainExecute
      OnUpdate = AAddDomainUpdate
    end
    object AOpenConnection: TAction
      Category = 'Connections'
      Caption = '&Open connection'
      Hint = 'Open selected recent connection'
      ImageIndex = 45
      OnExecute = OpenRecentConnection
      OnUpdate = HaveRecentConnection
    end
    object AOpenRecentDatadict: TAction
      Category = 'File'
      Caption = 'Open'
      Hint = 'Open selected recent datadictionary'
      OnExecute = OpenRecentDatadict
      OnUpdate = HaveRecentDataDict
    end
    object ADeleteRecentDataDict: TAction
      Category = 'File'
      Caption = '&Delete'
      OnExecute = ADeleteRecentDataDictExecute
      OnUpdate = HaveRecentDataDict
    end
  end
  object ODDD: TOpenDialog
    DefaultExt = '.fdd'
    FilterIndex = 0
    Options = [ofReadOnly, ofFileMustExist, ofEnableSizing, ofViewDetail]
    Left = 104
    Top = 80
  end
  object PSMain: TIniPropStorage
    StoredValues = <>
    IniFileName = 'lazdde'
    IniSection = 'main'
    Left = 160
    Top = 136
  end
  object SDDD: TSaveDialog
    DefaultExt = '.fdd'
    FilterIndex = 0
    Left = 160
    Top = 80
  end
  object PMRecentConnections: TPopupMenu
    Images = ImgDatamodule.AppImages
    Left = 160
    Top = 200
    object PMINewConnection: TMenuItem
      Action = ANewConnection
    end
    object PMIOpenConnection: TMenuItem
      Action = AOpenConnection
    end
    object PMIDeleteConnection: TMenuItem
      Action = ADeleteConnection
    end
  end
  object PMDataDict: TPopupMenu
    Images = ImgDatamodule.AppImages
    Left = 43
    Top = 200
    object PMINewDataDict: TMenuItem
      Action = ANew
      OnClick = ANewExecute
    end
    object PMIOpenDataDict: TMenuItem
      Action = AOpenRecentDatadict
      OnClick = OpenRecentDatadict
    end
    object MenuItem8: TMenuItem
      Action = ADeleteRecentDataDict
      OnClick = ADeleteRecentDataDictExecute
    end
  end
  object PMAll: TPopupMenu
    Images = ImgDatamodule.AppImages
    OnPopup = PMAllPopup
    Left = 160
    Top = 256
    object PMIOpenConnectionA: TMenuItem
      Action = AOpenConnection
    end
    object PMINewConnectionA: TMenuItem
      Action = ANewConnection
    end
    object PMIDeleteConnectionA: TMenuItem
      Action = ADeleteConnection
    end
    object MenuItem10: TMenuItem
      Caption = '-'
    end
    object PMIOpenDataDictA: TMenuItem
      Action = AOpenRecentDatadict
    end
    object PMINewDataDictA: TMenuItem
      Action = ANew
    end
    object PMIDeleteDataDictA: TMenuItem
      Action = ADeleteRecentDataDict
    end
  end
end