Ignore:
Timestamp:
Feb 18, 2012, 8:02:50 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Renamed classes from Compiler to Target. Interpretter registred as possible and default target.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UCompilersForm.pas

    r25 r31  
    3131
    3232uses
    33   UMainForm, UCompiler;
     33  UMainForm, UTarget;
    3434
    3535resourcestring
     
    4646procedure TFormCompilers.ListView1Data(Sender: TObject; Item: TListItem);
    4747begin
    48   if (Item.Index >= 0) and (Item.Index < MainForm.Compilers.Count) then
    49   with TBrainFuckCompiler(MainForm.Compilers[Item.Index]) do begin
     48  if (Item.Index >= 0) and (Item.Index < MainForm.Targets.Count) then
     49  with TTarget(MainForm.Targets[Item.Index]) do begin
    5050    Item.Caption := Name;
    51     Item.Data := MainForm.Compilers[Item.Index];
     51    Item.Data := MainForm.Targets[Item.Index];
    5252    Item.SubItems.Add(CompilerPath);
    5353  end;
     
    5656procedure TFormCompilers.ListView1DblClick(Sender: TObject);
    5757begin
    58   with TBrainFuckCompiler(ListView1.Selected.Data) do
     58  with TTarget(ListView1.Selected.Data) do
    5959    CompilerPath := InputBox(SCompilerOptions, SCompilerPath,
    6060      CompilerPath);
     
    6464procedure TFormCompilers.ReloadList;
    6565begin
    66   ListView1.Items.Count := MainForm.Compilers.Count;
     66  ListView1.Items.Count := MainForm.Targets.Count;
    6767  ListView1.Refresh;
    6868end;
Note: See TracChangeset for help on using the changeset viewer.