14class ArrangerTool :
public QObject
19 int toolValue READ toolValue WRITE setToolValue NOTIFY toolValueChanged)
22 enum ToolType : std::uint8_t
33 ArrangerTool (QObject * parent =
nullptr);
34 Z_DISABLE_COPY_MOVE (ArrangerTool)
35 ~ArrangerTool ()
override;
37 [[nodiscard]]
int toolValue ()
const;
38 void setToolValue (
int tool);
39 Q_SIGNAL
void toolValueChanged (
int tool);
41 friend void init_from (
43 const ArrangerTool &other,
47 friend void to_json (nlohmann::json &j,
const ArrangerTool &tool);
48 friend void from_json (
const nlohmann::json &j, ArrangerTool &tool);
51 ToolType tool_{ ToolType::Select };