UiTranslator Class Reference
[User interface]

Base class for doing translation. More...

#include <uitranslator.h>

Inheritance diagram for UiTranslator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

DECLSPEC UiTranslator (const char *language=0)
const char * getLanguage () const
virtual const char * translate (const char *expression)=0

Protected Member Functions

DECLSPEC void setLanguage (const char *lang)

Detailed Description

Base class for doing translation.

This class contains (partially virtual) functions for managing translation of some text or expressions. It also is used (in UiFileTheme) to translate the keyboard's keys.
It is currently only used by UiFileTheme, but is very useful when designing a new theme class.

See also:
UiFileTranslator, UiFileTheme


Constructor & Destructor Documentation

UiTranslator::UiTranslator ( const char *  language = 0  ) 

Constructor.

Parameters:
language the language, to which the translator can convert text; may be NULL, if the derived class sets the language.


Member Function Documentation

const char* UiTranslator::getLanguage (  )  const [inline]

Returns:
the language to which the object can translate text

virtual const char* UiTranslator::translate ( const char *  expression  )  [pure virtual]

Translates an expression or text.

Parameters:
expression the text or expression to translate
Returns:
the translated expression/text

Implemented in UiFileTranslator.

void UiTranslator::setLanguage ( const char *  lang  )  [protected]

Changes the language to which the translator converts text/expressions. (It changes only the language's name, it does not change the translated expressions)


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:37 2007 for netrinjo by  doxygen 1.5.1