Workspace 6.21.5
|
Widget class for representing an input/output port attached to an operation view. More...
#include <Workspace/Presentation/ConnectionRacks/connectionport.h>
Public Types | |
enum | { Type = WorkspaceScene::ConnectionPortT } |
enum class | LabelLocation { Right , Left } |
Signals | |
void | dragFromInputStarted (const DataExecution::IOBase &ioBase) |
void | dragFromOutputStarted (const DataExecution::IOBase &ioBase) |
void | itemPositionChanged () |
void | itemVisibilityChanged (bool visible) |
void | notifyDragStarter () |
void | requestZValue (qreal z) |
void | setStatusMessage (const QString &message) |
void | setWorkspaceTooltip (const QString &tooltip) |
Public Member Functions | |
ConnectionPort (DataExecution::IOBase &ioBase, DataExecution::Operation &op, const WorkspaceGraphicsEffectFactory &factory, QGraphicsItem *parent=nullptr) | |
~ConnectionPort () override | |
virtual DataExecution::IOBase & | getIOBase ()=0 |
QGraphicsSimpleTextItem * | getLabel () |
virtual QString | getToolTip () const =0 |
virtual bool | isArrayElement () const =0 |
bool | isHighlighted () const |
bool | isValidConnectionTarget () const |
void | resetLabelLocation () |
void | setDefaultLabelLocation (LabelLocation location) |
virtual void | setHighlighted (bool highlight, bool applyToAllSourceConnections) |
void | setLabelHorizontalOffset (qreal labelOffsetX) |
void | setLabelLocation (LabelLocation location) |
void | setValidConnectionTarget (bool valid) |
int | type () const override |
Protected Member Functions | |
virtual QString | getStatusBarMessage ()=0 |
WorkspaceScene & | getWorkspaceScene () |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
void | installGraphicsEffect () |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
void | setLabel (const QString &text) |
void | setLabelFont (const QFont &font) |
virtual bool | supportsData () const =0 |
An input/output port will automatically delete itself when the input/output it is representing is deleted. This implies that unless clients can ensure that they will manually delete the port before the input/output, the port should be created dynamically with operator new. This is the strategy employed by the Workspace code and client code outside of the Workspace module should never attempt to create a connection port directly.
|
strong |
ConnectionPort | ( | DataExecution::IOBase & | ioBase, |
DataExecution::Operation & | op, | ||
const WorkspaceGraphicsEffectFactory & | factory, | ||
QGraphicsItem * | parent = nullptr |
||
) |
|
overridedefault |
|
signal |
|
signal |
|
pure virtual |
Implemented in InputArrayPort, InputScalarPort, and OutputPort.
QGraphicsSimpleTextItem * getLabel | ( | ) |
|
protectedpure virtual |
Implemented in InputArrayPort, InputScalarPort, and OutputPort.
|
pure virtual |
Implemented in InputArrayPort, InputScalarPort, and OutputPort.
|
protected |
|
overrideprotected |
|
overrideprotected |
|
protected |
|
pure virtual |
Implemented in InputArrayPort, InputScalarPort, and OutputPort.
bool isHighlighted | ( | ) | const |
bool isValidConnectionTarget | ( | ) | const |
|
overrideprotected |
|
signal |
|
signal |
|
signal |
|
signal |
void resetLabelLocation | ( | ) |
void setDefaultLabelLocation | ( | LabelLocation | location | ) |
|
virtual |
Reimplemented in InputScalarPort, and OutputPort.
|
protected |
|
protected |
void setLabelHorizontalOffset | ( | qreal | labelOffsetX | ) |
Mini operations will set a custom horizontal offset for port labels.
void setLabelLocation | ( | LabelLocation | location | ) |
|
signal |
void setValidConnectionTarget | ( | bool | valid | ) |
|
signal |
|
protectedpure virtual |
Implemented in InputArrayPort, InputScalarPort, and OutputPort.
|
inlineoverride |