#include <Workspace/Presentation/operationviewbase.h>
◆ ~OperationViewBase()
◆ OperationViewBase()
- Parameters
-
op | The operation the view represents. |
wsScene | The scene in which this operation view will belong. |
graphicsEffectFactory | Graphics effect factory. |
pixmapFactory | Pixmap factory for creating underlying pixmaps. |
◆ contextMenuEvent()
void contextMenuEvent |
( |
QGraphicsSceneContextMenuEvent * |
event | ) |
|
|
overrideprotected |
◆ dragFromInput
◆ dragFromOutput
◆ getCenterPos()
QPointF getCenterPos |
( |
| ) |
const |
◆ getGraphicsEffect()
◆ getInputRack()
◆ getLabel()
◆ getOperation() [1/2]
- Returns
- The operation this view box represents or a null pointer if the operation has been deleted (in which case this view box will have already been scheduled for deletion too).
◆ getOperation() [2/2]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ getOperationViewSize()
- Returns
- The size of all operation view boxes (they are all identical)
◆ getOutputRack()
◆ getStatusBarMessage()
QString getStatusBarMessage |
( |
| ) |
|
◆ getTooltip()
◆ getWorkspaceScene()
◆ handleDragFromInput
◆ handleDragFromOutput
◆ hideUnpinnedRacks
void hideUnpinnedRacks |
( |
| ) |
|
|
slot |
◆ hoverEnterEvent()
void hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
◆ hoverLeaveEvent()
void hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
◆ hoverMoveEvent()
void hoverMoveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
◆ isMiniOperationView()
virtual bool isMiniOperationView |
( |
| ) |
const |
|
pure virtual |
◆ itemChange()
QVariant itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
overrideprotected |
◆ keyPressEvent()
void keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseDoubleClickEvent()
void mouseDoubleClickEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
void mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mousePressed
◆ mousePressEvent()
void mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ moveEventComplete
void moveEventComplete |
( |
const QPointF & |
scenePos | ) |
|
|
signal |
◆ opChangeProperties()
◆ paint()
void paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = nullptr |
|
) |
| |
|
override |
◆ positionChanged
void positionChanged |
( |
const QPointF & |
scenePos | ) |
|
|
signal |
◆ processIncomingConnectionViews()
bool processIncomingConnectionViews |
( |
std::function< bool(ConnectionView &)> |
func | ) |
|
|
protected |
- Parameters
-
func | Function to apply to each incoming connection view. |
- Returns
- True if the function call on each view is successful, false otherwise.
◆ processOutgoingConnectionViews()
bool processOutgoingConnectionViews |
( |
std::function< bool(ConnectionView &)> |
func | ) |
|
|
protected |
- Parameters
-
func | Function to apply to each outgoing connection view. |
- Returns
- True if the function call on each view is successful, false otherwise.
◆ progress
◆ removeFromParentRack()
void removeFromParentRack |
( |
| ) |
|
|
virtual |
Remove the operation view from its parent rack (if it belongs to one).
Reimplemented in MiniOperationView.
◆ requestDisplayNestedWorkflowContents
◆ requestNestedWorkspaceFromSelection
void requestNestedWorkspaceFromSelection |
( |
| ) |
|
|
signal |
◆ resetDragDropAppearance()
void resetDragDropAppearance |
( |
| ) |
|
Resets the drag and drop appearance of the operation.
◆ resetPortLabelLocation()
void resetPortLabelLocation |
( |
| ) |
|
Resets the port label locations to the default.
◆ restorePinnedRacks()
void restorePinnedRacks |
( |
| ) |
|
Restores the pinned racks.
◆ restoreRacksForOnClickMode()
void restoreRacksForOnClickMode |
( |
| ) |
|
◆ selectionChange
◆ setCenterPos()
void setCenterPos |
( |
const QPointF & |
pos | ) |
|
◆ setErrorState()
void setErrorState |
( |
bool |
isError | ) |
|
◆ setParentRackCollapsed()
void setParentRackCollapsed |
( |
bool |
collapsed | ) |
|
|
virtual |
If the operation view has a parent rack, collapse it.
Reimplemented in MiniOperationView.
◆ setReadOnly()
void setReadOnly |
( |
bool |
readOnly | ) |
|
◆ setStatusMessage
void setStatusMessage |
( |
const QString & |
msg | ) |
|
|
signal |
◆ setWorkspaceTooltip
void setWorkspaceTooltip |
( |
const QString & |
tooltip | ) |
|
|
signal |
◆ setZValue()
void setZValue |
( |
qreal |
z | ) |
|
◆ showAsNonViableDrop()
void showAsNonViableDrop |
( |
| ) |
|
Shows the operation as a non-viable drop for connection purposes.
◆ unpinAndHideRacks
void unpinAndHideRacks |
( |
| ) |
|
|
slot |
◆ updateAppearance
void updateAppearance |
( |
| ) |
|
|
protectedvirtualslot |
◆ updateEffectPath()
void updateEffectPath |
( |
| ) |
|
|
protected |