Changeset 259 for trunk/Settings.pas


Ignore:
Timestamp:
Jun 10, 2020, 11:05:46 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Locale dialog renamed to Settings as it contains and will contain more settings then just locale.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Settings.pas

    r258 r259  
    1 unit Locale;
     1unit Settings;
    22
    33{$mode delphi}
     
    2424  end;
    2525
    26   { TLocaleDlg }
     26  { TSettingsDlg }
    2727
    28   TLocaleDlg = class(TDrawDlg)
     28  TSettingsDlg = class(TDrawDlg)
    2929    ButtonFullscreen: TButtonC;
    3030    List: TListBox;
     
    4545
    4646var
    47   LocaleDlg: TLocaleDlg;
     47  SettingsDlg: TSettingsDlg;
    4848
    4949implementation
     
    8282end;
    8383
    84 { TLocaleDlg }
     84{ TSettingsDlg }
    8585
    86 procedure TLocaleDlg.FormCreate(Sender: TObject);
     86procedure TSettingsDlg.FormCreate(Sender: TObject);
    8787begin
    8888  Canvas.Font.Assign(UniFont[ftNormal]);
     
    109109end;
    110110
    111 procedure TLocaleDlg.CancelBtnClick(Sender: TObject);
     111procedure TSettingsDlg.CancelBtnClick(Sender: TObject);
    112112begin
    113113  ModalResult := mrCancel;
    114114end;
    115115
    116 procedure TLocaleDlg.ButtonFullscreenClick(Sender: TObject);
     116procedure TSettingsDlg.ButtonFullscreenClick(Sender: TObject);
    117117begin
    118118  FullScreen := not FullScreen;
     
    120120end;
    121121
    122 procedure TLocaleDlg.FormDestroy(Sender: TObject);
     122procedure TSettingsDlg.FormDestroy(Sender: TObject);
    123123begin
    124124  FreeAndNil(Languages);
    125125end;
    126126
    127 procedure TLocaleDlg.FormPaint(Sender: TObject);
     127procedure TSettingsDlg.FormPaint(Sender: TObject);
    128128var
    129129  S: string;
     
    148148end;
    149149
    150 procedure TLocaleDlg.FormShow(Sender: TObject);
     150procedure TSettingsDlg.FormShow(Sender: TObject);
    151151begin
    152152  Languages.LoadToStrings(List.Items);
     
    157157end;
    158158
    159 procedure TLocaleDlg.OKBtnClick(Sender: TObject);
     159procedure TSettingsDlg.OKBtnClick(Sender: TObject);
    160160begin
    161161  LocaleCode := Languages[List.ItemIndex].ShortName;
Note: See TracChangeset for help on using the changeset viewer.