- Timestamp:
- Apr 2, 2016, 9:15:35 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Form/UFormMain.pas
r17 r18 197 197 Selected: Boolean); 198 198 begin 199 Core.Project.CurrentScan := TDriveScan(Item.Data); 200 Redraw; 201 ReloadOperationList; 199 if Selected then begin 200 Core.Project.CurrentScan := TDriveScan(Item.Data); 201 Redraw; 202 ReloadOperationList; 203 end; 202 204 end; 203 205 … … 243 245 with Core.Project do begin 244 246 CurrentScan.DriveName := DriveInfo.Path; 247 CurrentScan.SectorCount := DriveInfo.SectorCount; 245 248 CurrentScan.SectorSize := DriveInfo.SectorSize; 246 249 CurrentScan.Reset; -
trunk/UBlockMap.pas
r10 r18 6 6 7 7 uses 8 Classes, SysUtils, Graphics, Math, Contnrs, Dialogs, DOM, XMLRead, XMLWrite, 9 UXMLUtils; 8 Classes, SysUtils, Graphics, Math, Contnrs, Dialogs, DOM, UXMLUtils; 10 9 11 10 type 12 TSectorState = (bsNone, bs Ok, bsDamaged);11 TSectorState = (bsNone, bsRead, bsDamaged, bsWrite); 13 12 14 13 TChange = class … … 270 269 while (ChangeIndex < FChanges.Count) and 271 270 (TChange(FChanges[ChangeIndex]).Index <= EndIndex) do begin 272 if (Result = bsNone) and (TChange(FChanges[ChangeIndex]).Value = bsOk) then Result := bsOk 271 if (Result <> bsDamaged) and (TChange(FChanges[ChangeIndex]).Value = bsRead) then Result := bsRead 272 else if (Result <> bsDamaged) and (TChange(FChanges[ChangeIndex]).Value = bsWrite) then Result := bsWrite 273 273 else if TChange(FChanges[ChangeIndex]).Value = bsDamaged then Result := bsDamaged; 274 274 Inc(ChangeIndex); … … 296 296 (I div ItemsCount.X) * BlockSize.Y, BlockSize.X - 1, BlockSize.Y - 1); 297 297 BlockState := GetCombinedSectors(I * SectorPerBlock, (I + 1) * SectorPerBlock); 298 if BlockState = bs Okthen Canvas.Brush.Color := clGreen298 if BlockState = bsRead then Canvas.Brush.Color := clGreen 299 299 else if BlockState = bsDamaged then Canvas.Brush.Color := clRed 300 else if BlockState = bsWrite then Canvas.Brush.Color := clBlue 300 301 else Canvas.Brush.Color := clSilver; 301 302 Canvas.FillRect(Rect); -
trunk/UDriveScan.pas
r17 r18 212 212 BlockMap.Sectors[FSectorCurrent] := bsDamaged; 213 213 Inc(DamagedBlockCount); 214 end else BlockMap.Sectors[FSectorCurrent] := bsOk; 214 end else begin 215 if Mode = rmRead then BlockMap.Sectors[FSectorCurrent] := bsRead 216 else if Mode = rmWrite then BlockMap.Sectors[FSectorCurrent] := bsWrite; 217 end; 215 218 Inc(FSectorCurrent); 216 219 if Terminated then Break;
Note:
See TracChangeset
for help on using the changeset viewer.