2 #include "core/tool.hpp"
3 #include "canvas/selectables.hpp"
4 #include "util/placement.hpp"
5 #include "tool_helper_collect_nets.hpp"
11 using ToolBase::ToolBase;
20 std::set<InToolActionID> get_actions()
const override
22 using I = InToolActionID;
24 I::LMB, I::CANCEL, I::RMB, I::ENTER_DATUM, I::TOGGLE_ANGLE_SNAP,
34 void expand_selection();
36 void save_placements();
37 void apply_placements_rotation(
int angle);
38 void apply_placements_scale(
double sc);
39 enum class State { ORIGIN, ROTATE, REF, SCALE };
40 State state = State::ORIGIN;
41 std::map<SelectableRef, Placement> placements;
42 std::map<UUID, double> decal_scales;
43 class CanvasAnnotation *annotation =
nullptr;
45 void update_airwires(
bool fast);