Changeset 149 for trunk/Forms
- Timestamp:
- Feb 6, 2017, 2:14:14 PM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r146 r149 88 88 Action = AFilterSameLetterCase 89 89 TabOrder = 1 90 end 91 object CheckBoxEnabledCategories: TCheckBox 92 Left = 360 93 Height = 24 94 Top = 3 95 Width = 151 96 Action = AFilterEnabledCategories 97 TabOrder = 2 90 98 end 91 99 end … … 244 252 Height = 22 245 253 Top = 5 246 Width = 47254 Width = 70 247 255 Align = alNone 248 256 AutoSize = True … … 269 277 Style = tbsCheck 270 278 end 279 object ToolButton8: TToolButton 280 Left = 47 281 Top = 0 282 Action = AFilterEnabledCategories 283 Style = tbsCheck 284 end 271 285 end 272 286 end … … 377 391 ImageIndex = 17 378 392 OnExecute = AFilterSameLetterCaseExecute 393 end 394 object AFilterEnabledCategories: TAction 395 AutoCheck = True 396 Caption = 'Enabled categories' 397 ImageIndex = 19 398 OnExecute = AFilterEnabledCategoriesExecute 379 399 end 380 400 object AManageAcronym: TAction -
trunk/Forms/UFormMain.lrt
r146 r149 22 22 TFORMMAIN.AFILTERSAMELENGTH.CAPTION=Same length 23 23 TFORMMAIN.AFILTERSAMELETTERCASE.CAPTION=Same letter case 24 TFORMMAIN.AFILTERENABLEDCATEGORIES.CAPTION=Enabled categories 24 25 TFORMMAIN.AMANAGEACRONYM.CAPTION=Manage acronym 25 26 TFORMMAIN.MENUITEM8.CAPTION=File -
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.