Scenario::Command::CreateInterval Class Referencefinal

The CreateEventAfterEventCommand class. More...

Inheritance diagram for Scenario::Command::CreateInterval:
score::Command

Detailed Description

The CreateEventAfterEventCommand class.

This Command creates a interval and another event in a scenario, starting from an event selected by the user.

Public Member Functions

 CreateInterval (const Scenario::ProcessModel &scenarioPath, Id< StateModel > startState, Id< StateModel > endState, bool graphal=false)
 
CreateIntervaloperator= (CreateInterval &&)=default
 
const Path< Scenario::ProcessModel > & scenarioPath () const
 
void undo (const score::DocumentContext &ctx) const override
 
void redo (const score::DocumentContext &ctx) const override
 
const Id< IntervalModel > & createdInterval () const
 
const Id< StateModel > & startState () const
 
- Public Member Functions inherited from score::Command
virtual const CommandGroupKeyparentKey () const noexcept=0
 
virtual const CommandKeykey () const noexcept=0
 
QByteArray serialize () const
 
void deserialize (const QByteArray &)
 
virtual QString description () const =0
 

Protected Member Functions

void serializeImpl (DataStreamInput &) const override
 
void deserializeImpl (DataStreamOutput &) override
 

The documentation for this class was generated from the following files: