X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db9febdf4171fdb57434e080f77dca8a02be1cca..55809d1394516044a90fa34b12070d0f3e9f1439:/include/wx/apptrait.h diff --git a/include/wx/apptrait.h b/include/wx/apptrait.h index 1513596cc7..06d77247b7 100644 --- a/include/wx/apptrait.h +++ b/include/wx/apptrait.h @@ -24,6 +24,8 @@ class WXDLLIMPEXP_BASE wxLog; class WXDLLIMPEXP_BASE wxMessageOutput; class WXDLLEXPORT wxRendererNative; class WXDLLIMPEXP_BASE wxString; +class WXDLLIMPEXP_BASE wxTimer; +class WXDLLIMPEXP_BASE wxTimerImpl; class GSocketGUIFunctionsTable; @@ -40,7 +42,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 +71,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 +119,14 @@ public: virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable() = 0; #endif +#if wxUSE_TIMER + // return platform and toolkit dependent wxTimer implementation + virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) = 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