Ignore:
Timestamp:
Dec 2, 2016, 12:41:40 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Use more precise term "Same length" rather then "Exact match" for acronym text filtering.
  • Fixed: Application directory location for Windows installer script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r124 r138  
    1616
    1717  TFormMain = class(TForm)
    18     AFilterCaseSensitive: TAction;
    19     AFilterExactMatch: TAction;
     18    AFilterSameLetterCase: TAction;
     19    AFilterSameLength: TAction;
    2020    AHide: TAction;
    2121    AExport: TAction;
     
    3636    AExit: TAction;
    3737    ActionList1: TActionList;
    38     CheckBoxExactMatch: TCheckBox;
     38    CheckBoxExactLength: TCheckBox;
    3939    CheckBoxCaseSensitive: TCheckBox;
    4040    LastOpenedList1: TLastOpenedList;
     
    9595    procedure AFileSaveAsExecute(Sender: TObject);
    9696    procedure AFileSaveExecute(Sender: TObject);
    97     procedure AFilterCaseSensitiveExecute(Sender: TObject);
    98     procedure AFilterExactMatchExecute(Sender: TObject);
     97    procedure AFilterSameLetterCaseExecute(Sender: TObject);
     98    procedure AFilterSameLengthExecute(Sender: TObject);
    9999    procedure AHideExecute(Sender: TObject);
    100100    procedure AImportExecute(Sender: TObject);
     
    286286end;
    287287
    288 procedure TFormMain.AFilterCaseSensitiveExecute(Sender: TObject);
     288procedure TFormMain.AFilterSameLetterCaseExecute(Sender: TObject);
    289289begin
    290290  UpdateAcronymsList;
    291291end;
    292292
    293 procedure TFormMain.AFilterExactMatchExecute(Sender: TObject);
     293procedure TFormMain.AFilterSameLengthExecute(Sender: TObject);
    294294begin
    295295  UpdateAcronymsList;
     
    509509function TFormMain.FilterCell(Text1, Text2: string): Boolean;
    510510begin
    511   if not AFilterCaseSensitive.Checked then begin
     511  if not AFilterSameLetterCase.Checked then begin
    512512    Text1 := UTF8LowerCase(Text1);
    513513    Text2 := UTF8LowerCase(Text2);
    514514  end;
    515   if AFilterExactMatch.Checked then
     515  if AFilterSameLength.Checked then
    516516    Result := Text1 = Text2
    517517    else Result := Pos(Text1, Text2) > 0;
     
    650650    Core.AlwaysOnTop := ReadBoolWithDefault('AlwaysOnTop', False);
    651651    Core.StartMinimizedToTray := ReadBoolWithDefault('StartMinimizedToTray', False);
    652     AFilterExactMatch.Checked := ReadBoolWithDefault('ExactMatch', False);
    653     AFilterCaseSensitive.Checked := ReadBoolWithDefault('CaseSensitive', False);
     652    AFilterSameLength.Checked := ReadBoolWithDefault('SameLength', False);
     653    AFilterSameLetterCase.Checked := ReadBoolWithDefault('SameLetterCase', False);
    654654    MenuItemToolbar.Checked := ReadBoolWithDefault('ToolBarVisible', True);
    655655    MenuItemParam.Checked := ReadBoolWithDefault('FilterParamVisible', True);
     
    682682    WriteBool('AlwaysOnTop', Core.AlwaysOnTop);
    683683    WriteBool('StartMinimizedToTray', Core.StartMinimizedToTray);
    684     WriteBool('ExactMatch', AFilterExactMatch.Checked);
    685     WriteBool('CaseSensitive', AFilterCaseSensitive.Checked);
     684    WriteBool('SameLength', AFilterSameLength.Checked);
     685    WriteBool('SameLetterCase', AFilterSameLetterCase.Checked);
    686686    WriteBool('ToolBarVisible', MenuItemToolbar.Checked);
    687687    WriteBool('FilterParamVisible', MenuItemParam.Checked);
Note: See TracChangeset for help on using the changeset viewer.