arranged items so they are inputs of folder rather than outputs

This commit is contained in:
itsmattkc
2021-03-12 12:22:19 +11:00
parent c885fbac5c
commit 500fb58d49
26 changed files with 281 additions and 309 deletions
+34
View File
@@ -46,6 +46,7 @@
namespace olive {
class NodeGraph;
class Folder;
/**
* @brief A single processing unit that can be connected with others to create intricate processing systems
@@ -155,6 +156,21 @@ public:
*/
virtual QString Description() const;
const QString& ToolTip() const
{
return tooltip_;
}
Folder* folder() const
{
return folder_;
}
virtual bool IsItem() const
{
return false;
}
/**
* @brief Function called to retranslate parameter names (should be overridden in derivatives)
*/
@@ -162,6 +178,10 @@ public:
virtual QIcon icon() const;
virtual QString duration() const {return QString();}
virtual QString rate() const {return QString();}
const QVector<QString>& inputs() const
{
return input_ids_;
@@ -718,6 +738,11 @@ public:
static bool Unlink(Node* a, Node* b);
static bool AreLinked(Node* a, Node* b);
void SetFolder(Folder* folder)
{
folder_ = folder;
}
static const QString kDefaultOutput;
protected:
@@ -819,6 +844,11 @@ protected:
virtual void childEvent(QChildEvent *event) override;
void SetToolTip(const QString& s)
{
tooltip_ = s;
}
signals:
/**
* @brief Signal emitted whenever the position is set through SetPosition()
@@ -1137,6 +1167,10 @@ private:
qint64 last_change_time_;
QString tooltip_;
Folder* folder_;
private slots:
/**
* @brief Slot when a keyframe's time changes to keep the keyframes correctly sorted by time