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