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

#include <Workspace/Presentation/operationactions.h>

Inheritance diagram for OperationActions:
[legend]

Public Member Functions

 OperationActions (DataExecution::Operation &op, bool opsReadOnly=false)
 
virtual ~OperationActions ()
 
void customContextMenu ()
 
void directChangeProperties ()
 
DataExecution::OperationgetOperation ()
 
bool opsAreReadOnly ()
 
void setSelectedOperations (const QList< DataExecution::Operation * > &selectedOps)
 

Protected Member Functions

virtual void addContextMenuItems (QMenu &menu)
 

Constructor & Destructor Documentation

◆ OperationActions()

OperationActions ( DataExecution::Operation op,
bool  opsReadOnly = false 
)
Parameters
opThe operation this object should provide actions for.
opsReadOnlyTrue if the operations on which the actions will be performed are read-only

◆ ~OperationActions()

~OperationActions ( )
virtual

Member Function Documentation

◆ addContextMenuItems()

void addContextMenuItems ( QMenu &  menu)
protectedvirtual
Parameters
menuThe context menu that will be shown for this operation immediately after this function is called.

If subclasses add anything to menu, it is customary to first add a menu separator to distinguish the subclass' items from the general items common to all operations.

Reimplemented in WorkspaceActions.

◆ customContextMenu()

void customContextMenu ( )

Creates a custom context menu at the current mouse cursor location. The context menu will be specific to operations, but subclasses can also add their own entries to the context menu by reimplementing addContextMenuItems() which is called just before the menu is shown.

◆ directChangeProperties()

void directChangeProperties ( )

Direct access to operation properties menu

◆ getOperation()

Operation & getOperation ( )
Returns
The operation that this object is for.

◆ opsAreReadOnly()

bool opsAreReadOnly ( )
Returns
True if the operations on which the actions will be performed are read-only.

◆ setSelectedOperations()

void setSelectedOperations ( const QList< DataExecution::Operation * > &  selectedOps)
Parameters
selectedOpsThis is a list of operations that should be considered selected, which normally means they have been selected in some widget. Certain operation actions need to know what operations might be selected so they can customize their behaviour accordingly.