• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::KeyboardTranslatorManager

Konsole::KeyboardTranslatorManager Class Reference

#include <KeyboardTranslator.h>

List of all members.


Detailed Description

Manages the keyboard translations available for use by terminal sessions, see KeyboardTranslator.

Definition at line 443 of file KeyboardTranslator.h.


Public Member Functions

void addTranslator (KeyboardTranslator *translator)
QList< QString > allTranslators ()
const KeyboardTranslator * defaultTranslator ()
bool deleteTranslator (const QString &name)
const KeyboardTranslator * findTranslator (const QString &name)
 KeyboardTranslatorManager ()
 ~KeyboardTranslatorManager ()

Static Public Member Functions

static KeyboardTranslatorManager * instance ()

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 48 of file KeyboardTranslator.cpp.

KeyboardTranslatorManager::~KeyboardTranslatorManager (  ) 

Definition at line 52 of file KeyboardTranslator.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 861 of file KeyboardTranslator.cpp.

QList< QString > 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 562 of file KeyboardTranslator.cpp.

const KeyboardTranslator * KeyboardTranslatorManager::defaultTranslator (  ) 

Returns the default translator for Konsole.

Definition at line 143 of file KeyboardTranslator.cpp.

bool KeyboardTranslatorManager::deleteTranslator ( const QString &  name  ) 

Deletes a translator.

Returns true on successful deletion or false otherwise.

TODO: More documentation

Definition at line 869 of file KeyboardTranslator.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 .keyboard file is loaded and parsed.

Definition at line 83 of file KeyboardTranslator.cpp.

KeyboardTranslatorManager * KeyboardTranslatorManager::instance (  )  [static]

Returns the global KeyboardTranslatorManager instance.

Definition at line 887 of file KeyboardTranslator.cpp.


The documentation for this class was generated from the following files:
  • KeyboardTranslator.h
  • KeyboardTranslator.cpp

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal