added wxArtProvider::InsertProvider to accompany PushProvider
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -112,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();
|
||||
|
||||
@@ -152,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.
|
||||
@@ -160,6 +165,9 @@ protected:
|
||||
const wxArtClient& WXUNUSED(client),
|
||||
const wxSize& WXUNUSED(size)) = 0;
|
||||
|
||||
private:
|
||||
static void InitProvidersList();
|
||||
|
||||
private:
|
||||
// list of providers:
|
||||
static wxArtProvidersList *sm_providers;
|
||||
|
Reference in New Issue
Block a user