mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-03 07:04:39 +02:00
IDEIntf: DoShowSearchResultsView: using one enum instead of multi bool
git-svn-id: trunk@46856 -
This commit is contained in:
parent
ead812fb31
commit
925368d194
@ -306,6 +306,13 @@ type
|
|||||||
iwcsNormal,
|
iwcsNormal,
|
||||||
iwcsDocked
|
iwcsDocked
|
||||||
);
|
);
|
||||||
|
TIWGetFormState = (
|
||||||
|
iwgfDisabled, // create if not exist with disabled autosizing
|
||||||
|
iwgfEnabled, // create if not exists
|
||||||
|
iwgfShow, // create and show
|
||||||
|
iwgfShowOnTop // create, show and bring to front
|
||||||
|
);
|
||||||
|
TIWGetFormStates = set of TIWGetFormState;
|
||||||
|
|
||||||
TCreateIDEWindowMethod = procedure(Sender: TObject; aFormName: string;
|
TCreateIDEWindowMethod = procedure(Sender: TObject; aFormName: string;
|
||||||
var AForm: TCustomForm; DoDisableAutoSizing: boolean) of object;
|
var AForm: TCustomForm; DoDisableAutoSizing: boolean) of object;
|
||||||
|
@ -18,7 +18,7 @@ interface
|
|||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLProc, Forms, Controls, Dialogs, PropEdits, LazHelpHTML,
|
Classes, SysUtils, LCLProc, Forms, Controls, Dialogs, PropEdits, LazHelpHTML,
|
||||||
IDEOptionsIntf, CompOptsIntf, ProjectIntf,
|
IDEOptionsIntf, CompOptsIntf, ProjectIntf,
|
||||||
IDEExternToolIntf, SrcEditorIntf;
|
IDEExternToolIntf, SrcEditorIntf, IDEWindowIntf;
|
||||||
|
|
||||||
type
|
type
|
||||||
// open file flags
|
// open file flags
|
||||||
@ -295,7 +295,8 @@ type
|
|||||||
procedure AbortBuild; virtual; abstract;
|
procedure AbortBuild; virtual; abstract;
|
||||||
|
|
||||||
// search results
|
// search results
|
||||||
procedure DoShowSearchResultsView(Show: boolean; BringToFront: boolean = False); virtual; abstract;
|
procedure DoShowSearchResultsView(Show: boolean; BringToFront: boolean = False); deprecated;
|
||||||
|
procedure DoShowSearchResultsView(State: TIWGetFormState = iwgfShowOnTop); virtual; abstract;
|
||||||
|
|
||||||
// designer
|
// designer
|
||||||
function GetDesignerForProjectEditor(AEditor: TSourceEditorInterface;
|
function GetDesignerForProjectEditor(AEditor: TSourceEditorInterface;
|
||||||
@ -495,6 +496,22 @@ begin
|
|||||||
DoOpenIDEOptions(AEditor, ACaption, [], []);
|
DoOpenIDEOptions(AEditor, ACaption, [], []);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TLazIDEInterface.DoShowSearchResultsView(Show: boolean;
|
||||||
|
BringToFront: boolean);
|
||||||
|
var
|
||||||
|
State: TIWGetFormState;
|
||||||
|
begin
|
||||||
|
if Show then begin
|
||||||
|
if BringToFront then
|
||||||
|
State:=iwgfShowOnTop
|
||||||
|
else
|
||||||
|
State:=iwgfShow;
|
||||||
|
end else begin
|
||||||
|
State:=iwgfEnabled;
|
||||||
|
end;
|
||||||
|
DoShowSearchResultsView(State);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TLazIDEInterface.RemoveAllHandlersOfObject(AnObject: TObject);
|
procedure TLazIDEInterface.RemoveAllHandlersOfObject(AnObject: TObject);
|
||||||
var
|
var
|
||||||
HandlerType: TLazarusIDEHandlerType;
|
HandlerType: TLazarusIDEHandlerType;
|
||||||
|
Loading…
Reference in New Issue
Block a user