[olympic/studio] Move UndoCommand to its own file

This commit is contained in:
2024-05-02 22:09:35 -05:00
parent acd93337d4
commit cdbc2d6cc8
3 changed files with 22 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
/*
* Copyright 2016 - 2024 Gary Talent (gary@drinkingtea.net). All rights reserved.
*/
#pragma once
namespace studio {
class UndoCommand {
public:
virtual ~UndoCommand() noexcept = default;
virtual void redo() noexcept = 0;
virtual void undo() noexcept = 0;
[[nodiscard]]
virtual int commandId() const noexcept = 0;
virtual bool mergeWith(UndoCommand const*cmd) noexcept;
};
}