25 return ::CommandFactoryName<Scenario_T>();
27 const CommandKey& key()
const noexcept override {
return static_key(); }
28 QString description()
const override {
return QObject::tr(
"Add a trigger"); }
41 Scenario_T* scenar = safe_cast<Scenario_T*>(tn.parent());
42 for(
const auto& cstrId : intervalsBeforeTimeSync(*scenar, tn.id()))
44 m_cmds.emplace_back(scenar->interval(cstrId),
false);
50 auto& tn = m_path.find(ctx);
53 for(
const auto& cmd : m_cmds)
61 auto& tn = m_path.find(ctx);
64 for(
const auto& cmd : m_cmds)
74 s << (int32_t)m_cmds.size();
76 for(
const auto& cmd : m_cmds)
88 for(
int i = 0; i < n; i++)
92 m_cmds[i].deserialize(a);
98 std::vector<SetRigidity> m_cmds;
Definition DocumentContext.hpp:18