16class ArrangerTool :
public QObject
21 int toolValue READ toolValue WRITE setToolValue NOTIFY toolValueChanged)
24 enum ToolType : std::uint8_t
35 ArrangerTool (QObject * parent =
nullptr);
36 Z_DISABLE_COPY_MOVE (ArrangerTool)
37 ~ArrangerTool ()
override;
39 [[nodiscard]]
int toolValue ()
const;
40 void setToolValue (
int tool);
41 Q_SIGNAL
void toolValueChanged (
int tool);
43 friend void init_from (
45 const ArrangerTool &other,
49 friend void to_json (nlohmann::json &j,
const ArrangerTool &tool);
50 friend void from_json (
const nlohmann::json &j, ArrangerTool &tool);
53 ToolType tool_{ ToolType::Select };