2 #include "core/tool.hpp"
3 #include "tool_helper_merge.hpp"
4 #include "tool_helper_move.hpp"
5 #include "nlohmann/json.hpp"
9 class ToolPaste :
public ToolHelperMove,
public ToolHelperMerge {
11 ToolPaste(IDocument *c, ToolID tid);
17 std::set<InToolActionID> get_actions()
const override
19 using I = InToolActionID;
21 I::LMB, I::CANCEL, I::RMB, I::ROTATE, I::MIRROR, I::RESTRICT,
26 void fix_layer(
int &la);
27 void apply_shift(Coordi &c,
const Coordi &cursor_pos);
30 class Picture *pic =
nullptr;
31 ToolResponse begin_paste(
const json &j,
const Coordi &cursor_pos);
a class to store JSON values
Definition: json.hpp:166