SetDocumentPlotThreadsCommand.h header
#include <ew/core/SetDocumentPlotThreadsCommand.h>
Namespace ew::core
SetDocumentPlotThreadsCommand class
class ew::core::SetDocumentPlotThreadsCommand
Command that sets which plot threads a scene belongs to – the ids of the Project's PlotThread registry entries the document is tagged with. Undo restores the previous membership and redo re-applies the new one.
Members
ew::core::SetDocumentPlotThreadsCommand::SetDocumentPlotThreadsCommand(Document &document, std::vector< QString > plotThreadIds)
Creates a command that sets document's plot-thread membership to plotThreadIds when applied.
ew::core::SetDocumentPlotThreadsCommand::~SetDocumentPlotThreadsCommand() override
Destroys the command.
void ew::core::SetDocumentPlotThreadsCommand::apply() override
Records the document's current membership and applies the new list.
void ew::core::SetDocumentPlotThreadsCommand::undo() override
Restores the previous membership.
QString ew::core::SetDocumentPlotThreadsCommand::description() const override
Returns a short description for the undo/redo UI.