Changeset 145 for trunk/Forms/FormTargets.pas
- Timestamp:
- Jun 5, 2023, 6:44:57 PM (18 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormTargets.pas
r144 r145 1 unit UFormTargets;1 unit FormTargets; 2 2 3 3 interface … … 18 18 procedure ListView1DblClick(Sender: TObject); 19 19 procedure ListView1KeyPress(Sender: TObject; var Key: char); 20 private21 { private declarations }22 20 public 23 21 procedure ReloadList; 24 22 end; 25 23 26 var27 FormTargets: TFormTargets;28 24 29 25 implementation … … 32 28 33 29 uses 34 UCore, UTarget, UFormTargetOptions;30 Core, Target, FormTargetOptions; 35 31 36 32 { TFormTargets } … … 38 34 procedure TFormTargets.FormShow(Sender: TObject); 39 35 begin 40 Core. PersistentForm1.Load(Self);36 Core.Core.PersistentForm1.Load(Self); 41 37 ReloadList; 42 38 end; … … 44 40 procedure TFormTargets.FormCreate(Sender: TObject); 45 41 begin 46 Core. Translator.TranslateComponentRecursive(Self);47 Core. ThemeManager.UseTheme(Self);42 Core.Core.Translator.TranslateComponentRecursive(Self); 43 Core.Core.ThemeManager.UseTheme(Self); 48 44 end; 49 45 … … 51 47 ); 52 48 begin 53 Core. PersistentForm1.Save(Self);49 Core.Core.PersistentForm1.Save(Self); 54 50 end; 55 51 56 52 procedure TFormTargets.ListView1Data(Sender: TObject; Item: TListItem); 57 53 begin 58 if (Item.Index >= 0) and (Item.Index < Core. Targets.Count) then59 with TTarget(Core. Targets[Item.Index]) do begin54 if (Item.Index >= 0) and (Item.Index < Core.Core.Targets.Count) then 55 with TTarget(Core.Core.Targets[Item.Index]) do begin 60 56 Item.Caption := Name; 61 Item.Data := Core. Targets[Item.Index];57 Item.Data := Core.Core.Targets[Item.Index]; 62 58 Item.SubItems.Add(ExecutorPath); 63 59 Item.SubItems.Add(CompilerPath); … … 66 62 67 63 procedure TFormTargets.ListView1DblClick(Sender: TObject); 64 var 65 FormTargetOptions: TFormTargetOptions; 68 66 begin 69 67 FormTargetOptions := TFormTargetOptions.Create(nil); … … 86 84 procedure TFormTargets.ReloadList; 87 85 begin 88 ListView1.Items.Count := Core. Targets.Count;86 ListView1.Items.Count := Core.Core.Targets.Count; 89 87 ListView1.Refresh; 90 88 end;
Note:
See TracChangeset
for help on using the changeset viewer.