Changeset 52 for trunk/Forms


Ignore:
Timestamp:
Jul 25, 2016, 5:37:39 PM (8 years ago)
Author:
chronos
Message:
  • Added: Remember last import date for import sources.
Location:
trunk/Forms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormImportSources.lfm

    r51 r52  
    2727      end   
    2828      item
     29        Caption = 'Categories'
     30        Width = 200
     31      end   
     32      item
    2933        Caption = 'Count'
    3034        Width = 70
    3135      end   
    3236      item
    33         Caption = 'Categories'
    34         Width = 200
     37        Caption = 'Date'
     38        Width = 100
    3539      end>
    3640    MultiSelect = True
  • trunk/Forms/UFormImportSources.lrt

    r51 r52  
    22TFORMIMPORTSOURCES.LISTVIEW1.COLUMNS[0].CAPTION=Name
    33TFORMIMPORTSOURCES.LISTVIEW1.COLUMNS[1].CAPTION=URL
    4 TFORMIMPORTSOURCES.LISTVIEW1.COLUMNS[2].CAPTION=Count
    5 TFORMIMPORTSOURCES.LISTVIEW1.COLUMNS[3].CAPTION=Categories
     4TFORMIMPORTSOURCES.LISTVIEW1.COLUMNS[2].CAPTION=Categories
     5TFORMIMPORTSOURCES.LISTVIEW1.COLUMNS[3].CAPTION=Count
     6TFORMIMPORTSOURCES.LISTVIEW1.COLUMNS[4].CAPTION=Date
    67TFORMIMPORTSOURCES.TOOLBAR1.CAPTION=ToolBar1
    78TFORMIMPORTSOURCES.AADD.CAPTION=Add
  • trunk/Forms/UFormImportSources.pas

    r51 r52  
    6464  SRemoveImportSourceQuery = 'Do you really want to remove selected import sources?';
    6565  SImportSourceAlreadyExists = 'Import source %s already exists!';
     66  SProcessSelectedSource = 'Process selected import source';
    6667
    6768
     
    7576    Item.Data := ImportSources[Item.Index];
    7677    Item.SubItems.Add(URL);
     78    Item.SubItems.Add(Categories.GetString);
    7779    Item.SubItems.Add(IntToStr(ItemCount));
    78     Item.SubItems.Add(Categories.GetString);
     80    if LastImportTime <> 0 then
     81      Item.SubItems.Add(DateToStr(LastImportTime))
     82      else Item.SubItems.Add('');
    7983    Item.Checked := Enabled;
    8084  end;
     
    158162begin
    159163  if Assigned(ListView1.Selected) then begin
    160     JobProgressView1.AddJob('Process selected import source', ProcessImportJob);
     164    JobProgressView1.AddJob(SProcessSelectedSource, ProcessImportJob);
    161165    JobProgressView1.Start;
    162166    ShowMessage(Format(SAddedCount, [TImportSource(ListView1.Selected.Data).ItemCount]));
Note: See TracChangeset for help on using the changeset viewer.