Changeset 176 for trunk/Forms
- Timestamp:
- Mar 13, 2018, 10:24:27 AM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r175 r176 538 538 Action = AManageAcronym 539 539 end 540 object MenuItemShowItemsWithoutFilter: TMenuItem 541 Caption = 'Show items without filter' 542 OnClick = MenuItemShowItemsWithoutFilterClick 543 end 540 544 end 541 545 end -
trunk/Forms/UFormMain.pas
r174 r176 48 48 MainMenu1: TMainMenu; 49 49 MenuItem1: TMenuItem; 50 MenuItemShowItemsWithoutFilter: TMenuItem; 50 51 MenuItemStatusBar: TMenuItem; 51 52 MenuItemParam: TMenuItem; … … 135 136 procedure ListViewSort1Filter(ListViewSort: TListViewSort); 136 137 procedure MenuItemParamClick(Sender: TObject); 138 procedure MenuItemShowItemsWithoutFilterClick(Sender: TObject); 137 139 procedure MenuItemStatusBarClick(Sender: TObject); 138 140 procedure MenuItemToolbarClick(Sender: TObject); … … 553 555 end; 554 556 557 procedure TFormMain.MenuItemShowItemsWithoutFilterClick(Sender: TObject); 558 begin 559 MenuItemShowItemsWithoutFilter.Checked := 560 not MenuItemShowItemsWithoutFilter.Checked; 561 UpdateAcronymsList; 562 UpdateInterface; 563 end; 564 555 565 procedure TFormMain.MenuItemStatusBarClick(Sender: TObject); 556 566 begin … … 620 630 with TAcronymMeaning(List.Items[I]) do begin 621 631 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 623 634 FoundCount := 0; 624 635 if TextEnteredColumn(0) and (FilterCell(StringGrid.Cells[0, 0], … … 726 737 MenuItemStatusBar.Checked := ReadBoolWithDefault('StatuslBarVisible', True); 727 738 MenuItemParam.Checked := ReadBoolWithDefault('FilterParamVisible', True); 739 MenuItemShowItemsWithoutFilter.Checked := 740 ReadBoolWithDefault('ShowItemsWithoutFilter', False); 728 741 finally 729 742 Free; … … 755 768 WriteBool('StatusBarVisible', MenuItemStatusBar.Checked); 756 769 WriteBool('FilterParamVisible', MenuItemParam.Checked); 770 WriteBool('ShowItemsWithoutFilter', MenuItemShowItemsWithoutFilter.Checked); 757 771 finally 758 772 Free;
Note:
See TracChangeset
for help on using the changeset viewer.