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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user