#include <Workspace/Presentation/operationactions.h>
◆ OperationActions()
- Parameters
-
op | The operation this object should provide actions for. |
opsReadOnly | True if the operations on which the actions will be performed are read-only |
◆ ~OperationActions()
◆ addContextMenuItems()
void addContextMenuItems |
( |
QMenu & |
menu | ) |
|
|
protectedvirtual |
- Parameters
-
menu | The 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()
- Returns
- The operation that this object is for.
◆ opsAreReadOnly()
- Returns
- True if the operations on which the actions will be performed are read-only.
◆ setSelectedOperations()
- Parameters
-
selectedOps | This 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. |