Changeset 369 for Common/UJobProgressView.pas
- Timestamp:
- May 31, 2012, 6:26:07 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/UJobProgressView.pas
r368 r369 49 49 TJob = class 50 50 private 51 FResultString: string;52 51 FTerminate: Boolean; 53 52 procedure SetTerminate(const AValue: Boolean); … … 211 210 var 212 211 I: Integer; 213 H: Integer;214 212 begin 215 213 Terminate := False; … … 277 275 end; 278 276 Form.ProgressBarPart.Hide; 277 if Assigned(FOnJobFinish) then 278 FOnJobFinish(CurrentJob); 279 279 if Terminate then Break; 280 280 EndTime := Now; 281 281 Finished := True; 282 if Assigned(FOnJobFinish) then283 FOnJobFinish(CurrentJob);284 282 Inc(I); 285 283 end; … … 427 425 I: Integer; 428 426 begin 427 if AValue = FTerminate then Exit; 429 428 for I := 0 to Jobs.Count - 1 do 430 429 TJob(Jobs[I]).Terminate := AValue; … … 440 439 EstimatedTimePart: TDateTime; 441 440 RemainingTime: TDateTime; 442 LabelEstimatedTimePartCaption: string;443 LabelEstimatedTimePartVisible: Boolean;444 441 begin 445 442 if Assigned(CurrentJob) then … … 480 477 481 478 procedure TJobProgressView.ReloadJobList; 482 var483 OldImageIndex: Integer;484 479 begin 485 480 UpdateHeight; … … 593 588 if FTerminate = AValue then Exit; 594 589 FTerminate := AValue; 595 if Assigned(Thread) then Thread.Terminate; 590 if AValue then begin 591 ProgressView.Terminate := AValue; 592 if Assigned(Thread) then Thread.Terminate; 593 end; 596 594 end; 597 595
Note:
See TracChangeset
for help on using the changeset viewer.