Horizon
tool_place_net_label.hpp
1 #pragma once
2 #include "core.hpp"
3 #include "schematic/net_label.hpp"
4 #include "tool_place_junction.hpp"
5 #include "tool_helper_draw_net_setting.hpp"
6 #include <forward_list>
7 
8 namespace horizon {
9 
11 public:
12  ToolPlaceNetLabel(Core *c, ToolID tid);
13  bool can_begin() override;
14 
15 protected:
16  std::forward_list<NetLabel *> labels_placed;
17  void create_attached() override;
18  void delete_attached() override;
19  bool begin_attached() override;
20  bool update_attached(const ToolArgs &args) override;
21  bool check_line(LineNet *li) override;
22  NetLabel *la = nullptr;
23  Orientation last_orientation = Orientation::RIGHT;
24  void apply_settings() override;
25 };
26 } // namespace horizon
horizon::ToolHelperDrawNetSetting
Definition: tool_helper_draw_net_setting.hpp:6
horizon::LineNet
LineNet is similar to Line, except it denotes electrical connection.
Definition: line_net.hpp:24
horizon::NetLabel
Displays the junction's Net name it is attached to.
Definition: net_label.hpp:21
horizon::Core
Where Tools and and documents meet.
Definition: core.hpp:240
horizon::ToolPlaceJunction
Definition: tool_place_junction.hpp:7
horizon::ToolPlaceNetLabel
Definition: tool_place_net_label.hpp:10
horizon::ToolPlaceNetLabel::can_begin
bool can_begin() override
Definition: tool_place_net_label.cpp:14
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition: core.hpp:26