Audacity
3.2.0
src
prefs
GUISettings.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
@file GUISettings.h
6
7
Paul 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
23
class
wxString;
24
25
namespace
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.
29
AUDACITY_DLL_API wxString
SetLang
(
const
wxString & lang );
30
31
}
32
33
#endif
GUISettings
Definition:
GUISettings.h:25
GUISettings::SetLang
AUDACITY_DLL_API wxString SetLang(const wxString &lang)
Definition:
GUISettings.cpp:19
Generated by
1.9.3