#include <uitranslator.h>
Inheritance diagram for UiFileTranslator:


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 |
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.
| UiFileTranslator::UiFileTranslator | ( | const char * | fn = 0 |
) |
Constructor.
| fn | the filename of the file containing the expressions |
| bool UiFileTranslator::load | ( | const char * | fn | ) |
Loads a file containing the expressions.
| fn | the filename to load the data from |
| const char * UiFileTranslator::translate | ( | const char * | expression | ) | [virtual] |
Translates an expression or text.
| expression | the text or expression to translate |
Implements UiTranslator.
1.5.1