Debian Codegraph @

BambooTracker/command/pattern/set_effect_id_to_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 SetEffectIDToStepCommand final : public AbstractCommand
14 {
15 public:
16 SetEffectIDToStepCommand(
17 std::weak_ptr<Module> mod, int songNum, int trackNum, int orderNum, int stepNum,
18 int n, std::string id, bool fillValue00, bool secondEntry);
19 bool redo() override;
20 bool undo() override;
21 bool mergeWith(const AbstractCommand* other) override;
22
23 private:
24 std::weak_ptr<Module> mod_;
25 const int song_, track_, order_, step_, n_;
26 std::string effID_, prevEffID_;
27 bool filledValue00_;
28 bool isSecondEntry_;
29 };