X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec6ac3eb94ee1b59a945b01bcb18090ec92afca7..5b72b3440180cf270f4518ff0e28ff56582438fb:/include/wx/apptrait.h diff --git a/include/wx/apptrait.h b/include/wx/apptrait.h index 8cd8cd4797..edce5bb945 100644 --- a/include/wx/apptrait.h +++ b/include/wx/apptrait.h @@ -19,26 +19,15 @@ class WXDLLEXPORT wxAppTraits; #endif // wxUSE_FONTMAP class WXDLLEXPORT wxLog; class WXDLLEXPORT wxMessageOutput; +class WXDLLEXPORT wxString; // ---------------------------------------------------------------------------- // wxAppTraits: this class defines various configurable aspects of wxApp // ---------------------------------------------------------------------------- -#if wxUSE_BASE class WXDLLIMPEXP_BASE wxAppTraitsBase -#else -class WXDLLIMPEXP_CORE wxAppTraitsBase -#endif { public: - // wxAppTraits is an ABC, but we also provide 2 standard implementations of - // it, one for the console apps and the other for the GUI ones - static wxAppTraits *CreateConsole(); -#if wxUSE_GUI - static wxAppTraits *CreateGUI(); -#endif // wxUSE_GUI - - // hooks for creating the global objects, may be overridden by the user // ------------------------------------------------------------------------ @@ -101,14 +90,17 @@ public: // include the platform-specific version of the class // ---------------------------------------------------------------------------- +// NB: test for __UNIX__ before __WXMAC__ as under Darwin we want to use the +// Unix code (and otherwise __UNIX__ wouldn't be defined) #if defined(__WXMSW__) #include "wx/msw/apptbase.h" #elif defined(__UNIX__) #include "wx/unix/apptbase.h" +#elif defined(__WXMAC__) + #include "wx/mac/apptbase.h" #else // no platform-specific methods to add to wxAppTraits - typedef // wxAppTraits must be a class because it was forward declared as class - class WXDLLEXPORT wxAppTraits : public wxAppTraitsBase + class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase { }; #endif // platform @@ -177,6 +169,8 @@ public: #include "wx/msw/apptrait.h" #elif defined(__UNIX__) #include "wx/unix/apptrait.h" +#elif defined(__WXMAC__) + #include "wx/mac/apptrait.h" #else // no platform-specific methods to add to wxAppTraits #if wxUSE_GUI typedef wxGUIAppTraitsBase wxGUIAppTraits;