Ignore:
Timestamp:
May 17, 2019, 12:02:45 AM (6 years ago)
Author:
chronos
Message:
  • Added: Interface language selection in Settings dialog.
Location:
branches/generator/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/Forms

    • Property svn:ignore
      •  

        old new  
        1 *.lrj
        21*.lrt
  • branches/generator/Forms/UFormMain.pas

    r167 r191  
    1616  TFormMain = class(TForm)
    1717    ABuildCompiler: TAction;
     18    ASettings: TAction;
    1819    ALookupTables: TAction;
    1920    AToolbarVisible: TAction;
     
    3839    MenuItem12: TMenuItem;
    3940    MenuItem13: TMenuItem;
     41    MenuItem14: TMenuItem;
     42    MenuItem15: TMenuItem;
    4043    MenuItem2: TMenuItem;
    4144    MenuItem3: TMenuItem;
     
    6568    procedure ABuildCompilerExecute(Sender: TObject);
    6669    procedure ALookupTablesExecute(Sender: TObject);
     70    procedure ASettingsExecute(Sender: TObject);
    6771    procedure AToolbarVisibleExecute(Sender: TObject);
    6872    procedure AExitExecute(Sender: TObject);
     
    100104
    101105uses
    102   UFormRules, UCore, UFormGrammer, UBuilder, UFormLookupTables;
     106  UFormRules, UCore, UFormGrammer, UBuilder, UFormLookupTables, UFormSettings;
    103107
    104108resourcestring
     
    322326end;
    323327
     328procedure TFormMain.ASettingsExecute(Sender: TObject);
     329begin
     330  FormSettings := TFormSettings.Create(nil);
     331  FormSettings.Load;
     332  if FormSettings.ShowModal = mrOk then begin
     333    FormSettings.Save;
     334  end;
     335  FreeAndNil(FormSettings);
     336end;
     337
    324338procedure TFormMain.AToolbarVisibleExecute(Sender: TObject);
    325339begin
Note: See TracChangeset for help on using the changeset viewer.