Skip to content

Commit

Permalink
Issue #1138: Removed duplicate definition of IVTDragManager
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmarder committed Feb 11, 2023
1 parent 0ee6112 commit a6d1469
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions Source/VirtualTrees.DragnDrop.pas
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,6 @@ TEnumFormatEtc = class(TInterfacedObject, IEnumFormatEtc)
function Skip(celt : Integer) : HResult; stdcall;
end;

// ----- OLE drag'n drop handling

IVTDragManager = interface(IUnknown)
['{C4B25559-14DA-446B-8901-0C879000EB16}']
procedure ForceDragLeave; stdcall;
function GetDataObject : IDataObject; stdcall;
function GetDragSource : TBaseVirtualTree; stdcall;
function GetDropTargetHelperSupported : Boolean; stdcall;
function GetIsDropTarget : Boolean; stdcall;

property DataObject : IDataObject read GetDataObject;
property DragSource : TBaseVirtualTree read GetDragSource;
property DropTargetHelperSupported : Boolean read GetDropTargetHelperSupported;
property IsDropTarget : Boolean read GetIsDropTarget;
end;

// TVTDragManager is a class to manage drag and drop in a Virtual Treeview.
TVTDragManager = class(TInterfacedObject, IVTDragManager, IDropSource, IDropTarget)
private
Expand All @@ -55,7 +39,6 @@ TVTDragManager = class(TInterfacedObject, IVTDragManager, IDropSource, IDropTa

function GetDataObject : IDataObject; stdcall;
function GetDragSource : TBaseVirtualTree; stdcall;
function GetDropTargetHelperSupported : Boolean; stdcall;
function GetIsDropTarget : Boolean; stdcall;
public
constructor Create(AOwner : TBaseVirtualTree); virtual;
Expand Down Expand Up @@ -225,13 +208,6 @@ function TVTDragManager.GetDragSource : TBaseVirtualTree;

//----------------------------------------------------------------------------------------------------------------------

function TVTDragManager.GetDropTargetHelperSupported : Boolean;
begin
Result := Assigned(FDropTargetHelper);
end;

//----------------------------------------------------------------------------------------------------------------------

function TVTDragManager.GetIsDropTarget : Boolean;
begin
Result := FIsDropTarget;
Expand Down

0 comments on commit a6d1469

Please sign in to comment.