Horizon
tool_map_symbol.hpp
1 #pragma once
2 #include "core.hpp"
3 #include "tool_helper_map_symbol.hpp"
4 #include "tool_helper_move.hpp"
5 
6 namespace horizon {
8 public:
9  ToolMapSymbol(Core *c, ToolID tid);
10  ToolResponse begin(const ToolArgs &args) override;
11  ToolResponse update(const ToolArgs &args) override;
12  bool can_begin() override;
13 
14 private:
15  void update_tip();
16  std::map<UUIDPath<2>, std::string> gates_out;
17  class SchematicSymbol *sym_current = nullptr;
18 };
19 } // namespace horizon
horizon::ToolHelperMove
Definition: tool_helper_move.hpp:6
horizon::SchematicSymbol
Definition: schematic_symbol.hpp:19
horizon::ToolHelperMapSymbol
Definition: tool_helper_map_symbol.hpp:5
horizon::Core
Where Tools and and documents meet.
Definition: core.hpp:240
horizon::ToolMapSymbol
Definition: tool_map_symbol.hpp:7
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition: core.hpp:52
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition: core.hpp:26
horizon::ToolMapSymbol::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition: tool_map_symbol.cpp:19
horizon::ToolMapSymbol::can_begin
bool can_begin() override
Definition: tool_map_symbol.cpp:14
horizon::ToolMapSymbol::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_map_symbol.cpp:92