| 1 |
#ifndef BITMAPLOADER_H |
| 2 |
#define BITMAPLOADER_H |
| 3 |
|
| 4 |
#include <map> |
| 5 |
#include <wx/bitmap.h> |
| 6 |
#include <wx/filename.h> |
| 7 |
#include <wx/string.h> |
| 8 |
|
| 9 |
namespace wxCrafter |
| 10 |
{ |
| 11 |
class ResourceLoader |
| 12 |
{ |
| 13 |
protected: |
| 14 |
static std::map<wxString, wxBitmap> m_bitmaps; |
| 15 |
static std::map<wxString, wxString> m_files; |
| 16 |
|
| 17 |
public: |
| 18 |
ResourceLoader(const wxString& skin = wxT("wxgui")); |
| 19 |
virtual ~ResourceLoader(); |
| 20 |
|
| 21 |
const wxBitmap& Bitmap(const wxString& name) const; |
| 22 |
wxString File(const wxString& name) const; |
| 23 |
/** |
| 24 |
* @brief return the path to a temporary image place holder |
| 25 |
*/ |
| 26 |
wxFileName GetPlaceHolderImagePath() const; |
| 27 |
wxFileName GetPlaceHolder16ImagePath() const; |
| 28 |
}; |
| 29 |
} // namespace wxCrafter |
| 30 |
|
| 31 |
#endif // BITMAPLOADER_H |