Ignore:
Timestamp:
Jun 26, 2012, 7:23:47 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Created main UCore unit and moved non visual code from UFormMain to it.
File:
1 edited

Legend:

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

    r45 r53  
    3131
    3232uses
    33   UFormMain, UCompiler, UFormCompilerSettings, UProducer, UTarget;
     33  UCore, UFormMain, UCompiler, UFormCompilerSettings, UProducer, UTarget;
    3434
    3535resourcestring
     
    4646procedure TFormTargets.ListView1Data(Sender: TObject; Item: TListItem);
    4747begin
    48   if (Item.Index >= 0) and (Item.Index < FormMain.Compiler.Targets.Count) then
    49   with TTarget(FormMain.Compiler.Targets[Item.Index]) do begin
     48  if (Item.Index >= 0) and (Item.Index < Core.Compiler.Targets.Count) then
     49  with TTarget(Core.Compiler.Targets[Item.Index]) do begin
    5050    Item.Caption := Name;
    51     Item.Data := FormMain.Compiler.Targets[Item.Index];
     51    Item.Data := Core.Compiler.Targets[Item.Index];
    5252    //Item.SubItems.Add(Producer.CompilerPath);
    5353  end;
     
    6666procedure TFormTargets.ReloadList;
    6767begin
    68   ListView1.Items.Count := FormMain.Compiler.Targets.Count;
     68  ListView1.Items.Count := Core.Compiler.Targets.Count;
    6969  ListView1.Refresh;
    7070end;
Note: See TracChangeset for help on using the changeset viewer.