SetReckoningsCommand.h header
#include <ew/core/SetReckoningsCommand.h>
Namespace ew::core
SetReckoningsCommand class
class ew::core::SetReckoningsCommand
Command that replaces the project's reckoning registry (TL-13) – the additional regional datings of the timeline (see Reckoning) – as produced by the reckonings manager when one is added, edited, or removed by pushing the new list. Undo restores the previous registry and redo re-applies the new one.
Members
ew::core::SetReckoningsCommand::SetReckoningsCommand(Project &project, std::vector< Reckoning > reckonings)
Creates a command that sets project's reckonings to reckonings when applied.
ew::core::SetReckoningsCommand::~SetReckoningsCommand() override
Defaulted.
void ew::core::SetReckoningsCommand::apply() override
Records the project's current reckonings and applies the new list.
void ew::core::SetReckoningsCommand::undo() override
Restores the previous reckonings.
QString ew::core::SetReckoningsCommand::description() const override
Returns a short description for the undo/redo UI.