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