Workspace 6.21.5
Public Member Functions | List of all members
OutputActions Class Reference

#include <Workspace/Presentation/outputactions.h>

Public Member Functions

 OutputActions (DataExecution::Output &output)
 
 OutputActions (DataExecution::Output &output, OutputPort &outputPort)
 
 ~OutputActions ()
 
void customContextMenu ()
 
void dragStart (QWidget *dragSource)
 
void drop (const QMimeData &mimeData)
 
DataExecution::OutputgetOutput ()
 
bool isDroppable (const QMimeData &mimeData)
 

Constructor & Destructor Documentation

◆ OutputActions() [1/2]

Parameters
outputThe output this object should provide actions for.

◆ OutputActions() [2/2]

OutputActions ( DataExecution::Output output,
OutputPort outputPort 
)
Parameters
outputThe output this object should provide actions for.
outputPortThe output port this object should provide actions for.

◆ ~OutputActions()

~OutputActions ( )
default

Member Function Documentation

◆ customContextMenu()

void customContextMenu ( )

Creates a custom context menu at the current mouse cursor location.

◆ dragStart()

void dragStart ( QWidget *  dragSource)
Parameters
dragSourceThe widget that initiated the drag request.

Performs a drag and drop operation using dragSource as the initiator of the request. The drag is assumed to correspond to a drag from what this actions object refers to.

Postcondition
The drag and drop will be completed or aborted by the time dragStart() returns.
See also
isDroppable(), drop()

◆ drop()

void drop ( const QMimeData &  mimeData)
Parameters
mimeDataThe MIME data from an active drag event.
Precondition
The drag that owns mimeData must have previously resulted in mimeData being passed to dragEnter() and/or dragMove() for validation. If either of those two functions return false, drop() must not be called with that mimeData.
See also
dragStart(), isDroppable()

◆ getOutput()

Output & getOutput ( )
Returns
The output that this object is for.

◆ isDroppable()

bool isDroppable ( const QMimeData &  mimeData)
Parameters
mimeDataThe MIME data from an active drag event.
Returns
True if the mimeData holds the information required that would allow a valid drop on this output.
See also
dragStart(), drop()