implemented "value hints" for choosing output values to use

This commit is contained in:
itsmattkc
2021-09-17 20:56:53 -07:00
parent a5e7859e1f
commit 67c7c71ca2
30 changed files with 439 additions and 85 deletions
+10 -4
View File
@@ -466,6 +466,11 @@ public:
QVector<NodeValue::Type> type;
int index = -1;
QString tag;
void Hash(QCryptographicHash &hash) const;
void Load(QXmlStreamReader *reader);
void Save(QXmlStreamWriter *writer) const;
};
ValueHint GetValueHintForInput(const QString &input, int element) const
@@ -473,10 +478,7 @@ public:
return value_hints_.value({input, element});
}
void SetValueHintForInput(const QString &input, int element, const ValueHint &hint)
{
value_hints_.insert({input, element}, hint);
}
void SetValueHintForInput(const QString &input, int element, const ValueHint &hint);
const NodeKeyframeTrack& GetTrackFromKeyframe(NodeKeyframe* key) const;
@@ -965,6 +967,8 @@ signals:
void OutputDisconnected(Node *output, const NodeInput& input);
void InputValueHintChanged(const NodeInput& input);
void InputPropertyChanged(const QString& input, const QString& key, const QVariant& value);
void LinksChanged();
@@ -1519,4 +1523,6 @@ private:
}
Q_DECLARE_METATYPE(olive::Node::ValueHint);
#endif // NODE_H