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