Changeset 96 for trunk/Forms/UFormMain.pas
- Timestamp:
- Aug 22, 2016, 9:31:44 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r95 r96 34 34 ActionList1: TActionList; 35 35 CheckBoxExactMath: TCheckBox; 36 CoolTranslator1: TCoolTranslator;37 36 ImageList1: TImageList; 38 37 JobProgressView1: TJobProgressView; … … 71 70 OpenDialog1: TOpenDialog; 72 71 Panel1: TPanel; 73 PersistentForm1: TPersistentForm;74 72 PopupMenuOpenRecent: TPopupMenu; 75 73 PopupMenuTryIcon: TPopupMenu; … … 184 182 procedure TFormMain.FormHide(Sender: TObject); 185 183 begin 186 if Core.InitializeFinished then PersistentForm1.Save(Self);184 if Core.InitializeFinished then Core.PersistentForm1.Save(Self); 187 185 end; 188 186 189 187 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 190 188 begin 191 PersistentForm1.Save(Self);189 Core.PersistentForm1.Save(Self); 192 190 Core.SaveConfig; 193 191 end; … … 421 419 422 420 if Visible then begin 423 PersistentForm1.Load(Self);421 Core.PersistentForm1.Load(Self); 424 422 UpdateInterface; 425 423 ListViewFilter1.StringGrid.Col := 1; … … 612 610 begin 613 611 RegistryContext := RegContext(HKEY_CURRENT_USER, DefaultRegKey); 614 PersistentForm1.RegistryContext := RegistryContext;612 Core.PersistentForm1.RegistryContext := RegistryContext; 615 613 RegistryContext := RegContext(HKEY_CURRENT_USER, DefaultRegKey + '\RecentFiles'); 616 614 LastOpenedList1.LoadFromRegistry(RegistryContext); … … 627 625 OpenKey(DefaultRegKey, True); 628 626 if ValueExists('LanguageCode') then 629 Co olTranslator1.Language :=CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', ''))630 else Co olTranslator1.Language :=CoolTranslator1.Languages.SearchByCode('');627 Core.CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', '')) 628 else Core.CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode(''); 631 629 Core.AlwaysOnTop := ReadBoolWithDefault('AlwaysOnTop', False); 632 630 Core.StartMinimizedToTray := ReadBoolWithDefault('StartMinimizedToTray', False); … … 656 654 RootKey := HKEY_CURRENT_USER; 657 655 OpenKey(DefaultRegKey, True); 658 if Assigned(Co olTranslator1.Language) and (CoolTranslator1.Language.Code <> '') then659 WriteString('LanguageCode', Co olTranslator1.Language.Code)656 if Assigned(Core.CoolTranslator1.Language) and (Core.CoolTranslator1.Language.Code <> '') then 657 WriteString('LanguageCode', Core.CoolTranslator1.Language.Code) 660 658 else DeleteValue('LanguageCode'); 661 659 WriteBool('AlwaysOnTop', Core.AlwaysOnTop);
Note:
See TracChangeset
for help on using the changeset viewer.