Changeset 75 for trunk/IDE/Forms/FormTargets.pas
- Timestamp:
- Jun 4, 2024, 12:22:49 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/FormTargets.pas
r74 r75 1 unit UFormTargets; 2 3 {$mode objfpc}{$H+} 1 unit FormTargets; 4 2 5 3 interface … … 27 25 end; 28 26 29 var30 FormTargets: TFormTargets;31 27 32 28 implementation … … 35 31 36 32 uses 37 UCore, UFormMain, UCompiler, UProducer, UTarget, 38 UFormTargetOptions; 33 Core, FormMain, Compiler, Producer, Target, FormTargetOptions; 39 34 40 35 resourcestring … … 50 45 51 46 procedure TFormTargets.ATargetOptionsExecute(Sender: TObject); 47 var 48 FormTargetOptions: TFormTargetOptions; 52 49 begin 53 50 if Assigned(ListView1.Selected) then begin 51 FormTargetOptions := TFormTargetOptions.Create(nil); 54 52 FormTargetOptions.LoadControls(TTarget(ListView1.Selected.Data)); 55 53 if FormTargetOptions.ShowModal = mrOk then begin … … 57 55 ReloadList; 58 56 end; 57 FormTargetOptions.Free; 59 58 end; 60 59 end; … … 62 61 procedure TFormTargets.ListView1Data(Sender: TObject; Item: TListItem); 63 62 begin 64 if (Item.Index >= 0) and (Item.Index < Core.Co mpiler.Targets.Count) then65 with TTarget(Core.Co mpiler.Targets[Item.Index]) do begin63 if (Item.Index >= 0) and (Item.Index < Core.Core.Compiler.Targets.Count) then 64 with TTarget(Core.Core.Compiler.Targets[Item.Index]) do begin 66 65 Item.Caption := Name; 67 Item.Data := Core.Co mpiler.Targets[Item.Index];66 Item.Data := Core.Core.Compiler.Targets[Item.Index]; 68 67 //Item.SubItems.Add(Producer.CompilerPath); 69 68 end; … … 72 71 procedure TFormTargets.ReloadList; 73 72 begin 74 ListView1.Items.Count := Core.Co mpiler.Targets.Count;73 ListView1.Items.Count := Core.Core.Compiler.Targets.Count; 75 74 ListView1.Refresh; 76 75 end;
Note:
See TracChangeset
for help on using the changeset viewer.