Konsole::KeyboardTranslatorManager
#include <KeyboardTranslator.h>
Public Member Functions | |
| KeyboardTranslatorManager () | |
| KeyboardTranslatorManager (const KeyboardTranslatorManager &)=delete | |
| void | addTranslator (KeyboardTranslator *translator) |
| QList< QString > | allTranslators () |
| const KeyboardTranslator * | defaultTranslator () |
| bool | deleteTranslator (const QString &name) |
| const KeyboardTranslator * | findTranslator (const QString &name) |
| KeyboardTranslatorManager & | operator= (const KeyboardTranslatorManager &)=delete |
Static Public Member Functions | |
| static KeyboardTranslatorManager * | instance () |
Detailed Description
Manages the keyboard translations available for use by terminal sessions, see KeyboardTranslator.
Definition at line 431 of file KeyboardTranslator.h.
Constructor & Destructor Documentation
◆ KeyboardTranslatorManager()
| KeyboardTranslatorManager::KeyboardTranslatorManager | ( | ) |
Constructs a new KeyboardTranslatorManager and loads the list of available keyboard translations.
The keyboard translations themselves are not loaded until they are first requested via a call to findTranslator()
Definition at line 56 of file KeyboardTranslator.cpp.
◆ ~KeyboardTranslatorManager()
| KeyboardTranslatorManager::~KeyboardTranslatorManager | ( | ) |
Definition at line 61 of file KeyboardTranslator.cpp.
Member Function Documentation
◆ addTranslator()
| void KeyboardTranslatorManager::addTranslator | ( | KeyboardTranslator * | translator | ) |
Adds a new translator.
If a translator with the same name already exists, it will be replaced by the new translator.
TODO: More documentation.
Definition at line 851 of file KeyboardTranslator.cpp.
◆ allTranslators()
Returns a list of the names of available keyboard translators.
The first time this is called, a search for available translators is started.
Definition at line 553 of file KeyboardTranslator.cpp.
◆ defaultTranslator()
| const KeyboardTranslator * KeyboardTranslatorManager::defaultTranslator | ( | ) |
Returns the default translator for Konsole.
Definition at line 161 of file KeyboardTranslator.cpp.
◆ deleteTranslator()
| bool KeyboardTranslatorManager::deleteTranslator | ( | const QString & | name | ) |
Deletes a translator.
Returns true on successful deletion or false otherwise.
TODO: More documentation
Definition at line 858 of file KeyboardTranslator.cpp.
◆ findTranslator()
| const KeyboardTranslator * KeyboardTranslatorManager::findTranslator | ( | const QString & | name | ) |
Returns the keyboard translator with the given name or 0 if no translator with that name exists.
The first time that a translator with a particular name is requested, the on-disk .keyboard file is loaded and parsed.
Definition at line 99 of file KeyboardTranslator.cpp.
◆ instance()
|
static |
Returns the global KeyboardTranslatorManager instance.
Definition at line 873 of file KeyboardTranslator.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 11:55:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.