X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/406011a83dd46464cf615fb1988b5f6dee07366d..c764029c20f8edf64dcbe9fc3649773c3063227a:/include/wx/artprov.h diff --git a/include/wx/artprov.h b/include/wx/artprov.h index daa2e428f7..535d6767fa 100644 --- a/include/wx/artprov.h +++ b/include/wx/artprov.h @@ -12,10 +12,6 @@ #ifndef _WX_ARTPROV_H_ #define _WX_ARTPROV_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "artprov.h" -#endif - #include "wx/string.h" #include "wx/bitmap.h" #include "wx/icon.h" @@ -116,9 +112,14 @@ typedef wxString wxArtID; class WXDLLEXPORT wxArtProvider : public wxObject { public: - // Add new provider to the top of providers stack. + // Add new provider to the top of providers stack (i.e. the provider will + // be querier first of all). static void PushProvider(wxArtProvider *provider); + // Add new provider to the bottom of providers stack (i.e. the provider + // will be queried as the last one). + static void InsertProvider(wxArtProvider *provider); + // Remove latest added provider and delete it. static bool PopProvider(); @@ -156,7 +157,7 @@ protected: { return GetSizeHint(client, true); } - + // 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. @@ -164,6 +165,9 @@ protected: const wxArtClient& WXUNUSED(client), const wxSize& WXUNUSED(size)) = 0; +private: + static void CommonAddingProvider(); + private: // list of providers: static wxArtProvidersList *sm_providers;