[Kangaroo Index] [Kangaroo Hierarchy] [Headers]
Drop zone for KDE Drag n Drop. More...
#include <kdeobjc/Drag.h>
Inherits: QObject (QtObjc)
Drop zone for KDE Drag n Drop.
You can create a DropZone for every widget. When the user makes a drop over this widget, the KDNDDropZone takes over control.
The KDE drag and drop classes are based on the Offix Drag and Drop protocol, but are not compatible with it yet.
Currently used types are: DndText, DndURL.
Derived from the C++ header 'drag.h' by Torben Weis (weis@kde.org)
Create a DropZone for the widget _parent.
_type | The type of Drop events to accept, eg DndURL. |
_parent | The parent of this dropzone, usually the widget for which you wish to receive drop events. |
This function is called when a drop event occurs.
_type | The type of the data, eg DndURL means a URL was dropped. |
_data | A reference to the dropped data. |
_size | The length of the data dropped. |
_x,_y | The global coordinates of the drop. |
This function is called when an icon is being dragged over this drop zone.
Note that the icon may never have left the drop zone; the user may be dragging it around withing this zone and this function would still be called.
_type | The type of the data, eg DndURL means a URL is being dragged. |
_data | A reference to the dragged data. |
_size | The length of the data dragged. |
_x,_y | The global coordinates of the drag. |
This function is called when the icon being dragged has left this drop zone.
Decode the dropped data into a list of URLs. This should only be called if the dropped data was of type DndURL.
Note that the contents of this list are only valid till the next drop event.
Get dropped data.
Get dropped data length.
Get drop data type.
Get the mouse position at which the item was dropped.
Get the mouse position at which the item was dropped.
The types of dropped data this drop zone will accept.
Tests whether this data type will be accepted.
_type | the data type to be tested. |
Get the parent widget.
Emitted when a drop has occurred.
The zone into which the drop has occurred is passed as a parameter.
Emitted when an icon is dragged into and inside this drop zone.
Emitted when an icon is dragged out of this drop zone.
Fills 'urlList' with the URLs in 'dndData'. Works only if 'dndType' is DndURL.
Documentation generated by duke@tipitina on Sat May 6 11:42:52 EDT 2000 | Kdoc |