| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2018 Rerrah |
| 3 |
* SPDX-License-Identifier: MIT |
| 4 |
*/ |
| 5 |
|
| 6 |
#pragma once |
| 7 |
|
| 8 |
#include <memory> |
| 9 |
#include "../abstract_command.hpp" |
| 10 |
#include "instruments_manager.hpp" |
| 11 |
|
| 12 |
class DeepCloneInstrumentCommand final : public AbstractCommand |
| 13 |
{ |
| 14 |
public: |
| 15 |
DeepCloneInstrumentCommand(std::weak_ptr<InstrumentsManager> manager, int num, int refNum); |
| 16 |
bool redo() override; |
| 17 |
bool undo() override; |
| 18 |
|
| 19 |
private: |
| 20 |
std::weak_ptr<InstrumentsManager> manager_; |
| 21 |
int cloneInstNum_, refInstNum_; |
| 22 |
}; |