2 #include "core/tool.hpp"
7 using ToolBase::ToolBase;
12 std::set<InToolActionID> get_actions()
const override
14 using I = InToolActionID;
16 I::LMB, I::CANCEL, I::RMB, I::ROTATE, I::MIRROR, I::EDIT, I::AUTOPLACE_ALL_PINS, I::AUTOPLACE_NEXT_PIN,
22 json serialize()
const override;
23 void load_from_json(
const json &j)
override;
24 Orientation orientation = Orientation::RIGHT;
35 std::vector<std::pair<const class Pin *, bool>> pins;
36 std::optional<UUID> map_pin_dialog();
37 unsigned int pin_index = 0;
41 void create_pin(
const UUID &uu);
42 bool can_autoplace()
const;
45 void update_annotation();
Definition: annotation.hpp:7
Definition: symbol.hpp:20
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
a class to store JSON values
Definition: json.hpp:177