/* * SPDX-FileCopyrightText: 2018 Rerrah * SPDX-License-Identifier: MIT */ #pragma once #include #include #include "../abstract_command.hpp" #include "module.hpp" #include "vector_2d.hpp" class ExpandPatternCommand final : public AbstractCommand { public: ExpandPatternCommand(std::weak_ptr mod, int songNum, int beginTrack, int beginColumn, int beginOrder, int beginStep, int endTrack, int endColumn, int endStep); bool redo() override; bool undo() override; private: std::weak_ptr mod_; int song_, bTrack_, bCol_, order_, bStep_; Vector2d prevCells_; };