Debian Codegraph @

BambooTracker/command/pattern/interpolate_pattern_command.hpp

raw
1 /*
2 * SPDX-FileCopyrightText: 2018 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 InterpolatePatternCommand final : public AbstractCommand
15 {
16 public:
17 InterpolatePatternCommand(std::weak_ptr<Module> mod, int songNum,
18 int beginTrack, int beginColumn, int beginOrder, int beginStep,
19 int endTrack, int endColumn, int endStep);
20 bool redo() override;
21 bool undo() override;
22
23 private:
24 std::weak_ptr<Module> mod_;
25 int song_, bTrack_, bCol_, order_, bStep_;
26 int eStep_;
27 Vector2d<std::string> prevCells_;
28 };