// Called from wxExit() function, should terminate the application a.s.a.p.
virtual void Exit();
- // Return the layout direction for the current locale
- virtual wxLayoutDirection GetLayoutDirection() const;
-
// application info: name, description, vendor
// -------------------------------------------
virtual void SetPrintMode(int WXUNUSED(mode)) { }
int GetPrintMode() const { return wxPRINT_POSTSCRIPT; }
+ // Return the layout direction for the current locale or wxLayout_Default
+ // if it's unknown
+ virtual wxLayoutDirection GetLayoutDirection() const;
+
// command line parsing (GUI-specific)
// ------------------------------------------------------------------------
exit(-1);
}
-wxLayoutDirection wxAppConsole::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;
-}
-
// ----------------------------------------------------------------------------
// traits stuff
// ----------------------------------------------------------------------------
#endif // wxUSE_THREADS
}
+// ----------------------------------------------------------------------------
+// various accessors
// ----------------------------------------------------------------------------
wxWindow* wxAppBase::GetTopWindow() 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
// ----------------------------------------------------------------------------