fix virtual function hiding for LoadFile(); replace a few more longs with wxBitmapTypes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -22,7 +22,7 @@ public:
|
|||||||
|
|
||||||
wxIcon(const char* const* data);
|
wxIcon(const char* const* data);
|
||||||
wxIcon(const char bits[], int width , int height );
|
wxIcon(const char bits[], int width , int height );
|
||||||
wxIcon(const wxString& name, int flags = wxICON_DEFAULT_TYPE,
|
wxIcon(const wxString& name, wxBitmapType flags = wxICON_DEFAULT_TYPE,
|
||||||
int desiredWidth = -1, int desiredHeight = -1);
|
int desiredWidth = -1, int desiredHeight = -1);
|
||||||
wxIcon(const wxIconLocation& loc)
|
wxIcon(const wxIconLocation& loc)
|
||||||
{
|
{
|
||||||
@@ -88,9 +88,16 @@ public:
|
|||||||
SetType(wxBITMAP_TYPE_ICON_RESOURCE);
|
SetType(wxBITMAP_TYPE_ICON_RESOURCE);
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
|
virtual bool LoadFile(wxBitmap *bitmap,
|
||||||
int desiredWidth = -1, int desiredHeight = -1);
|
const wxString& name,
|
||||||
|
wxBitmapType flags,
|
||||||
|
int desiredWidth = -1,
|
||||||
|
int desiredHeight = -1);
|
||||||
|
// unhide the base class virtual
|
||||||
|
virtual bool LoadFile(wxBitmap *bitmap,
|
||||||
|
const wxString& name,
|
||||||
|
wxBitmapType flags)
|
||||||
|
{ return LoadFile(bitmap, name, flags, -1, -1); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -97,10 +97,10 @@ wxIcon::wxIcon(const char* const* bits)
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxIcon::wxIcon(
|
wxIcon::wxIcon(
|
||||||
const wxString& icon_file, int flags,
|
const wxString& icon_file, wxBitmapType flags,
|
||||||
int desiredWidth, int desiredHeight )
|
int desiredWidth, int desiredHeight )
|
||||||
{
|
{
|
||||||
LoadFile( icon_file, (wxBitmapType) flags, desiredWidth, desiredHeight );
|
LoadFile( icon_file, flags, desiredWidth, desiredHeight );
|
||||||
}
|
}
|
||||||
|
|
||||||
wxIcon::wxIcon(WXHICON icon, const wxSize& size)
|
wxIcon::wxIcon(WXHICON icon, const wxSize& size)
|
||||||
@@ -305,7 +305,7 @@ void wxIcon::CopyFromBitmap( const wxBitmap& bmp )
|
|||||||
IMPLEMENT_DYNAMIC_CLASS(wxICONResourceHandler, wxBitmapHandler)
|
IMPLEMENT_DYNAMIC_CLASS(wxICONResourceHandler, wxBitmapHandler)
|
||||||
|
|
||||||
bool wxICONResourceHandler::LoadFile(
|
bool wxICONResourceHandler::LoadFile(
|
||||||
wxBitmap *bitmap, const wxString& name, long WXUNUSED(flags),
|
wxBitmap *bitmap, const wxString& name, wxBitmapType WXUNUSED(flags),
|
||||||
int desiredWidth, int desiredHeight )
|
int desiredWidth, int desiredHeight )
|
||||||
{
|
{
|
||||||
wxIcon icon ;
|
wxIcon icon ;
|
||||||
|
Reference in New Issue
Block a user