began UI for keyframing

Largely extending the existing NodeParamView with functionality from the
previous release.
This commit is contained in:
itsmattkc
2019-12-25 01:20:46 +11:00
parent aac8c5ec17
commit dc6d498da8
19 changed files with 454 additions and 2 deletions
+11
View File
@@ -27,6 +27,7 @@
NodeInput::NodeInput(const QString& id) :
NodeParam(id),
keyframable_(true),
keyframing_(false),
dependent_(true),
has_minimum_(false),
@@ -241,6 +242,16 @@ void NodeInput::set_is_keyframing(bool k)
keyframing_ = k;
}
bool NodeInput::is_keyframable() const
{
return keyframable_;
}
void NodeInput::set_is_keyframable(bool k)
{
keyframable_ = k;
}
const QVariant &NodeInput::minimum() const
{
return minimum_;
+15
View File
@@ -98,6 +98,16 @@ public:
*/
void set_is_keyframing(bool k);
/**
* @brief Return whether this input can be keyframed or not
*/
bool is_keyframable() const;
/**
* @brief Set whether this input can be keyframed or not
*/
void set_is_keyframable(bool k);
const QVariant& minimum() const;
bool has_minimum() const;
void set_minimum(const QVariant& min);
@@ -122,6 +132,11 @@ private:
*/
DataType data_type_;
/**
* @brief Internal keyframable value
*/
bool keyframable_;
/**
* @brief Internal keyframe array
*