Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkKWDragAndDropTargetSet Class Reference

a set of drag and drop targets More...

#include <vtkKWDragAndDropTargetSet.h>

Inheritance diagram for vtkKWDragAndDropTargetSet:

Inheritance graph
[legend]
Collaboration diagram for vtkKWDragAndDropTargetSet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkKWDragAndDropTargetSet, vtkKWObject)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetEnable (int)
virtual void EnableOn ()
virtual void EnableOff ()
virtual int GetEnable ()
virtual void SetSource (vtkKWWidget *)
virtual vtkKWWidgetGetSource ()
virtual void SetSourceAnchor (vtkKWWidget *)
virtual vtkKWWidgetGetSourceAnchor ()
virtual int AddTarget (vtkKWWidget *target)
virtual int RemoveTarget (vtkKWWidget *target)
virtual int HasTarget (vtkKWWidget *target)
virtual int GetNumberOfTargets ()
virtual int SetTargetStartCommand (vtkKWWidget *target, vtkObject *object, const char *method)
virtual int SetTargetPerformCommand (vtkKWWidget *target, vtkObject *object, const char *method)
virtual int SetTargetEndCommand (vtkKWWidget *target, vtkObject *object, const char *method)
virtual void StartCallback (int x, int y)
virtual void PerformCallback (int x, int y)
virtual void EndCallback (int x, int y)
virtual void SetStartCommand (vtkObject *object, const char *method)
virtual void SetPerformCommand (vtkObject *object, const char *method)
virtual void SetEndCommand (vtkObject *object, const char *method)

Static Public Member Functions

vtkKWDragAndDropTargetSetNew ()

Protected Member Functions

 vtkKWDragAndDropTargetSet ()
 ~vtkKWDragAndDropTargetSet ()
TargetSlotGetTarget (vtkKWWidget *target)
virtual void AddBindings ()
virtual void RemoveBindings ()
virtual void DeleteAllTargets ()

Protected Attributes

vtkKWDragAndDropTargetSetInternals * Internals
int Enable
vtkKWWidgetSourceAnchor
vtkKWWidgetSource
char * StartCommand
char * PerformCommand
char * EndCommand

Friends

class vtkKWDragAndDropTargetSetInternals

Detailed Description

a set of drag and drop targets

This class is a container for a set of drag and drop targets. It provides methods to set drag and drop callbacks between a *single* source and one or more targets. This is *not* a general drag and drop framework, where DnD types would be created and objects would register themselves as source and/or sinks for any of those types. This is a simpler framework to perform specific DnD actions between a know source and known targets. An instance of this class is available in vtkKWWidget and can be used to register DnD actions between that vtkKWWidget source and some targets.

See also:
vtkKWWidget

Definition at line 38 of file vtkKWDragAndDropTargetSet.h.


Constructor & Destructor Documentation

vtkKWDragAndDropTargetSet::vtkKWDragAndDropTargetSet  )  [protected]
 

vtkKWDragAndDropTargetSet::~vtkKWDragAndDropTargetSet  )  [protected]
 


Member Function Documentation

vtkKWDragAndDropTargetSet* vtkKWDragAndDropTargetSet::New  )  [static]
 

Reimplemented from vtkKWObject.

vtkKWDragAndDropTargetSet::vtkTypeRevisionMacro vtkKWDragAndDropTargetSet  ,
vtkKWObject 
 

void vtkKWDragAndDropTargetSet::PrintSelf ostream &  os,
vtkIndent  indent
 

Reimplemented from vtkKWObject.

virtual void vtkKWDragAndDropTargetSet::SetEnable int   )  [virtual]
 

Enable/disable Drag and Drop between all the source and targets.

virtual void vtkKWDragAndDropTargetSet::EnableOn  )  [virtual]
 

Enable/disable Drag and Drop between all the source and targets.

virtual void vtkKWDragAndDropTargetSet::EnableOff  )  [virtual]
 

Enable/disable Drag and Drop between all the source and targets.

virtual int vtkKWDragAndDropTargetSet::GetEnable  )  [virtual]
 

Enable/disable Drag and Drop between all the source and targets.

virtual void vtkKWDragAndDropTargetSet::SetSource vtkKWWidget  )  [virtual]
 

