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 timeline event or an entity can be tagged with the plot lines / character arcs it belongs to – the same cross-cutting axis a scene document carries. (A scene keeps using SetDocumentPlotThreadsCommand; this generalizes the operation to every other taggable object. Distinct from SetPlotThreadsCommand, which replaces the project's whole plot-thread REGISTRY.) Undoable.

Members

ew::core::SetObjectPlotThreadsCommand::SetObjectPlotThreadsCommand(ContentObject &object, std::vector< QString > plotThreadIds)

Creates a command that sets object's plot-thread membership to plotThreadIds on apply.

ew::core::SetObjectPlotThreadsCommand::~SetObjectPlotThreadsCommand() override

Destroys the command.

void ew::core::SetObjectPlotThreadsCommand::apply() override

Records the object's current membership and applies the new list.

void ew::core::SetObjectPlotThreadsCommand::undo() override

Restores the previous membership.

QString ew::core::SetObjectPlotThreadsCommand::description() const override

Returns a short description for the undo/redo UI.