git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25838
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxUSE_IMAGE
static void AddFile(const wxString& filename, wxImage& image, long type);
#if wxUSE_IMAGE
static void AddFile(const wxString& filename, wxImage& image, long type);
static void AddFile(const wxString& filename,
const wxBitmap& bitmap,
long type);
static void AddFile(const wxString& filename,
const wxBitmap& bitmap,
long type);
/*static*/ void wxMemoryFSHandler::AddFile(const wxString& filename, const wxBitmap& bitmap, long type)
{
/*static*/ void wxMemoryFSHandler::AddFile(const wxString& filename, const wxBitmap& bitmap, long type)
{
AddFile(filename, img, type);
}
AddFile(filename, img, type);
}
+#endif // wxUSE_IMAGE
+
+#endif // wxUSE_GUI
#endif // wxUSE_FILESYSTEM && wxUSE_FS_ZIP
#endif // wxUSE_FILESYSTEM && wxUSE_FS_ZIP
void wxIconBundle::AddIcon( const wxString& file, long type )
void wxIconBundle::AddIcon( const wxString& file, long type )
+#else
+void wxIconBundle::AddIcon( const wxString& WXUNUSED(file), long WXUNUSED(type) )
+#endif
{
#if wxUSE_IMAGE
size_t count = wxImage::GetImageCount( file, type );
{
#if wxUSE_IMAGE
size_t count = wxImage::GetImageCount( file, type );
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
bool wxRegion::Union(const wxBitmap& bmp,
const wxColour& transColour,
int tolerance)
bool wxRegion::Union(const wxBitmap& bmp,
const wxColour& transColour,
int tolerance)
+#else
+bool wxRegion::Union(const wxBitmap& WXUNUSED(bmp),
+ const wxColour& WXUNUSED(transColour),
+ int WXUNUSED(tolerance))
+#endif
{
#if wxUSE_IMAGE
unsigned char loR, loG, loB;
{
#if wxUSE_IMAGE
unsigned char loR, loG, loB;
#else
// No wxImage support
#else
// No wxImage support
return m_smallImageList;
}
return m_smallImageList;
}
+#if wxUSE_MIMETYPE && wxUSE_IMAGE
// VS: we don't need this function w/o wxMimeTypesManager because we'll only have
// one icon and we won't resize it
// VS: we don't need this function w/o wxMimeTypesManager because we'll only have
// one icon and we won't resize it
{
m_smallImageList->Add(bmp);
}
{
m_smallImageList->Add(bmp);
}
else
{
wxImage img = bmp.ConvertToImage();
else
{
wxImage img = bmp.ConvertToImage();
else
m_smallImageList->Add(CreateAntialiasedBitmap(img));
}
else
m_smallImageList->Add(CreateAntialiasedBitmap(img));
}
m_HashTable->Put(extension, new wxFileIconEntry(id));
return id;
m_HashTable->Put(extension, new wxFileIconEntry(id));
return id;
}
// Create from XPM data
}
// Create from XPM data
+#if wxUSE_IMAGE && wxUSE_XPM
bool wxBitmap::CreateFromXpm(const char **data)
bool wxBitmap::CreateFromXpm(const char **data)
+#else
+bool wxBitmap::CreateFromXpm(const char **WXUNUSED(data))
+#endif
{
#if wxUSE_IMAGE && wxUSE_XPM
Init();
{
#if wxUSE_IMAGE && wxUSE_XPM
Init();
wxMDIParentFrame::~wxMDIParentFrame()
{
// see comment in ~wxMDIChildFrame
wxMDIParentFrame::~wxMDIParentFrame()
{
// see comment in ~wxMDIChildFrame
m_frameStatusBar = NULL;
DestroyChildren();
m_frameStatusBar = NULL;
DestroyChildren();
{
// will be destroyed by DestroyChildren() but reset them before calling it
// to avoid using dangling pointers if a callback comes in the meanwhile
{
// will be destroyed by DestroyChildren() but reset them before calling it
// to avoid using dangling pointers if a callback comes in the meanwhile
m_frameStatusBar = NULL;
DestroyChildren();
m_frameStatusBar = NULL;
DestroyChildren();
lpPos->cx = rectClient.right - rectClient.left;
lpPos->cy = rectClient.bottom - rectClient.top;
}
lpPos->cx = rectClient.right - rectClient.left;
lpPos->cy = rectClient.bottom - rectClient.top;
}
wxMDIParentFrame* pFrameWnd = (wxMDIParentFrame *)GetParent();
if (pFrameWnd && pFrameWnd->GetToolBar() && pFrameWnd->GetToolBar()->IsShown())
{
pFrameWnd->GetToolBar()->Refresh();
}
wxMDIParentFrame* pFrameWnd = (wxMDIParentFrame *)GetParent();
if (pFrameWnd && pFrameWnd->GetToolBar() && pFrameWnd->GetToolBar()->IsShown())
{
pFrameWnd->GetToolBar()->Refresh();
}