2 #include "core/tool.hpp"
3 #include "tool_helper_line_width_setting.hpp"
4 #include "tool_helper_restrict.hpp"
8 class ToolDrawLine :
public ToolHelperLineWidthSetting,
public ToolHelperRestrict {
10 ToolDrawLine(IDocument *c, ToolID tid);
14 std::set<InToolActionID> get_actions()
const override
16 using I = InToolActionID;
18 I::LMB, I::CANCEL, I::RMB, I::RESTRICT, I::ENTER_WIDTH,
22 void apply_settings()
override;
25 class Junction *temp_junc = 0;
26 class Line *temp_line = 0;
28 bool first_line =
true;
29 std::set<const Junction *> junctions_created;
30 void do_move(
const Coordi &c);