Debian Codegraph @

BambooTracker/command/pattern/delete_previous_step_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
13 class DeletePreviousStepCommand final : public AbstractCommand
14 {
15 public:
16 DeletePreviousStepCommand(std::weak_ptr<Module> mod, int songNum, int trackNum,
17 int orderNum, int stepNum);
18 bool redo() override;
19 bool undo() override;
20
21 private:
22 std::weak_ptr<Module> mod_;
23 int song_, track_, order_, step_;
24 int prevNote_, prevInst_, prevVol_;
25 Step::PlainEffect prevEff_[Step::N_EFFECT];
26 };