mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 05:59:19 +02:00
IDE: unified Find in Files dialog resource strings with Find/Replace dialog ones; added missing accelerators, bug #19966
git-svn-id: trunk@31977 -
This commit is contained in:
parent
810c1a3653
commit
1182b0de8c
@ -20,8 +20,8 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 83
|
Height = 70
|
||||||
Top = 72
|
Top = 60
|
||||||
Width = 429
|
Width = 429
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
AutoFill = True
|
AutoFill = True
|
||||||
@ -57,8 +57,8 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 111
|
Height = 93
|
||||||
Top = 161
|
Top = 136
|
||||||
Width = 429
|
Width = 429
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
AutoFill = True
|
AutoFill = True
|
||||||
@ -75,8 +75,8 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
ChildSizing.ShrinkVertical = crsScaleChilds
|
ChildSizing.ShrinkVertical = crsScaleChilds
|
||||||
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
||||||
ChildSizing.ControlsPerLine = 1
|
ChildSizing.ControlsPerLine = 1
|
||||||
ClientHeight = 90
|
ClientHeight = 75
|
||||||
ClientWidth = 421
|
ClientWidth = 425
|
||||||
ItemIndex = 1
|
ItemIndex = 1
|
||||||
Items.Strings = (
|
Items.Strings = (
|
||||||
'search all files in project'
|
'search all files in project'
|
||||||
@ -93,15 +93,15 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 129
|
Height = 110
|
||||||
Top = 278
|
Top = 235
|
||||||
Width = 429
|
Width = 429
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Directory Options'
|
Caption = 'Directory Options'
|
||||||
ClientHeight = 108
|
ClientHeight = 92
|
||||||
ClientWidth = 421
|
ClientWidth = 425
|
||||||
Enabled = False
|
Enabled = False
|
||||||
TabOrder = 5
|
TabOrder = 5
|
||||||
object DirectoryLabel: TLabel
|
object DirectoryLabel: TLabel
|
||||||
@ -109,11 +109,12 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Control = DirectoryComboBox
|
AnchorSideTop.Control = DirectoryComboBox
|
||||||
AnchorSideTop.Side = asrCenter
|
AnchorSideTop.Side = asrCenter
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 18
|
Height = 14
|
||||||
Top = 10
|
Top = 9
|
||||||
Width = 68
|
Width = 49
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
Caption = 'Directory:'
|
Caption = 'Directory:'
|
||||||
|
FocusControl = DirectoryComboBox
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object FileMaskLabel: TLabel
|
object FileMaskLabel: TLabel
|
||||||
@ -121,12 +122,13 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Control = DirectoryComboBox
|
AnchorSideTop.Control = DirectoryComboBox
|
||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 18
|
Height = 14
|
||||||
Top = 45
|
Top = 39
|
||||||
Width = 65
|
Width = 44
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
BorderSpacing.Top = 12
|
BorderSpacing.Top = 12
|
||||||
Caption = 'File mask'
|
Caption = 'File mask'
|
||||||
|
FocusControl = FileMaskComboBox
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object DirectoryComboBox: TComboBox
|
object DirectoryComboBox: TComboBox
|
||||||
@ -134,15 +136,15 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideLeft.Side = asrBottom
|
AnchorSideLeft.Side = asrBottom
|
||||||
AnchorSideTop.Control = DirectoryOptionsGroupBox
|
AnchorSideTop.Control = DirectoryOptionsGroupBox
|
||||||
AnchorSideRight.Control = DirectoryBrowse
|
AnchorSideRight.Control = DirectoryBrowse
|
||||||
Left = 80
|
Left = 61
|
||||||
Height = 27
|
Height = 21
|
||||||
Top = 6
|
Top = 6
|
||||||
Width = 244
|
Width = 314
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
BorderSpacing.Top = 6
|
BorderSpacing.Top = 6
|
||||||
BorderSpacing.Right = 6
|
BorderSpacing.Right = 6
|
||||||
ItemHeight = 0
|
ItemHeight = 13
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
object DirectoryBrowse: TBitBtn
|
object DirectoryBrowse: TBitBtn
|
||||||
@ -150,10 +152,10 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Control = DirectoryComboBox
|
AnchorSideTop.Control = DirectoryComboBox
|
||||||
AnchorSideRight.Control = DirectoryOptionsGroupBox
|
AnchorSideRight.Control = DirectoryOptionsGroupBox
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 330
|
Left = 381
|
||||||
Height = 27
|
Height = 23
|
||||||
Top = 6
|
Top = 6
|
||||||
Width = 85
|
Width = 38
|
||||||
Anchors = [akTop, akRight]
|
Anchors = [akTop, akRight]
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
BorderSpacing.Right = 6
|
BorderSpacing.Right = 6
|
||||||
@ -170,13 +172,13 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Side = asrCenter
|
AnchorSideTop.Side = asrCenter
|
||||||
AnchorSideRight.Control = DirectoryComboBox
|
AnchorSideRight.Control = DirectoryComboBox
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 77
|
Left = 56
|
||||||
Height = 27
|
Height = 21
|
||||||
Top = 41
|
Top = 36
|
||||||
Width = 247
|
Width = 319
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
ItemHeight = 0
|
ItemHeight = 13
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
Text = '*.pas;*.pp;*.inc'
|
Text = '*.pas;*.pp;*.inc'
|
||||||
end
|
end
|
||||||
@ -185,9 +187,9 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Control = FileMaskComboBox
|
AnchorSideTop.Control = FileMaskComboBox
|
||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 22
|
Height = 17
|
||||||
Top = 80
|
Top = 69
|
||||||
Width = 180
|
Width = 126
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
BorderSpacing.Top = 12
|
BorderSpacing.Top = 12
|
||||||
BorderSpacing.Bottom = 6
|
BorderSpacing.Bottom = 6
|
||||||
@ -199,13 +201,15 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
end
|
end
|
||||||
object ButtonPanel1: TButtonPanel
|
object ButtonPanel1: TButtonPanel
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 34
|
Height = 26
|
||||||
Top = 360
|
Top = 368
|
||||||
Width = 429
|
Width = 429
|
||||||
OKButton.Name = 'OKButton'
|
OKButton.Name = 'OKButton'
|
||||||
OKButton.Caption = '&OK'
|
OKButton.Caption = '&OK'
|
||||||
|
OKButton.OnClick = OKButtonClick
|
||||||
HelpButton.Name = 'HelpButton'
|
HelpButton.Name = 'HelpButton'
|
||||||
HelpButton.Caption = '&Help'
|
HelpButton.Caption = '&Help'
|
||||||
|
HelpButton.OnClick = HelpButtonClick
|
||||||
CloseButton.Name = 'CloseButton'
|
CloseButton.Name = 'CloseButton'
|
||||||
CloseButton.Caption = '&Close'
|
CloseButton.Caption = '&Close'
|
||||||
CloseButton.Enabled = False
|
CloseButton.Enabled = False
|
||||||
@ -222,10 +226,10 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 94
|
Left = 68
|
||||||
Height = 27
|
Height = 21
|
||||||
Top = 39
|
Top = 33
|
||||||
Width = 341
|
Width = 367
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
AutoComplete = True
|
AutoComplete = True
|
||||||
AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactRetainPrefixCase, cbactSearchAscending]
|
AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactRetainPrefixCase, cbactSearchAscending]
|
||||||
@ -234,7 +238,7 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
BorderSpacing.Right = 6
|
BorderSpacing.Right = 6
|
||||||
BorderSpacing.Bottom = 6
|
BorderSpacing.Bottom = 6
|
||||||
Enabled = False
|
Enabled = False
|
||||||
ItemHeight = 0
|
ItemHeight = 13
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
end
|
end
|
||||||
object ReplaceCheckBox: TCheckBox
|
object ReplaceCheckBox: TCheckBox
|
||||||
@ -242,9 +246,9 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Control = ReplaceTextComboBox
|
AnchorSideTop.Control = ReplaceTextComboBox
|
||||||
AnchorSideTop.Side = asrCenter
|
AnchorSideTop.Side = asrCenter
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 22
|
Height = 17
|
||||||
Top = 41
|
Top = 35
|
||||||
Width = 82
|
Width = 56
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
Caption = 'Replace'
|
Caption = 'Replace'
|
||||||
Enabled = False
|
Enabled = False
|
||||||
@ -256,9 +260,9 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Control = TextToFindComboBox
|
AnchorSideTop.Control = TextToFindComboBox
|
||||||
AnchorSideTop.Side = asrCenter
|
AnchorSideTop.Side = asrCenter
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 18
|
Height = 14
|
||||||
Top = 10
|
Top = 9
|
||||||
Width = 85
|
Width = 65
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
Caption = 'Text To Find:'
|
Caption = 'Text To Find:'
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
@ -269,17 +273,17 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
|||||||
AnchorSideTop.Control = Owner
|
AnchorSideTop.Control = Owner
|
||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 97
|
Left = 77
|
||||||
Height = 27
|
Height = 21
|
||||||
Top = 6
|
Top = 6
|
||||||
Width = 338
|
Width = 358
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
AutoComplete = True
|
AutoComplete = True
|
||||||
AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactRetainPrefixCase, cbactSearchAscending]
|
AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactRetainPrefixCase, cbactSearchAscending]
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
BorderSpacing.Top = 6
|
BorderSpacing.Top = 6
|
||||||
BorderSpacing.Right = 6
|
BorderSpacing.Right = 6
|
||||||
ItemHeight = 0
|
ItemHeight = 13
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
object SelectDirectoryDialog: TSelectDirectoryDialog
|
object SelectDirectoryDialog: TSelectDirectoryDialog
|
||||||
|
@ -147,13 +147,13 @@ procedure TLazFindInFilesDialog.FormCreate(Sender: TObject);
|
|||||||
begin
|
begin
|
||||||
Caption := srkmecFindInFiles;
|
Caption := srkmecFindInFiles;
|
||||||
|
|
||||||
TextToFindLabel.Caption := lisFindFileTextToFind;
|
TextToFindLabel.Caption := dlgTextToFind;
|
||||||
ReplaceCheckBox.Caption := lisMenuReplace;
|
ReplaceCheckBox.Caption := dlgReplaceWith;
|
||||||
|
|
||||||
OptionsCheckGroupBox.Caption := dlgFROpts;
|
OptionsCheckGroupBox.Caption := dlgFROpts;
|
||||||
OptionsCheckGroupBox.Items[0] := lisFindFileCaseSensitive;
|
OptionsCheckGroupBox.Items[0] := dlgCaseSensitive;
|
||||||
OptionsCheckGroupBox.Items[1] := lisFindFileWholeWordsOnly;
|
OptionsCheckGroupBox.Items[1] := dlgWholeWordsOnly;
|
||||||
OptionsCheckGroupBox.Items[2] := lisFindFileRegularExpressions;
|
OptionsCheckGroupBox.Items[2] := dlgRegularExpressions;
|
||||||
OptionsCheckGroupBox.Items[3] := lisFindFileMultiLinePattern;
|
OptionsCheckGroupBox.Items[3] := lisFindFileMultiLinePattern;
|
||||||
|
|
||||||
WhereRadioGroup.Caption:=lisFindFileWhere;
|
WhereRadioGroup.Caption:=lisFindFileWhere;
|
||||||
@ -162,15 +162,12 @@ begin
|
|||||||
WhereRadioGroup.Items[2] := lisFindFilesearchInDirectories;
|
WhereRadioGroup.Items[2] := lisFindFilesearchInDirectories;
|
||||||
|
|
||||||
DirectoryOptionsGroupBox.Caption := lisFindFileDirectoryOptions;
|
DirectoryOptionsGroupBox.Caption := lisFindFileDirectoryOptions;
|
||||||
DirectoryLabel.Caption := lisCodeToolsDefsInsertBehindDirectory;
|
DirectoryLabel.Caption := lisFindFileDirectory;
|
||||||
FileMaskLabel.Caption := lisFindFileFileMask;
|
FileMaskLabel.Caption := lisFindFileFileMask;
|
||||||
|
|
||||||
IncludeSubDirsCheckBox.Caption := lisFindFileIncludeSubDirectories;
|
IncludeSubDirsCheckBox.Caption := lisFindFileIncludeSubDirectories;
|
||||||
|
|
||||||
ButtonPanel1.OkButton.Caption := lisLazBuildOk;
|
|
||||||
ButtonPanel1.OKButton.OnClick := @OKButtonClick;
|
|
||||||
ButtonPanel1.HelpButton.Caption := lisMenuHelp;
|
ButtonPanel1.HelpButton.Caption := lisMenuHelp;
|
||||||
ButtonPanel1.HelpButton.OnClick := @HelpButtonClick;
|
|
||||||
ButtonPanel1.CancelButton.Caption := dlgCancel;
|
ButtonPanel1.CancelButton.Caption := dlgCancel;
|
||||||
|
|
||||||
ReplaceCheckBox.Enabled:=true;
|
ReplaceCheckBox.Enabled:=true;
|
||||||
|
@ -138,7 +138,7 @@ begin
|
|||||||
inherited Create(TheOwner);
|
inherited Create(TheOwner);
|
||||||
Caption:='';
|
Caption:='';
|
||||||
TextToFindComboBox.Text:='';
|
TextToFindComboBox.Text:='';
|
||||||
TextToFindLabel.Caption:=dlgTextToFing;
|
TextToFindLabel.Caption:=dlgTextToFind;
|
||||||
ReplaceTextComboBox.Text:='';
|
ReplaceTextComboBox.Text:='';
|
||||||
ReplaceWithCheckbox.Caption:=dlgReplaceWith;
|
ReplaceWithCheckbox.Caption:=dlgReplaceWith;
|
||||||
EnableAutoCompleteSpeedButton.LoadGlyphFromLazarusResource('menu_stepinto');
|
EnableAutoCompleteSpeedButton.LoadGlyphFromLazarusResource('menu_stepinto');
|
||||||
|
@ -2117,7 +2117,7 @@ resourcestring
|
|||||||
lisRunParamsTheHostApplicationIsNotExecutable = 'The host application %s%s%'
|
lisRunParamsTheHostApplicationIsNotExecutable = 'The host application %s%s%'
|
||||||
+'s is not executable.';
|
+'s is not executable.';
|
||||||
dlgTheDirectory = 'The directory "';
|
dlgTheDirectory = 'The directory "';
|
||||||
dlgTextToFing = '&Text to Find';
|
dlgTextToFind = '&Text to Find';
|
||||||
dlgReplaceWith = '&Replace With';
|
dlgReplaceWith = '&Replace With';
|
||||||
dlgFROpts = 'Options';
|
dlgFROpts = 'Options';
|
||||||
lisBFWhenThisFileIsActiveInSourceEditor = 'When this file is active in '
|
lisBFWhenThisFileIsActiveInSourceEditor = 'When this file is active in '
|
||||||
@ -3503,18 +3503,15 @@ resourcestring
|
|||||||
+'at least a title and a filename.';
|
+'at least a title and a filename.';
|
||||||
|
|
||||||
// find in files dialog
|
// find in files dialog
|
||||||
lisFindFileTextToFind = 'Text to find:';
|
|
||||||
lisFindFileCaseSensitive = '&Case sensitive';
|
|
||||||
lisFindFileWholeWordsOnly = '&Whole words only';
|
|
||||||
lisFindFileRegularExpressions = '&Regular expressions';
|
|
||||||
lisFindFileMultiLinePattern = '&Multiline pattern';
|
lisFindFileMultiLinePattern = '&Multiline pattern';
|
||||||
lisFindFileWhere = 'Where';
|
lisFindFileWhere = 'Where';
|
||||||
lisFindFilesearchAllFilesInProject = 'search all files in &project';
|
lisFindFilesearchAllFilesInProject = 'search all files in &project';
|
||||||
lisFindFilesearchAllOpenFiles = 'search all &open files';
|
lisFindFilesearchAllOpenFiles = 'search all &open files';
|
||||||
lisFindFilesearchInDirectories = 'search in &directories';
|
lisFindFilesearchInDirectories = 'search in &directories';
|
||||||
lisFindFileDirectoryOptions = 'Directory options';
|
lisFindFileDirectoryOptions = 'Directory options';
|
||||||
lisFindFileFileMask = 'File mask';
|
lisFindFileDirectory = 'D&irectory';
|
||||||
lisFindFileIncludeSubDirectories = 'Include sub directories';
|
lisFindFileFileMask = 'Fi&le mask';
|
||||||
|
lisFindFileIncludeSubDirectories = 'Include &sub directories';
|
||||||
lisFindFileOnlyTextFiles = 'Only text files';
|
lisFindFileOnlyTextFiles = 'Only text files';
|
||||||
|
|
||||||
// package manager
|
// package manager
|
||||||
|
Loading…
Reference in New Issue
Block a user