Changeset 208 for trunk/Forms/UFormMain.pas
- Timestamp:
- Sep 20, 2021, 11:36:06 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r207 r208 17 17 TFormMain = class(TForm) 18 18 AboutDialog1: TAboutDialog; 19 AFilterShowItemsWithoutFilter: TAction; 19 20 ADocumentCheck: TAction; 20 21 AFilterEnabledCategories: TAction; … … 41 42 ActionList1: TActionList; 42 43 CheckBoxEnabledCategories: TCheckBox; 44 CheckBoxShowItemsWithoutFilter: TCheckBox; 43 45 CheckBoxExactLength: TCheckBox; 44 46 CheckBoxCaseSensitive: TCheckBox; … … 50 52 MainMenu1: TMainMenu; 51 53 MenuItem1: TMenuItem; 54 MenuItem19: TMenuItem; 52 55 MenuItem2: TMenuItem; 56 MenuItem26: TMenuItem; 57 MenuItem27: TMenuItem; 58 N1: TMenuItem; 53 59 MenuItem3: TMenuItem; 54 60 MenuItemShowItemsWithoutFilter: TMenuItem; … … 113 119 procedure AFilterSameLetterCaseExecute(Sender: TObject); 114 120 procedure AFilterSameLengthExecute(Sender: TObject); 121 procedure AFilterShowItemsWithoutFilterExecute(Sender: TObject); 115 122 procedure AHideExecute(Sender: TObject); 116 123 procedure AImportExecute(Sender: TObject); … … 142 149 procedure ListViewSort1Filter(ListViewSort: TListViewSort); 143 150 procedure MenuItemParamClick(Sender: TObject); 144 procedure MenuItemShowItemsWithoutFilterClick(Sender: TObject);145 151 procedure MenuItemStatusBarClick(Sender: TObject); 146 152 procedure MenuItemToolbarClick(Sender: TObject); … … 181 187 uses 182 188 UFormImport, UFormSettings, UFormCategories, UFormAcronyms, UFormExport, 183 UFormImportSources, UForm About, UFormImportFormats, UCore, UFormCheck;189 UFormImportSources, UFormImportFormats, UCore, UFormCheck; 184 190 185 191 resourcestring … … 365 371 end; 366 372 373 procedure TFormMain.AFilterShowItemsWithoutFilterExecute(Sender: TObject); 374 begin 375 UpdateAcronymsList; 376 end; 377 367 378 procedure TFormMain.AHideExecute(Sender: TObject); 368 379 begin … … 586 597 end; 587 598 588 procedure TFormMain.MenuItemShowItemsWithoutFilterClick(Sender: TObject);589 begin590 MenuItemShowItemsWithoutFilter.Checked :=591 not MenuItemShowItemsWithoutFilter.Checked;592 UpdateAcronymsList;593 UpdateInterface;594 end;595 596 599 procedure TFormMain.MenuItemStatusBarClick(Sender: TObject); 597 600 begin … … 662 665 with ListViewFilter1 do 663 666 if Visible and ((EnteredCount > 0) or ((EnteredCount = 0) and 664 ( MenuItemShowItemsWithoutFilter.Checked))) then begin667 (AFilterShowItemsWithoutFilter.Checked))) then begin 665 668 FoundCount := 0; 666 669 if TextEnteredColumn(0) and (FilterCell(StringGrid.Cells[0, 0], … … 768 771 MenuItemStatusBar.Checked := ReadBoolWithDefault('StatusBarVisible', True); 769 772 MenuItemParam.Checked := ReadBoolWithDefault('FilterParamVisible', True); 770 MenuItemShowItemsWithoutFilter.Checked :=771 ReadBoolWithDefault('ShowItemsWithoutFilter', False);773 AFilterShowItemsWithoutFilter.Checked := 774 ReadBoolWithDefault('ShowItemsWithoutFilter', True); 772 775 finally 773 776 Free; … … 799 802 WriteBool('StatusBarVisible', MenuItemStatusBar.Checked); 800 803 WriteBool('FilterParamVisible', MenuItemParam.Checked); 801 WriteBool('ShowItemsWithoutFilter', MenuItemShowItemsWithoutFilter.Checked);804 WriteBool('ShowItemsWithoutFilter', AFilterShowItemsWithoutFilter.Checked); 802 805 finally 803 806 Free;
Note:
See TracChangeset
for help on using the changeset viewer.