moved block links to node links
Seems like it might be useful to have this as part of the node architecture as a whole
This commit is contained in:
@@ -425,6 +425,20 @@ public:
|
||||
|
||||
void InvalidateAll(NodeInput *input, int element);
|
||||
|
||||
bool HasLinks() const
|
||||
{
|
||||
return !links_.isEmpty();
|
||||
}
|
||||
|
||||
const QVector<Node*>& links() const
|
||||
{
|
||||
return links_;
|
||||
}
|
||||
|
||||
static bool Link(Node* a, Node* b);
|
||||
static bool Unlink(Node* a, Node* b);
|
||||
static bool AreLinked(Node* a, Node* b);
|
||||
|
||||
protected:
|
||||
void SendInvalidateCache(const TimeRange &range);
|
||||
|
||||
@@ -463,6 +477,8 @@ protected:
|
||||
|
||||
virtual void childEvent(QChildEvent* event) override;
|
||||
|
||||
virtual void LinkChangeEvent(){}
|
||||
|
||||
signals:
|
||||
/**
|
||||
* @brief Signal emitted whenever the position is set through SetPosition()
|
||||
@@ -486,6 +502,8 @@ signals:
|
||||
|
||||
void OutputDisconnected(NodeInput* destination, int element);
|
||||
|
||||
void LinksChanged();
|
||||
|
||||
private:
|
||||
template<class T>
|
||||
static void FindInputNodeInternal(const Node* n, QVector<T *>& list);
|
||||
@@ -521,6 +539,11 @@ private:
|
||||
*/
|
||||
int override_color_;
|
||||
|
||||
/**
|
||||
* @brief Nodes that are linked with this one
|
||||
*/
|
||||
QVector<Node*> links_;
|
||||
|
||||
private slots:
|
||||
void ParameterValueChanged(const olive::TimeRange &range, int element);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user