Changeset 56 for trunk/Forms


Ignore:
Timestamp:
Jul 26, 2016, 2:13:41 PM (8 years ago)
Author:
chronos
Message:
  • Added: Show how many new acronyms were imported.
Location:
trunk/Forms
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormAbout.lfm

    r50 r56  
    2929    Align = alTop
    3030    BorderSpacing.Around = 20
    31     Caption = 'Simple tool for quick search of meaning for various acronyms and abbreviations.'
     31    Caption = 'Simple tool for quick searching of meaning for various acronyms and abbreviations.'
    3232    ParentColor = False
    3333    WordWrap = True
     
    7373    EmailContact = 'robie@centrum.cz'
    7474    AppName = 'Acronym Decoder'
    75     ReleaseDate = 42565
     75    ReleaseDate = 42577
    7676    RegistryKey = '\Software\'
    7777    RegistryRoot = rrKeyCurrentUser
  • trunk/Forms/UFormAbout.lrt

    r28 r56  
    11TFORMABOUT.CAPTION=About
    22TFORMABOUT.LABELAPPNAME.CAPTION=Acronym Decoder
    3 TFORMABOUT.LABELDESCRIPTION.CAPTION=Simple tool for quick search of meaning for various acronyms and abbreviations.
     3TFORMABOUT.LABELDESCRIPTION.CAPTION=Simple tool for quick searching of meaning for various acronyms and abbreviations.
    44TFORMABOUT.BUTTONCLOSE.CAPTION=Close
    55TFORMABOUT.LABELCONTENT.CAPTION=   
  • trunk/Forms/UFormImportSources.pas

    r52 r56  
    162162begin
    163163  if Assigned(ListView1.Selected) then begin
     164    FormMain.AcronymDb.AddedCount := 0;
    164165    JobProgressView1.AddJob(SProcessSelectedSource, ProcessImportJob);
    165166    JobProgressView1.Start;
    166     ShowMessage(Format(SAddedCount, [TImportSource(ListView1.Selected.Data).ItemCount]));
     167    ShowMessage(Format(SAddedCount, [TImportSource(ListView1.Selected.Data).ItemCount, FormMain.AcronymDb.AddedCount]));
    167168  end;
    168169end;
  • trunk/Forms/UFormMain.lfm

    r55 r56  
    6666      ViewStyle = vsReport
    6767      OnData = ListViewAcronymsData
     68      OnResize = ListViewAcronymsResize
    6869      OnSelectItem = ListViewAcronymsSelectItem
    6970    end
  • trunk/Forms/UFormMain.pas

    r51 r56  
    110110    procedure LastOpenedList1Change(Sender: TObject);
    111111    procedure ListViewAcronymsData(Sender: TObject; Item: TListItem);
     112    procedure ListViewAcronymsResize(Sender: TObject);
    112113    procedure ListViewAcronymsSelectItem(Sender: TObject; Item: TListItem;
    113114      Selected: Boolean);
     
    140141
    141142resourcestring
    142   SAddedCount = 'Imported %d acronyms';
     143  SAddedCount = 'Imported %d acronyms. Added %d new.';
    143144  SProcessImportSources = 'Process import sources';
    144145
     
    277278begin
    278279  ImportTotalItemCount := 0;
     280  AcronymDb.AddedCount := 0;
    279281  JobProgressView1.AddJob(SProcessImportSources, ProcessImportsJob);
    280282  JobProgressView1.Start;
    281   ShowMessage(Format(SAddedCount, [ImportTotalItemCount]));
     283  ShowMessage(Format(SAddedCount, [ImportTotalItemCount, AcronymDb.AddedCount]));
    282284  UpdateAcronymsList;
    283285  UpdateInterface;
     
    393395    Item.SubItems.Add(Categories.GetString);
    394396  end;
     397end;
     398
     399procedure TFormMain.ListViewAcronymsResize(Sender: TObject);
     400begin
     401  ListViewFilter1.UpdateFromListView(ListViewAcronyms);
    395402end;
    396403
Note: See TracChangeset for help on using the changeset viewer.