Changeset 138 for trunk/Forms
- Timestamp:
- Dec 2, 2016, 12:41:40 PM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r134 r138 1 1 object FormMain: TFormMain 2 Left = 6752 Left = 526 3 3 Height = 447 4 Top = 6684 Top = 394 5 5 Width = 782 6 6 Caption = 'Acronym Decoder' 7 ClientHeight = 4 177 ClientHeight = 422 8 8 ClientWidth = 782 9 9 Menu = MainMenu1 … … 14 14 OnHide = FormHide 15 15 OnShow = FormShow 16 LCLVersion = '1.6. 0.4'16 LCLVersion = '1.6.2.0' 17 17 object PanelMain: TPanel 18 18 Left = 0 19 Height = 36 119 Height = 366 20 20 Top = 56 21 21 Width = 782 22 22 Align = alClient 23 23 BevelOuter = bvNone 24 ClientHeight = 36 124 ClientHeight = 366 25 25 ClientWidth = 782 26 26 TabOrder = 1 … … 35 35 object ListViewAcronyms: TListView 36 36 Left = 8 37 Height = 3 1937 Height = 324 38 38 Top = 35 39 39 Width = 767 … … 148 148 Left = 258 149 149 Top = 2 150 Action = AFilter ExactMatch150 Action = AFilterSameLength 151 151 Style = tbsCheck 152 152 end … … 154 154 Left = 281 155 155 Top = 2 156 Action = AFilter CaseSensitive156 Action = AFilterSameLetterCase 157 157 Style = tbsCheck 158 158 end … … 168 168 ClientWidth = 782 169 169 TabOrder = 2 170 object CheckBoxExact Match: TCheckBox170 object CheckBoxExactLength: TCheckBox 171 171 Left = 8 172 Height = 2 9172 Height = 24 173 173 Top = 3 174 Width = 1 24175 Action = AFilter ExactMatch174 Width = 107 175 Action = AFilterSameLength 176 176 TabOrder = 0 177 177 end 178 178 object CheckBoxCaseSensitive: TCheckBox 179 Left = 216180 Height = 2 9179 Left = 160 180 Height = 24 181 181 Top = 3 182 Width = 13 9183 Action = AFilter CaseSensitive182 Width = 133 183 Action = AFilterSameLetterCase 184 184 TabOrder = 1 185 185 end … … 280 280 OnExecute = AExportExecute 281 281 end 282 object AFilter ExactMatch: TAction282 object AFilterSameLength: TAction 283 283 AutoCheck = True 284 Caption = ' Exact match'284 Caption = 'Same length' 285 285 ImageIndex = 18 286 OnExecute = AFilter ExactMatchExecute287 end 288 object AFilter CaseSensitive: TAction286 OnExecute = AFilterSameLengthExecute 287 end 288 object AFilterSameLetterCase: TAction 289 289 AutoCheck = True 290 Caption = ' Case sensitive'290 Caption = 'Same letter case' 291 291 ImageIndex = 17 292 OnExecute = AFilter CaseSensitiveExecute292 OnExecute = AFilterSameLetterCaseExecute 293 293 end 294 294 end -
trunk/Forms/UFormMain.lrt
r122 r138 4 4 TFORMMAIN.LISTVIEWACRONYMS.COLUMNS[2].CAPTION=Categories 5 5 TFORMMAIN.TOOLBAR1.CAPTION=ToolBar1 6 TFORMMAIN.TOOLBUTTON8.CAPTION=ToolButton87 TFORMMAIN.TOOLBUTTON10.CAPTION=ToolButton108 6 TFORMMAIN.AEXIT.CAPTION=Exit 9 7 TFORMMAIN.ASHOW.CAPTION=Show … … 23 21 TFORMMAIN.APROCESSIMPORTS.CAPTION=Process imports 24 22 TFORMMAIN.AEXPORT.CAPTION=Export 25 TFORMMAIN.AFILTER EXACTMATCH.CAPTION=Exact match26 TFORMMAIN.AFILTER CASESENSITIVE.CAPTION=Case sensitive23 TFORMMAIN.AFILTERSAMELENGTH.CAPTION=Same length 24 TFORMMAIN.AFILTERSAMELETTERCASE.CAPTION=Same letter case 27 25 TFORMMAIN.MENUITEM8.CAPTION=File 28 26 TFORMMAIN.MENUITEMOPENRECENT.CAPTION=Open recent -
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.