keyframes: implemented deleting keyframes with the delete shortcut

This commit is contained in:
itsmattkc
2020-05-01 17:01:16 +10:00
parent ca323b7bfd
commit e67dabf1ff
12 changed files with 67 additions and 0 deletions
+5
View File
@@ -37,6 +37,11 @@ NodeInput *CurvePanel::GetInput() const
return static_cast<CurveWidget*>(GetTimeBasedWidget())->GetInput();
}
void CurvePanel::DeleteSelected()
{
static_cast<CurveWidget*>(GetTimeBasedWidget())->DeleteSelected();
}
void CurvePanel::SetInput(NodeInput *input)
{
static_cast<CurveWidget*>(GetTimeBasedWidget())->SetInput(input);
+2
View File
@@ -34,6 +34,8 @@ public:
NodeInput* GetInput() const;
virtual void DeleteSelected() override;
public slots:
void SetInput(NodeInput* input);
+5
View File
@@ -59,6 +59,11 @@ void ParamPanel::SetTimestamp(const int64_t &timestamp)
}
}
void ParamPanel::DeleteSelected()
{
static_cast<NodeParamView*>(GetTimeBasedWidget())->DeleteSelected();
}
void ParamPanel::Retranslate()
{
SetTitle(tr("Parameter Editor"));
+2
View File
@@ -38,6 +38,8 @@ public slots:
virtual void SetTimestamp(const int64_t& timestamp) override;
virtual void DeleteSelected() override;
signals:
void TimeTargetChanged(Node* node);