Changeset 149 for trunk/Forms/UFormMain.pas
- Timestamp:
- Feb 6, 2017, 2:14:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r148 r149 16 16 17 17 TFormMain = class(TForm) 18 AFilterEnabledCategories: TAction; 18 19 AManageAcronym: TAction; 19 20 AFilterSameLetterCase: TAction; … … 37 38 AExit: TAction; 38 39 ActionList1: TActionList; 40 CheckBoxEnabledCategories: TCheckBox; 39 41 CheckBoxExactLength: TCheckBox; 40 42 CheckBoxCaseSensitive: TCheckBox; … … 91 93 ToolButton6: TToolButton; 92 94 ToolButton7: TToolButton; 95 ToolButton8: TToolButton; 93 96 ToolButton9: TToolButton; 94 97 procedure AExitExecute(Sender: TObject); … … 99 102 procedure AFileSaveAsExecute(Sender: TObject); 100 103 procedure AFileSaveExecute(Sender: TObject); 104 procedure AFilterEnabledCategoriesExecute(Sender: TObject); 101 105 procedure AFilterSameLetterCaseExecute(Sender: TObject); 102 106 procedure AFilterSameLengthExecute(Sender: TObject); … … 299 303 end; 300 304 305 procedure TFormMain.AFilterEnabledCategoriesExecute(Sender: TObject); 306 begin 307 UpdateAcronymsList; 308 end; 309 301 310 procedure TFormMain.AFilterSameLetterCaseExecute(Sender: TObject); 302 311 begin … … 519 528 procedure TFormMain.ListViewSort1Filter(ListViewSort: TListViewSort); 520 529 begin 521 Core.AcronymDb.AssignToList(ListViewSort1.List, True);530 Core.AcronymDb.AssignToList(ListViewSort1.List, AFilterEnabledCategories.Checked); 522 531 FilterList(ListViewSort1.List); 523 532 end; … … 687 696 AFilterSameLength.Checked := ReadBoolWithDefault('SameLength', False); 688 697 AFilterSameLetterCase.Checked := ReadBoolWithDefault('SameLetterCase', False); 698 AFilterEnabledCategories.Checked := ReadBoolWithDefault('EnabledCategories', False); 689 699 MenuItemToolbar.Checked := ReadBoolWithDefault('ToolBarVisible', True); 690 700 MenuItemParam.Checked := ReadBoolWithDefault('FilterParamVisible', True); … … 719 729 WriteBool('SameLength', AFilterSameLength.Checked); 720 730 WriteBool('SameLetterCase', AFilterSameLetterCase.Checked); 731 WriteBool('EnabledCategories', AFilterEnabledCategories.Checked); 721 732 WriteBool('ToolBarVisible', MenuItemToolbar.Checked); 722 733 WriteBool('FilterParamVisible', MenuItemParam.Checked);
Note:
See TracChangeset
for help on using the changeset viewer.