Set/Get the Drag and Drop source widget. This is the widget that the the Drag and Drop originates from. Make sure you have called SetApplication(..) on the instance before.

virtual vtkKWWidget* vtkKWDragAndDropTargetSet::GetSource  )  [virtual]
 

Set/Get the Drag and Drop source widget. This is the widget that the the Drag and Drop originates from. Make sure you have called SetApplication(..) on the instance before.

virtual void vtkKWDragAndDropTargetSet::SetSourceAnchor vtkKWWidget  )  [virtual]
 

Set/Get the optional Drag and Drop source anchor widget. This is the actual widget that the user drags and drops (i.e. the actual widget the user starts the interaction with). It NULL, it defaults to the Source widget automatically. The anchor widget is a convenient way to specify that a sub-part of the Source widget is to be dragged & dropped, not the whole Source widget. Make sure you have called SetApplication(..) on the instance before.

virtual vtkKWWidget* vtkKWDragAndDropTargetSet::GetSourceAnchor  )  [virtual]
 

Set/Get the optional Drag and Drop source anchor widget. This is the actual widget that the user drags and drops (i.e. the actual widget the user starts the interaction with). It NULL, it defaults to the Source widget automatically. The anchor widget is a convenient way to specify that a sub-part of the Source widget is to be dragged & dropped, not the whole Source widget. Make sure you have called SetApplication(..) on the instance before.

virtual int vtkKWDragAndDropTargetSet::AddTarget vtkKWWidget target  )  [virtual]
 

Add/Query/Remove a Drag & Drop target.

virtual int vtkKWDragAndDropTargetSet::RemoveTarget vtkKWWidget target  )  [virtual]
 

Add/Query/Remove a Drag & Drop target.

virtual int vtkKWDragAndDropTargetSet::HasTarget vtkKWWidget target  )  [virtual]
 

Add/Query/Remove a Drag & Drop target.

virtual int vtkKWDragAndDropTargetSet::GetNumberOfTargets  )  [virtual]
 

Add/Query/Remove a Drag & Drop target.

virtual int vtkKWDragAndDropTargetSet::SetTargetStartCommand vtkKWWidget target,
vtkObject *  object,
const char *  method
[virtual]
 

Set a Drag & Drop target callbacks/commands. If the target has not been added yet, it will be added automatically. The StartCommand of all targets is called when Drag & Drop starts. The PerformCommand of all targets is called while Drag & Drop is performed. The EndCommand of all targets that contain the drop coordinates is called when Drag & Drop ends. Note that the each command is passed the absolute/screen (x,y) mouse coordinates, the Source widget and the SourceAnchor widget (which are the same most of the times), i.e. the last 4 parameters are: int, int, vtkKWWidget*, vtkKWWidget*). Additionally, EndCommand is passed a 5th parameter, the target (vtkKWWidget *).

virtual int vtkKWDragAndDropTargetSet::SetTargetPerformCommand vtkKWWidget target,
vtkObject *  object,
const char *  method
[virtual]
 

Set a Drag & Drop target callbacks/commands. If the target has not been added yet, it will be added automatically. The StartCommand of all targets is called when Drag & Drop starts. The PerformCommand of all targets is called while Drag & Drop is performed. The EndCommand of all targets that contain the drop coordinates is called when Drag & Drop ends. Note that the each command is passed the absolute/screen (x,y) mouse coordinates, the Source widget and the SourceAnchor widget (which are the same most of the times), i.e. the last 4 parameters are: int, int, vtkKWWidget*, vtkKWWidget*). Additionally, EndCommand is passed a 5th parameter, the target (vtkKWWidget *).

virtual int vtkKWDragAndDropTargetSet::SetTargetEndCommand vtkKWWidget target,
vtkObject *  object,
const char *  method
[virtual]
 

Set a Drag & Drop target callbacks/commands. If the target has not been added yet, it will be added automatically. The StartCommand of all targets is called when Drag & Drop starts. The PerformCommand of all targets is called while Drag & Drop is performed. The EndCommand of all targets that contain the drop coordinates is called when Drag & Drop ends. Note that the each command is passed the absolute/screen (x,y) mouse coordinates, the Source widget and the SourceAnchor widget (which are the same most of the times), i.e. the last 4 parameters are: int, int, vtkKWWidget*, vtkKWWidget*). Additionally, EndCommand is passed a 5th parameter, the target (vtkKWWidget *).

