Changeset 176 for trunk


Ignore:
Timestamp:
Mar 13, 2018, 10:24:27 AM (7 years ago)
Author:
chronos
Message:
  • Added: Option to show all acronym items in main form even without specified filter.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r175 r176  
    538538      Action = AManageAcronym
    539539    end
     540    object MenuItemShowItemsWithoutFilter: TMenuItem
     541      Caption = 'Show items without filter'
     542      OnClick = MenuItemShowItemsWithoutFilterClick
     543    end
    540544  end
    541545end
  • trunk/Forms/UFormMain.pas

    r174 r176  
    4848    MainMenu1: TMainMenu;
    4949    MenuItem1: TMenuItem;
     50    MenuItemShowItemsWithoutFilter: TMenuItem;
    5051    MenuItemStatusBar: TMenuItem;
    5152    MenuItemParam: TMenuItem;
     
    135136    procedure ListViewSort1Filter(ListViewSort: TListViewSort);
    136137    procedure MenuItemParamClick(Sender: TObject);
     138    procedure MenuItemShowItemsWithoutFilterClick(Sender: TObject);
    137139    procedure MenuItemStatusBarClick(Sender: TObject);
    138140    procedure MenuItemToolbarClick(Sender: TObject);
     
    553555end;
    554556
     557procedure TFormMain.MenuItemShowItemsWithoutFilterClick(Sender: TObject);
     558begin
     559  MenuItemShowItemsWithoutFilter.Checked :=
     560    not MenuItemShowItemsWithoutFilter.Checked;
     561  UpdateAcronymsList;
     562  UpdateInterface;
     563end;
     564
    555565procedure TFormMain.MenuItemStatusBarClick(Sender: TObject);
    556566begin
     
    620630      with TAcronymMeaning(List.Items[I]) do begin
    621631         with ListViewFilter1 do
    622          if Visible and (EnteredCount > 0) then begin
     632         if Visible and ((EnteredCount > 0) or ((EnteredCount = 0) and
     633         (MenuItemShowItemsWithoutFilter.Checked))) then begin
    623634           FoundCount := 0;
    624635           if TextEnteredColumn(0) and (FilterCell(StringGrid.Cells[0, 0],
     
    726737    MenuItemStatusBar.Checked := ReadBoolWithDefault('StatuslBarVisible', True);
    727738    MenuItemParam.Checked := ReadBoolWithDefault('FilterParamVisible', True);
     739    MenuItemShowItemsWithoutFilter.Checked :=
     740      ReadBoolWithDefault('ShowItemsWithoutFilter', False);
    728741  finally
    729742    Free;
     
    755768    WriteBool('StatusBarVisible', MenuItemStatusBar.Checked);
    756769    WriteBool('FilterParamVisible', MenuItemParam.Checked);
     770    WriteBool('ShowItemsWithoutFilter', MenuItemShowItemsWithoutFilter.Checked);
    757771  finally
    758772    Free;
  • trunk/Languages/AcronymDecoder.cs.po

    r175 r176  
    641641msgstr "Parametry filtru"
    642642
     643#: tformmain.menuitemshowitemswithoutfilter.caption
     644msgid "Show items without filter"
     645msgstr "Ukázat položky bez filtru"
     646
    643647#: tformmain.menuitemstatusbar.caption
    644648msgid "Status bar"
     
    922926msgid "Process import sources"
    923927msgstr "Zpracovat zdroje importu"
    924 
  • trunk/Languages/AcronymDecoder.po

    r174 r176  
    631631msgstr ""
    632632
     633#: tformmain.menuitemshowitemswithoutfilter.caption
     634msgid "Show items without filter"
     635msgstr ""
     636
    633637#: tformmain.menuitemstatusbar.caption
    634638msgid "Status bar"
  • trunk/UCore.lfm

    r175 r176  
    34443444    AppName = 'Acronym Decoder'
    34453445    Description = 'Simple tool for quick searching of meaning for various acronyms and abbreviations.'
    3446     ReleaseDate = 43157
     3446    ReleaseDate = 43174
    34473447    RegistryKey = '\Software\'
    34483448    RegistryRoot = rrKeyCurrentUser
Note: See TracChangeset for help on using the changeset viewer.