SetDocumentStatusCommand.h header
#include <ew/core/SetDocumentStatusCommand.h>
Namespace ew::core
SetDocumentStatusCommand class
class ew::core::SetDocumentStatusCommand
Command that sets a document's workflow status. Undo restores the previous status and redo re-applies the new one.
Members
ew::core::SetDocumentStatusCommand::SetDocumentStatusCommand(Document &document, QString status)
Creates a command that sets document's status to status when applied.
ew::core::SetDocumentStatusCommand::~SetDocumentStatusCommand() override
Destroys the command.
void ew::core::SetDocumentStatusCommand::apply() override
Records the current status and sets the new one.
void ew::core::SetDocumentStatusCommand::undo() override
Restores the previous status.
QString ew::core::SetDocumentStatusCommand::description() const override
Returns a short description for the undo/redo UI.