SetBarkCollectionTitleCommand.h header
#include <ew/core/SetBarkCollectionTitleCommand.h>
Namespace ew::core
SetBarkCollectionTitleCommand class
class ew::core::SetBarkCollectionTitleCommand
Command that renames a bark collection. Undo restores the previous title.
Its own command rather than folded into SetBarksCommand, because a title and a list of barks are two different edits: a project-wide find-and-replace may rewrite one, the other, or both, and a command that always carried both would make an untouched list part of every rename's undo record.
Members
ew::core::branching::SetBarkCollectionTitleCommand::SetBarkCollectionTitleCommand(BarkCollection &collection, QString title)
Creates a command that titles collection title when applied.
ew::core::branching::SetBarkCollectionTitleCommand::~SetBarkCollectionTitleCommand() override
Destroys the command.
void ew::core::branching::SetBarkCollectionTitleCommand::apply() override
Records the collection's current title and applies the new one.
void ew::core::branching::SetBarkCollectionTitleCommand::undo() override
Restores the previous title.
QString ew::core::branching::SetBarkCollectionTitleCommand::description() const override
Returns a short description for the undo/redo UI.
ew::core::foundation::OperationSubject ew::core::branching::SetBarkCollectionTitleCommand::subject() const override
Returns the subject this command changes. See Command::subject().