IDEIntf: added event called when the IDE collects the fpc front end parameters

git-svn-id: trunk@44341 -
This commit is contained in:
mattias 2014-03-04 14:15:57 +00:00
parent 4b9f06ac1e
commit a355640db9

View File

@ -371,9 +371,9 @@ type
AsLast: boolean = false); AsLast: boolean = false);
procedure RemoveHandlerOnQuickSyntaxCheck( procedure RemoveHandlerOnQuickSyntaxCheck(
const OnQuickSyntaxCheckEvent: TModalHandledFunction); const OnQuickSyntaxCheckEvent: TModalHandledFunction);
procedure AddHandlerOnGetFPCFrontEndParams( procedure AddHandlerGetFPCFrontEndParams(
const Handler: TGetFPCFrontEndParams; AsLast: boolean = false); const Handler: TGetFPCFrontEndParams; AsLast: boolean = false);
procedure RemoveHandlerOnGetFPCFrontEndParams( procedure RemoveHandlerGetFPCFrontEndParams(
const Handler: TGetFPCFrontEndParams); const Handler: TGetFPCFrontEndParams);
function CallHandlerGetFPCFrontEndParams(Sender: TObject; var Params: string): boolean; function CallHandlerGetFPCFrontEndParams(Sender: TObject; var Params: string): boolean;
end; end;
@ -649,13 +649,13 @@ begin
RemoveHandler(lihtQuickSyntaxCheck,TMethod(OnQuickSyntaxCheckEvent)); RemoveHandler(lihtQuickSyntaxCheck,TMethod(OnQuickSyntaxCheckEvent));
end; end;
procedure TLazIDEInterface.AddHandlerOnGetFPCFrontEndParams( procedure TLazIDEInterface.AddHandlerGetFPCFrontEndParams(
const Handler: TGetFPCFrontEndParams; AsLast: boolean); const Handler: TGetFPCFrontEndParams; AsLast: boolean);
begin begin
AddHandler(lihtGetFPCFrontEndParams,TMethod(Handler),AsLast); AddHandler(lihtGetFPCFrontEndParams,TMethod(Handler),AsLast);
end; end;
procedure TLazIDEInterface.RemoveHandlerOnGetFPCFrontEndParams( procedure TLazIDEInterface.RemoveHandlerGetFPCFrontEndParams(
const Handler: TGetFPCFrontEndParams); const Handler: TGetFPCFrontEndParams);
begin begin
RemoveHandler(lihtGetFPCFrontEndParams,TMethod(Handler)); RemoveHandler(lihtGetFPCFrontEndParams,TMethod(Handler));