diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-18 19:45:49 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-18 19:45:49 -0200 |
commit | ddb262a4d6bed48ac68eeed99032e10c49c02996 (patch) | |
tree | 909a1097285e9b34bc2dd5110f35a1c059a9c494 /Project/ControlEditorBitmaps.cpp | |
parent | 69131a727782090ffd7cb467f449e8f26d3d2949 (diff) | |
download | PSP.git-ddb262a4d6bed48ac68eeed99032e10c49c02996.tar.gz PSP.git-ddb262a4d6bed48ac68eeed99032e10c49c02996.tar.xz PSP.git-ddb262a4d6bed48ac68eeed99032e10c49c02996.zip |
Control editor implementation start
Diffstat (limited to 'Project/ControlEditorBitmaps.cpp')
-rw-r--r-- | Project/ControlEditorBitmaps.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Project/ControlEditorBitmaps.cpp b/Project/ControlEditorBitmaps.cpp new file mode 100644 index 0000000..00574d7 --- /dev/null +++ b/Project/ControlEditorBitmaps.cpp @@ -0,0 +1,49 @@ +// +// This file was automatically generated by wxrc, do not edit by hand. +// + +#include <wx/wxprec.h> + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + +#include <wx/filesys.h> +#include <wx/fs_mem.h> +#include <wx/xrc/xmlres.h> +#include <wx/xrc/xh_all.h> + +#if wxCHECK_VERSION(2,8,5) && wxABI_VERSION >= 20805 + #define XRC_ADD_FILE(name, data, size, mime) \ + wxMemoryFSHandler::AddFileWithMimeType(name, data, size, mime) +#else + #define XRC_ADD_FILE(name, data, size, mime) \ + wxMemoryFSHandler::AddFile(name, data, size) +#endif + +static size_t xml_res_size_0 = 137; +static unsigned char xml_res_file_0[] = { +60,63,120,109,108,32,118,101,114,115,105,111,110,61,34,49,46,48,34,32,101, +110,99,111,100,105,110,103,61,34,85,84,70,45,56,34,63,62,10,60,114,101, +115,111,117,114,99,101,32,120,109,108,110,115,61,34,104,116,116,112,58, +47,47,119,119,119,46,119,120,119,105,100,103,101,116,115,46,111,114,103, +47,119,120,120,114,99,34,62,10,32,32,60,33,45,45,32,72,97,110,100,108,101, +114,32,71,101,110,101,114,97,116,105,111,110,32,105,115,32,79,78,32,45, +45,62,10,60,47,114,101,115,111,117,114,99,101,62,10}; + +void wxC870InitBitmapResources() +{ + + // Check for memory FS. If not present, load the handler: + { + wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), wxT("dummy one")); + wxFileSystem fsys; + wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file")); + wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file")); + if (f) delete f; + else wxFileSystem::AddHandler(new wxMemoryFSHandlerBase); + } + + XRC_ADD_FILE(wxT("XRC_resource/ControlEditorBitmaps.cpp$C__Users_Thales_Documents_GitHub_PSP_Project_ControlEditorBitmaps.xrc"), xml_res_file_0, xml_res_size_0, wxT("text/xml")); + wxXmlResource::Get()->Load(wxT("memory:XRC_resource/ControlEditorBitmaps.cpp$C__Users_Thales_Documents_GitHub_PSP_Project_ControlEditorBitmaps.xrc")); +} |