Changeset 45 for trunk/IDE/Forms


Ignore:
Timestamp:
Mar 4, 2012, 9:56:47 AM (13 years ago)
Author:
chronos
Message:
  • Modified: Forms renamed to names with Form prefix.
Location:
trunk/IDE/Forms
Files:
24 added
16 deleted
2 edited

Legend:

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

    r35 r45  
    3434
    3535uses
    36   UMainForm, ULanguages;
     36  UFormMain, ULanguages;
    3737
    3838{ TFormOptions }
     
    4141begin
    4242  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;
    4545end;
    4646
    4747procedure TFormOptions.FormShow(Sender: TObject);
    4848begin
    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);
    5151  if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0;
    52   CheckBoxReopenProject.Checked := MainForm.ReopenLastOpenedFile;
     52  CheckBoxReopenProject.Checked := FormMain.ReopenLastOpenedFile;
    5353end;
    5454
  • trunk/IDE/Forms/UFormTargets.pas

    r42 r45  
    3131
    3232uses
    33   UMainForm, UCompiler, UCompilerSettingsForm, UProducer, UTarget;
     33  UFormMain, UCompiler, UFormCompilerSettings, UProducer, UTarget;
    3434
    3535resourcestring
     
    4646procedure TFormTargets.ListView1Data(Sender: TObject; Item: TListItem);
    4747begin
    48   if (Item.Index >= 0) and (Item.Index < MainForm.Compiler.Targets.Count) then
    49   with TTarget(MainForm.Compiler.Targets[Item.Index]) do begin
     48  if (Item.Index >= 0) and (Item.Index < FormMain.Compiler.Targets.Count) then
     49  with TTarget(FormMain.Compiler.Targets[Item.Index]) do begin
    5050    Item.Caption := Name;
    51     Item.Data := MainForm.Compiler.Targets[Item.Index];
     51    Item.Data := FormMain.Compiler.Targets[Item.Index];
    5252    //Item.SubItems.Add(Producer.CompilerPath);
    5353  end;
     
    5757begin
    5858  if Assigned(ListView1.Selected) then begin
    59     CompilerSettingsForm.LoadFromProducer(TProducer(ListView1.Selected.Data));
    60     if CompilerSettingsForm.ShowModal = mrOk then
    61       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));
    6262    ReloadList;
    6363  end;
     
    6666procedure TFormTargets.ReloadList;
    6767begin
    68   ListView1.Items.Count := MainForm.Compiler.Targets.Count;
     68  ListView1.Items.Count := FormMain.Compiler.Targets.Count;
    6969  ListView1.Refresh;
    7070end;
Note: See TracChangeset for help on using the changeset viewer.