Loading...
Searching...
No Matches
Inheritance diagram for Process::NodeItem:

Public Member Functions

 NodeItem (const Process::ProcessModel &model, const Process::Context &ctx, TimeVal parentDur, QGraphicsItem *parent)
 
const Id< Process::ProcessModel > & id () const noexcept
 
void setParentDuration (TimeVal r)
 
void setPlayPercentage (float f, TimeVal parent_dur)
 
qreal width () const noexcept
 
qreal height () const
 
const Process::ProcessModel & model () const noexcept
 
void dropReceived (const QPointF &pos, const QMimeData &arg_2)
 
void geometryChanged ()
 
void resetDrop ()
 
int type () const override
 
QRectF contentRect () const noexcept
 Where the node draws itself: the box the ports have to stay inside.
 

Public Attributes

std::function< void(const Process::ProcessModel &, const Process::Cable &, score::Dispatcher &)> dropOnCableHandler
 
std::function< bool(const Process::ProcessModel &, const Process::Cable &)> canDropOnCableHandler
 

Static Public Attributes

static const constexpr int Type = QGraphicsItem::UserType + 5000
 

Member Function Documentation

◆ geometryChanged()

void Process::NodeItem::geometryChanged ( )

The node's bounding rect changed: the content is laid out in steps after the node is created, without the model's size always following.

Member Data Documentation

◆ canDropOnCableHandler

std::function<bool(const Process::ProcessModel&, const Process::Cable&)> Process::NodeItem::canDropOnCableHandler

Whether dropOnCableHandler would connect anything, to highlight the cable under the node while it is being dragged.

◆ dropOnCableHandler

std::function<void( const Process::ProcessModel&, const Process::Cable&, score::Dispatcher&)> Process::NodeItem::dropOnCableHandler

Set by the nodal view: called when the node is released over a cable, to append the insertion commands to the macro the move is already building.


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