mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-20 19:39:29 +01:00
IDE: show searchresultsview with or withotu focus
git-svn-id: trunk@26237 -
This commit is contained in:
parent
53c55462c7
commit
66b7eb2cb6
13
ide/main.pp
13
ide/main.pp
@ -1014,7 +1014,7 @@ type
|
||||
|
||||
// search results
|
||||
function DoJumpToSearchResult(FocusEditor: boolean): boolean;
|
||||
procedure DoShowSearchResultsView(Show: boolean);
|
||||
procedure DoShowSearchResultsView(Show, BringToFront: boolean);
|
||||
|
||||
// form editor and designer
|
||||
procedure DoBringToFrontFormOrUnit;
|
||||
@ -9019,7 +9019,7 @@ begin
|
||||
end
|
||||
else if ItIs(NonModalIDEWindowNames[nmiwSearchResultsViewName]) then
|
||||
begin
|
||||
DoShowSearchResultsView(false);
|
||||
DoShowSearchResultsView(false,false);
|
||||
AForm:=SearchResultsView;
|
||||
end
|
||||
else if ItIs(NonModalIDEWindowNames[nmiwAnchorEditor]) then
|
||||
@ -12685,7 +12685,7 @@ begin
|
||||
SourceEditorManager.ShowActiveWindowOnTop(False);
|
||||
end;
|
||||
|
||||
procedure TMainIDE.DoShowSearchResultsView(Show: boolean);
|
||||
procedure TMainIDE.DoShowSearchResultsView(Show, BringToFront: boolean);
|
||||
begin
|
||||
//set the event here for the selectionchanged event
|
||||
if not assigned(SearchresultsView.OnSelectionChanged) then
|
||||
@ -12693,10 +12693,9 @@ begin
|
||||
|
||||
if Show and (not SearchResultsView.IsVisible) then
|
||||
begin
|
||||
IDEWindowCreators.ShowForm(SearchResultsView,true);
|
||||
if IDEDockMaster=nil then
|
||||
// the sourcenotebook is more interesting than the search results
|
||||
SourceEditorManager.ShowActiveWindowOnTop(False);
|
||||
IDEWindowCreators.ShowForm(SearchResultsView,BringToFront);
|
||||
// the sourcenotebook is more interesting than the search results
|
||||
SourceEditorManager.ShowActiveWindowOnTop(False);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user