00001
00002
00003
00004
00005 #include <wx/wxprec.h>
00006
00007 #ifdef __BORLANDC__
00008 #pragma hdrstop
00009 #endif
00010
00011 #include <wx/filesys.h>
00012 #include <wx/fs_mem.h>
00013 #include <wx/xrc/xmlres.h>
00014 #include <wx/xrc/xh_all.h>
00015
00016 #if wxCHECK_VERSION(2,8,5) && wxABI_VERSION >= 20805
00017 #define XRC_ADD_FILE(name, data, size, mime) \
00018 wxMemoryFSHandler::AddFileWithMimeType(name, data, size, mime)
00019 #else
00020 #define XRC_ADD_FILE(name, data, size, mime) \
00021 wxMemoryFSHandler::AddFile(name, data, size)
00022 #endif
00023
00024 static size_t xml_res_size_0 = 2675;
00025 static unsigned char xml_res_file_0[] = {
00026 60,63,120,109,108,32,118,101,114,115,105,111,110,61,34,49,46,48,34,32,101,
00027 110,99,111,100,105,110,103,61,34,73,83,79,45,56,56,53,57,45,49,53,34,63,
00028 62,10,60,114,101,115,111,117,114,99,101,62,10,32,32,60,111,98,106,101,99,
00029 116,32,99,108,97,115,115,61,34,119,120,80,97,110,101,108,34,32,110,97,109,
00030 101,61,34,67,97,112,116,117,114,101,80,97,110,101,108,34,62,10,32,32,32,
00031 32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,120,66,111,120,
00032 83,105,122,101,114,34,62,10,32,32,32,32,32,32,60,111,114,105,101,110,116,
00033 62,119,120,86,69,82,84,73,67,65,76,60,47,111,114,105,101,110,116,62,10,
00034 32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,115,
00035 105,122,101,114,105,116,101,109,34,62,10,32,32,32,32,32,32,32,32,60,102,
00036 108,97,103,62,119,120,65,76,73,71,78,95,67,69,78,84,69,82,124,119,120,76,
00037 69,70,84,124,119,120,82,73,71,72,84,124,119,120,84,79,80,60,47,102,108,
00038 97,103,62,10,32,32,32,32,32,32,32,32,60,98,111,114,100,101,114,62,53,60,
00039 47,98,111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,60,111,98,106,101,
00040 99,116,32,99,108,97,115,115,61,34,119,120,66,111,120,83,105,122,101,114,
00041 34,62,10,32,32,32,32,32,32,32,32,32,32,60,111,114,105,101,110,116,62,119,
00042 120,72,79,82,73,90,79,78,84,65,76,60,47,111,114,105,101,110,116,62,10,32,
00043 32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,
00044 61,34,115,105,122,101,114,105,116,101,109,34,62,10,32,32,32,32,32,32,32,
00045 32,32,32,32,32,60,102,108,97,103,62,119,120,65,76,73,71,78,95,67,69,78,
00046 84,69,82,124,119,120,65,76,76,60,47,102,108,97,103,62,10,32,32,32,32,32,
00047 32,32,32,32,32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,111,114,100,
00048 101,114,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,
00049 116,32,99,108,97,115,115,61,34,119,120,66,117,116,116,111,110,34,32,110,
00050 97,109,101,61,34,83,116,97,114,116,66,117,116,116,111,110,34,62,10,32,32,
00051 32,32,32,32,32,32,32,32,32,32,32,32,60,116,111,111,108,116,105,112,62,83,
00052 116,97,114,116,32,99,97,112,116,117,114,105,110,103,60,47,116,111,111,108,
00053 116,105,112,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,108,97,98,
00054 101,108,62,38,97,109,112,59,83,116,97,114,116,60,47,108,97,98,101,108,62,
00055 10,32,32,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,
00056 32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,
00057 32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,
00058 115,105,122,101,114,105,116,101,109,34,62,10,32,32,32,32,32,32,32,32,32,
00059 32,32,32,60,102,108,97,103,62,119,120,65,76,73,71,78,95,67,69,78,84,69,
00060 82,124,119,120,65,76,76,60,47,102,108,97,103,62,10,32,32,32,32,32,32,32,
00061 32,32,32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,111,114,100,101,
00062 114,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,
00063 32,99,108,97,115,115,61,34,119,120,66,117,116,116,111,110,34,32,110,97,
00064 109,101,61,34,83,116,111,112,66,117,116,116,111,110,34,62,10,32,32,32,32,
00065 32,32,32,32,32,32,32,32,32,32,60,116,111,111,108,116,105,112,62,83,116,
00066 111,112,32,99,97,112,116,117,114,105,110,103,60,47,116,111,111,108,116,
00067 105,112,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,108,97,98,101,
00068 108,62,83,38,97,109,112,59,116,111,112,60,47,108,97,98,101,108,62,10,32,
00069 32,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,
00070 32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,
00071 32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,60,47,111,
00072 98,106,101,99,116,62,10,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,
00073 108,97,115,115,61,34,115,105,122,101,114,105,116,101,109,34,62,10,32,32,
00074 32,32,32,32,32,32,60,102,108,97,103,62,119,120,71,82,79,87,124,119,120,
00075 65,76,73,71,78,95,67,69,78,84,69,82,95,86,69,82,84,73,67,65,76,124,119,
00076 120,76,69,70,84,124,119,120,82,73,71,72,84,124,119,120,66,79,84,84,79,77,
00077 60,47,102,108,97,103,62,10,32,32,32,32,32,32,32,32,60,98,111,114,100,101,
00078 114,62,53,60,47,98,111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,60,
00079 111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,120,66,111,120,83,
00080 105,122,101,114,34,62,10,32,32,32,32,32,32,32,32,32,32,60,111,114,105,101,
00081 110,116,62,119,120,72,79,82,73,90,79,78,84,65,76,60,47,111,114,105,101,
00082 110,116,62,10,32,32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,
00083 99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,109,34,62,10,32,
00084 32,32,32,32,32,32,32,32,32,32,32,60,111,112,116,105,111,110,62,49,60,47,
00085 111,112,116,105,111,110,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,102,
00086 108,97,103,62,119,120,65,68,74,85,83,84,95,77,73,78,83,73,90,69,124,119,
00087 120,65,76,73,71,78,95,67,69,78,84,69,82,60,47,102,108,97,103,62,10,32,32,
00088 32,32,32,32,32,32,32,32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,
00089 111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,111,98,
00090 106,101,99,116,32,99,108,97,115,115,61,34,119,120,84,101,120,116,67,116,
00091 114,108,34,32,110,97,109,101,61,34,67,111,109,109,101,110,116,84,101,120,
00092 116,67,116,114,108,34,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,
00093 115,105,122,101,62,56,48,44,45,49,60,47,115,105,122,101,62,10,32,32,32,
00094 32,32,32,32,32,32,32,32,32,32,32,60,116,111,111,108,116,105,112,62,69,110,
00095 116,101,114,32,99,111,109,109,101,110,116,32,102,111,114,32,97,100,100,
00096 105,110,103,60,47,116,111,111,108,116,105,112,62,10,32,32,32,32,32,32,32,
00097 32,32,32,32,32,32,32,60,118,97,108,117,101,47,62,10,32,32,32,32,32,32,32,
00098 32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,32,32,
00099 32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,32,32,32,32,60,
00100 111,98,106,101,99,116,32,99,108,97,115,115,61,34,115,105,122,101,114,105,
00101 116,101,109,34,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,102,108,97,
00102 103,62,119,120,65,76,73,71,78,95,67,69,78,84,69,82,124,119,120,76,69,70,
00103 84,124,119,120,84,79,80,124,119,120,66,79,84,84,79,77,60,47,102,108,97,
00104 103,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,98,111,114,100,101,114,
00105 62,53,60,47,98,111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,32,32,
00106 32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,120,66,117,
00107 116,116,111,110,34,32,110,97,109,101,61,34,67,111,109,109,101,110,116,66,
00108 117,116,116,111,110,34,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,
00109 60,116,111,111,108,116,105,112,62,65,100,100,115,32,99,111,109,109,101,
00110 110,116,32,116,111,32,98,111,111,116,115,116,114,97,112,32,116,101,115,
00111 116,32,99,97,115,101,60,47,116,111,111,108,116,105,112,62,10,32,32,32,32,
00112 32,32,32,32,32,32,32,32,32,32,60,108,97,98,101,108,62,38,97,109,112,59,
00113 65,100,100,32,67,111,109,109,101,110,116,60,47,108,97,98,101,108,62,10,
00114 32,32,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,
00115 32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,
00116 32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,60,47,111,
00117 98,106,101,99,116,62,10,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,
00118 108,97,115,115,61,34,115,105,122,101,114,105,116,101,109,34,62,10,32,32,
00119 32,32,32,32,32,32,60,111,112,116,105,111,110,62,49,60,47,111,112,116,105,
00120 111,110,62,10,32,32,32,32,32,32,32,32,60,102,108,97,103,62,119,120,71,82,
00121 79,87,124,119,120,65,76,73,71,78,95,67,69,78,84,69,82,95,86,69,82,84,73,
00122 67,65,76,124,119,120,65,76,76,60,47,102,108,97,103,62,10,32,32,32,32,32,
00123 32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,111,114,100,101,114,62,
00124 10,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,
00125 61,34,119,120,84,101,120,116,67,116,114,108,34,32,110,97,109,101,61,34,
00126 76,111,103,103,105,110,103,84,101,120,116,67,116,114,108,34,62,10,32,32,
00127 32,32,32,32,32,32,32,32,60,115,105,122,101,62,52,48,48,44,49,53,48,60,47,
00128 115,105,122,101,62,10,32,32,32,32,32,32,32,32,32,32,60,115,116,121,108,
00129 101,62,119,120,84,69,95,77,85,76,84,73,76,73,78,69,124,119,120,84,69,95,
00130 82,69,65,68,79,78,76,89,124,119,120,84,69,95,80,82,79,67,69,83,83,95,84,
00131 65,66,60,47,115,116,121,108,101,62,10,32,32,32,32,32,32,32,32,32,32,60,
00132 116,111,111,108,116,105,112,62,69,118,101,110,116,32,99,97,112,116,117,
00133 114,101,32,108,111,103,60,47,116,111,111,108,116,105,112,62,10,32,32,32,
00134 32,32,32,32,32,32,32,60,118,97,108,117,101,47,62,10,32,32,32,32,32,32,32,
00135 32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,60,47,111,98,106,
00136 101,99,116,62,10,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,
00137 115,115,61,34,115,105,122,101,114,105,116,101,109,34,62,10,32,32,32,32,
00138 32,32,32,32,60,102,108,97,103,62,119,120,65,76,73,71,78,95,67,69,78,84,
00139 69,82,124,119,120,65,76,76,60,47,102,108,97,103,62,10,32,32,32,32,32,32,
00140 32,32,60,98,111,114,100,101,114,62,53,60,47,98,111,114,100,101,114,62,10,
00141 32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,
00142 34,119,120,66,117,116,116,111,110,34,32,110,97,109,101,61,34,69,120,105,
00143 116,66,117,116,116,111,110,34,62,10,32,32,32,32,32,32,32,32,32,32,60,116,
00144 111,111,108,116,105,112,62,69,120,105,116,32,99,97,112,116,117,114,105,
00145 110,103,60,47,116,111,111,108,116,105,112,62,10,32,32,32,32,32,32,32,32,
00146 32,32,60,108,97,98,101,108,62,69,38,97,109,112,59,120,105,116,60,47,108,
00147 97,98,101,108,62,10,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,
00148 62,10,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,60,
00149 47,111,98,106,101,99,116,62,10,32,32,60,47,111,98,106,101,99,116,62,10,
00150 60,47,114,101,115,111,117,114,99,101,62,10};
00151
00152 void InitCapturePanelXRC()
00153 {
00154
00155
00156 {
00157 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), wxT("dummy one"));
00158 wxFileSystem fsys;
00159 wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file"));
00160 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
00161 if (f) delete f;
00162 else wxFileSystem::AddHandler(new wxMemoryFSHandler);
00163 }
00164
00165 XRC_ADD_FILE(wxT("XRC_resource/CapturePanel.cpp$.._.._src_xrc_CapturePanel2_wdr.xrc"), xml_res_file_0, xml_res_size_0, _T("text/xml"));
00166 wxXmlResource::Get()->Load(wxT("memory:XRC_resource/CapturePanel.cpp$.._.._src_xrc_CapturePanel2_wdr.xrc"));
00167 }