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

#include <Workspace/Presentation/inputarrayactions.h>

Public Member Functions

 InputArrayActions (DataExecution::InputArray &input)
 
 InputArrayActions (DataExecution::InputArray &input, InputArrayPort &port)
 
 ~InputArrayActions ()
 
void customContextMenu ()
 
void doubleClick ()
 
void dragStart (QWidget *dragSource)
 
void drop (const QMimeData &mimeData)
 
DataExecution::InputArraygetInput ()
 
bool isDroppable (const QMimeData &mimeData)
 

Constructor & Destructor Documentation

◆ InputArrayActions() [1/2]

Parameters
inputThe input this object should provide actions for.

◆ InputArrayActions() [2/2]

Parameters
input
port

◆ ~InputArrayActions()

Member Function Documentation

◆ customContextMenu()

void customContextMenu ( )

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

◆ doubleClick()

void doubleClick ( )

Allow inputs to be created on double click.

◆ 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()

◆ getInput()

InputArray & getInput ( )
Returns
The input 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 input.
See also
dragStart(), drop()