SetObjectPlotThreadsCommand.h header
#include <ew/core/SetObjectPlotThreadsCommand.h>
Namespace ew::core
SetObjectPlotThreadsCommand class
class ew::core::SetObjectPlotThreadsCommand
Sets any content object's plot-thread membership (the base-level plotThreadIds), so a scene document, a timeline event, or an entity can be tagged with the plot lines / character arcs it belongs to. plotThreadIds is declared on ContentObject, so this one command covers every taggable type – there is deliberately no per-type variant, since a second command differing only in the static type of its pointer would be the same operation written twice. (Distinct from SetPlotThreadsCommand, which replaces the project's whole plot-thread REGISTRY.) Undoable.
Members
ew::core::plot::SetObjectPlotThreadsCommand::SetObjectPlotThreadsCommand(content::ContentObject &object, std::vector< QString > plotThreadIds)
Creates a command that sets object's plot-thread membership to plotThreadIds on apply.
ew::core::plot::SetObjectPlotThreadsCommand::~SetObjectPlotThreadsCommand() override
Destroys the command.
void ew::core::plot::SetObjectPlotThreadsCommand::apply() override
Records the object's current membership and applies the new list.
void ew::core::plot::SetObjectPlotThreadsCommand::undo() override
Restores the previous membership.
QString ew::core::plot::SetObjectPlotThreadsCommand::description() const override
Returns a short description for the undo/redo UI.