Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros
ApplicationLanguageSwitcher.h File Reference
#include <functional>
#include "core/common/ESingleton.h"
#include "core/ApplicationLanguageManager.h"
Include dependency graph for ApplicationLanguageSwitcher.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OnLeavingScope
 The OnLeavingScope class - class which purpose is call assigned function, when class instance leaves its scope (when destructor is called) More...
 
class  ApplicationLanguageSwitcher
 The ApplicationLanguageSwitcher class - this class is used for temporary language changes, when only a single or a few texts needs to be translated to default (startup) language This class is a singleton, which enables you to use it wherever it is needed (ApplicationLanguageManager is accessible only within application states, but has same functionality to set temporary language). More...
 

Macros

#define SET_DEFAULT_TEMPORARY_LANGUAGE_WHILE_IN_SCOPE
 

Macro Definition Documentation

#define SET_DEFAULT_TEMPORARY_LANGUAGE_WHILE_IN_SCOPE
Value:
ApplicationLanguageSwitcher::GetInstance().SetDefaultTemporaryLanguage(); \
OnLeavingScope scope( [](){ return ApplicationLanguageSwitcher::GetInstance().ResetTemporaryLanguageToGlobal(); } );