SetDocumentSynopsisCommand.h header

#include <ew/core/SetDocumentSynopsisCommand.h>

Namespace ew::core

SetDocumentSynopsisCommand class

class ew::core::SetDocumentSynopsisCommand

Command that sets a document's synopsis. Undo restores the previous synopsis and redo re-applies the new one.

Members

ew::core::SetDocumentSynopsisCommand::SetDocumentSynopsisCommand(Document &document, QString synopsis)

Creates a command that sets document's synopsis to synopsis when applied.

ew::core::SetDocumentSynopsisCommand::~SetDocumentSynopsisCommand() override

Destroys the command.

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

Records the current synopsis and sets the new one.

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

Restores the previous synopsis.

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

Returns a short description for the undo/redo UI.