X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21d3d3424b9b076849792aca8ac39087053cadb2..e4e83f385a58f00b1f97315ebd80f380d16ae472:/include/wx/apptrait.h diff --git a/include/wx/apptrait.h b/include/wx/apptrait.h index 3595571c28..c2ad503e72 100644 --- a/include/wx/apptrait.h +++ b/include/wx/apptrait.h @@ -40,7 +40,7 @@ public: // needed since this class declares virtual members virtual ~wxAppTraitsBase() { } - // hooks for creating the global objects, may be overridden by the user + // hooks for working with the global objects, may be overridden by the user // ------------------------------------------------------------------------ #if wxUSE_LOG @@ -69,6 +69,13 @@ public: virtual wxStandardPathsBase& GetStandardPaths(); #endif // wxUSE_STDPATHS +#if wxUSE_INTL + // called during wxApp initialization to set the locale to correspond to + // the user default (i.e. system locale under Windows, LC_ALL under Unix) + virtual void SetLocale(); +#endif // wxUSE_INTL + + // functions abstracting differences between GUI and console modes // ------------------------------------------------------------------------ @@ -110,6 +117,10 @@ public: virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable() = 0; #endif + + // functions returning port-specific information + // ------------------------------------------------------------------------ + // return information about the (native) toolkit currently used and its // runtime (not compile-time) version. // returns wxPORT_BASE for console applications and one of the remaining @@ -118,10 +129,16 @@ public: // return true if the port is using wxUniversal for the GUI, false if not virtual bool IsUsingUniversalWidgets() const = 0; - - // return the name of the Desktop Environment such as + + // return the name of the Desktop Environment such as // "KDE" or "GNOME". May return an empty string. virtual wxString GetDesktopEnvironment() const { return wxEmptyString; } + +protected: +#if wxUSE_STACKWALKER && defined( __WXDEBUG__ ) + // utility function: returns the stack frame as a plain wxString + virtual wxString GetAssertStackTrace(); +#endif }; // ----------------------------------------------------------------------------