Ignore:
Timestamp:
Jul 13, 2016, 4:42:12 PM (8 years ago)
Author:
chronos
Message:
  • Added: Job progress view for longer processing of all import sources.
  • Modified: Use application icon also for system tray icon.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormImportSources.pas

    r33 r39  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls,
    9   ActnList, Menus, UAcronym;
     9  ActnList, Menus, UAcronym, UJobProgressView;
    1010
    1111type
     
    1919    AModify: TAction;
    2020    ARemove: TAction;
     21    JobProgressView1: TJobProgressView;
    2122    ListView1: TListView;
    2223    MenuItem1: TMenuItem;
     
    3536      Selected: Boolean);
    3637  private
     38    procedure ProcessImportJob(Job: TJob);
    3739    { private declarations }
    3840  public
     
    150152begin
    151153  if Assigned(ListView1.Selected) then begin
    152     TImportSource(ListView1.Selected.Data).Process;
     154    JobProgressView1.AddJob('Process selected import source', ProcessImportJob);
     155    JobProgressView1.Start;
    153156    ShowMessage(Format(SAddedCount, [TImportSource(ListView1.Selected.Data).ItemCount]));
    154157  end;
     158end;
     159
     160procedure TFormImportSources.ProcessImportJob(Job: TJob);
     161begin
     162  TImportSource(ListView1.Selected.Data).Process;
    155163end;
    156164
Note: See TracChangeset for help on using the changeset viewer.