Changeset 21 for trunk/Forms


Ignore:
Timestamp:
May 4, 2016, 9:51:49 PM (9 years ago)
Author:
chronos
Message:
  • Added: About application information form.
Location:
trunk/Forms
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r20 r21  
    55  Width = 631
    66  Caption = 'Acronym Decoder'
    7   ClientHeight = 421
     7  ClientHeight = 414
    88  ClientWidth = 631
    99  Menu = MainMenu1
     
    1313  OnDestroy = FormDestroy
    1414  OnShow = FormShow
    15   LCLVersion = '1.6.0.4'
     15  LCLVersion = '1.7'
    1616  object ListViewAcronyms: TListView
    1717    Left = 8
    18     Height = 340
    19     Top = 72
     18    Height = 333
     19    Top = 64
    2020    Width = 613
    2121    Anchors = [akTop, akLeft, akRight, akBottom]
     
    5151  object CheckBoxExactMath: TCheckBox
    5252    Left = 8
    53     Height = 24
     53    Height = 28
    5454    Top = 3
    55     Width = 104
     55    Width = 129
    5656    Caption = 'Exact match'
    5757    OnChange = CheckBoxExactMathChange
     
    44204420      OnExecute = AShowImportSourcesExecute
    44214421    end
     4422    object AShowAbout: TAction
     4423      Caption = 'About'
     4424      OnExecute = AShowAboutExecute
     4425    end
    44224426  end
    44234427  object PersistentForm1: TPersistentForm
     
    44304434    Images = ImageList1
    44314435    left = 464
    4432     top = 80
     4436    top = 96
    44334437    object MenuItem8: TMenuItem
    44344438      Caption = 'File'
     
    44794483      end
    44804484    end
     4485    object MenuItem5: TMenuItem
     4486      Caption = 'Help'
     4487      object MenuItem6: TMenuItem
     4488        Action = AShowAbout
     4489      end
     4490    end
    44814491  end
    44824492  object OpenDialog1: TOpenDialog
     
    45034513    OnCompareItem = ListViewSort1CompareItem
    45044514    OnFilter = ListViewSort1Filter
    4505     Column = 0
    4506     Order = soDown
     4515    Column = 2
     4516    Order = soUp
    45074517    left = 464
    45084518    top = 208
  • trunk/Forms/UFormMain.lrt

    r20 r21  
    1616TFORMMAIN.ASHOWACRONYMS.CAPTION=Acronyms
    1717TFORMMAIN.ASHOWIMPORTSOURCES.CAPTION=Import sources
     18TFORMMAIN.ASHOWABOUT.CAPTION=About
    1819TFORMMAIN.MENUITEM8.CAPTION=File
    1920TFORMMAIN.MENUITEMOPENRECENT.CAPTION=Open recent
     
    2122TFORMMAIN.MENUITEM20.CAPTION=View
    2223TFORMMAIN.MENUITEM16.CAPTION=Tools
     24TFORMMAIN.MENUITEM5.CAPTION=Help
  • trunk/Forms/UFormMain.pas

    r20 r21  
    1616
    1717  TFormMain = class(TForm)
     18    AShowAbout: TAction;
    1819    AShowImportSources: TAction;
    1920    AShowAcronyms: TAction;
     
    5253    MenuItem22: TMenuItem;
    5354    MenuItem4: TMenuItem;
     55    MenuItem5: TMenuItem;
     56    MenuItem6: TMenuItem;
    5457    MenuItemOpenRecent: TMenuItem;
    5558    MenuItem2: TMenuItem;
     
    7073    procedure AImportExecute(Sender: TObject);
    7174    procedure ASettingsExecute(Sender: TObject);
     75    procedure AShowAboutExecute(Sender: TObject);
    7276    procedure AShowAcronymsExecute(Sender: TObject);
    7377    procedure AShowCategoriesExecute(Sender: TObject);
     
    115119uses
    116120  UFormImport, UFormAcronym, UFormSettings, UFormCategories, UFormAcronyms,
    117   UFormImportSource, UFormImportSources;
     121  UFormImportSource, UFormImportSources, UFormAbout;
    118122
    119123resourcestring
     
    244248  if FormSettings.ShowModal = mrOk then
    245249    FormSettings.Save;
     250end;
     251
     252procedure TFormMain.AShowAboutExecute(Sender: TObject);
     253begin
     254  FormAbout.ShowModal;
    246255end;
    247256
Note: See TracChangeset for help on using the changeset viewer.