SetDocumentSceneInstantCommand.h header

#include <ew/core/SetDocumentSceneInstantCommand.h>

Namespace ew::core

SetDocumentSceneInstantCommand class

class ew::core::SetDocumentSceneInstantCommand

Command that sets a document's scene instant – when the scene is set in story time (std::nullopt clears it). Undo restores the previous value and redo re-applies the new one.

Members

ew::core::SetDocumentSceneInstantCommand::SetDocumentSceneInstantCommand(Document &document, std::optional< qint64 > sceneInstant)

Creates a command that sets document's scene instant to sceneInstant when applied.

ew::core::SetDocumentSceneInstantCommand::~SetDocumentSceneInstantCommand() override

Destroys the command.

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

Records the current scene instant and sets the new one.

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

Restores the previous scene instant.

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

Returns a short description for the undo/redo UI.