Changeset 75 for trunk/IDE/Forms/FormOptions.pas
- Timestamp:
- Jun 4, 2024, 12:22:49 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/FormOptions.pas
r74 r75 1 unit UFormOptions; 2 3 {$mode delphi} 1 unit FormOptions; 4 2 5 3 interface … … 26 24 end; 27 25 28 var29 FormOptions: TFormOptions;30 26 31 27 implementation … … 34 30 35 31 uses 36 UCore, UFormMain, ULanguages;32 Core, Languages; 37 33 38 34 { TFormOptions } … … 41 37 begin 42 38 if ComboBoxLanguage.ItemIndex <> -1 then 43 Core.Co olTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);44 Core. ReopenLastOpenedFile := CheckBoxReopenProject.Checked;39 Core.Core.Translator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 40 Core.Core.ReopenLastOpenedFile := CheckBoxReopenProject.Checked; 45 41 end; 46 42 47 43 procedure TFormOptions.FormShow(Sender: TObject); 48 44 begin 49 Core.Co olTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);50 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Co olTranslator1.Language);45 Core.Core.Translator1.LanguageListToStrings(ComboBoxLanguage.Items); 46 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Core.Translator1.Language); 51 47 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 52 CheckBoxReopenProject.Checked := Core. ReopenLastOpenedFile;48 CheckBoxReopenProject.Checked := Core.Core.ReopenLastOpenedFile; 53 49 end; 54 50
Note:
See TracChangeset
for help on using the changeset viewer.