X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db70a2f20ac7b47299fe7ab66bae9ef613a0fe6b..85f138db83939ce7c59a942aaecca7fa98168db3:/include/wx/artprov.h diff --git a/include/wx/artprov.h b/include/wx/artprov.h index 26c324b8e9..934f343c24 100644 --- a/include/wx/artprov.h +++ b/include/wx/artprov.h @@ -12,7 +12,7 @@ #ifndef _WX_ARTPROV_H_ #define _WX_ARTPROV_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "artprov.h" #endif @@ -22,6 +22,7 @@ class WXDLLEXPORT wxArtProvidersList; class WXDLLEXPORT wxArtProviderCache; +class wxArtProviderModule; // ---------------------------------------------------------------------------- // Types @@ -30,8 +31,10 @@ class WXDLLEXPORT wxArtProviderCache; typedef wxString wxArtClient; typedef wxString wxArtID; -#define wxART_MAKE_CLIENT_ID(id) _T(#id)_T("_C") -#define wxART_MAKE_ART_ID(id) _T(#id) +#define wxART_MAKE_CLIENT_ID_FROM_STR(id) (wxString(id)+_T("_C")) +#define wxART_MAKE_CLIENT_ID(id) _T(#id) _T("_C") +#define wxART_MAKE_ART_ID_FROM_STR(id) (id) +#define wxART_MAKE_ART_ID(id) _T(#id) // ---------------------------------------------------------------------------- // Art clients @@ -44,6 +47,7 @@ typedef wxString wxArtID; #define wxART_CMN_DIALOG wxART_MAKE_CLIENT_ID(wxART_CMN_DIALOG) #define wxART_HELP_BROWSER wxART_MAKE_CLIENT_ID(wxART_HELP_BROWSER) #define wxART_MESSAGE_BOX wxART_MAKE_CLIENT_ID(wxART_MESSAGE_BOX) +#define wxART_BUTTON wxART_MAKE_CLIENT_ID(wxART_BUTTON) #define wxART_OTHER wxART_MAKE_CLIENT_ID(wxART_OTHER) @@ -81,6 +85,7 @@ typedef wxString wxArtID; #define wxART_QUESTION wxART_MAKE_ART_ID(wxART_QUESTION) #define wxART_WARNING wxART_MAKE_ART_ID(wxART_WARNING) #define wxART_INFORMATION wxART_MAKE_ART_ID(wxART_INFORMATION) +#define wxART_MISSING_IMAGE wxART_MAKE_ART_ID(wxART_MISSING_IMAGE) // ---------------------------------------------------------------------------- // wxArtProvider class @@ -111,10 +116,15 @@ public: const wxArtClient& client = wxART_OTHER, const wxSize& size = wxDefaultSize); +protected: + friend class wxArtProviderModule; + // Initializes default provider + static void InitStdProvider(); + // Initializes platform's native provider, if available (e.g. GTK2) + static void InitNativeProvider(); // Destroy caches & all providers static void CleanUpProviders(); -protected: // Derived classes must override this method to create requested // art resource. This method is called only once per instance's // lifetime for each requested wxArtID.