wxTranslationHelper Class Reference

manages locale setting/finding with user interface More...

#include <wxTranslationHelper.h>

Public Member Functions

 wxTranslationHelper (wxApp &app, const wxString &search_path)
 ~wxTranslationHelper ()
wxLocale * GetLocale ()
void GetInstalledLanguages (wxArrayString &names, wxArrayLong &identifiers, int &current_selected)
 put names and ID for all found .mo files
bool AskUserForLanguage (wxArrayString &names, wxArrayLong &identifiers, int selected_index)
bool Load ()
void Save ()
const wxStringGetSearchPath () const
void SetSearchPath (const wxString &value)

Private Member Functions

 wxTranslationHelper (const wxTranslationHelper &)

Private Attributes

wxApp & m_App
wxString m_SearchPath
wxLocale * m_Locale
bool m_UseNativeConfig

Detailed Description

manages locale setting/finding with user interface

Definition at line 15 of file wxTranslationHelper.h.


Constructor & Destructor Documentation

wxTranslationHelper::wxTranslationHelper ( wxApp &  app,
const wxString search_path 
)

Definition at line 14 of file wxTranslationHelper.cpp.

wxTranslationHelper::~wxTranslationHelper (  ) 

Definition at line 24 of file wxTranslationHelper.cpp.

wxTranslationHelper::wxTranslationHelper ( const wxTranslationHelper  )  [private]

Member Function Documentation

bool wxTranslationHelper::AskUserForLanguage ( wxArrayString &  names,
wxArrayLong &  identifiers,
int  selected_index 
)

Definition at line 140 of file wxTranslationHelper.cpp.

void wxTranslationHelper::GetInstalledLanguages ( wxArrayString &  names,
wxArrayLong &  identifiers,
int &  current_selected 
)

put names and ID for all found .mo files

Parameters:
current_selected will contain the index of currently in settings selected languageID in name/identifiers array, or -1 if notfound

Definition at line 86 of file wxTranslationHelper.cpp.

wxLocale * wxTranslationHelper::GetLocale (  ) 

Definition at line 33 of file wxTranslationHelper.cpp.

const wxString & wxTranslationHelper::GetSearchPath (  )  const

Definition at line 38 of file wxTranslationHelper.cpp.

bool wxTranslationHelper::Load (  ) 

Definition at line 52 of file wxTranslationHelper.cpp.

void wxTranslationHelper::Save (  ) 

Definition at line 80 of file wxTranslationHelper.cpp.

void wxTranslationHelper::SetSearchPath ( const wxString value  ) 

Definition at line 43 of file wxTranslationHelper.cpp.


Field Documentation

wxApp& wxTranslationHelper::m_App [private]

Definition at line 36 of file wxTranslationHelper.h.

wxLocale* wxTranslationHelper::m_Locale [private]

Definition at line 38 of file wxTranslationHelper.h.

Definition at line 37 of file wxTranslationHelper.h.

Definition at line 39 of file wxTranslationHelper.h.


The documentation for this class was generated from the following files:

Generated on Thu Dec 29 00:11:50 2011 for SpringLobby by doxygen 1.6.3