Changeset 151 for trunk/Forms
- Timestamp:
- Oct 16, 2017, 2:31:46 PM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r149 r151 14 14 OnHide = FormHide 15 15 OnShow = FormShow 16 LCLVersion = '1.6. 2.0'16 LCLVersion = '1.6.4.0' 17 17 object PanelMain: TPanel 18 18 Left = 0 -
trunk/Forms/UFormMain.pas
r150 r151 689 689 RootKey := HKEY_CURRENT_USER; 690 690 OpenKey(DefaultRegKey, True); 691 if ValueExists('LanguageCode') then692 Core.CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', ''))693 else Core.CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode('');694 Core.AlwaysOnTop := ReadBoolWithDefault('AlwaysOnTop', False);695 Core.StartMinimizedToTray := ReadBoolWithDefault('StartMinimizedToTray', False);696 691 AFilterSameLength.Checked := ReadBoolWithDefault('SameLength', False); 697 692 AFilterSameLetterCase.Checked := ReadBoolWithDefault('SameLetterCase', False); … … 722 717 RootKey := HKEY_CURRENT_USER; 723 718 OpenKey(DefaultRegKey, True); 724 if Assigned(Core.CoolTranslator1.Language) and (Core.CoolTranslator1.Language.Code <> '') then725 WriteString('LanguageCode', Core.CoolTranslator1.Language.Code)726 else DeleteValue('LanguageCode');727 WriteBool('AlwaysOnTop', Core.AlwaysOnTop);728 WriteBool('StartMinimizedToTray', Core.StartMinimizedToTray);729 719 WriteBool('SameLength', AFilterSameLength.Checked); 730 720 WriteBool('SameLetterCase', AFilterSameLetterCase.Checked); -
trunk/Forms/UFormSettings.lfm
r105 r151 10 10 OnShow = FormShow 11 11 Position = poScreenCenter 12 LCLVersion = '1.6. 0.4'12 LCLVersion = '1.6.4.0' 13 13 object ComboBoxLanguage: TComboBox 14 14 Left = 184 … … 104 104 Visible = False 105 105 end 106 object CheckBoxReopenLastFileOnStart: TCheckBox 107 Left = 360 108 Height = 24 109 Top = 64 110 Width = 181 111 Caption = 'Reopen last file on start' 112 TabOrder = 8 113 end 106 114 end -
trunk/Forms/UFormSettings.lrt
r105 r151 8 8 TFORMSETTINGS.CHECKBOXAUTOMATICDPI.CAPTION=Automatic DPI 9 9 TFORMSETTINGS.LABEL2.CAPTION=DPI: 10 TFORMSETTINGS.CHECKBOXREOPENLASTFILEONSTART.CAPTION=Reopen last file on start -
trunk/Forms/UFormSettings.pas
r105 r151 16 16 ButtonOk: TButton; 17 17 ButtonCancel: TButton; 18 CheckBoxReopenLastFileOnStart: TCheckBox; 18 19 CheckBoxAutomaticDPI: TCheckBox; 19 20 CheckBoxStartMinimizedToTray: TCheckBox; … … 84 85 CheckBoxAutomaticDPI.Checked := Core.ScaleDPI1.AutoDetect; 85 86 SpinEditDPI.Value := Core.ScaleDPI1.DPI.X; 87 CheckBoxReopenLastFileOnStart.Checked := Core.ReopenLastFileOnStart; 86 88 UpdateInterface; 87 89 end; … … 94 96 Core.ScaleDPI1.AutoDetect := CheckBoxAutomaticDPI.Checked; 95 97 Core.ScaleDPI1.DPI := Point(SpinEditDPI.Value, SpinEditDPI.Value); 98 Core.ReopenLastFileOnStart := CheckBoxReopenLastFileOnStart.Checked; 96 99 end; 97 100
Note:
See TracChangeset
for help on using the changeset viewer.