IDE: show searchresultsview with or withotu focus

git-svn-id: trunk@26237 -
This commit is contained in:
mattias 2010-06-21 12:31:01 +00:00
parent 53c55462c7
commit 66b7eb2cb6

View File

@ -1014,7 +1014,7 @@ type
// search results // search results
function DoJumpToSearchResult(FocusEditor: boolean): boolean; function DoJumpToSearchResult(FocusEditor: boolean): boolean;
procedure DoShowSearchResultsView(Show: boolean); procedure DoShowSearchResultsView(Show, BringToFront: boolean);
// form editor and designer // form editor and designer
procedure DoBringToFrontFormOrUnit; procedure DoBringToFrontFormOrUnit;
@ -9019,7 +9019,7 @@ begin
end end
else if ItIs(NonModalIDEWindowNames[nmiwSearchResultsViewName]) then else if ItIs(NonModalIDEWindowNames[nmiwSearchResultsViewName]) then
begin begin
DoShowSearchResultsView(false); DoShowSearchResultsView(false,false);
AForm:=SearchResultsView; AForm:=SearchResultsView;
end end
else if ItIs(NonModalIDEWindowNames[nmiwAnchorEditor]) then else if ItIs(NonModalIDEWindowNames[nmiwAnchorEditor]) then
@ -12685,7 +12685,7 @@ begin
SourceEditorManager.ShowActiveWindowOnTop(False); SourceEditorManager.ShowActiveWindowOnTop(False);
end; end;
procedure TMainIDE.DoShowSearchResultsView(Show: boolean); procedure TMainIDE.DoShowSearchResultsView(Show, BringToFront: boolean);
begin begin
//set the event here for the selectionchanged event //set the event here for the selectionchanged event
if not assigned(SearchresultsView.OnSelectionChanged) then if not assigned(SearchresultsView.OnSelectionChanged) then
@ -12693,10 +12693,9 @@ begin
if Show and (not SearchResultsView.IsVisible) then if Show and (not SearchResultsView.IsVisible) then
begin begin
IDEWindowCreators.ShowForm(SearchResultsView,true); IDEWindowCreators.ShowForm(SearchResultsView,BringToFront);
if IDEDockMaster=nil then // the sourcenotebook is more interesting than the search results
// the sourcenotebook is more interesting than the search results SourceEditorManager.ShowActiveWindowOnTop(False);
SourceEditorManager.ShowActiveWindowOnTop(False);
end; end;
end; end;