SetDocumentRevisionBaselineCommand.h header

#include <ew/core/SetDocumentRevisionBaselineCommand.h>

Namespace ew::core

SetDocumentRevisionBaselineCommand class

class ew::core::SetDocumentRevisionBaselineCommand

Command that marks a screenplay revision: it stores the current script body as the document's revision baseline, so later edits are diffed against this draft and flagged as changes. Undo restores the previous baseline and redo re-applies the new one.

Members

ew::core::SetDocumentRevisionBaselineCommand::SetDocumentRevisionBaselineCommand(Document &document, QString baseline)

Creates a command that sets document's revision baseline to baseline when applied (typically the document's current body, captured at mark time).

ew::core::SetDocumentRevisionBaselineCommand::~SetDocumentRevisionBaselineCommand() override

Destroys the command.

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

Records the current baseline and sets the new one.

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

Restores the previous baseline.

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

Returns a short description for the undo/redo UI.