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 = 3876;
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,86,116,107,67,97,112,116,117,114,101,80,97,110,101,108,34,62,
00031 10,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,
00032 120,66,111,120,83,105,122,101,114,34,62,10,32,32,32,32,32,32,60,111,114,
00033 105,101,110,116,62,119,120,86,69,82,84,73,67,65,76,60,47,111,114,105,101,
00034 110,116,62,10,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,
00035 115,61,34,115,105,122,101,114,105,116,101,109,34,62,10,32,32,32,32,32,32,
00036 32,32,60,102,108,97,103,62,119,120,65,76,73,71,78,95,67,69,78,84,69,82,
00037 124,119,120,76,69,70,84,124,119,120,82,73,71,72,84,124,119,120,84,79,80,
00038 60,47,102,108,97,103,62,10,32,32,32,32,32,32,32,32,60,98,111,114,100,101,
00039 114,62,53,60,47,98,111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,60,
00040 111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,120,66,111,120,83,
00041 105,122,101,114,34,62,10,32,32,32,32,32,32,32,32,32,32,60,111,114,105,101,
00042 110,116,62,119,120,72,79,82,73,90,79,78,84,65,76,60,47,111,114,105,101,
00043 110,116,62,10,32,32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,
00044 99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,109,34,62,10,32,
00045 32,32,32,32,32,32,32,32,32,32,32,60,102,108,97,103,62,119,120,65,76,73,
00046 71,78,95,67,69,78,84,69,82,124,119,120,65,76,76,60,47,102,108,97,103,62,
00047 10,32,32,32,32,32,32,32,32,32,32,32,32,60,98,111,114,100,101,114,62,53,
00048 60,47,98,111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,32,32,32,32,
00049 60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,120,66,117,116,
00050 116,111,110,34,32,110,97,109,101,61,34,83,116,97,114,116,66,117,116,116,
00051 111,110,34,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,116,111,111,
00052 108,116,105,112,62,83,116,97,114,116,32,99,97,112,116,117,114,105,110,103,
00053 60,47,116,111,111,108,116,105,112,62,10,32,32,32,32,32,32,32,32,32,32,32,
00054 32,32,32,60,108,97,98,101,108,62,38,97,109,112,59,83,116,97,114,116,60,
00055 47,108,97,98,101,108,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,47,111,
00056 98,106,101,99,116,62,10,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,
00057 101,99,116,62,10,32,32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,
00058 32,99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,109,34,62,10,
00059 32,32,32,32,32,32,32,32,32,32,32,32,60,102,108,97,103,62,119,120,65,76,
00060 73,71,78,95,67,69,78,84,69,82,124,119,120,65,76,76,60,47,102,108,97,103,
00061 62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,98,111,114,100,101,114,62,
00062 53,60,47,98,111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,32,32,32,
00063 32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,120,66,117,116,
00064 116,111,110,34,32,110,97,109,101,61,34,83,116,111,112,66,117,116,116,111,
00065 110,34,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,116,111,111,108,
00066 116,105,112,62,83,116,111,112,32,99,97,112,116,117,114,105,110,103,60,47,
00067 116,111,111,108,116,105,112,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,
00068 32,60,108,97,98,101,108,62,83,38,97,109,112,59,116,111,112,60,47,108,97,
00069 98,101,108,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,
00070 99,116,62,10,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,
00071 62,10,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,
00072 32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,60,111,98,
00073 106,101,99,116,32,99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,
00074 109,34,62,10,32,32,32,32,32,32,32,32,60,102,108,97,103,62,119,120,65,76,
00075 73,71,78,95,67,69,78,84,69,82,124,119,120,65,76,76,60,47,102,108,97,103,
00076 62,10,32,32,32,32,32,32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,
00077 111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,60,111,98,106,101,99,
00078 116,32,99,108,97,115,115,61,34,119,120,83,116,97,116,105,99,66,111,120,
00079 83,105,122,101,114,34,62,10,32,32,32,32,32,32,32,32,32,32,60,111,114,105,
00080 101,110,116,62,119,120,72,79,82,73,90,79,78,84,65,76,60,47,111,114,105,
00081 101,110,116,62,10,32,32,32,32,32,32,32,32,32,32,60,108,97,98,101,108,62,
00082 119,120,86,116,107,32,73,110,116,101,114,97,99,116,105,111,110,32,82,101,
00083 99,111,114,100,105,110,103,60,47,108,97,98,101,108,62,10,32,32,32,32,32,
00084 32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,115,
00085 105,122,101,114,105,116,101,109,34,62,10,32,32,32,32,32,32,32,32,32,32,
00086 32,32,60,102,108,97,103,62,119,120,65,76,73,71,78,95,67,69,78,84,69,82,
00087 124,119,120,65,76,76,60,47,102,108,97,103,62,10,32,32,32,32,32,32,32,32,
00088 32,32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,111,114,100,101,114,
00089 62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,
00090 108,97,115,115,61,34,119,120,66,117,116,116,111,110,34,32,110,97,109,101,
00091 61,34,82,101,115,101,116,82,101,99,111,114,100,105,110,103,66,117,116,116,
00092 111,110,34,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,116,111,111,
00093 108,116,105,112,62,82,101,115,101,116,32,114,101,99,111,114,100,105,110,
00094 103,60,47,116,111,111,108,116,105,112,62,10,32,32,32,32,32,32,32,32,32,
00095 32,32,32,32,32,60,108,97,98,101,108,62,38,97,109,112,59,82,101,115,101,
00096 116,60,47,108,97,98,101,108,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,
00097 47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,32,32,32,32,60,47,111,
00098 98,106,101,99,116,62,10,32,32,32,32,32,32,32,32,32,32,60,111,98,106,101,
00099 99,116,32,99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,109,34,
00100 62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,102,108,97,103,62,119,120,
00101 65,76,73,71,78,95,67,69,78,84,69,82,124,119,120,65,76,76,60,47,102,108,
00102 97,103,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,98,111,114,100,101,
00103 114,62,53,60,47,98,111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,32,
00104 32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,120,66,
00105 117,116,116,111,110,34,32,110,97,109,101,61,34,83,116,97,114,116,82,101,
00106 99,111,114,100,105,110,103,66,117,116,116,111,110,34,62,10,32,32,32,32,
00107 32,32,32,32,32,32,32,32,32,32,60,116,111,111,108,116,105,112,62,83,116,
00108 97,114,116,32,114,101,99,111,114,100,105,110,103,60,47,116,111,111,108,
00109 116,105,112,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,108,97,98,
00110 101,108,62,83,116,38,97,109,112,59,97,114,116,60,47,108,97,98,101,108,62,
00111 10,32,32,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,
00112 32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,
00113 32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,
00114 115,105,122,101,114,105,116,101,109,34,62,10,32,32,32,32,32,32,32,32,32,
00115 32,32,32,60,102,108,97,103,62,119,120,65,76,73,71,78,95,67,69,78,84,69,
00116 82,124,119,120,65,76,76,60,47,102,108,97,103,62,10,32,32,32,32,32,32,32,
00117 32,32,32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,111,114,100,101,
00118 114,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,
00119 32,99,108,97,115,115,61,34,119,120,66,117,116,116,111,110,34,32,110,97,
00120 109,101,61,34,65,100,100,82,101,99,111,114,100,105,110,103,66,117,116,116,
00121 111,110,34,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,116,111,111,
00122 108,116,105,112,62,65,100,100,32,114,101,99,111,114,100,105,110,103,60,
00123 47,116,111,111,108,116,105,112,62,10,32,32,32,32,32,32,32,32,32,32,32,32,
00124 32,32,60,108,97,98,101,108,62,65,38,97,109,112,59,100,100,60,47,108,97,
00125 98,101,108,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,
00126 99,116,62,10,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,
00127 62,10,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,
00128 32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,60,111,98,
00129 106,101,99,116,32,99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,
00130 109,34,62,10,32,32,32,32,32,32,32,32,60,102,108,97,103,62,119,120,71,82,
00131 79,87,124,119,120,65,76,73,71,78,95,67,69,78,84,69,82,95,86,69,82,84,73,
00132 67,65,76,124,119,120,76,69,70,84,124,119,120,82,73,71,72,84,124,119,120,
00133 66,79,84,84,79,77,60,47,102,108,97,103,62,10,32,32,32,32,32,32,32,32,60,
00134 98,111,114,100,101,114,62,53,60,47,98,111,114,100,101,114,62,10,32,32,32,
00135 32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,
00136 120,66,111,120,83,105,122,101,114,34,62,10,32,32,32,32,32,32,32,32,32,32,
00137 60,111,114,105,101,110,116,62,119,120,72,79,82,73,90,79,78,84,65,76,60,
00138 47,111,114,105,101,110,116,62,10,32,32,32,32,32,32,32,32,32,32,60,111,98,
00139 106,101,99,116,32,99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,
00140 109,34,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,111,112,116,105,111,
00141 110,62,49,60,47,111,112,116,105,111,110,62,10,32,32,32,32,32,32,32,32,32,
00142 32,32,32,60,102,108,97,103,62,119,120,65,68,74,85,83,84,95,77,73,78,83,
00143 73,90,69,124,119,120,65,76,73,71,78,95,67,69,78,84,69,82,60,47,102,108,
00144 97,103,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,98,111,114,100,101,
00145 114,62,53,60,47,98,111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,32,
00146 32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,119,120,84,
00147 101,120,116,67,116,114,108,34,32,110,97,109,101,61,34,67,111,109,109,101,
00148 110,116,84,101,120,116,67,116,114,108,34,62,10,32,32,32,32,32,32,32,32,
00149 32,32,32,32,32,32,60,115,105,122,101,62,56,48,44,45,49,60,47,115,105,122,
00150 101,62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,116,111,111,108,
00151 116,105,112,62,69,110,116,101,114,32,99,111,109,109,101,110,116,32,102,
00152 111,114,32,97,100,100,105,110,103,60,47,116,111,111,108,116,105,112,62,
00153 10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,118,97,108,117,101,47,62,
00154 10,32,32,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,
00155 32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,
00156 32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,61,34,
00157 115,105,122,101,114,105,116,101,109,34,62,10,32,32,32,32,32,32,32,32,32,
00158 32,32,32,60,102,108,97,103,62,119,120,65,76,73,71,78,95,67,69,78,84,69,
00159 82,124,119,120,76,69,70,84,124,119,120,84,79,80,124,119,120,66,79,84,84,
00160 79,77,60,47,102,108,97,103,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,
00161 98,111,114,100,101,114,62,53,60,47,98,111,114,100,101,114,62,10,32,32,32,
00162 32,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,108,97,115,115,
00163 61,34,119,120,66,117,116,116,111,110,34,32,110,97,109,101,61,34,67,111,
00164 109,109,101,110,116,66,117,116,116,111,110,34,62,10,32,32,32,32,32,32,32,
00165 32,32,32,32,32,32,32,60,116,111,111,108,116,105,112,62,65,100,100,115,32,
00166 99,111,109,109,101,110,116,32,116,111,32,98,111,111,116,115,116,114,97,
00167 112,32,116,101,115,116,32,99,97,115,101,60,47,116,111,111,108,116,105,112,
00168 62,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,60,108,97,98,101,108,62,
00169 65,100,100,32,38,97,109,112,59,67,111,109,109,101,110,116,60,47,108,97,
00170 98,101,108,62,10,32,32,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,
00171 99,116,62,10,32,32,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,
00172 62,10,32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,
00173 32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,60,111,98,
00174 106,101,99,116,32,99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,
00175 109,34,62,10,32,32,32,32,32,32,32,32,60,111,112,116,105,111,110,62,49,60,
00176 47,111,112,116,105,111,110,62,10,32,32,32,32,32,32,32,32,60,102,108,97,
00177 103,62,119,120,71,82,79,87,124,119,120,65,76,73,71,78,95,67,69,78,84,69,
00178 82,95,86,69,82,84,73,67,65,76,124,119,120,65,76,76,60,47,102,108,97,103,
00179 62,10,32,32,32,32,32,32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,
00180 111,114,100,101,114,62,10,32,32,32,32,32,32,32,32,60,111,98,106,101,99,
00181 116,32,99,108,97,115,115,61,34,119,120,84,101,120,116,67,116,114,108,34,
00182 32,110,97,109,101,61,34,76,111,103,103,105,110,103,84,101,120,116,67,116,
00183 114,108,34,62,10,32,32,32,32,32,32,32,32,32,32,60,115,105,122,101,62,52,
00184 48,48,44,49,53,48,60,47,115,105,122,101,62,10,32,32,32,32,32,32,32,32,32,
00185 32,60,115,116,121,108,101,62,119,120,84,69,95,77,85,76,84,73,76,73,78,69,
00186 124,119,120,84,69,95,82,69,65,68,79,78,76,89,124,119,120,84,69,95,80,82,
00187 79,67,69,83,83,95,84,65,66,60,47,115,116,121,108,101,62,10,32,32,32,32,
00188 32,32,32,32,32,32,60,116,111,111,108,116,105,112,62,69,118,101,110,116,
00189 32,99,97,112,116,117,114,101,32,108,111,103,60,47,116,111,111,108,116,105,
00190 112,62,10,32,32,32,32,32,32,32,32,32,32,60,118,97,108,117,101,47,62,10,
00191 32,32,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,
00192 32,60,47,111,98,106,101,99,116,62,10,32,32,32,32,32,32,60,111,98,106,101,
00193 99,116,32,99,108,97,115,115,61,34,115,105,122,101,114,105,116,101,109,34,
00194 62,10,32,32,32,32,32,32,32,32,60,102,108,97,103,62,119,120,65,76,73,71,
00195 78,95,67,69,78,84,69,82,124,119,120,65,76,76,60,47,102,108,97,103,62,10,
00196 32,32,32,32,32,32,32,32,60,98,111,114,100,101,114,62,53,60,47,98,111,114,
00197 100,101,114,62,10,32,32,32,32,32,32,32,32,60,111,98,106,101,99,116,32,99,
00198 108,97,115,115,61,34,119,120,66,117,116,116,111,110,34,32,110,97,109,101,
00199 61,34,69,120,105,116,66,117,116,116,111,110,34,62,10,32,32,32,32,32,32,
00200 32,32,32,32,60,116,111,111,108,116,105,112,62,69,120,105,116,32,99,97,112,
00201 116,117,114,105,110,103,60,47,116,111,111,108,116,105,112,62,10,32,32,32,
00202 32,32,32,32,32,32,32,60,108,97,98,101,108,62,69,38,97,109,112,59,120,105,
00203 116,60,47,108,97,98,101,108,62,10,32,32,32,32,32,32,32,32,60,47,111,98,
00204 106,101,99,116,62,10,32,32,32,32,32,32,60,47,111,98,106,101,99,116,62,10,
00205 32,32,32,32,60,47,111,98,106,101,99,116,62,10,32,32,60,47,111,98,106,101,
00206 99,116,62,10,60,47,114,101,115,111,117,114,99,101,62,10};
00207
00208 void InitVtkCapturePanelXRC()
00209 {
00210
00211
00212 {
00213 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), wxT("dummy one"));
00214 wxFileSystem fsys;
00215 wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file"));
00216 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
00217 if (f) delete f;
00218 else wxFileSystem::AddHandler(new wxMemoryFSHandler);
00219 }
00220
00221 XRC_ADD_FILE(wxT("XRC_resource/VtkCapturePanel.cpp$.._src_xrc_VtkCapturePanel_wdr.xrc"), xml_res_file_0, xml_res_size_0, _T("text/xml"));
00222 wxXmlResource::Get()->Load(wxT("memory:XRC_resource/VtkCapturePanel.cpp$.._src_xrc_VtkCapturePanel_wdr.xrc"));
00223 }