implemented "value hints" for choosing output values to use
This commit is contained in:
+10
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user