Changeset 22
- Timestamp:
- Feb 12, 2012, 8:15:36 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Languages/LazFuckIDE.cs.po
r21 r22 200 200 #: tmainform.menuitemopenrecent.caption 201 201 msgid "Open recent" 202 msgstr " "202 msgstr "OtevÅÃt nedávnÃœ" 203 203 204 204 #: tmainform.menuitemtarget.caption … … 226 226 #: toptionsform.checkbox1.caption 227 227 msgid "Reopend last opened project" 228 msgstr " "228 msgstr "OtevÅÃt naposledy otevÅenÃœ projekt" 229 229 230 230 #: toptionsform.label1.caption -
trunk/UMainForm.pas
r21 r22 221 221 OpenKey(Key, True); 222 222 OpenProjectOnStart := ReadBoolWithDefault('OpenProjectOnStart', True); 223 BrainFuckInterpreter.CellSize := ReadIntegerWithDefault('CellSize', 256); 224 BrainFuckInterpreter.MemorySize := ReadIntegerWithDefault('MemorySize', 30000); 225 if ValueExists('LanguageCode') then 226 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', '')) 227 else CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(''); 223 228 finally 224 229 Free; … … 235 240 OpenKey(Key, True); 236 241 WriteBool('OpenProjectOnStart', OpenProjectOnStart); 242 WriteInteger('CellSize', BrainFuckInterpreter.CellSize); 243 WriteInteger('MemorySize', BrainFuckInterpreter.MemorySize); 244 if Assigned(CoolTranslator1.Language) and (CoolTranslator1.Language.Code <> '') then 245 WriteString('LanguageCode', CoolTranslator1.Language.Code) 246 else DeleteValue('LanguageCode'); 237 247 finally 238 248 Free; … … 284 294 BrainFuckInterpreter.OnChangeState := BrainFuckInterpreterChangeState; 285 295 BrainFuckCompiler := TBrainFuckCompiler.Create; 286 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode('cs');287 296 Compilers := TListObject.Create; 288 297 Compilers.Add(TBrainFuckCompilerDelphi.Create); -
trunk/UOptionsForm.pas
r21 r22 47 47 begin 48 48 MainForm.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items); 49 ComboBoxLanguage.ItemIndex := MainForm.CoolTranslator1.Languages.IndexOf(MainForm.CoolTranslator1.Language);49 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(MainForm.CoolTranslator1.Language); 50 50 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 51 51 CheckBox1.Checked := MainForm.OpenProjectOnStart;
Note:
See TracChangeset
for help on using the changeset viewer.