Changeset 74 for trunk/Forms


Ignore:
Timestamp:
Dec 17, 2016, 6:33:13 PM (8 years ago)
Author:
chronos
Message:
  • Added: Main application icon.
  • Modified: Updated Command and CoolTranslator packages.
  • Added: About dialog.
Location:
trunk/Forms
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r73 r74  
    55  Width = 860
    66  Caption = 'LazFuck'
    7   ClientHeight = 561
     7  ClientHeight = 554
    88  ClientWidth = 860
    99  Menu = MainMenu1
     
    1818    Left = 0
    1919    Height = 28
    20     Top = 533
     20    Top = 526
    2121    Width = 860
    2222    Panels = <   
     
    131131  object PageControlRight: TPageControl
    132132    Left = 467
    133     Height = 507
     133    Height = 500
    134134    Top = 26
    135135    Width = 393
     
    141141    object TabSheetDebug: TTabSheet
    142142      Caption = 'Debug'
    143       ClientHeight = 499
    144       ClientWidth = 359
     143      ClientHeight = 494
     144      ClientWidth = 319
    145145      object PanelInput: TPanel
    146146        Left = 0
    147147        Height = 64
    148148        Top = 0
    149         Width = 359
     149        Width = 319
    150150        Align = alTop
    151151        BevelOuter = bvNone
     
    157157        Height = 5
    158158        Top = 64
    159         Width = 359
     159        Width = 319
    160160        Align = alTop
    161161        ResizeAnchor = akTop
     
    165165        Height = 259
    166166        Top = 69
    167         Width = 359
     167        Width = 319
    168168        Align = alTop
    169169        BevelOuter = bvNone
     
    175175        Height = 5
    176176        Top = 328
    177         Width = 359
     177        Width = 319
    178178        Align = alTop
    179179        ResizeAnchor = akTop
     
    183183        Height = 86
    184184        Top = 333
    185         Width = 359
     185        Width = 319
    186186        Align = alTop
    187187        BevelOuter = bvNone
     
    193193        Height = 5
    194194        Top = 419
    195         Width = 359
     195        Width = 319
    196196        Align = alTop
    197197        ResizeAnchor = akTop
     
    199199      object PanelMemory: TPanel
    200200        Left = 0
    201         Height = 75
     201        Height = 70
    202202        Top = 424
    203         Width = 359
     203        Width = 319
    204204        Align = alClient
    205205        BevelOuter = bvNone
     
    210210  object Splitter1: TSplitter
    211211    Left = 462
    212     Height = 507
     212    Height = 500
    213213    Top = 26
    214214    Width = 5
     
    218218  object PanelLeft: TPanel
    219219    Left = 0
    220     Height = 507
     220    Height = 500
    221221    Top = 26
    222222    Width = 462
    223223    Align = alClient
    224224    BevelOuter = bvNone
    225     ClientHeight = 507
     225    ClientHeight = 500
    226226    ClientWidth = 462
    227227    TabOrder = 4
    228228    object PageControlMain: TPageControl
    229229      Left = 0
    230       Height = 384
     230      Height = 377
    231231      Top = 0
    232232      Width = 462
     
    246246      Left = 0
    247247      Height = 118
    248       Top = 389
     248      Top = 382
    249249      Width = 462
    250250      ActivePage = TabSheetMessages
     
    261261      Left = 0
    262262      Height = 5
    263       Top = 384
     263      Top = 377
    264264      Width = 462
    265265      Align = alBottom
     
    10051005    object AAbout: TAction
    10061006      Caption = 'About'
     1007      OnExecute = AAboutExecute
    10071008    end
    10081009    object AHelp: TAction
  • trunk/Forms/UFormMain.pas

    r73 r74  
    113113    ToolButton8: TToolButton;
    114114    ToolButton9: TToolButton;
     115    procedure AAboutExecute(Sender: TObject);
    115116    procedure ABreakpointToggleExecute(Sender: TObject);
    116117    procedure AExitExecute(Sender: TObject);
     
    170171  UCore, UFormCPU, UFormOptions, UFormMessages, UFormTargets, UFormOutput, UFormInput,
    171172  UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog,
    172   UBFTarget;
     173  UBFTarget, UFormAbout;
    173174
    174175resourcestring
     
    187188procedure TFormMain.FormShow(Sender: TObject);
    188189begin
     190  // TODO: Transparent image scaling not working properly under linux Gtk2
     191  // Also screen DPI is not correctly detected under linux Gtk2
     192  {$IFDEF WINDOWS}
    189193  with Core.ScaleDPI do begin
    190194    ApplyToAll(DesignDPI);
    191195    ScaleImageList(ImageListMain, DesignDPI);
    192196  end;
     197  {$ENDIF}
     198
    193199  Core.CoolTranslator1.Translate;
    194200  LoadFromRegistry(HKEY(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey);
     
    503509end;
    504510
     511procedure TFormMain.AAboutExecute(Sender: TObject);
     512begin
     513  FormAbout := TFormAbout.Create(nil);
     514  try
     515    FormAbout.ApplicationInfo := Core.ApplicationInfo;
     516    FormAbout.CoolTranslator := Core.CoolTranslator1;
     517    FormAbout.ShowModal;
     518  finally
     519    FreeAndNil(FormAbout);
     520  end;
     521end;
     522
    505523procedure TFormMain.AProgramPauseExecute(Sender: TObject);
    506524begin
Note: See TracChangeset for help on using the changeset viewer.