Changeset 53 for trunk/IDE/Forms/UFormOptions.pas
- Timestamp:
- Jun 26, 2012, 7:23:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormOptions.pas
r45 r53 34 34 35 35 uses 36 U FormMain, ULanguages;36 UCore, UFormMain, ULanguages; 37 37 38 38 { TFormOptions } … … 41 41 begin 42 42 if ComboBoxLanguage.ItemIndex <> -1 then 43 FormMain.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);44 FormMain.ReopenLastOpenedFile := CheckBoxReopenProject.Checked;43 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 44 Core.ReopenLastOpenedFile := CheckBoxReopenProject.Checked; 45 45 end; 46 46 47 47 procedure TFormOptions.FormShow(Sender: TObject); 48 48 begin 49 FormMain.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);50 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject( FormMain.CoolTranslator1.Language);49 Core.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items); 50 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language); 51 51 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 52 CheckBoxReopenProject.Checked := FormMain.ReopenLastOpenedFile;52 CheckBoxReopenProject.Checked := Core.ReopenLastOpenedFile; 53 53 end; 54 54
Note:
See TracChangeset
for help on using the changeset viewer.