23 return ::CommandFactoryName<Scenario_T>();
25 const CommandKey& key()
const noexcept override {
return static_key(); }
26 QString description()
const override {
return QObject::tr(
"Remove a trigger"); }
37 : m_path{std::move(timeSyncPath)}
43 auto& tn = m_path.find(ctx);
46 for(
const auto& cmd : m_cmds)
55 auto& tn = m_path.find(ctx);
58 auto scenar = safe_cast<Scenario_T*>(tn.parent());
60 for(
const auto& cstrId : intervalsBeforeTimeSync(*scenar, tn.id()))
62 m_cmds.emplace_back(scenar->interval(cstrId),
true);
63 m_cmds.back().redo(ctx);
71 s << (int32_t)m_cmds.size();
73 for(
const auto& cmd : m_cmds)
84 for(
int i = 0; i < n; i++)
88 m_cmds[i].deserialize(a);
94 mutable std::vector<SetRigidity> m_cmds;
Definition DocumentContext.hpp:18