nodes: added ability to label nodes

This commit is contained in:
itsmattkc
2020-04-29 15:35:05 +10:00
parent 13dc79d0cd
commit bf68a4d631
11 changed files with 133 additions and 5 deletions
+13
View File
@@ -359,6 +359,9 @@ public:
QList<NodeOutput*> GetOutputs() const;
const QString& GetLabel() const;
void SetLabel(const QString& s);
protected:
void AddInput(NodeInput* input);
@@ -396,6 +399,11 @@ signals:
*/
void PositionChanged(const QPointF& pos);
/**
* @brief Signal emitted when SetLabel() is called
*/
void LabelChanged(const QString& s);
private:
/**
* @brief Add a parameter to this node
@@ -431,6 +439,11 @@ private:
*/
QPointF position_;
/**
* @brief Custom user label for node
*/
QString label_;
private slots:
void InputChanged(const OLIVE_NAMESPACE::TimeRange &range);