#include <vtkKWDragAndDropTargetSet.h>
Inheritance diagram for vtkKWDragAndDropTargetSet:
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 vtkKWWidget * | GetSource () |
virtual void | SetSourceAnchor (vtkKWWidget *) |
virtual vtkKWWidget * | GetSourceAnchor () |
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 | |
vtkKWDragAndDropTargetSet * | New () |
Protected Member Functions | |
vtkKWDragAndDropTargetSet () | |
~vtkKWDragAndDropTargetSet () | |
TargetSlot * | GetTarget (vtkKWWidget *target) |
virtual void | AddBindings () |
virtual void | RemoveBindings () |
virtual void | DeleteAllTargets () |
Protected Attributes | |
vtkKWDragAndDropTargetSetInternals * | Internals |
int | Enable |
vtkKWWidget * | SourceAnchor |
vtkKWWidget * | Source |
char * | StartCommand |
char * | PerformCommand |
char * | EndCommand |
Friends | |
class | vtkKWDragAndDropTargetSetInternals |
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.
Definition at line 38 of file vtkKWDragAndDropTargetSet.h.
|
|
|
|
|
Reimplemented from vtkKWObject. |
|
|
|
Reimplemented from vtkKWObject. |
|
Enable/disable Drag and Drop between all the source and targets. |
|
Enable/disable Drag and Drop between all the source and targets. |
|
Enable/disable Drag and Drop between all the source and targets. |
|
Enable/disable Drag and Drop between all the source and targets. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Add/Query/Remove a Drag & Drop target. |
|
Add/Query/Remove a Drag & Drop target. |
|
Add/Query/Remove a Drag & Drop target. |
|
Add/Query/Remove a Drag & Drop target. |
|
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 *). |
|
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 *). |
|
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 *). |
|
Drag and Drop callbacks |
|
Drag and Drop callbacks |
|
Drag and Drop callbacks |
|
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. |
|
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. |
|
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. |
|
|
|
|
|
|
|
|
|
Definition at line 147 of file vtkKWDragAndDropTargetSet.h. |
|
Definition at line 146 of file vtkKWDragAndDropTargetSet.h. |
|
Definition at line 153 of file vtkKWDragAndDropTargetSet.h. |
|
Definition at line 155 of file vtkKWDragAndDropTargetSet.h. |
|
Definition at line 156 of file vtkKWDragAndDropTargetSet.h. |
|
Definition at line 158 of file vtkKWDragAndDropTargetSet.h. |
|
Definition at line 159 of file vtkKWDragAndDropTargetSet.h. |
|
Definition at line 160 of file vtkKWDragAndDropTargetSet.h. |