UiFileTranslator Class Reference
[User interface]

Translation class, which reads the expressions from a text based file. More...

#include <uitranslator.h>

Inheritance diagram for UiFileTranslator:

Inheritance graph
[legend]
Collaboration diagram for UiFileTranslator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DECLSPEC UiFileTranslator (const char *fn=0)
DECLSPEC bool load (const char *fn)
virtual DECLSPEC const char * translate (const char *expression)

Classes

struct  EXPRESSION

Detailed Description

Translation class, which reads the expressions from a text based file.

Required header file:

 #include <uitranslator.h> 

This class makes translating expressions easy by loading a text based file, that can easily be edited with a text editor. It is currently used by UiFileTheme.

See also:
UiFileTheme


Constructor & Destructor Documentation

UiFileTranslator::UiFileTranslator ( const char *  fn = 0  ) 

Constructor.

Parameters:
fn the filename of the file containing the expressions


Member Function Documentation

bool UiFileTranslator::load ( const char *  fn  ) 

Loads a file containing the expressions.

Parameters:
fn the filename to load the data from
Returns:
true, if successful; if failed, false

const char * UiFileTranslator::translate ( const char *  expression  )  [virtual]

Translates an expression or text.

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

Implements UiTranslator.


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