SetPlotThreadsCommand.h header

#include <ew/core/SetPlotThreadsCommand.h>

Namespace ew::core

SetPlotThreadsCommand class

class ew::core::SetPlotThreadsCommand

Command that replaces the project's plot-thread registry – the narrative through-lines (plot lines and character arcs) scenes are tagged with – as produced by the Plot Threads dock when a thread is added, renamed, recoloured, or removed. Undo restores the previous registry and redo re-applies the new one.

Members

ew::core::SetPlotThreadsCommand::SetPlotThreadsCommand(Project &project, std::vector< PlotThread > plotThreads)

Creates a command that sets project's plot-thread registry to plotThreads when applied.

ew::core::SetPlotThreadsCommand::~SetPlotThreadsCommand() override

Destroys the command.

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

Records the project's current registry and applies the new one.

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

Restores the previous registry.

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

Returns a short description for the undo/redo UI.