nodeparamview: implemented add button

This commit is contained in:
itsmattkc
2022-04-26 14:23:19 -07:00
parent 45b18f6df2
commit d1bb931854
19 changed files with 114 additions and 6 deletions
+22 -1
View File
@@ -95,7 +95,9 @@ public:
enum Flag {
kNone = 0,
kDontShowInParamView = 0x1
kDontShowInParamView = 0x1,
kVideoEffect = 0x2,
kAudioEffect = 0x4
};
Node();
@@ -539,6 +541,11 @@ public:
int InputArraySize(const QString& id) const;
NodeInput GetEffectInput()
{
return effect_input_.isEmpty() ? NodeInput() : NodeInput(this, effect_input_, effect_element_);
}
class ValueHint {
public:
explicit ValueHint(const QVector<NodeValue::Type> &types = QVector<NodeValue::Type>(), int index = -1, const QString &tag = QString()) :
@@ -889,6 +896,9 @@ public:
cache_result_ = e;
}
bool IsBypassed() const { return bypass_; }
void SetBypassed(bool e) { bypass_ = e; }
class ArrayRemoveCommand : public UndoCommand
{
public:
@@ -1027,6 +1037,12 @@ protected:
virtual void childEvent(QChildEvent *event) override;
void SetEffectInput(const QString &input, int element = -1)
{
effect_input_ = input;
effect_element_ = element;
}
void SetToolTip(const QString& s)
{
tooltip_ = s;
@@ -1342,6 +1358,11 @@ private:
QVector<NodeGizmo*> gizmos_;
QString effect_input_;
int effect_element_;
bool bypass_;
private slots:
/**
* @brief Slot when a keyframe's time changes to keep the keyframes correctly sorted by time