ADD: Also save search text options (Hex)

This commit is contained in:
Alexander Koblov 2020-01-02 17:18:36 +00:00
commit 15a1fc9eae
4 changed files with 7 additions and 1 deletions

View file

@ -2662,6 +2662,8 @@ begin
Include(Options, tsoMatchCase);
if cbTextRegExp.Checked then
Include(Options, tsoRegExpr);
if chkHex.Checked then
Include(Options, tsoHex);
end;
procedure TfrmFindDlg.CancelCloseAndFreeMem;

View file

@ -105,6 +105,8 @@ begin
Include(Options, tsoMatchCase);
if cbRegExp.Checked then
Include(Options, tsoRegExpr);
if chkHex.Checked then
Include(Options, tsoHex);
end;
end.

View file

@ -2285,6 +2285,8 @@ begin
FFindDialog.cbCaseSens.Checked:= True;
if (tsoRegExpr in Options) then
FFindDialog.cbRegExp.Checked:= True;
if (tsoHex in Options) then
FFindDialog.chkHex.Checked:= True;
end;
if (bQuickSearch and gFirstTextSearch) or (not bQuickSearch) or (bPlugin and FFindDialog.chkHex.Checked) then

View file

@ -31,7 +31,7 @@ uses
Classes, SysUtils, DCBasicTypes, uFile;
type
TTextSearchOption = (tsoMatchCase, tsoRegExpr);
TTextSearchOption = (tsoMatchCase, tsoRegExpr, tsoHex);
TTextSearchOptions = set of TTextSearchOption;
TTextSearch = (tsAnsi, tsUtf8, tsUtf16le, tsUtf16be, tsOther);
TTimeUnit = (tuSecond, tuMinute, tuHour, tuDay, tuWeek, tuMonth, tuYear);