SetLanguagePhonotacticsCommand.h header
#include <ew/core/SetLanguagePhonotacticsCommand.h>
Namespace ew::core
SetLanguagePhonotacticsCommand class
class ew::core::SetLanguagePhonotacticsCommand
Command that replaces a language's structured phonotactics (its sound categories, syllable templates, constraints, and rewrite rules) in one undoable step – the finer-grained counterpart to SetLanguageCommand for the phonotactics/word-generator sub-editor, so refining the rules does not snapshot the whole language payload on every change. Undo restores the previous phonotactics; redo re-applies the new one.
Members
ew::core::SetLanguagePhonotacticsCommand::SetLanguagePhonotacticsCommand(Language &language, Phonotactics phonotactics)
Creates a command that, when applied, replaces language's phonotactics with phonotactics.
ew::core::SetLanguagePhonotacticsCommand::~SetLanguagePhonotacticsCommand() override
Destroys the command.
void ew::core::SetLanguagePhonotacticsCommand::apply() override
Records the language's current phonotactics and applies the new one.
void ew::core::SetLanguagePhonotacticsCommand::undo() override
Restores the previous phonotactics.
QString ew::core::SetLanguagePhonotacticsCommand::description() const override
Returns a short description for the undo/redo UI.