mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
25 lines
287 B
C++
25 lines
287 B
C++
#pragma once
|
|
|
|
namespace NuakeEditor
|
|
{
|
|
class ICommand
|
|
{
|
|
protected:
|
|
bool mIsUndoable = false;
|
|
|
|
public:
|
|
ICommand() = default;
|
|
|
|
virtual bool Execute()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
virtual bool Undo()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool IsUndoable() const { return mIsUndoable; }
|
|
};
|
|
} |