moved GetLayoutDirection() to GUI wxApp, it has nothing to do in wxAppConsole

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-11 22:34:53 +00:00
parent 78041f2e65
commit 475a93b76a
3 changed files with 24 additions and 21 deletions

View File

@@ -157,6 +157,8 @@ void wxAppBase::CleanUp()
#endif // wxUSE_THREADS
}
// ----------------------------------------------------------------------------
// various accessors
// ----------------------------------------------------------------------------
wxWindow* wxAppBase::GetTopWindow() const
@@ -172,6 +174,24 @@ wxVideoMode wxAppBase::GetDisplayMode() const
return wxVideoMode();
}
wxLayoutDirection wxAppBase::GetLayoutDirection() const
{
#if wxUSE_INTL
const wxLocale *const locale = wxGetLocale();
if ( locale )
{
const wxLanguageInfo *const
info = wxLocale::GetLanguageInfo(locale->GetLanguage());
if ( info )
return info->LayoutDirection;
}
#endif // wxUSE_INTL
// we don't know
return wxLayout_Default;
}
#if wxUSE_CMDLINE_PARSER
// ----------------------------------------------------------------------------