use strings to connect nodes

This makes the node system somewhat more high-level with the intent of making
working with them far more flexible and stable. By making the architecture more
abstracted, it becomes far less rigid which should allow us to do even more
with it and make it much less crash prone.
This commit is contained in:
itsmattkc
2021-02-09 15:48:37 +11:00
parent d1a3e22eaa
commit 81c1922911
138 changed files with 4487 additions and 3913 deletions
+7 -7
View File
@@ -38,15 +38,15 @@ public:
virtual void Clear() override;
void ConnectInput(NodeInput* input, int element, int track);
void ConnectInput(const NodeKeyframeTrackReference &ref);
void DisconnectInput(NodeInput* input, int element, int track);
void DisconnectInput(const NodeKeyframeTrackReference &ref);
void SelectKeyframesOfInput(NodeInput* input, int element, int track);
void SelectKeyframesOfInput(const NodeKeyframeTrackReference &ref);
void ZoomToFitInput(NodeInput* input, int element, int track);
void ZoomToFitInput(const NodeKeyframeTrackReference &ref);
void SetKeyframeTrackColor(const NodeInput::KeyframeTrackReference& ref, const QColor& color);
void SetKeyframeTrackColor(const NodeKeyframeTrackReference& ref, const QColor& color);
public slots:
virtual KeyframeViewItem* AddKeyframe(NodeKeyframe* key) override;
@@ -84,7 +84,7 @@ private:
void CreateBezierControlPoints(KeyframeViewItem *item);
QHash<NodeInput::KeyframeTrackReference, QColor> keyframe_colors_;
QHash<NodeKeyframeTrackReference, QColor> keyframe_colors_;
int text_padding_;
@@ -94,7 +94,7 @@ private:
QVector<BezierControlPointItem*> bezier_control_points_;
QVector<NodeInput::KeyframeTrackReference> connected_inputs_;
QVector<NodeKeyframeTrackReference> connected_inputs_;
private slots:
void KeyframeValueChanged();