patches from Mattias Sundblad

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1836 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty
2002-11-04 04:38:29 +00:00
parent 66ebd69087
commit 15db9de07f
6 changed files with 29 additions and 16 deletions
+6 -3
View File
@@ -30,11 +30,13 @@ ReplaceWindow::ReplaceWindow(BRect frame, BHandler *_handler, BString *searchStr
: BWindow(frame, "", B_MODAL_WINDOW, B_NOT_RESIZABLE,B_CURRENT_WORKSPACE)
{
fReplaceView=new BView(Bounds(),"",B_FOLLOW_ALL_SIDES,B_WILL_DRAW);
fReplaceView= new BView(Bounds(),"",B_FOLLOW_ALL_SIDES,B_WILL_DRAW);
fReplaceView->SetViewColor(216,216,216);
fReplaceView->AddChild (fSearchString= new BTextControl(BRect(5,10,290,50), "", "Find:",NULL, NULL,
B_FOLLOW_LEFT|B_FOLLOW_TOP,B_WILL_DRAW|B_NAVIGABLE));
fSearchString->SetDivider(65);
fSearchString-> SetDivider(65);
fReplaceView->AddChild(fReplaceString=new BTextControl(BRect(5,35,290,50), "", "Replace with:",NULL,
NULL,B_FOLLOW_LEFT|B_FOLLOW_TOP,B_WILL_DRAW|B_NAVIGABLE));
fReplaceString->SetDivider(65);
@@ -59,13 +61,14 @@ ReplaceWindow::ReplaceWindow(BRect frame, BHandler *_handler, BString *searchStr
fReplaceButton->MakeDefault(true);
AddChild(fReplaceView);
fHandler=_handler;
fHandler= _handler;
const char *searchtext= searchString->String();
const char *replacetext= replaceString->String();
fSearchString->SetText(searchtext);
fReplaceString->SetText(replacetext);
fSearchString-> MakeFocus(true); //021021
if(*caseState== true)
fCaseSensBox->SetValue(B_CONTROL_ON);