Changeset 138 for trunk/Forms/UFormMain.pas
- Timestamp:
- Dec 2, 2016, 12:41:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r124 r138 16 16 17 17 TFormMain = class(TForm) 18 AFilter CaseSensitive: TAction;19 AFilter ExactMatch: TAction;18 AFilterSameLetterCase: TAction; 19 AFilterSameLength: TAction; 20 20 AHide: TAction; 21 21 AExport: TAction; … … 36 36 AExit: TAction; 37 37 ActionList1: TActionList; 38 CheckBoxExact Match: TCheckBox;38 CheckBoxExactLength: TCheckBox; 39 39 CheckBoxCaseSensitive: TCheckBox; 40 40 LastOpenedList1: TLastOpenedList; … … 95 95 procedure AFileSaveAsExecute(Sender: TObject); 96 96 procedure AFileSaveExecute(Sender: TObject); 97 procedure AFilter CaseSensitiveExecute(Sender: TObject);98 procedure AFilter ExactMatchExecute(Sender: TObject);97 procedure AFilterSameLetterCaseExecute(Sender: TObject); 98 procedure AFilterSameLengthExecute(Sender: TObject); 99 99 procedure AHideExecute(Sender: TObject); 100 100 procedure AImportExecute(Sender: TObject); … … 286 286 end; 287 287 288 procedure TFormMain.AFilter CaseSensitiveExecute(Sender: TObject);288 procedure TFormMain.AFilterSameLetterCaseExecute(Sender: TObject); 289 289 begin 290 290 UpdateAcronymsList; 291 291 end; 292 292 293 procedure TFormMain.AFilter ExactMatchExecute(Sender: TObject);293 procedure TFormMain.AFilterSameLengthExecute(Sender: TObject); 294 294 begin 295 295 UpdateAcronymsList; … … 509 509 function TFormMain.FilterCell(Text1, Text2: string): Boolean; 510 510 begin 511 if not AFilter CaseSensitive.Checked then begin511 if not AFilterSameLetterCase.Checked then begin 512 512 Text1 := UTF8LowerCase(Text1); 513 513 Text2 := UTF8LowerCase(Text2); 514 514 end; 515 if AFilter ExactMatch.Checked then515 if AFilterSameLength.Checked then 516 516 Result := Text1 = Text2 517 517 else Result := Pos(Text1, Text2) > 0; … … 650 650 Core.AlwaysOnTop := ReadBoolWithDefault('AlwaysOnTop', False); 651 651 Core.StartMinimizedToTray := ReadBoolWithDefault('StartMinimizedToTray', False); 652 AFilter ExactMatch.Checked := ReadBoolWithDefault('ExactMatch', False);653 AFilter CaseSensitive.Checked := ReadBoolWithDefault('CaseSensitive', False);652 AFilterSameLength.Checked := ReadBoolWithDefault('SameLength', False); 653 AFilterSameLetterCase.Checked := ReadBoolWithDefault('SameLetterCase', False); 654 654 MenuItemToolbar.Checked := ReadBoolWithDefault('ToolBarVisible', True); 655 655 MenuItemParam.Checked := ReadBoolWithDefault('FilterParamVisible', True); … … 682 682 WriteBool('AlwaysOnTop', Core.AlwaysOnTop); 683 683 WriteBool('StartMinimizedToTray', Core.StartMinimizedToTray); 684 WriteBool(' ExactMatch', AFilterExactMatch.Checked);685 WriteBool(' CaseSensitive', AFilterCaseSensitive.Checked);684 WriteBool('SameLength', AFilterSameLength.Checked); 685 WriteBool('SameLetterCase', AFilterSameLetterCase.Checked); 686 686 WriteBool('ToolBarVisible', MenuItemToolbar.Checked); 687 687 WriteBool('FilterParamVisible', MenuItemParam.Checked);
Note:
See TracChangeset
for help on using the changeset viewer.