implemented keyframe type changing

Implemented the UI to change a keyframe's type along with the ValueChanged
signals that should result.
This commit is contained in:
itsmattkc
2019-12-27 16:37:06 +11:00
parent 855fe5e93f
commit 3e3963dfaa
11 changed files with 171 additions and 7 deletions
+16 -3
View File
@@ -1,11 +1,24 @@
#ifndef KEYFRAMEVIEWUNDO_H
#define KEYFRAMEVIEWUNDO_H
#include <QUndoCommand>
class KeyframeViewUndo
{
#include "node/keyframe.h"
class KeyframeSetTypeCommand : public QUndoCommand {
public:
KeyframeViewUndo();
KeyframeSetTypeCommand(NodeKeyframePtr key, NodeKeyframe::Type type, QUndoCommand* parent = nullptr);
virtual void redo() override;
virtual void undo() override;
private:
NodeKeyframePtr key_;
NodeKeyframe::Type old_type_;
NodeKeyframe::Type new_type_;
};
#endif // KEYFRAMEVIEWUNDO_H