Changeset 60 for trunk/IDE/Forms/UFormTargets.pas
- Timestamp:
- Jul 17, 2012, 7:25:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormTargets.pas
r53 r60 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 Menus, ActnList; 9 10 10 11 type … … 13 14 14 15 TFormTargets = class(TForm) 16 ATargetOptions: TAction; 17 ActionList1: TActionList; 15 18 ListView1: TListView; 19 PopupMenu1: TPopupMenu; 20 procedure ATargetOptionsExecute(Sender: TObject); 16 21 procedure FormShow(Sender: TObject); 17 22 procedure ListView1Data(Sender: TObject; Item: TListItem); 18 procedure ListView1DblClick(Sender: TObject);19 23 private 20 24 { private declarations } … … 31 35 32 36 uses 33 UCore, UFormMain, UCompiler, UFormCompilerSettings, UProducer, UTarget; 37 UCore, UFormMain, UCompiler, UProducer, UTarget, 38 UFormTargetOptions; 34 39 35 40 resourcestring … … 44 49 end; 45 50 51 procedure TFormTargets.ATargetOptionsExecute(Sender: TObject); 52 begin 53 if Assigned(ListView1.Selected) then begin 54 FormTargetOptions.LoadControls(TTarget(ListView1.Selected.Data)); 55 if FormTargetOptions.ShowModal = mrOk then begin 56 FormTargetOptions.SaveControls(TTarget(ListView1.Selected.Data)); 57 ReloadList; 58 end; 59 end; 60 end; 61 46 62 procedure TFormTargets.ListView1Data(Sender: TObject; Item: TListItem); 47 63 begin … … 51 67 Item.Data := Core.Compiler.Targets[Item.Index]; 52 68 //Item.SubItems.Add(Producer.CompilerPath); 53 end;54 end;55 56 procedure TFormTargets.ListView1DblClick(Sender: TObject);57 begin58 if Assigned(ListView1.Selected) then begin59 FormCompilerSettings.LoadFromProducer(TProducer(ListView1.Selected.Data));60 if FormCompilerSettings.ShowModal = mrOk then61 FormCompilerSettings.SaveToProducer(TProducer(ListView1.Selected.Data));62 ReloadList;63 69 end; 64 70 end;
Note:
See TracChangeset
for help on using the changeset viewer.