FindInFilesDialog size is now stored

git-svn-id: trunk@5381 -
This commit is contained in:
mattias 2004-04-09 10:32:02 +00:00
parent 9a394c00a1
commit fe19ab4a6f
4 changed files with 202 additions and 230 deletions

View File

@ -30,8 +30,6 @@
- mrAll for ReplaceAll - mrAll for ReplaceAll
- mrCancel for Cancel - mrCancel for Cancel
ToDo:
} }
unit FindReplaceDialog; unit FindReplaceDialog;
@ -127,7 +125,6 @@ begin
Anchors:= [akLeft, akTop, akRight]; Anchors:= [akLeft, akTop, akRight];
Text:=''; Text:='';
OnKeyDown:=@TextToFindComboBoxKeyDown; OnKeyDown:=@TextToFindComboBoxKeyDown;
Visible:=true;
end; end;
TextToFindLabel:=TLabel.Create(Self); TextToFindLabel:=TLabel.Create(Self);
@ -138,7 +135,6 @@ begin
Top:=8; Top:=8;
Width:= 100; Width:= 100;
Caption:=dlgTextToFing; Caption:=dlgTextToFing;
Visible:=true;
FocusControl:= TextToFindComboBox; FocusControl:= TextToFindComboBox;
end; end;
@ -152,7 +148,6 @@ begin
Anchors:= [akLeft, akTop, akRight]; Anchors:= [akLeft, akTop, akRight];
Text:=''; Text:='';
OnKeyDown:=@TextToFindComboBoxKeyDown; OnKeyDown:=@TextToFindComboBoxKeyDown;
Visible:=true;
end; end;
ReplaceWithLabel:=TLabel.Create(Self); ReplaceWithLabel:=TLabel.Create(Self);
@ -163,7 +158,6 @@ begin
Top:=32; Top:=32;
Width:= 100; Width:= 100;
Caption:=dlgReplaceWith; Caption:=dlgReplaceWith;
Visible:=true;
FocusControl:= ReplaceTextComboBox; FocusControl:= ReplaceTextComboBox;
end; end;
@ -175,8 +169,7 @@ begin
Top:=58; Top:=58;
Width:=194; Width:=194;
Height:=150; Height:=150;
Caption:=dlgFROpts ; Caption:=dlgFROpts;
Visible:=true;
end; end;
CaseSensitiveCheckBox:=TCheckBox.Create(Self); CaseSensitiveCheckBox:=TCheckBox.Create(Self);
@ -187,8 +180,7 @@ begin
Left:=8; Left:=8;
Top:=6; Top:=6;
Width:=155; Width:=155;
Caption:=dlgCaseSensitive ; Caption:=dlgCaseSensitive;
Visible:=true;
end; end;
WholeWordsOnlyCheckBox:=TCheckBox.Create(Self); WholeWordsOnlyCheckBox:=TCheckBox.Create(Self);
@ -200,7 +192,6 @@ begin
Top:=31; Top:=31;
Width:=155; Width:=155;
Caption:=dlgWholeWordsOnly; Caption:=dlgWholeWordsOnly;
Visible:=true;
end; end;
RegularExpressionsCheckBox:=TCheckBox.Create(Self); RegularExpressionsCheckBox:=TCheckBox.Create(Self);
@ -212,7 +203,6 @@ begin
Top:=56; Top:=56;
Width:=155; Width:=155;
Caption:=dlgRegularExpressions; Caption:=dlgRegularExpressions;
Visible:=true;
end; end;
MultiLineCheckBox:=TCheckBox.Create(Self); MultiLineCheckBox:=TCheckBox.Create(Self);
@ -224,7 +214,6 @@ begin
Top:=81; Top:=81;
Width:=155; Width:=155;
Caption:=dlgMultiLine; Caption:=dlgMultiLine;
Visible:=true;
Enabled:=false; Enabled:=false;
end; end;
@ -236,9 +225,8 @@ begin
Left:=8; Left:=8;
Top:=106; Top:=106;
Width:=135; Width:=135;
Caption:=dlgPromptOnReplace ; Caption:=dlgPromptOnReplace;
Checked:=true; Checked:=true;
Visible:=true;
end; end;
OriginRadioGroup:=TRadioGroup.Create(Self); OriginRadioGroup:=TRadioGroup.Create(Self);
@ -258,7 +246,6 @@ begin
EndUpdate; EndUpdate;
end; end;
ItemIndex:=0; ItemIndex:=0;
Visible:=true;
end; end;
ScopeRadioGroup:=TRadioGroup.Create(Self); ScopeRadioGroup:=TRadioGroup.Create(Self);
@ -278,7 +265,6 @@ begin
EndUpdate; EndUpdate;
end; end;
ItemIndex:=0; ItemIndex:=0;
Visible:=true;
end; end;
DirectionRadioGroup:=TRadioGroup.Create(Self); DirectionRadioGroup:=TRadioGroup.Create(Self);
@ -294,11 +280,10 @@ begin
BeginUpdate; BeginUpdate;
Clear; Clear;
Add(dlgUpWord); Add(dlgUpWord);
Add(dlgDownWord ); Add(dlgDownWord);
EndUpdate; EndUpdate;
end; end;
ItemIndex:=1; ItemIndex:=1;
Visible:=true;
end; end;
OkButton:=TButton.Create(Self); OkButton:=TButton.Create(Self);
@ -309,7 +294,6 @@ begin
Top:= 268; Top:= 268;
Caption:='Ok'; Caption:='Ok';
OnClick:=@OkButtonClick; OnClick:=@OkButtonClick;
Visible:=true;
end; end;
ReplaceAllButton:=TButton.Create(Self); ReplaceAllButton:=TButton.Create(Self);
@ -321,7 +305,6 @@ begin
Width:=99; Width:=99;
Caption:=dlgReplaceAll; Caption:=dlgReplaceAll;
OnClick:=@ReplaceAllButtonClick; OnClick:=@ReplaceAllButtonClick;
Visible:=true;
end; end;
CancelButton:=TButton.Create(Self); CancelButton:=TButton.Create(Self);
@ -332,7 +315,6 @@ begin
Top:= 268; Top:= 268;
Caption:=dlgCancel; Caption:=dlgCancel;
OnClick:=@CancelButtonClick; OnClick:=@CancelButtonClick;
Visible:=true;
end; end;
end; end;

View File

@ -58,7 +58,7 @@ type
); );
const const
// This is the list of IDE windows, that will not be automatically restored // This is the list of IDE windows, that will not be automatically reopened
// on startup. // on startup.
NonModalIDEWindowManualOpen = [ NonModalIDEWindowManualOpen = [
nmiwNone, nmiwNone,

View File

@ -40,7 +40,7 @@ program Lazarus;
{$R *.res} {$R *.res}
{$ENDIF} {$ENDIF}
{$DEFINE IDE_MEM_CHECK} { $DEFINE IDE_MEM_CHECK}
uses uses
//cmem, //cmem,
@ -99,6 +99,9 @@ end.
{ {
$Log$ $Log$
Revision 1.56 2004/04/09 10:32:02 mattias
FindInFilesDialog size is now stored
Revision 1.55 2004/04/08 18:27:51 mattias Revision 1.55 2004/04/08 18:27:51 mattias
fixed memleak in TDefaultComponentEditor.Edit fixed memleak in TDefaultComponentEditor.Edit

File diff suppressed because it is too large Load Diff