SetAudiencesCommand.h header
#include <ew/core/SetAudiencesCommand.h>
Namespace ew::core
SetAudiencesCommand class
class ew::core::SetAudiencesCommand
Command that replaces the project's audience registry – the named readerships (e.g. "Players", "GM") that per-object visibility can be scoped to – as produced by the Manage Audiences dialog. Undo restores the previous registry and redo re-applies the new one.
Members
ew::core::SetAudiencesCommand::SetAudiencesCommand(Project &project, std::vector< QString > audiences)
Creates a command that sets project's audience registry to audiences when applied.
ew::core::SetAudiencesCommand::~SetAudiencesCommand() override
Destroys the command.
void ew::core::SetAudiencesCommand::apply() override
Records the project's current registry and applies the new one.
void ew::core::SetAudiencesCommand::undo() override
Restores the previous registry.
QString ew::core::SetAudiencesCommand::description() const override
Returns a short description for the undo/redo UI.