Audacity  3.0.3
GUISettings.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 GUISettings.h
6 
7 Paul Licameli
8  Moved a constant here from Envelope.h where it did not belong
9  Define the key string in one place here too
10 
11 **********************************************************************/
12 #ifndef __AUDACITY_GUI_SETTINGS__
13 #define __AUDACITY_GUI_SETTINGS__
14 
15 #define ENV_DB_KEY (wxT("/GUI/EnvdBRange"))
16 #define ENV_DB_RANGE 60
17 
18 // Right to left languages fail in many wx3 dialogs with missing buttons.
19 // The workaround is to use LTR in those dialogs.
20 #ifndef __WXMAC__
21 #define RTL_WORKAROUND( pWnd ) \
22  if ( gPrefs->Read( "/GUI/RtlWorkaround", true) ) \
23  pWnd->SetLayoutDirection(wxLayout_LeftToRight);
24 #else
25  #define RTL_WORKAROUND( pWnd )
26 #endif
27 
28 #endif