Tool.hpp
1 #pragma once
2 
3 #include <verdigris>
4 namespace Scenario
5 {
6 enum class Tool : uint8_t
7 {
8  Disabled,
9  Create,
10  CreateGraph,
11  CreateSequence,
12  Select,
13  Play,
14  Playing,
15 };
16 
17 inline constexpr bool isCreationTool(Tool t) noexcept
18 {
19  switch(t)
20  {
21  case Tool::Create:
22  case Tool::CreateGraph:
23  case Tool::CreateSequence:
24  return true;
25  default:
26  return false;
27  }
28 }
29 }
30 Q_DECLARE_METATYPE(Scenario::Tool)
31 W_REGISTER_ARGTYPE(Scenario::Tool)
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14