doublecmd/src/frames/foptionsfilesearch.lfm
Denis Bisson 3c8068c942 ADD: New internal command "cm_AddNewSearch" to generate a new instance of the "Find files" dialog window. This way, more than one search may be done at the same time.
ADD: When closing any "Find files" dialog window, if at least one search has been done, that window will remain in memory. If no search has been done, it will be cleared from memory.
ADD: New internal command "cm_ViewSearches" to show a list of "Find files" dialog window and select one of them to activate it. This way, it possible to do a second search without losing the first one and to be able to reactive it.
ADD: New internal command "cm_DeleteSearches" to delete all the "Find files" dialog windows we may have in memory. If you want to delete just one, activate it via the "cm_ViewSearches" internal command and then clear it from memory from there.
ADD: New internal command "cm_ConfigSearches" to jump directly to the configuration of options related with searches.
ADD: New 32x32 icons for the new internal commands "cm_AddNewSearch", "cm_ViewSearches", "cm_DeleteSearches" and "cm_ConfigSearches". For the 16x16, the last three mentionned were added since for the "cm_AddNewSearch" it was already there, added by mistake too early but now it's used.
ADD: There is now a dedicated page for the option of the search instead of being inside the "File operations" page.
UPD: On new installation, in the "Find files" dialog window, the "ENTER" key is not a shortcut anymore to launch a search. Too many persons get used that pressing enter in the result page was making us to jump to the file location. Code were already in place to have pertinent action on default button so pressing "ENTER" do the pertinent expected job.
ADD: Possibility to have a menu bar in the "Find files" dialog window. This is mainly to help the user at first to see all the possibility. There is an option to hide it and probably experienced user after a while will hide it to gain some 20 extra pixels vertically.
ADD: Reserve, if not already used, the keyboard shortcut "Ctrl+Shift+F7" for the new internal command "cm_AddNewSearch".
UPD: Inside the "Find files" unit, re-arrange the code so the buttons will use TAction to do something instead of the opposite where the TAction were pressing button.
UPD: Language files have been updated.
2016-12-01 02:23:28 +00:00

152 lines
4.4 KiB
Text

inherited frmOptionsFileSearch: TfrmOptionsFileSearch
Height = 649
Width = 734
ChildSizing.LeftRightSpacing = 6
ClientHeight = 649
ClientWidth = 734
DesignLeft = 612
DesignTop = 188
object gbFileSearch: TGroupBox[0]
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Owner
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 6
Height = 220
Top = 6
Width = 722
Anchors = [akTop, akLeft, akRight]
AutoSize = True
BorderSpacing.Around = 6
Caption = 'File search'
ChildSizing.LeftRightSpacing = 10
ChildSizing.TopBottomSpacing = 4
ChildSizing.HorizontalSpacing = 4
ChildSizing.VerticalSpacing = 4
ClientHeight = 200
ClientWidth = 718
TabOrder = 0
object cbPartialNameSearch: TCheckBox
AnchorSideLeft.Control = rbUseStreamInSearch
AnchorSideTop.Control = gbFileSearch
Left = 10
Height = 19
Top = 6
Width = 163
BorderSpacing.Top = 6
Caption = '&Search for part of file name'
TabOrder = 0
end
object cbInitiallyClearFileMask: TCheckBox
AnchorSideLeft.Control = rbUseStreamInSearch
AnchorSideTop.Control = cbPartialNameSearch
AnchorSideTop.Side = asrBottom
Left = 10
Height = 19
Top = 31
Width = 271
BorderSpacing.Top = 6
Caption = 'When launching file search, clear file mask filter'
TabOrder = 1
end
object lblNewSearchFilters: TLabel
AnchorSideTop.Control = cbNewSearchFilters
AnchorSideTop.Side = asrCenter
Left = 10
Height = 15
Top = 58
Width = 214
Caption = 'Current filters with "New search" button:'
ParentColor = False
end
object cbNewSearchFilters: TComboBoxAutoWidth
AnchorSideLeft.Control = lblNewSearchFilters
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = cbInitiallyClearFileMask
AnchorSideTop.Side = asrBottom
Left = 230
Height = 23
Top = 54
Width = 100
BorderSpacing.Left = 6
ItemHeight = 15
Style = csDropDownList
TabOrder = 2
end
object cbShowMenuBarInFindFiles: TCheckBox
AnchorSideLeft.Control = rbUseStreamInSearch
AnchorSideTop.Control = cbNewSearchFilters
AnchorSideTop.Side = asrBottom
Left = 10
Height = 19
Top = 83
Width = 176
BorderSpacing.Top = 6
Caption = 'Show menu bar in "Find files"'
TabOrder = 3
end
object lblSearchDefaultTemplate: TLabel
AnchorSideLeft.Control = cbPartialNameSearch
AnchorSideTop.Control = cbSearchDefaultTemplate
AnchorSideTop.Side = asrCenter
Left = 10
Height = 15
Top = 110
Width = 128
Caption = 'Default search template:'
ParentColor = False
end
object cbSearchDefaultTemplate: TComboBoxAutoWidth
AnchorSideLeft.Control = lblSearchDefaultTemplate
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = cbShowMenuBarInFindFiles
AnchorSideTop.Side = asrBottom
Left = 144
Height = 23
Top = 106
Width = 100
BorderSpacing.Left = 6
ItemHeight = 15
Style = csDropDownList
TabOrder = 4
end
object dbTextSearch: TDividerBevel
AnchorSideLeft.Control = gbFileSearch
AnchorSideTop.Control = cbSearchDefaultTemplate
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = gbFileSearch
AnchorSideRight.Side = asrBottom
Left = 10
Height = 15
Top = 133
Width = 698
Caption = 'Text search in files'
Anchors = [akTop, akLeft, akRight]
end
object rbUseMmapInSearch: TRadioButton
AnchorSideLeft.Control = gbFileSearch
AnchorSideTop.Control = dbTextSearch
AnchorSideTop.Side = asrBottom
Left = 10
Height = 19
Top = 152
Width = 252
Caption = 'Use memory mapping for search te&xt in files'
TabOrder = 5
end
object rbUseStreamInSearch: TRadioButton
AnchorSideLeft.Control = rbUseMmapInSearch
AnchorSideTop.Control = rbUseMmapInSearch
AnchorSideTop.Side = asrBottom
Left = 10
Height = 19
Top = 177
Width = 192
BorderSpacing.Top = 6
Caption = '&Use stream for search text in files'
Checked = True
TabOrder = 6
TabStop = True
end
end
end