Horizon
tool_edit_pad_parameter_set.hpp
1 #pragma once
2 #include "core/tool.hpp"
3 
4 namespace horizon {
5 
7 public:
8  using ToolBase::ToolBase;
9  ToolResponse begin(const ToolArgs &args) override;
10  ToolResponse update(const ToolArgs &args) override;
11  bool can_begin() override;
12  bool is_specific() override
13  {
14  return true;
15  }
16  std::set<InToolActionID> get_actions() const override
17  {
18  using I = InToolActionID;
19  return {
20  I::LMB,
21  };
22  }
23 
24 private:
25  std::set<class Pad *> pads;
26  void select_pads();
27  class PadParameterSetWindow *win = nullptr;
28  std::set<class Pad *> get_pads();
29 };
30 } // namespace horizon
This is what a Tool receives when the user did something.
Definition: tool.hpp:23
Common interface for all Tools.
Definition: tool.hpp:121
Definition: tool_edit_pad_parameter_set.hpp:6
bool can_begin() override
Definition: tool_edit_pad_parameter_set.cpp:10
bool is_specific() override
Definition: tool_edit_pad_parameter_set.hpp:12
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition: tool_edit_pad_parameter_set.cpp:26
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_edit_pad_parameter_set.cpp:45
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition: tool.hpp:42