Inheritance diagram for Dataflow::PortItem:
Dataflow::AutomatablePortItem Dataflow::AudioOutletItem Dataflow::MinMaxFloatOutletItem vst3::VSTControlPortItem vst::ControlPortItem

Public Member Functions

 PortItem (const Process::Port &p, const Process::Context &ctx, QGraphicsItem *parent)
 
const Process::Portport () const
 
virtual void setupMenu (QMenu &, const score::DocumentContext &ctx)
 
void setPortVisible (bool b)
 
void resetPortVisible ()
 
void setHighlight (bool b)
 
int type () const final override
 
void createCable (PortItem *src, PortItem *snk)
 
void contextMenuRequested (QPointF scenepos, QPoint pos)
 

Static Public Member Functions

static const QPixmap & portImage (Process::PortType t, bool inlet, bool smol, bool light, bool addr) noexcept
 

Public Attributes

double m_diam = 8.
 
bool m_visible {true}
 
bool m_inlet {true}
 
bool m_highlight {true}
 

Static Public Attributes

static PortItemclickedPort
 
static constexpr const int Type = QGraphicsItem::UserType + 700
 

Protected Member Functions

QRectF boundingRect () const override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) final override
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *event) final override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) final override
 
void dragEnterEvent (QGraphicsSceneDragDropEvent *event) final override
 
void dragMoveEvent (QGraphicsSceneDragDropEvent *event) final override
 
void dragLeaveEvent (QGraphicsSceneDragDropEvent *event) final override
 
void keyPressEvent (QKeyEvent *event) override
 
void keyReleaseEvent (QKeyEvent *event) override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 

Protected Attributes

const Process::Contextm_context
 
std::vector< QPointer< CableItem > > cables
 
const Process::Portm_port
 

Friends

class Dataflow::CableItem
 

The documentation for this class was generated from the following files: