Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXTranslator Class Reference

The translator class translates a message to another language. More...

#include <FXTranslator.h>

Inheritance diagram for FX::FXTranslator:

FX::FXObject List of all members.

Public Member Functions

 FXTranslator (FXApp *a)
FXAppgetApp () const
virtual const FXchartr (const FXchar *context, const FXchar *message, const FXchar *hint=NULL) const
void setTextCodec (FXTextCodec *cdc)
FXTextCodecgetTextCodec () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXTranslator ()

Detailed Description

The translator class translates a message to another language.


Constructor & Destructor Documentation

FX::FXTranslator::FXTranslator FXApp a  ) 
 

Construct translator.

virtual FX::FXTranslator::~FXTranslator  )  [virtual]
 

Destructor.


Member Function Documentation

FXApp* FX::FXTranslator::getApp  )  const [inline]
 

Get application.

virtual const FXchar* FX::FXTranslator::tr const FXchar context,
const FXchar message,
const FXchar hint = NULL
const [virtual]
 

Translate a string.

void FX::FXTranslator::setTextCodec FXTextCodec cdc  )  [inline]
 

Change text codec used to decode the messages embedded in the source.

FXTextCodec* FX::FXTranslator::getTextCodec  )  const [inline]
 

Return text codec.

virtual void FX::FXTranslator::save FXStream store  )  const [virtual]
 

Save translator to a stream.

Reimplemented from FX::FXObject.

virtual void FX::FXTranslator::load FXStream store  )  [virtual]
 

Load translator from a stream.

Reimplemented from FX::FXObject.

Copyright © 1997-2005 Jeroen van der Zijp