Changeset 45 for trunk/IDE/Forms
- Timestamp:
- Mar 4, 2012, 9:56:47 AM (13 years ago)
- Location:
- trunk/IDE/Forms
- Files:
-
- 24 added
- 16 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormOptions.pas
r35 r45 34 34 35 35 uses 36 U MainForm, ULanguages;36 UFormMain, ULanguages; 37 37 38 38 { TFormOptions } … … 41 41 begin 42 42 if ComboBoxLanguage.ItemIndex <> -1 then 43 MainForm.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);44 MainForm.ReopenLastOpenedFile := CheckBoxReopenProject.Checked;43 FormMain.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 44 FormMain.ReopenLastOpenedFile := CheckBoxReopenProject.Checked; 45 45 end; 46 46 47 47 procedure TFormOptions.FormShow(Sender: TObject); 48 48 begin 49 MainForm.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);50 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject( MainForm.CoolTranslator1.Language);49 FormMain.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items); 50 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(FormMain.CoolTranslator1.Language); 51 51 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 52 CheckBoxReopenProject.Checked := MainForm.ReopenLastOpenedFile;52 CheckBoxReopenProject.Checked := FormMain.ReopenLastOpenedFile; 53 53 end; 54 54 -
trunk/IDE/Forms/UFormTargets.pas
r42 r45 31 31 32 32 uses 33 U MainForm, UCompiler, UCompilerSettingsForm, UProducer, UTarget;33 UFormMain, UCompiler, UFormCompilerSettings, UProducer, UTarget; 34 34 35 35 resourcestring … … 46 46 procedure TFormTargets.ListView1Data(Sender: TObject; Item: TListItem); 47 47 begin 48 if (Item.Index >= 0) and (Item.Index < MainForm.Compiler.Targets.Count) then49 with TTarget( MainForm.Compiler.Targets[Item.Index]) do begin48 if (Item.Index >= 0) and (Item.Index < FormMain.Compiler.Targets.Count) then 49 with TTarget(FormMain.Compiler.Targets[Item.Index]) do begin 50 50 Item.Caption := Name; 51 Item.Data := MainForm.Compiler.Targets[Item.Index];51 Item.Data := FormMain.Compiler.Targets[Item.Index]; 52 52 //Item.SubItems.Add(Producer.CompilerPath); 53 53 end; … … 57 57 begin 58 58 if Assigned(ListView1.Selected) then begin 59 CompilerSettingsForm.LoadFromProducer(TProducer(ListView1.Selected.Data));60 if CompilerSettingsForm.ShowModal = mrOk then61 CompilerSettingsForm.SaveToProducer(TProducer(ListView1.Selected.Data));59 FormCompilerSettings.LoadFromProducer(TProducer(ListView1.Selected.Data)); 60 if FormCompilerSettings.ShowModal = mrOk then 61 FormCompilerSettings.SaveToProducer(TProducer(ListView1.Selected.Data)); 62 62 ReloadList; 63 63 end; … … 66 66 procedure TFormTargets.ReloadList; 67 67 begin 68 ListView1.Items.Count := MainForm.Compiler.Targets.Count;68 ListView1.Items.Count := FormMain.Compiler.Targets.Count; 69 69 ListView1.Refresh; 70 70 end;
Note:
See TracChangeset
for help on using the changeset viewer.