mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 01:16:18 +02:00
added GlobalDesignHook GetSelectedComponents
git-svn-id: trunk@2603 -
This commit is contained in:
parent
78cb32fe74
commit
0f82e5de95
@ -47,6 +47,8 @@ type
|
||||
procedure Add(AMethod: TMethod);
|
||||
procedure Insert(Index: integer; AMethod: TMethod);
|
||||
procedure Move(OldIndex, NewIndex: integer);
|
||||
procedure RemoveAllMethodsOfObject(AnObject: TObject);
|
||||
public
|
||||
property Items[Index: integer]: TMethod read GetItems write SetItems; default;
|
||||
end;
|
||||
|
||||
@ -356,6 +358,17 @@ begin
|
||||
FItems[NewIndex]:=MovingMethod;
|
||||
end;
|
||||
|
||||
procedure TMethodList.RemoveAllMethodsOfObject(AnObject: TObject);
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
i:=FCount-1;
|
||||
while i>=0 do begin
|
||||
if TObject(FItems[i].Data)=AnObject then Delete(i);
|
||||
dec(i);
|
||||
end;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
procedure RaiseGDBException(const Msg: string);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user