Changeset 72 for trunk/IDE/Forms


Ignore:
Timestamp:
Aug 1, 2012, 12:16:08 PM (12 years ago)
Author:
chronos
Message:
  • Added: Introduced concept of graph of source file set converters similar to IntToStr, StrToInt, FloatToStr, StrToFloat, e.g.
  • Modified: Some target definitions transformed to loadable modules.
Location:
trunk/IDE/Forms
Files:
2 edited

Legend:

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

    r71 r72  
    330330
    331331  UpdateMenu;
    332   Core.Compiler.API.Targets.LoadToStrings(ComboBoxTarget.Items);
    333   ComboBoxTarget.ItemIndex := Core.Compiler.API.Targets.IndexOf(Core.Compiler.Target);
     332  Core.Compiler.Targets.LoadToStrings(ComboBoxTarget.Items);
     333  ComboBoxTarget.ItemIndex := Core.Compiler.Targets.IndexOf(Core.Compiler.Target);
    334334  FormSourceCode.UpdateInterface;
    335335  FormTargetCode.UpdateInterface;
     
    435435begin
    436436  with TMenuItem(Sender) do begin
    437     Core.Compiler.Target := TTarget(Core.Compiler.API.Targets[MenuIndex]);
     437    Core.Compiler.Target := TTarget(Core.Compiler.Targets[MenuIndex]);
    438438    UpdateInterface;
    439439  end;
  • trunk/IDE/Forms/UFormTargets.pas

    r71 r72  
    6262procedure TFormTargets.ListView1Data(Sender: TObject; Item: TListItem);
    6363begin
    64   if (Item.Index >= 0) and (Item.Index < Core.Compiler.API.Targets.Count) then
    65   with TTarget(Core.Compiler.API.Targets[Item.Index]) do begin
     64  if (Item.Index >= 0) and (Item.Index < Core.Compiler.Targets.Count) then
     65  with TTarget(Core.Compiler.Targets[Item.Index]) do begin
    6666    Item.Caption := Name;
    67     Item.Data := Core.Compiler.API.Targets[Item.Index];
     67    Item.Data := Core.Compiler.Targets[Item.Index];
    6868    //Item.SubItems.Add(Producer.CompilerPath);
    6969  end;
     
    7272procedure TFormTargets.ReloadList;
    7373begin
    74   ListView1.Items.Count := Core.Compiler.API.Targets.Count;
     74  ListView1.Items.Count := Core.Compiler.Targets.Count;
    7575  ListView1.Refresh;
    7676end;
Note: See TracChangeset for help on using the changeset viewer.