2 #include "core/tool.hpp"
3 #include "tool_place_junction.hpp"
4 #include <forward_list>
8 class ToolPlaceBusLabel :
public ToolPlaceJunction {
10 ToolPlaceBusLabel(IDocument *c, ToolID tid);
12 std::set<InToolActionID> get_actions()
const override
14 using I = InToolActionID;
16 I::LMB, I::CANCEL, I::RMB, I::ROTATE, I::MIRROR,
21 void create_attached()
override;
22 void delete_attached()
override;
23 bool begin_attached()
override;
24 bool update_attached(
const ToolArgs &args)
override;
25 bool check_line(
class LineNet *li)
override;
26 class BusLabel *la =
nullptr;
27 Orientation last_orientation = Orientation::RIGHT;
28 std::forward_list<class BusLabel *> labels_placed;
29 class Bus *bus =
nullptr;