Ignore:
Timestamp:
Jun 26, 2012, 7:23:47 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Created main UCore unit and moved non visual code from UFormMain to it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/Forms/UFormOptions.pas

    r45 r53  
    3434
    3535uses
    36   UFormMain, ULanguages;
     36  UCore, UFormMain, ULanguages;
    3737
    3838{ TFormOptions }
     
    4141begin
    4242  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;
    4545end;
    4646
    4747procedure TFormOptions.FormShow(Sender: TObject);
    4848begin
    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);
    5151  if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0;
    52   CheckBoxReopenProject.Checked := FormMain.ReopenLastOpenedFile;
     52  CheckBoxReopenProject.Checked := Core.ReopenLastOpenedFile;
    5353end;
    5454
Note: See TracChangeset for help on using the changeset viewer.