virtual void vtkKWDragAndDropTargetSet::StartCallback int  x,
int  y
[virtual]
 

Drag and Drop callbacks

virtual void vtkKWDragAndDropTargetSet::PerformCallback int  x,
int  y
[virtual]
 

Drag and Drop callbacks

virtual void vtkKWDragAndDropTargetSet::EndCallback int  x,
int  y
[virtual]
 

Drag and Drop callbacks

virtual void vtkKWDragAndDropTargetSet::SetStartCommand vtkObject *  object,
const char *  method
[virtual]
 

Independent of any targets, the following commands can be set: The StartCommand is called when Drag & Drop starts. The PerformCommand is called while Drag & Drop is performed. The EndCommand is called when Drag & Drop ends. Note that the each command is passed the absolute/screen (x,y) mouse coordinates. None of them is called is Enable is false. StartCommand and PerformCommand are called *before* any target's corresponding command. EndCommand is called *after* any target's EndCommand.

virtual void vtkKWDragAndDropTargetSet::SetPerformCommand vtkObject *  object,
const char *  method
[virtual]
 

Independent of any targets, the following commands can be set: The StartCommand is called when Drag & Drop starts. The PerformCommand is called while Drag & Drop is performed. The EndCommand is called when Drag & Drop ends. Note that the each command is passed the absolute/screen (x,y) mouse coordinates. None of them is called is Enable is false. StartCommand and PerformCommand are called *before* any target's corresponding command. EndCommand is called *after* any target's EndCommand.

virtual void vtkKWDragAndDropTargetSet::SetEndCommand vtkObject *  object,
const char *  method
[virtual]
 

Independent of any targets, the following commands can be set: The StartCommand is called when Drag & Drop starts. The PerformCommand is called while Drag & Drop is performed. The EndCommand is called when Drag & Drop ends. Note that the each command is passed the absolute/screen (x,y) mouse coordinates. None of them is called is Enable is false. StartCommand and PerformCommand are called *before* any target's corresponding command. EndCommand is called *after* any target's EndCommand.

TargetSlot* vtkKWDragAndDropTargetSet::GetTarget vtkKWWidget target  )  [protected]
 

virtual void vtkKWDragAndDropTargetSet::AddBindings  )  [protected, virtual]
 

virtual void vtkKWDragAndDropTargetSet::RemoveBindings  )  [protected, virtual]
 

virtual void vtkKWDragAndDropTargetSet::DeleteAllTargets  )  [protected, virtual]
 


Friends And Related Function Documentation

friend class vtkKWDragAndDropTargetSetInternals [friend]
 

Definition at line 147 of file vtkKWDragAndDropTargetSet.h.


Member Data Documentation

vtkKWDragAndDropTargetSetInternals* vtkKWDragAndDropTargetSet::Internals [protected]
 

Definition at line 146 of file vtkKWDragAndDropTargetSet.h.

int vtkKWDragAndDropTargetSet::Enable [protected]
 

Definition at line 153 of file vtkKWDragAndDropTargetSet.h.

vtkKWWidget* vtkKWDragAndDropTargetSet::SourceAnchor [protected]
 

Definition at line 155 of file vtkKWDragAndDropTargetSet.h.

vtkKWWidget* vtkKWDragAndDropTargetSet::Source [protected]
 

Definition at line 156 of file vtkKWDragAndDropTargetSet.h.

char* vtkKWDragAndDropTargetSet::StartCommand [protected]
 

Definition at line 158 of file vtkKWDragAndDropTargetSet.h.

char* vtkKWDragAndDropTargetSet::PerformCommand [protected]
 

Definition at line 159 of file vtkKWDragAndDropTargetSet.h.

char* vtkKWDragAndDropTargetSet::EndCommand [protected]
 

Definition at line 160 of file vtkKWDragAndDropTargetSet.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:37:46 2006 for ParaView by doxygen 1.3.5