X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d774f9161c7f63060fbdfdcbcd3d60bf2fa65262..c8b1fdc0b52fbc0ce71ab54b4b8954643f788f2a:/include/wx/apptrait.h diff --git a/include/wx/apptrait.h b/include/wx/apptrait.h index c2ad503e72..ac132956f7 100644 --- a/include/wx/apptrait.h +++ b/include/wx/apptrait.h @@ -15,6 +15,7 @@ #include "wx/string.h" #include "wx/platinfo.h" +class WXDLLIMPEXP_BASE wxArrayString; class WXDLLIMPEXP_BASE wxObject; class WXDLLEXPORT wxAppTraits; #if wxUSE_FONTMAP @@ -24,6 +25,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; @@ -117,6 +120,10 @@ 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 // ------------------------------------------------------------------------ @@ -132,7 +139,21 @@ public: // return the name of the Desktop Environment such as // "KDE" or "GNOME". May return an empty string. - virtual wxString GetDesktopEnvironment() const { return wxEmptyString; } + virtual wxString GetDesktopEnvironment() const = 0; + + // returns a short string to identify the block of the standard command + // line options parsed automatically by current port: if this string is + // empty, there are no such options, otherwise the function also fills + // passed arrays with the names and the descriptions of those options. + virtual wxString GetStandardCmdLineOptions(wxArrayString& names, + wxArrayString& desc) const + { + wxUnusedVar(names); + wxUnusedVar(desc); + + return wxEmptyString; + } + protected: #if wxUSE_STACKWALKER && defined( __WXDEBUG__ ) @@ -208,6 +229,7 @@ public: } virtual bool IsUsingUniversalWidgets() const { return false; } + virtual wxString GetDesktopEnvironment() const { return wxEmptyString; } }; // ---------------------------------------------------------------------------- @@ -247,6 +269,8 @@ public: return false; #endif } + + virtual wxString GetDesktopEnvironment() const { return wxEmptyString; } }; #endif // wxUSE_GUI