Changeset 72 for trunk/Forms
- Timestamp:
- Aug 1, 2016, 11:00:05 PM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImportSources.lfm
r69 r72 10 10 OnShow = FormShow 11 11 Position = poScreenCenter 12 LCLVersion = '1. 6.0.4'12 LCLVersion = '1.7' 13 13 object ListView1: TListView 14 14 Left = 8 … … 37 37 item 38 38 Caption = 'Date' 39 Width = 10 039 Width = 108 40 40 end> 41 41 MultiSelect = True … … 108 108 ImageIndex = 5 109 109 OnExecute = AProcessExecute 110 end 111 object AEnable: TAction 112 Caption = 'Enable' 113 OnExecute = AEnableExecute 114 end 115 object ADisable: TAction 116 Caption = 'Disable' 117 OnExecute = ADisableExecute 110 118 end 111 119 end … … 270 278 } 271 279 end 280 object MenuItem6: TMenuItem 281 Action = AEnable 282 end 283 object MenuItem5: TMenuItem 284 Action = ADisable 285 end 272 286 end 273 287 object JobProgressView1: TJobProgressView -
trunk/Forms/UFormImportSources.lrt
r52 r72 10 10 TFORMIMPORTSOURCES.AMODIFY.CAPTION=Modify 11 11 TFORMIMPORTSOURCES.APROCESS.CAPTION=Process 12 TFORMIMPORTSOURCES.AENABLE.CAPTION=Enable 13 TFORMIMPORTSOURCES.ADISABLE.CAPTION=Disable -
trunk/Forms/UFormImportSources.pas
r56 r72 15 15 TFormImportSources = class(TForm) 16 16 AAdd: TAction; 17 AEnable: TAction; 18 ADisable: TAction; 17 19 AProcess: TAction; 18 20 ActionList1: TActionList; … … 25 27 MenuItem3: TMenuItem; 26 28 MenuItem4: TMenuItem; 29 MenuItem5: TMenuItem; 30 MenuItem6: TMenuItem; 27 31 PopupMenuImportSource: TPopupMenu; 28 32 ToolBar1: TToolBar; … … 32 36 ToolButton4: TToolButton; 33 37 procedure AAddExecute(Sender: TObject); 38 procedure ADisableExecute(Sender: TObject); 39 procedure AEnableExecute(Sender: TObject); 34 40 procedure AModifyExecute(Sender: TObject); 35 41 procedure AProcessExecute(Sender: TObject); … … 131 137 end; 132 138 if Assigned(NewImportSource) then NewImportSource.Free; 139 end; 140 141 procedure TFormImportSources.ADisableExecute(Sender: TObject); 142 var 143 I: Integer; 144 begin 145 for I := ListView1.Items.Count - 1 downto 0 do 146 if ListView1.Items[I].Selected then 147 TImportSource(ListView1.Items[I].Data).Enabled := False; 148 UpdateList; 149 end; 150 151 procedure TFormImportSources.AEnableExecute(Sender: TObject); 152 var 153 I: Integer; 154 begin 155 for I := ListView1.Items.Count - 1 downto 0 do 156 if ListView1.Items[I].Selected then 157 TImportSource(ListView1.Items[I].Data).Enabled := True; 158 UpdateList; 133 159 end; 134 160
Note:
See TracChangeset
for help on using the changeset viewer.