mirror of https://gitlab.com/basile.b/dexed.git
added ICEProcInputHandler function to retrieve current process
This commit is contained in:
parent
6a53686123
commit
917ea7a23c
|
@ -218,8 +218,10 @@ type
|
|||
ICEProcInputHandler = interface(ICESingleService)
|
||||
// add an entry to the list of process which can receive an user input.
|
||||
procedure addProcess(aProcess: TProcess);
|
||||
// remove an entry.
|
||||
// removes an entry.
|
||||
procedure removeProcess(aProcess: TProcess);
|
||||
// indicates the current process
|
||||
function process(): TProcess;
|
||||
end;
|
||||
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ type
|
|||
function singleServiceName: string;
|
||||
procedure addProcess(aProcess: TProcess);
|
||||
procedure removeProcess(aProcess: TProcess);
|
||||
function process(): TProcess;
|
||||
public
|
||||
constructor create(aOwner: TComponent); override;
|
||||
destructor destroy; override;
|
||||
|
@ -103,6 +104,11 @@ begin
|
|||
if fProc = aProcess then
|
||||
addProcess(nil);
|
||||
end;
|
||||
|
||||
function TCEProcInputWidget.process(): TProcess;
|
||||
begin
|
||||
exit(fProc);
|
||||
end;
|
||||
{$ENDREGION}
|
||||
|
||||
{$REGION Process input things --------------------------------------------------}
|
||||
|
|
Loading…
Reference in New Issue