Konsole
#include <KeyboardTranslatorManager.h>
Public Member Functions | |
KeyboardTranslatorManager () | |
~KeyboardTranslatorManager () | |
void | addTranslator (KeyboardTranslator *translator) |
QStringList | allTranslators () |
const KeyboardTranslator * | defaultTranslator () |
bool | deleteTranslator (const QString &name) |
const KeyboardTranslator * | findTranslator (const QString &name) |
Static Public Member Functions | |
static KeyboardTranslatorManager * | instance () |
Detailed Description
Manages the keyboard translations available for use by terminal sessions, see KeyboardTranslator.
Definition at line 41 of file KeyboardTranslatorManager.h.
Constructor & Destructor Documentation
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 35 of file KeyboardTranslatorManager.cpp.
KeyboardTranslatorManager::~KeyboardTranslatorManager | ( | ) |
Definition at line 42 of file KeyboardTranslatorManager.cpp.
Member Function Documentation
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 54 of file KeyboardTranslatorManager.cpp.
QStringList KeyboardTranslatorManager::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 188 of file KeyboardTranslatorManager.cpp.
const KeyboardTranslator * KeyboardTranslatorManager::defaultTranslator | ( | ) |
Returns the default translator for Konsole.
Definition at line 177 of file KeyboardTranslatorManager.cpp.
bool KeyboardTranslatorManager::deleteTranslator | ( | const QString & | name | ) |
Deletes a translator.
Returns true on successful deletion or false otherwise.
TODO: More documentation
Definition at line 63 of file KeyboardTranslatorManager.cpp.
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 .keytab file is loaded and parsed.
Definition at line 102 of file KeyboardTranslatorManager.cpp.
|
static |
Returns the global KeyboardTranslatorManager instance.
Definition at line 49 of file KeyboardTranslatorManager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.