Horizon
Loading...
Searching...
No Matches
tool_helper_draw_net_setting.hpp
1#pragma once
2#include "core/tool.hpp"
3
4namespace horizon {
5
6class ToolHelperDrawNetSetting : public virtual ToolBase {
7public:
8 using ToolBase::ToolBase;
9 class Settings : public ToolSettings {
10 public:
11 json serialize() const override;
12 void load_from_json(const json &j) override;
13 uint64_t net_label_size = 1.5_mm;
14 };
15
16 std::map<ToolID, ToolSettings *> get_all_settings() override;
17
18protected:
19 void step_net_label_size(bool up);
20 void ask_net_label_size();
21
22 Settings settings;
23};
24} // namespace horizon
Common interface for all Tools.
Definition tool_pub.hpp:94
Definition tool_helper_draw_net_setting.hpp:9
Definition tool_helper_draw_net_setting.hpp:6
Definition tool_pub.hpp:82
a class to store JSON values
Definition json.hpp:177