Audacity 3.2.0
GUISettings.h
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5@file GUISettings.h
6
7Paul Licameli split from GUIPrefs.h
8
9**********************************************************************/
10#ifndef __AUDACITY_GUI_SETTINGS__
11#define __AUDACITY_GUI_SETTINGS__
12
13// Right to left languages fail in many wx3 dialogs with missing buttons.
14// The workaround is to use LTR in those dialogs.
15#ifndef __WXMAC__
16#define RTL_WORKAROUND( pWnd ) \
17 if ( gPrefs->Read( "/GUI/RtlWorkaround", true) ) \
18 pWnd->SetLayoutDirection(wxLayout_LeftToRight);
19#else
20 #define RTL_WORKAROUND( pWnd )
21#endif
22
23class wxString;
24
25namespace GUISettings {
26
27// If no input language given, defaults to system language.
28// Returns the language actually used which is not lang if lang cannot be found.
29AUDACITY_DLL_API wxString SetLang( const wxString & lang );
30
31}
32
33#endif
AUDACITY_DLL_API wxString SetLang(const wxString &lang)
Definition: GUISettings.cpp:19