SetLanguageWritingSystemCommand.h header

#include <ew/core/SetLanguageWritingSystemCommand.h>

Namespace ew::core

SetLanguageWritingSystemCommand class

class ew::core::SetLanguageWritingSystemCommand

Command that replaces a language's constructed writing system (its glyphs, direction, and ligatures) in one undoable step – the finer-grained counterpart to SetLanguageCommand for the conscript designer, so drawing or remapping a glyph does not snapshot the whole language payload on every change. Undo restores the previous writing system; redo re-applies the new one.

Members

ew::core::SetLanguageWritingSystemCommand::SetLanguageWritingSystemCommand(Language &language, WritingSystem writing)

Creates a command that, when applied, replaces language's writing system with writing.

ew::core::SetLanguageWritingSystemCommand::~SetLanguageWritingSystemCommand() override

Defaulted.

void ew::core::SetLanguageWritingSystemCommand::apply() override

Records the language's current writing system and applies the new one.

void ew::core::SetLanguageWritingSystemCommand::undo() override

Restores the previous writing system.

QString ew::core::SetLanguageWritingSystemCommand::description() const override

Returns a short description for the undo/redo UI.