mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-26 01:47:15 +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
|
// 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;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user