aboutsummaryrefslogtreecommitdiff
path: root/src/commands/insert_cell.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/insert_cell.hpp')
-rw-r--r--src/commands/insert_cell.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/commands/insert_cell.hpp b/src/commands/insert_cell.hpp
new file mode 100644
index 0000000..cf04203
--- /dev/null
+++ b/src/commands/insert_cell.hpp
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "interfaces/command.hpp"
+#include "interfaces/cursor.hpp"
+#include "interfaces/scene.hpp"
+
+#include <memory>
+
+class InsertCellCommand : public ICommand
+{
+public:
+ InsertCellCommand(const std::shared_ptr<ICursorController> &cursor_controller,
+ const std::shared_ptr<IScene> &scene) noexcept;
+
+ void execute() noexcept override;
+
+private:
+ const std::shared_ptr<ICursorController> &_cursor_controller;
+ const std::shared_ptr<IScene> &_scene;
+};