Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

VDKDnD Class Reference

Provides dnd support. More...

#include <vdkdnd.h>

Inheritance diagram for VDKDnD:

VDKRawObject List of all members.

Public Methods

Public Attributes


Detailed Description

Provides dnd support.

Description
This class provides support for gtk+ drag an drop VDKDnD can be viewed from two sides:
Widgets can be both sources and targets, so VDKDnD class supports m:n relationship between widgets interested in dnd. VDKDnD class provides support for both sides.
SIGNALS
Both signals for static and dynamic tables are provided.
Received by target when a dragged widget is dropped into target Received when source data are transferred to dnd widget (not very useful for a normal user) Received by target when a dragged widget icon mouves over the target widget Received by target when a dragged widget icon leaves the target widget
TIP
Signals using dynamic tables are handled by vdk overriding gtk+, thus user must connect with dynamic tables setting <gtk> arg always false.
  SignalConnect(target,"dnd_dropped",&DndForm::OnDrop,false);
EXAMPLES
In ./testvdk/dnd.cc


Constructor & Destructor Documentation

VDKDnD::~VDKDnD   [virtual]
 

Destructor


Member Function Documentation

void VDKDnD::AddSource VDKObject   source
 

Add a widget as dnd source.

void VDKDnD::AddTarget VDKObject   target
 

Add a widget as dnd target.

VDKDnDTable* VDKDnD::DnDSources   [inline]
 

Return sources dnd tables.

Tip
VDKDnDTable class is a VDKList of VDKDnDEntry class objects. Each VDKDnDEntry object has a method Object() that returns source/target widget address. VDKDnDIterator class for accessing table is provided as well.

VDKDnDTable* VDKDnD::DnDTargets   [inline]
 

Return sources dnd target tables.

void VDKDnD::RemoveSource VDKObject   source
 

Remove a target from source list

void VDKDnD::RemoveTarget VDKObject   target
 

Remove a target from target list

void VDKDnD::SetIcon VDKObject   object,
VDKRawPixmap   pixmap
 

Sets widget dragging icon


Member Data Documentation

VDKReadOnlyValueProp<VDKDnD,VDKPoint> VDKDnD::DragPoint
 

Receiving a dnd_drag_motion signal, DragPoint contains mouse coordinates.

VDKReadOnlyValueProp<VDKDnD,VDKObject*> VDKDnD::DragSource
 

The widget that actually is being dragged


The documentation for this class was generated from the following files:
Generated on Sat May 4 22:00:26 2002 for vdk 2.0.1 by doxygen1.2.15