Changeset 58 for oup/current


Ignore:
Timestamp:
Dec 27, 2006, 12:37:24 AM (18 years ago)
Author:
alloc
Message:
 
Location:
oup/current
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Helper_LevelDB.pas

    r56 r58  
    261261    FilesHeader[i].FileType := fileinfo.FileType;
    262262
    263     if ((i mod 25) = 0) and (i >= 100) then
    264       lbl_estimation.Caption := 'Estimated finishing time: ' + TimeToStr(
    265         (Time - begintime) / i * progress.Max + begintime);
     263    if ((i mod 10) = 0) and (i >= 100) then
     264      lbl_estimation.Caption := 'Estimated time left: ' + TimeToStr(
     265        (Time - begintime) / i * (progress.Max - i + 1) * 1.1 );
    266266    progress.Position := i + 1;
    267267    lbl_progress.Caption := 'Files done: ' + IntToStr(i + 1) + '/' + IntToStr(progress.Max);
     
    531531      Database.StartTransaction;
    532532    end;
    533     if ((i mod 25) = 0) and (i >= 100) then
    534       lbl_estimation.Caption := 'Estimated finishing time: ' + TimeToStr(
    535         (Time - begintime) / i * progress.Max + begintime);
     533    if ((i mod 10) = 0) and (i >= 100) then
     534      lbl_estimation.Caption := 'Estimated time left: ' + TimeToStr(
     535        (Time - begintime) / i * (progress.Max - i + 1) * 1.1 );
    536536    progress.Position := i;
    537537    lbl_progress.Caption := 'Files done: ' + IntToStr(i) + '/' + IntToStr(progress.Max);
  • oup/current/Tools/Template.dfm

    r54 r58  
    1717  Visible = True
    1818  WindowState = wsMaximized
     19  OnActivate = FormActivate
    1920  OnClose = FormClose
    2021  OnCreate = FormCreate
  • oup/current/Tools/Template.pas

    r54 r58  
    5555    procedure filepopupPopup(Sender: TObject);
    5656    procedure btn_sortClick(Sender: TObject);
     57    procedure FormActivate(Sender: TObject);
    5758  private
    5859    FSortBy: TSortType;
     
    365366end;
    366367
     368procedure TForm_ToolTemplate.FormActivate(Sender: TObject);
     369begin
     370  edit_filtername.SetFocus;
     371end;
     372
    367373procedure TForm_ToolTemplate.FormClose(Sender: TObject; var Action: TCloseAction);
    368374begin
Note: See TracChangeset for help on using the changeset viewer.