Changeset 370 for ISPProgrammer/ISPprog


Ignore:
Timestamp:
May 31, 2012, 6:29:12 AM (13 years ago)
Author:
chronos
Message:
  • Modified: ISPProgrammer now use updated component oriented TJobProgressView from Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ISPProgrammer/ISPprog/UISPprog.pas

    r363 r370  
    2626  public
    2727    constructor Create; override;
    28     procedure Write; override;
    29     procedure Read; override;
    30     procedure Verify; override;
     28    procedure Write(Job: TJob); override;
     29    procedure Read(Job: TJob); override;
     30    procedure Verify(Job: TJob); override;
    3131    procedure Erase; override;
    3232    procedure Reset; override;
     
    149149{ TISPProg }
    150150
    151 procedure TISPProg.Write;
     151procedure TISPProg.Write(Job: TJob);
    152152var
    153153  res: string;
     
    212212    maxadr:=maxadr or pagemask;         // round up to page size
    213213    radr:=minadr;
    214     JobProgressView.CurrentJob.Progress.Max := maxadr - minadr + 1;
     214    Job.Progress.Max := maxadr - minadr + 1;
    215215    while radr <= maxadr do begin
    216216      if (proctype = PROC_TYPE_AVR) and (flashsize > 1024*128) then
     
    233233      end;
    234234      radr := radr + pagesize;
    235       JobProgressView.CurrentJob.Progress.Value := radr - minadr;
    236       if JobProgressView.CurrentJob.Terminate then Break;
     235      Job.Progress.Value := radr - minadr;
     236      if Job.Terminate then Break;
    237237    end;
    238238    Log(SProgramOK);
     
    263263      end;
    264264      radr := radr + pagesize;
    265       JobProgressView.CurrentJob.Progress.Value := radr - minadr;
     265      Job.Progress.Value := radr - minadr;
    266266    end;
    267267    Log(SProgramOK);
     
    284284      end;
    285285    end;
    286     JobProgressView.CurrentJob.Progress.Value := radr - minadr;
     286    Job.Progress.Value := radr - minadr;
    287287  end;
    288288  LedOff;
     
    295295end;
    296296
    297 procedure TISPProg.Verify;
     297procedure TISPProg.Verify(Job: TJob);
    298298begin
    299299  inherited;
Note: See TracChangeset for help on using the changeset viewer.