Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::DragSource Class Reference

The drag source represents the source, or beginning of a drag drop operation. More...

#include <vcf/ApplicationKit/DragSource.h>

Inheritance diagram for VCF::DragSource:

VCF::Object List of all members.

Public Types

enum  {
  DRAG_BEGUN = CUSTOM_EVENT_TYPES + 300, DRAG_DROPPED, DRAG_GIVEFEEDBACK, DRAG_CANCONTINUE,
  DRAG_END
}

Public Member Functions

 DragSource ()
virtual ~DragSource ()
void startDragDrop (DataObject *data)
void copyDataToClipboard ()
void setActionType (const DragActionType &actionType)
DragActionType getActionType ()

Public Attributes

VCF::Delegate DragSourceDelegate
SourceBegin VCF::Delegate DragSourceDelegate
SourceDropped VCF::Delegate DragSourceDelegate
SourceEnd VCF::Delegate DragSourceDelegate
SourceGiveFeedback VCF::Delegate DragSourceDelegate

Protected Attributes

DragActionType actionType_
DragDropPeerdragDropPeer_
DataObjectclipboardDataObject_

Detailed Description

The drag source represents the source, or beginning of a drag drop operation.

Event Delegates for this class:
  • DragSource::SourceBegin
  • DragSource::SourceDropped
  • DragSource::SourceEnd
  • DragSource::SourceGiveFeedback
  • DragSource::SourceCanContinueDragOp


Member Enumeration Documentation

anonymous enum
 

Enumerator:
DRAG_BEGUN 
DRAG_DROPPED 
DRAG_GIVEFEEDBACK 
DRAG_CANCONTINUE 
DRAG_END 


Constructor & Destructor Documentation

VCF::DragSource::DragSource  ) 
 

virtual VCF::DragSource::~DragSource  )  [virtual]
 


Member Function Documentation

void VCF::DragSource::copyDataToClipboard  ) 
 

DragActionType VCF::DragSource::getActionType  ) 
 

void VCF::DragSource::setActionType const DragActionType actionType  ) 
 

void VCF::DragSource::startDragDrop DataObject data  ) 
 


Member Data Documentation

DragActionType VCF::DragSource::actionType_ [protected]
 

DataObject* VCF::DragSource::clipboardDataObject_ [protected]
 

DragDropPeer* VCF::DragSource::dragDropPeer_ [protected]
 

SourceGiveFeedback VCF::Delegate VCF::DragSource::DragSourceDelegate
 

Event Delegate:
SourceCanContinueDragOp this is fired whenever the underlying windowing system needs to query whether or not the drag-drop operation should continue.
event class: DragSourceEvent
event type: DragSource::DRAG_CANCONTINUE

SourceEnd VCF::Delegate VCF::DragSource::DragSourceDelegate
 

Event Delegate:
SourceGiveFeedback this is fired when the underlying windowing system needs to know what kind of feed back to present the user with during the drag-drop operation.
event class: DragSourceEvent
event type: DragSource::DRAG_GIVEFEEDBACK

SourceDropped VCF::Delegate VCF::DragSource::DragSourceDelegate
 

Event Delegate:
SourceEnd this is called when the drag-drop operation is completed. It does not indicate whether or not the drag-drop operation was successful.
event class: DragSourceEvent
event type: DragSource::DRAG_END

SourceBegin VCF::Delegate VCF::DragSource::DragSourceDelegate
 

Event Delegate:
SourceDropped this is fired if the drag-drop operation was successfully completed.
event class: DragSourceEvent
event type: DragSource::DRAG_DROPPED

VCF::Delegate VCF::DragSource::DragSourceDelegate
 

Event Delegate:
SourceBegin this is called just as the drag-drop operation is started, once startDragDrop() has been called.
event class: DragSourceEvent
See also:
startDragDrop()


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information