| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2020 Rerrah |
| 3 |
* SPDX-License-Identifier: MIT |
| 4 |
*/ |
| 5 |
|
| 6 |
#pragma once |
| 7 |
|
| 8 |
#include <memory> |
| 9 |
#include <string> |
| 10 |
#include "../abstract_command.hpp" |
| 11 |
#include "module.hpp" |
| 12 |
#include "vector_2d.hpp" |
| 13 |
|
| 14 |
class PasteInsertCopiedDataToPatternCommand final : public AbstractCommand |
| 15 |
{ |
| 16 |
public: |
| 17 |
PasteInsertCopiedDataToPatternCommand( |
| 18 |
std::weak_ptr<Module> mod, int songNum, int beginTrack, int beginColumn, |
| 19 |
int beginOrder, int beginStep, const Vector2d<std::string>& cells); |
| 20 |
bool redo() override; |
| 21 |
bool undo() override; |
| 22 |
|
| 23 |
private: |
| 24 |
std::weak_ptr<Module> mod_; |
| 25 |
int song_, track_, col_, order_, step_; |
| 26 |
Vector2d<std::string> cells_, prevCells_; |
| 27 |
}; |