SetDocumentPointOfViewCommand.h header

#include <ew/core/SetDocumentPointOfViewCommand.h>

Namespace ew::core

SetDocumentPointOfViewCommand class

class ew::core::SetDocumentPointOfViewCommand

Command that sets a document's point-of-view character. Undo restores the previous value and redo re-applies the new one.

Members

ew::core::SetDocumentPointOfViewCommand::SetDocumentPointOfViewCommand(Document &document, QString pointOfView)

Creates a command that sets document's point of view to pointOfView when applied.

ew::core::SetDocumentPointOfViewCommand::~SetDocumentPointOfViewCommand() override

Destroys the command.

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

Records the current point of view and sets the new one.

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

Restores the previous point of view.

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

Returns a short description for the undo/redo UI.