virtual wxString FindFirst(const wxString& spec, int flags = 0);
virtual wxString FindNext();
-private:
- static wxHashTable *m_Hash;
-
+protected:
static bool CheckHash(const wxString& filename);
+ static wxHashTable *m_Hash;
};
class wxMemoryFSHandler : public wxMemoryFSHandlerBase
#include "wx/bitmap.h"
#include "wx/fs_mem.h"
-#ifdef __WXBASE__
#ifndef WXPRECOMP
#include "wx/intl.h"
}
};
+#ifdef __WXBASE__
+
//--------------------------------------------------------------------------------
// wxMemoryFSHandler
#if wxUSE_IMAGE
/*static*/ void
-wxMemoryFSHandlerBase::AddFile(const wxString& filename, wxImage& image, long type)
+wxMemoryFSHandler::AddFile(const wxString& filename, wxImage& image, long type)
{
if (!CheckHash(filename)) return;
-
wxMemoryOutputStream mems;
if (image.Ok() && image.SaveFile(mems, (int)type))
m_Hash -> Put(filename, new MemFSHashObj(mems));