SetRunConfigurationsCommand.h header
#include <ew/core/SetRunConfigurationsCommand.h>
Namespace ew::core
SetRunConfigurationsCommand class
class ew::core::SetRunConfigurationsCommand
Command that replaces the project's named playthrough starting states. Undo restores the previous set.
One command for the whole set rather than one per configuration, matching SetSavedSearchesCommand: they are edited as a list, and a per-item command would make renaming one and deleting another two undo steps for a single gesture.
Members
ew::core::project::SetRunConfigurationsCommand::SetRunConfigurationsCommand(Project &project, std::vector< branching::RunConfiguration > configurations)
Creates a command that sets project's run configurations to configurations.
ew::core::project::SetRunConfigurationsCommand::~SetRunConfigurationsCommand() override
Destroys the command.
void ew::core::project::SetRunConfigurationsCommand::apply() override
Records the current configurations and applies the new ones.
void ew::core::project::SetRunConfigurationsCommand::undo() override
Restores the previous configurations.
QString ew::core::project::SetRunConfigurationsCommand::description() const override
Returns a short description for the undo/redo UI.
ew::core::foundation::OperationSubject ew::core::project::SetRunConfigurationsCommand::subject() const override
Returns the subject this command changes. See Command::subject().