]>
Commit | Line | Data |
---|---|---|
2ef75293 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
0085ce49 | 3 | * Version 1.3.29 |
2ef75293 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
0085ce49 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
2ef75293 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
2ef75293 RD |
28 | #endif |
29 | ||
0085ce49 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
0085ce49 | 33 | * ----------------------------------------------------------------------------- */ |
2ef75293 | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
0085ce49 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
2ef75293 | 47 | |
32fe5131 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
0085ce49 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
0085ce49 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
0085ce49 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
32fe5131 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
0085ce49 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
0085ce49 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
32fe5131 | 126 | |
2ef75293 | 127 | |
0085ce49 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
2ef75293 | 130 | |
0085ce49 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
2ef75293 | 133 | * |
0085ce49 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
2ef75293 | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
2ef75293 | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
2ef75293 | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
32fe5131 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
2ef75293 RD |
166 | #endif |
167 | ||
0085ce49 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
32fe5131 RD |
309 | #include <string.h> |
310 | ||
2ef75293 RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
2ef75293 | 319 | typedef struct swig_type_info { |
32fe5131 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
0085ce49 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
2ef75293 RD |
326 | } swig_type_info; |
327 | ||
32fe5131 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
0085ce49 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
32fe5131 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
32fe5131 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
32fe5131 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
0085ce49 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
0085ce49 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
32fe5131 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 | 595 | } |
2ef75293 | 596 | |
093d3ff1 RD |
597 | /* |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
0085ce49 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
682 | ||
683 | SWIGRUNTIME const char * | |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
2ef75293 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
0085ce49 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
093d3ff1 | 714 | |
0085ce49 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
0085ce49 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
093d3ff1 RD |
799 | |
800 | /* ----------------------------------------------------------------------------- | |
0085ce49 | 801 | * error manipulation |
093d3ff1 RD |
802 | * ----------------------------------------------------------------------------- */ |
803 | ||
0085ce49 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
093d3ff1 | 846 | |
0085ce49 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 RD |
935 | #endif |
936 | ||
0085ce49 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
0085ce49 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
951 | ||
952 | /* Constant Types */ | |
2ef75293 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
2ef75293 RD |
956 | /* Constant information structure */ |
957 | typedef struct swig_const_info { | |
0085ce49 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
2ef75293 RD |
964 | } swig_const_info; |
965 | ||
093d3ff1 | 966 | #ifdef __cplusplus |
0085ce49 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
972 | ||
973 | ||
0085ce49 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
0085ce49 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
0085ce49 | 984 | * ----------------------------------------------------------------------------- */ |
093d3ff1 RD |
985 | |
986 | /* Common SWIG API */ | |
093d3ff1 | 987 | |
0085ce49 RD |
988 | /* for raw pointers */ |
989 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
990 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
991 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
992 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
993 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
994 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
995 | #define swig_owntype int | |
093d3ff1 | 996 | |
0085ce49 RD |
997 | /* for raw packed data */ |
998 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
999 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
093d3ff1 | 1000 | |
0085ce49 RD |
1001 | /* for class or struct pointers */ |
1002 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1003 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
093d3ff1 | 1004 | |
0085ce49 RD |
1005 | /* for C or C++ function pointers */ |
1006 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1007 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
093d3ff1 | 1008 | |
0085ce49 RD |
1009 | /* for C++ member pointers, ie, member methods */ |
1010 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1011 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1012 | |
093d3ff1 | 1013 | |
0085ce49 | 1014 | /* Runtime API */ |
093d3ff1 | 1015 | |
0085ce49 RD |
1016 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1017 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1018 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1021 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1022 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1023 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1024 | #define SWIG_fail goto fail | |
32fe5131 | 1025 | |
093d3ff1 | 1026 | |
0085ce49 | 1027 | /* Runtime API implementation */ |
093d3ff1 | 1028 | |
0085ce49 | 1029 | /* Error manipulation */ |
093d3ff1 | 1030 | |
0085ce49 RD |
1031 | SWIGINTERN void |
1032 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1033 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1034 | PyErr_SetObject(errtype, obj); | |
1035 | Py_DECREF(obj); | |
1036 | SWIG_PYTHON_THREAD_END_BLOCK; | |
093d3ff1 RD |
1037 | } |
1038 | ||
0085ce49 RD |
1039 | SWIGINTERN void |
1040 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1041 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1042 | PyErr_SetString(errtype, (char *) msg); | |
1043 | SWIG_PYTHON_THREAD_END_BLOCK; | |
093d3ff1 RD |
1044 | } |
1045 | ||
0085ce49 | 1046 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1047 | |
0085ce49 | 1048 | /* Set a constant value */ |
093d3ff1 | 1049 | |
0085ce49 RD |
1050 | SWIGINTERN void |
1051 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1052 | PyDict_SetItemString(d, (char*) name, obj); | |
1053 | Py_DECREF(obj); | |
093d3ff1 RD |
1054 | } |
1055 | ||
0085ce49 | 1056 | /* Append a value to the result obj */ |
093d3ff1 | 1057 | |
0085ce49 RD |
1058 | SWIGINTERN PyObject* |
1059 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1060 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1061 | if (!result) { | |
1062 | result = obj; | |
1063 | } else if (result == Py_None) { | |
1064 | Py_DECREF(result); | |
1065 | result = obj; | |
1066 | } else { | |
1067 | if (!PyList_Check(result)) { | |
1068 | PyObject *o2 = result; | |
1069 | result = PyList_New(1); | |
1070 | PyList_SetItem(result, 0, o2); | |
1071 | } | |
1072 | PyList_Append(result,obj); | |
1073 | Py_DECREF(obj); | |
1074 | } | |
1075 | return result; | |
1076 | #else | |
1077 | PyObject* o2; | |
1078 | PyObject* o3; | |
1079 | if (!result) { | |
1080 | result = obj; | |
1081 | } else if (result == Py_None) { | |
1082 | Py_DECREF(result); | |
1083 | result = obj; | |
093d3ff1 | 1084 | } else { |
0085ce49 RD |
1085 | if (!PyTuple_Check(result)) { |
1086 | o2 = result; | |
1087 | result = PyTuple_New(1); | |
1088 | PyTuple_SET_ITEM(result, 0, o2); | |
1089 | } | |
1090 | o3 = PyTuple_New(1); | |
1091 | PyTuple_SET_ITEM(o3, 0, obj); | |
1092 | o2 = result; | |
1093 | result = PySequence_Concat(o2, o3); | |
1094 | Py_DECREF(o2); | |
1095 | Py_DECREF(o3); | |
093d3ff1 | 1096 | } |
0085ce49 RD |
1097 | return result; |
1098 | #endif | |
093d3ff1 RD |
1099 | } |
1100 | ||
0085ce49 | 1101 | /* Unpack the argument tuple */ |
093d3ff1 | 1102 | |
0085ce49 RD |
1103 | SWIGINTERN int |
1104 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1105 | { | |
1106 | if (!args) { | |
1107 | if (!min && !max) { | |
1108 | return 1; | |
1109 | } else { | |
1110 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1111 | name, (min == max ? "" : "at least "), min); | |
1112 | return 0; | |
1113 | } | |
1114 | } | |
1115 | if (!PyTuple_Check(args)) { | |
1116 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1117 | return 0; | |
1118 | } else { | |
1119 | register int l = PyTuple_GET_SIZE(args); | |
1120 | if (l < min) { | |
1121 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1122 | name, (min == max ? "" : "at least "), min, l); | |
1123 | return 0; | |
1124 | } else if (l > max) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at most "), max, l); | |
1127 | return 0; | |
1128 | } else { | |
1129 | register int i; | |
1130 | for (i = 0; i < l; ++i) { | |
1131 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1132 | } | |
1133 | for (; l < max; ++l) { | |
1134 | objs[l] = 0; | |
1135 | } | |
1136 | return i + 1; | |
1137 | } | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | /* A functor is a function object with one single object argument */ | |
1142 | #if PY_VERSION_HEX >= 0x02020000 | |
1143 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1144 | #else | |
1145 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1146 | #endif | |
1147 | ||
1148 | /* | |
1149 | Helper for static pointer initialization for both C and C++ code, for example | |
1150 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1151 | */ | |
1152 | #ifdef __cplusplus | |
1153 | #define SWIG_STATIC_POINTER(var) var | |
1154 | #else | |
1155 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1156 | #endif | |
1157 | ||
1158 | /* ----------------------------------------------------------------------------- | |
1159 | * Pointer declarations | |
1160 | * ----------------------------------------------------------------------------- */ | |
1161 | ||
1162 | /* Flags for new pointer objects */ | |
1163 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1164 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1165 | ||
1166 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1167 | ||
1168 | #ifdef __cplusplus | |
1169 | extern "C" { | |
1170 | #if 0 | |
1171 | } /* cc-mode */ | |
1172 | #endif | |
1173 | #endif | |
1174 | ||
1175 | /* How to access Py_None */ | |
1176 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1177 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1178 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1179 | # define SWIG_PYTHON_BUILD_NONE | |
1180 | # endif | |
1181 | # endif | |
1182 | #endif | |
1183 | ||
1184 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1185 | # ifdef Py_None | |
1186 | # undef Py_None | |
1187 | # define Py_None SWIG_Py_None() | |
1188 | # endif | |
1189 | SWIGRUNTIMEINLINE PyObject * | |
1190 | _SWIG_Py_None(void) | |
1191 | { | |
1192 | PyObject *none = Py_BuildValue(""); | |
1193 | Py_DECREF(none); | |
1194 | return none; | |
1195 | } | |
1196 | SWIGRUNTIME PyObject * | |
1197 | SWIG_Py_None(void) | |
1198 | { | |
1199 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1200 | return none; | |
1201 | } | |
1202 | #endif | |
1203 | ||
1204 | /* The python void return value */ | |
1205 | ||
1206 | SWIGRUNTIMEINLINE PyObject * | |
1207 | SWIG_Py_Void(void) | |
1208 | { | |
1209 | PyObject *none = Py_None; | |
1210 | Py_INCREF(none); | |
1211 | return none; | |
1212 | } | |
1213 | ||
1214 | /* PySwigClientData */ | |
1215 | ||
1216 | typedef struct { | |
1217 | PyObject *klass; | |
1218 | PyObject *newraw; | |
1219 | PyObject *newargs; | |
1220 | PyObject *destroy; | |
1221 | int delargs; | |
1222 | int implicitconv; | |
1223 | } PySwigClientData; | |
1224 | ||
1225 | SWIGRUNTIMEINLINE int | |
1226 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1227 | { | |
1228 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1229 | return data ? data->implicitconv : 0; | |
1230 | } | |
1231 | ||
1232 | SWIGRUNTIMEINLINE PyObject * | |
1233 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1234 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1235 | PyObject *klass = data ? data->klass : 0; | |
1236 | return (klass ? klass : PyExc_RuntimeError); | |
1237 | } | |
1238 | ||
1239 | ||
1240 | SWIGRUNTIME PySwigClientData * | |
1241 | PySwigClientData_New(PyObject* obj) | |
1242 | { | |
1243 | if (!obj) { | |
1244 | return 0; | |
1245 | } else { | |
1246 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1247 | /* the klass element */ | |
1248 | data->klass = obj; | |
1249 | Py_INCREF(data->klass); | |
1250 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1251 | if (PyClass_Check(obj)) { | |
1252 | data->newraw = 0; | |
1253 | data->newargs = obj; | |
1254 | Py_INCREF(obj); | |
1255 | } else { | |
1256 | #if (PY_VERSION_HEX < 0x02020000) | |
1257 | data->newraw = 0; | |
1258 | #else | |
1259 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1260 | #endif | |
1261 | if (data->newraw) { | |
1262 | Py_INCREF(data->newraw); | |
1263 | data->newargs = PyTuple_New(1); | |
1264 | PyTuple_SetItem(data->newargs, 0, obj); | |
1265 | } else { | |
1266 | data->newargs = obj; | |
1267 | } | |
1268 | Py_INCREF(data->newargs); | |
1269 | } | |
1270 | /* the destroy method, aka as the C++ delete method */ | |
1271 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1272 | if (PyErr_Occurred()) { | |
1273 | PyErr_Clear(); | |
1274 | data->destroy = 0; | |
1275 | } | |
1276 | if (data->destroy) { | |
1277 | int flags; | |
1278 | Py_INCREF(data->destroy); | |
1279 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1280 | #ifdef METH_O | |
1281 | data->delargs = !(flags & (METH_O)); | |
1282 | #else | |
1283 | data->delargs = 0; | |
1284 | #endif | |
1285 | } else { | |
1286 | data->delargs = 0; | |
1287 | } | |
1288 | data->implicitconv = 0; | |
1289 | return data; | |
1290 | } | |
1291 | } | |
1292 | ||
1293 | SWIGRUNTIME void | |
1294 | PySwigClientData_Del(PySwigClientData* data) | |
1295 | { | |
1296 | Py_XDECREF(data->newraw); | |
1297 | Py_XDECREF(data->newargs); | |
1298 | Py_XDECREF(data->destroy); | |
1299 | } | |
1300 | ||
1301 | /* =============== PySwigObject =====================*/ | |
1302 | ||
1303 | typedef struct { | |
1304 | PyObject_HEAD | |
1305 | void *ptr; | |
1306 | swig_type_info *ty; | |
1307 | int own; | |
1308 | PyObject *next; | |
1309 | } PySwigObject; | |
1310 | ||
1311 | SWIGRUNTIME PyObject * | |
1312 | PySwigObject_long(PySwigObject *v) | |
1313 | { | |
1314 | return PyLong_FromVoidPtr(v->ptr); | |
1315 | } | |
1316 | ||
1317 | SWIGRUNTIME PyObject * | |
1318 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1319 | { | |
1320 | PyObject *res = NULL; | |
1321 | PyObject *args = PyTuple_New(1); | |
1322 | if (args) { | |
1323 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1324 | PyObject *ofmt = PyString_FromString(fmt); | |
1325 | if (ofmt) { | |
1326 | res = PyString_Format(ofmt,args); | |
1327 | Py_DECREF(ofmt); | |
1328 | } | |
1329 | Py_DECREF(args); | |
1330 | } | |
1331 | } | |
1332 | return res; | |
1333 | } | |
1334 | ||
1335 | SWIGRUNTIME PyObject * | |
1336 | PySwigObject_oct(PySwigObject *v) | |
1337 | { | |
1338 | return PySwigObject_format("%o",v); | |
1339 | } | |
1340 | ||
1341 | SWIGRUNTIME PyObject * | |
1342 | PySwigObject_hex(PySwigObject *v) | |
1343 | { | |
1344 | return PySwigObject_format("%x",v); | |
1345 | } | |
1346 | ||
1347 | SWIGRUNTIME PyObject * | |
1348 | #ifdef METH_NOARGS | |
1349 | PySwigObject_repr(PySwigObject *v) | |
1350 | #else | |
1351 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1352 | #endif | |
1353 | { | |
1354 | const char *name = SWIG_TypePrettyName(v->ty); | |
1355 | PyObject *hex = PySwigObject_hex(v); | |
1356 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1357 | Py_DECREF(hex); | |
1358 | if (v->next) { | |
1359 | #ifdef METH_NOARGS | |
1360 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1361 | #else | |
1362 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1363 | #endif | |
1364 | PyString_ConcatAndDel(&repr,nrep); | |
1365 | } | |
1366 | return repr; | |
1367 | } | |
1368 | ||
1369 | SWIGRUNTIME int | |
1370 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1371 | { | |
1372 | #ifdef METH_NOARGS | |
1373 | PyObject *repr = PySwigObject_repr(v); | |
1374 | #else | |
1375 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1376 | #endif | |
1377 | if (repr) { | |
1378 | fputs(PyString_AsString(repr), fp); | |
1379 | Py_DECREF(repr); | |
1380 | return 0; | |
1381 | } else { | |
1382 | return 1; | |
1383 | } | |
1384 | } | |
1385 | ||
1386 | SWIGRUNTIME PyObject * | |
1387 | PySwigObject_str(PySwigObject *v) | |
1388 | { | |
1389 | char result[SWIG_BUFFER_SIZE]; | |
1390 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1391 | PyString_FromString(result) : 0; | |
1392 | } | |
1393 | ||
1394 | SWIGRUNTIME int | |
1395 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1396 | { | |
1397 | void *i = v->ptr; | |
1398 | void *j = w->ptr; | |
1399 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1400 | } | |
1401 | ||
1402 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1403 | ||
1404 | SWIGRUNTIME PyTypeObject* | |
1405 | PySwigObject_type(void) { | |
1406 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1407 | return type; | |
1408 | } | |
1409 | ||
1410 | SWIGRUNTIMEINLINE int | |
1411 | PySwigObject_Check(PyObject *op) { | |
1412 | return ((op)->ob_type == PySwigObject_type()) | |
1413 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1414 | } | |
1415 | ||
1416 | SWIGRUNTIME PyObject * | |
1417 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1418 | ||
1419 | SWIGRUNTIME void | |
1420 | PySwigObject_dealloc(PyObject *v) | |
1421 | { | |
1422 | PySwigObject *sobj = (PySwigObject *) v; | |
1423 | PyObject *next = sobj->next; | |
1424 | if (sobj->own) { | |
1425 | swig_type_info *ty = sobj->ty; | |
1426 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1427 | PyObject *destroy = data ? data->destroy : 0; | |
1428 | if (destroy) { | |
1429 | /* destroy is always a VARARGS method */ | |
1430 | PyObject *res; | |
1431 | if (data->delargs) { | |
1432 | /* we need to create a temporal object to carry the destroy operation */ | |
1433 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1434 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1435 | Py_DECREF(tmp); | |
1436 | } else { | |
1437 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1438 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1439 | res = ((*meth)(mself, v)); | |
1440 | } | |
1441 | Py_XDECREF(res); | |
1442 | } else { | |
1443 | const char *name = SWIG_TypePrettyName(ty); | |
1444 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1445 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1446 | #endif | |
1447 | } | |
1448 | } | |
1449 | Py_XDECREF(next); | |
1450 | PyObject_DEL(v); | |
1451 | } | |
1452 | ||
1453 | SWIGRUNTIME PyObject* | |
1454 | PySwigObject_append(PyObject* v, PyObject* next) | |
1455 | { | |
1456 | PySwigObject *sobj = (PySwigObject *) v; | |
1457 | #ifndef METH_O | |
1458 | PyObject *tmp = 0; | |
1459 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1460 | next = tmp; | |
1461 | #endif | |
1462 | if (!PySwigObject_Check(next)) { | |
1463 | return NULL; | |
1464 | } | |
1465 | sobj->next = next; | |
1466 | Py_INCREF(next); | |
1467 | return SWIG_Py_Void(); | |
1468 | } | |
1469 | ||
1470 | SWIGRUNTIME PyObject* | |
1471 | #ifdef METH_NOARGS | |
1472 | PySwigObject_next(PyObject* v) | |
1473 | #else | |
1474 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1475 | #endif | |
1476 | { | |
1477 | PySwigObject *sobj = (PySwigObject *) v; | |
1478 | if (sobj->next) { | |
1479 | Py_INCREF(sobj->next); | |
1480 | return sobj->next; | |
1481 | } else { | |
1482 | return SWIG_Py_Void(); | |
1483 | } | |
1484 | } | |
1485 | ||
1486 | SWIGINTERN PyObject* | |
1487 | #ifdef METH_NOARGS | |
1488 | PySwigObject_disown(PyObject *v) | |
1489 | #else | |
1490 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1491 | #endif | |
1492 | { | |
1493 | PySwigObject *sobj = (PySwigObject *)v; | |
1494 | sobj->own = 0; | |
1495 | return SWIG_Py_Void(); | |
1496 | } | |
1497 | ||
1498 | SWIGINTERN PyObject* | |
1499 | #ifdef METH_NOARGS | |
1500 | PySwigObject_acquire(PyObject *v) | |
1501 | #else | |
1502 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1503 | #endif | |
1504 | { | |
1505 | PySwigObject *sobj = (PySwigObject *)v; | |
1506 | sobj->own = SWIG_POINTER_OWN; | |
1507 | return SWIG_Py_Void(); | |
1508 | } | |
1509 | ||
1510 | SWIGINTERN PyObject* | |
1511 | PySwigObject_own(PyObject *v, PyObject *args) | |
1512 | { | |
1513 | PyObject *val = 0; | |
1514 | #if (PY_VERSION_HEX < 0x02020000) | |
1515 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1516 | #else | |
1517 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1518 | #endif | |
1519 | { | |
1520 | return NULL; | |
1521 | } | |
1522 | else | |
1523 | { | |
1524 | PySwigObject *sobj = (PySwigObject *)v; | |
1525 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1526 | if (val) { | |
1527 | #ifdef METH_NOARGS | |
1528 | if (PyObject_IsTrue(val)) { | |
1529 | PySwigObject_acquire(v); | |
1530 | } else { | |
1531 | PySwigObject_disown(v); | |
1532 | } | |
1533 | #else | |
1534 | if (PyObject_IsTrue(val)) { | |
1535 | PySwigObject_acquire(v,args); | |
1536 | } else { | |
1537 | PySwigObject_disown(v,args); | |
1538 | } | |
1539 | #endif | |
1540 | } | |
1541 | return obj; | |
1542 | } | |
1543 | } | |
1544 | ||
1545 | #ifdef METH_O | |
1546 | static PyMethodDef | |
1547 | swigobject_methods[] = { | |
1548 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1549 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1550 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1551 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1552 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1553 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1554 | {0, 0, 0, 0} | |
1555 | }; | |
1556 | #else | |
1557 | static PyMethodDef | |
1558 | swigobject_methods[] = { | |
1559 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1560 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1561 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1562 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1563 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1564 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1565 | {0, 0, 0, 0} | |
1566 | }; | |
1567 | #endif | |
1568 | ||
1569 | #if PY_VERSION_HEX < 0x02020000 | |
1570 | SWIGINTERN PyObject * | |
1571 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1572 | { | |
1573 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1574 | } | |
1575 | #endif | |
1576 | ||
1577 | SWIGRUNTIME PyTypeObject* | |
1578 | _PySwigObject_type(void) { | |
1579 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1580 | ||
1581 | static PyNumberMethods PySwigObject_as_number = { | |
1582 | (binaryfunc)0, /*nb_add*/ | |
1583 | (binaryfunc)0, /*nb_subtract*/ | |
1584 | (binaryfunc)0, /*nb_multiply*/ | |
1585 | (binaryfunc)0, /*nb_divide*/ | |
1586 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1587 | (binaryfunc)0, /*nb_divmod*/ |
1588 | (ternaryfunc)0,/*nb_power*/ | |
1589 | (unaryfunc)0, /*nb_negative*/ | |
1590 | (unaryfunc)0, /*nb_positive*/ | |
1591 | (unaryfunc)0, /*nb_absolute*/ | |
1592 | (inquiry)0, /*nb_nonzero*/ | |
1593 | 0, /*nb_invert*/ | |
1594 | 0, /*nb_lshift*/ | |
1595 | 0, /*nb_rshift*/ | |
1596 | 0, /*nb_and*/ | |
1597 | 0, /*nb_xor*/ | |
1598 | 0, /*nb_or*/ | |
1599 | (coercion)0, /*nb_coerce*/ | |
1600 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1601 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1602 | (unaryfunc)0, /*nb_float*/ | |
1603 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1604 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1605 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1606 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1607 | #elif PY_VERSION_HEX >= 0x02000000 |
1608 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1609 | #endif |
1610 | }; | |
1611 | ||
0085ce49 | 1612 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1613 | static int type_init = 0; |
093d3ff1 | 1614 | if (!type_init) { |
0085ce49 RD |
1615 | const PyTypeObject tmp |
1616 | = { | |
1617 | PyObject_HEAD_INIT(NULL) | |
1618 | 0, /* ob_size */ | |
1619 | (char *)"PySwigObject", /* tp_name */ | |
1620 | sizeof(PySwigObject), /* tp_basicsize */ | |
1621 | 0, /* tp_itemsize */ | |
1622 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1623 | (printfunc)PySwigObject_print, /* tp_print */ | |
1624 | #if PY_VERSION_HEX < 0x02020000 | |
1625 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1626 | #else | |
1627 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1628 | #endif |
0085ce49 RD |
1629 | (setattrfunc)0, /* tp_setattr */ |
1630 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1631 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1632 | &PySwigObject_as_number, /* tp_as_number */ | |
1633 | 0, /* tp_as_sequence */ | |
1634 | 0, /* tp_as_mapping */ | |
1635 | (hashfunc)0, /* tp_hash */ | |
1636 | (ternaryfunc)0, /* tp_call */ | |
1637 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1638 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1639 | 0, /* tp_setattro */ | |
1640 | 0, /* tp_as_buffer */ | |
1641 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1642 | swigobject_doc, /* tp_doc */ | |
1643 | 0, /* tp_traverse */ | |
1644 | 0, /* tp_clear */ | |
1645 | 0, /* tp_richcompare */ | |
1646 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1647 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1648 | 0, /* tp_iter */ |
1649 | 0, /* tp_iternext */ | |
1650 | swigobject_methods, /* tp_methods */ | |
1651 | 0, /* tp_members */ | |
1652 | 0, /* tp_getset */ | |
1653 | 0, /* tp_base */ | |
1654 | 0, /* tp_dict */ | |
1655 | 0, /* tp_descr_get */ | |
1656 | 0, /* tp_descr_set */ | |
1657 | 0, /* tp_dictoffset */ | |
1658 | 0, /* tp_init */ | |
1659 | 0, /* tp_alloc */ | |
1660 | 0, /* tp_new */ | |
1661 | 0, /* tp_free */ | |
1662 | 0, /* tp_is_gc */ | |
1663 | 0, /* tp_bases */ | |
1664 | 0, /* tp_mro */ | |
1665 | 0, /* tp_cache */ | |
1666 | 0, /* tp_subclasses */ | |
1667 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1668 | #endif |
1669 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1670 | 0, /* tp_del */ |
093d3ff1 RD |
1671 | #endif |
1672 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1673 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1674 | #endif |
0085ce49 | 1675 | }; |
32fe5131 | 1676 | pyswigobject_type = tmp; |
0085ce49 | 1677 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1678 | type_init = 1; |
1679 | } | |
32fe5131 | 1680 | return &pyswigobject_type; |
093d3ff1 RD |
1681 | } |
1682 | ||
1683 | SWIGRUNTIME PyObject * | |
0085ce49 | 1684 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1685 | { |
0085ce49 RD |
1686 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1687 | if (sobj) { | |
1688 | sobj->ptr = ptr; | |
1689 | sobj->ty = ty; | |
1690 | sobj->own = own; | |
1691 | sobj->next = 0; | |
32fe5131 | 1692 | } |
0085ce49 | 1693 | return (PyObject *)sobj; |
093d3ff1 RD |
1694 | } |
1695 | ||
1696 | /* ----------------------------------------------------------------------------- | |
1697 | * Implements a simple Swig Packed type, and use it instead of string | |
1698 | * ----------------------------------------------------------------------------- */ | |
1699 | ||
1700 | typedef struct { | |
1701 | PyObject_HEAD | |
1702 | void *pack; | |
0085ce49 | 1703 | swig_type_info *ty; |
093d3ff1 RD |
1704 | size_t size; |
1705 | } PySwigPacked; | |
1706 | ||
1707 | SWIGRUNTIME int | |
0085ce49 | 1708 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
093d3ff1 RD |
1709 | { |
1710 | char result[SWIG_BUFFER_SIZE]; | |
1711 | fputs("<Swig Packed ", fp); | |
1712 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1713 | fputs("at ", fp); | |
1714 | fputs(result, fp); | |
1715 | } | |
0085ce49 | 1716 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1717 | fputs(">", fp); |
1718 | return 0; | |
1719 | } | |
1720 | ||
1721 | SWIGRUNTIME PyObject * | |
1722 | PySwigPacked_repr(PySwigPacked *v) | |
1723 | { | |
1724 | char result[SWIG_BUFFER_SIZE]; | |
1725 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1726 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1727 | } else { |
0085ce49 | 1728 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 RD |
1729 | } |
1730 | } | |
1731 | ||
1732 | SWIGRUNTIME PyObject * | |
1733 | PySwigPacked_str(PySwigPacked *v) | |
1734 | { | |
1735 | char result[SWIG_BUFFER_SIZE]; | |
1736 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1737 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1738 | } else { |
0085ce49 | 1739 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1740 | } |
1741 | } | |
1742 | ||
1743 | SWIGRUNTIME int | |
1744 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1745 | { | |
0085ce49 RD |
1746 | size_t i = v->size; |
1747 | size_t j = w->size; | |
1748 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1749 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
093d3ff1 RD |
1750 | } |
1751 | ||
0085ce49 | 1752 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1753 | |
1754 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1755 | PySwigPacked_type(void) { |
0085ce49 RD |
1756 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1757 | return type; | |
1758 | } | |
1759 | ||
1760 | SWIGRUNTIMEINLINE int | |
1761 | PySwigPacked_Check(PyObject *op) { | |
1762 | return ((op)->ob_type == _PySwigPacked_type()) | |
1763 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1764 | } | |
1765 | ||
1766 | SWIGRUNTIME void | |
1767 | PySwigPacked_dealloc(PyObject *v) | |
1768 | { | |
1769 | if (PySwigPacked_Check(v)) { | |
1770 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1771 | free(sobj->pack); | |
1772 | } | |
1773 | PyObject_DEL(v); | |
1774 | } | |
1775 | ||
1776 | SWIGRUNTIME PyTypeObject* | |
1777 | _PySwigPacked_type(void) { | |
1778 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1779 | static PyTypeObject pyswigpacked_type; | |
1780 | static int type_init = 0; | |
1781 | if (!type_init) { | |
1782 | const PyTypeObject tmp | |
1783 | = { | |
1784 | PyObject_HEAD_INIT(NULL) | |
1785 | 0, /* ob_size */ | |
1786 | (char *)"PySwigPacked", /* tp_name */ | |
1787 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1788 | 0, /* tp_itemsize */ | |
1789 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1790 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1791 | (getattrfunc)0, /* tp_getattr */ | |
1792 | (setattrfunc)0, /* tp_setattr */ | |
1793 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1794 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1795 | 0, /* tp_as_number */ | |
1796 | 0, /* tp_as_sequence */ | |
1797 | 0, /* tp_as_mapping */ | |
1798 | (hashfunc)0, /* tp_hash */ | |
1799 | (ternaryfunc)0, /* tp_call */ | |
1800 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1801 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1802 | 0, /* tp_setattro */ | |
1803 | 0, /* tp_as_buffer */ | |
1804 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1805 | swigpacked_doc, /* tp_doc */ | |
1806 | 0, /* tp_traverse */ | |
1807 | 0, /* tp_clear */ | |
1808 | 0, /* tp_richcompare */ | |
1809 | 0, /* tp_weaklistoffset */ | |
1810 | #if PY_VERSION_HEX >= 0x02020000 | |
1811 | 0, /* tp_iter */ | |
1812 | 0, /* tp_iternext */ | |
1813 | 0, /* tp_methods */ | |
1814 | 0, /* tp_members */ | |
1815 | 0, /* tp_getset */ | |
1816 | 0, /* tp_base */ | |
1817 | 0, /* tp_dict */ | |
1818 | 0, /* tp_descr_get */ | |
1819 | 0, /* tp_descr_set */ | |
1820 | 0, /* tp_dictoffset */ | |
1821 | 0, /* tp_init */ | |
1822 | 0, /* tp_alloc */ | |
1823 | 0, /* tp_new */ | |
1824 | 0, /* tp_free */ | |
1825 | 0, /* tp_is_gc */ | |
1826 | 0, /* tp_bases */ | |
1827 | 0, /* tp_mro */ | |
1828 | 0, /* tp_cache */ | |
1829 | 0, /* tp_subclasses */ | |
1830 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1831 | #endif |
1832 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1833 | 0, /* tp_del */ |
093d3ff1 RD |
1834 | #endif |
1835 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1836 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1837 | #endif |
0085ce49 | 1838 | }; |
32fe5131 | 1839 | pyswigpacked_type = tmp; |
0085ce49 | 1840 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1841 | type_init = 1; |
1842 | } | |
32fe5131 | 1843 | return &pyswigpacked_type; |
093d3ff1 RD |
1844 | } |
1845 | ||
1846 | SWIGRUNTIME PyObject * | |
0085ce49 | 1847 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1848 | { |
0085ce49 RD |
1849 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1850 | if (sobj) { | |
093d3ff1 | 1851 | void *pack = malloc(size); |
32fe5131 RD |
1852 | if (pack) { |
1853 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1854 | sobj->pack = pack; |
1855 | sobj->ty = ty; | |
1856 | sobj->size = size; | |
1857 | } else { | |
1858 | PyObject_DEL((PyObject *) sobj); | |
1859 | sobj = 0; | |
32fe5131 | 1860 | } |
093d3ff1 | 1861 | } |
0085ce49 | 1862 | return (PyObject *) sobj; |
093d3ff1 RD |
1863 | } |
1864 | ||
0085ce49 | 1865 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1866 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1867 | { | |
0085ce49 RD |
1868 | if (PySwigPacked_Check(obj)) { |
1869 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1870 | if (sobj->size != size) return 0; | |
1871 | memcpy(ptr, sobj->pack, size); | |
1872 | return sobj->ty; | |
1873 | } else { | |
1874 | return 0; | |
1875 | } | |
093d3ff1 RD |
1876 | } |
1877 | ||
093d3ff1 | 1878 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1879 | * pointers/data manipulation |
093d3ff1 RD |
1880 | * ----------------------------------------------------------------------------- */ |
1881 | ||
0085ce49 RD |
1882 | SWIGRUNTIMEINLINE PyObject * |
1883 | _SWIG_This(void) | |
1884 | { | |
1885 | return PyString_FromString("this"); | |
1886 | } | |
093d3ff1 | 1887 | |
0085ce49 RD |
1888 | SWIGRUNTIME PyObject * |
1889 | SWIG_This(void) | |
1890 | { | |
1891 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1892 | return swig_this; | |
1893 | } | |
093d3ff1 | 1894 | |
0085ce49 | 1895 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1896 | |
0085ce49 RD |
1897 | SWIGRUNTIME PySwigObject * |
1898 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1899 | { |
0085ce49 RD |
1900 | if (PySwigObject_Check(pyobj)) { |
1901 | return (PySwigObject *) pyobj; | |
1902 | } else { | |
1903 | PyObject *obj = 0; | |
1904 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1905 | if (PyInstance_Check(pyobj)) { | |
1906 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1907 | } else { | |
1908 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1909 | if (dictptr != NULL) { | |
1910 | PyObject *dict = *dictptr; | |
1911 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1912 | } else { | |
1913 | #ifdef PyWeakref_CheckProxy | |
1914 | if (PyWeakref_CheckProxy(pyobj)) { | |
1915 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1916 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1917 | } | |
1918 | #endif | |
1919 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1920 | if (obj) { | |
1921 | Py_DECREF(obj); | |
093d3ff1 | 1922 | } else { |
0085ce49 RD |
1923 | if (PyErr_Occurred()) PyErr_Clear(); |
1924 | return 0; | |
093d3ff1 | 1925 | } |
093d3ff1 | 1926 | } |
0085ce49 RD |
1927 | } |
1928 | #else | |
1929 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1930 | if (obj) { | |
1931 | Py_DECREF(obj); | |
1932 | } else { | |
1933 | if (PyErr_Occurred()) PyErr_Clear(); | |
1934 | return 0; | |
1935 | } | |
1936 | #endif | |
1937 | if (obj && !PySwigObject_Check(obj)) { | |
1938 | /* a PyObject is called 'this', try to get the 'real this' | |
1939 | PySwigObject from it */ | |
1940 | return SWIG_Python_GetSwigThis(obj); | |
1941 | } | |
1942 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1943 | } |
1944 | } | |
1945 | ||
0085ce49 RD |
1946 | /* Acquire a pointer value */ |
1947 | ||
1948 | SWIGRUNTIME int | |
1949 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1950 | if (own) { | |
1951 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1952 | if (sobj) { | |
1953 | int oldown = sobj->own; | |
1954 | sobj->own = own; | |
1955 | return oldown; | |
1956 | } | |
093d3ff1 | 1957 | } |
0085ce49 | 1958 | return 0; |
093d3ff1 RD |
1959 | } |
1960 | ||
0085ce49 RD |
1961 | /* Convert a pointer value */ |
1962 | ||
093d3ff1 | 1963 | SWIGRUNTIME int |
0085ce49 RD |
1964 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1965 | if (!obj) return SWIG_ERROR; | |
1966 | if (obj == Py_None) { | |
1967 | if (ptr) *ptr = 0; | |
1968 | return SWIG_OK; | |
1969 | } else { | |
1970 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1971 | while (sobj) { | |
1972 | void *vptr = sobj->ptr; | |
1973 | if (ty) { | |
1974 | swig_type_info *to = sobj->ty; | |
1975 | if (to == ty) { | |
1976 | /* no type cast needed */ | |
1977 | if (ptr) *ptr = vptr; | |
1978 | break; | |
1979 | } else { | |
1980 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1981 | if (!tc) { | |
1982 | sobj = (PySwigObject *)sobj->next; | |
1983 | } else { | |
1984 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1985 | break; | |
1986 | } | |
1987 | } | |
093d3ff1 | 1988 | } else { |
0085ce49 RD |
1989 | if (ptr) *ptr = vptr; |
1990 | break; | |
093d3ff1 | 1991 | } |
093d3ff1 | 1992 | } |
0085ce49 RD |
1993 | if (sobj) { |
1994 | if (own) *own = sobj->own; | |
1995 | if (flags & SWIG_POINTER_DISOWN) { | |
1996 | sobj->own = 0; | |
1997 | } | |
1998 | return SWIG_OK; | |
1999 | } else { | |
2000 | int res = SWIG_ERROR; | |
2001 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2002 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2003 | if (data && !data->implicitconv) { | |
2004 | PyObject *klass = data->klass; | |
2005 | if (klass) { | |
2006 | PyObject *impconv; | |
2007 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2008 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2009 | data->implicitconv = 0; | |
2010 | if (PyErr_Occurred()) { | |
2011 | PyErr_Clear(); | |
2012 | impconv = 0; | |
2013 | } | |
2014 | if (impconv) { | |
2015 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2016 | if (iobj) { | |
2017 | void *vptr; | |
2018 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2019 | if (SWIG_IsOK(res)) { | |
2020 | if (ptr) { | |
2021 | *ptr = vptr; | |
2022 | /* transfer the ownership to 'ptr' */ | |
2023 | iobj->own = 0; | |
2024 | res = SWIG_AddCast(res); | |
2025 | res = SWIG_AddNewMask(res); | |
2026 | } else { | |
2027 | res = SWIG_AddCast(res); | |
2028 | } | |
2029 | } | |
2030 | } | |
2031 | Py_DECREF(impconv); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | } | |
2036 | return res; | |
2037 | } | |
093d3ff1 RD |
2038 | } |
2039 | } | |
2040 | ||
0085ce49 RD |
2041 | /* Convert a function ptr value */ |
2042 | ||
093d3ff1 | 2043 | SWIGRUNTIME int |
0085ce49 RD |
2044 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2045 | if (!PyCFunction_Check(obj)) { | |
2046 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2047 | } else { |
0085ce49 RD |
2048 | void *vptr = 0; |
2049 | ||
2050 | /* here we get the method pointer for callbacks */ | |
2051 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
2052 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; | |
2053 | if (desc) { | |
2054 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2055 | if (!desc) return SWIG_ERROR; | |
2056 | } | |
2057 | if (ty) { | |
2058 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2059 | if (!tc) return SWIG_ERROR; | |
2060 | *ptr = SWIG_TypeCast(tc,vptr); | |
2061 | } else { | |
2062 | *ptr = vptr; | |
2063 | } | |
2064 | return SWIG_OK; | |
093d3ff1 RD |
2065 | } |
2066 | } | |
2067 | ||
0085ce49 | 2068 | /* Convert a packed value value */ |
093d3ff1 | 2069 | |
093d3ff1 | 2070 | SWIGRUNTIME int |
0085ce49 RD |
2071 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2072 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2073 | if (!to) return SWIG_ERROR; | |
2074 | if (ty) { | |
2075 | if (to != ty) { | |
2076 | /* check type cast? */ | |
2077 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2078 | if (!tc) return SWIG_ERROR; | |
2079 | } | |
093d3ff1 | 2080 | } |
0085ce49 RD |
2081 | return SWIG_OK; |
2082 | } | |
093d3ff1 | 2083 | |
0085ce49 RD |
2084 | /* ----------------------------------------------------------------------------- |
2085 | * Create a new pointer object | |
2086 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 2087 | |
0085ce49 RD |
2088 | /* |
2089 | Create a new instance object, whitout calling __init__, and set the | |
2090 | 'this' attribute. | |
2091 | */ | |
093d3ff1 | 2092 | |
0085ce49 RD |
2093 | SWIGRUNTIME PyObject* |
2094 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2095 | { | |
2096 | #if (PY_VERSION_HEX >= 0x02020000) | |
2097 | PyObject *inst = 0; | |
2098 | PyObject *newraw = data->newraw; | |
2099 | if (newraw) { | |
2100 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2101 | if (inst) { | |
2102 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2103 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2104 | if (dictptr != NULL) { | |
2105 | PyObject *dict = *dictptr; | |
2106 | if (dict == NULL) { | |
2107 | dict = PyDict_New(); | |
2108 | *dictptr = dict; | |
2109 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2110 | } | |
093d3ff1 | 2111 | } |
0085ce49 RD |
2112 | #else |
2113 | PyObject *key = SWIG_This(); | |
2114 | PyObject_SetAttr(inst, key, swig_this); | |
2115 | #endif | |
093d3ff1 | 2116 | } |
0085ce49 RD |
2117 | } else { |
2118 | PyObject *dict = PyDict_New(); | |
2119 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2120 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2121 | Py_DECREF(dict); | |
093d3ff1 | 2122 | } |
0085ce49 RD |
2123 | return inst; |
2124 | #else | |
2125 | #if (PY_VERSION_HEX >= 0x02010000) | |
2126 | PyObject *inst; | |
2127 | PyObject *dict = PyDict_New(); | |
2128 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2129 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2130 | Py_DECREF(dict); | |
2131 | return (PyObject *) inst; | |
2132 | #else | |
2133 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2134 | if (inst == NULL) { | |
2135 | return NULL; | |
093d3ff1 | 2136 | } |
0085ce49 RD |
2137 | inst->in_class = (PyClassObject *)data->newargs; |
2138 | Py_INCREF(inst->in_class); | |
2139 | inst->in_dict = PyDict_New(); | |
2140 | if (inst->in_dict == NULL) { | |
2141 | Py_DECREF(inst); | |
2142 | return NULL; | |
093d3ff1 | 2143 | } |
0085ce49 RD |
2144 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2145 | inst->in_weakreflist = NULL; | |
2146 | #endif | |
2147 | #ifdef Py_TPFLAGS_GC | |
2148 | PyObject_GC_Init(inst); | |
2149 | #endif | |
2150 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2151 | return (PyObject *) inst; | |
2152 | #endif | |
2153 | #endif | |
093d3ff1 RD |
2154 | } |
2155 | ||
0085ce49 RD |
2156 | SWIGRUNTIME void |
2157 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2158 | { | |
2159 | PyObject *dict; | |
2160 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2161 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2162 | if (dictptr != NULL) { | |
2163 | dict = *dictptr; | |
2164 | if (dict == NULL) { | |
2165 | dict = PyDict_New(); | |
2166 | *dictptr = dict; | |
2167 | } | |
2168 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2169 | return; | |
2170 | } | |
093d3ff1 | 2171 | #endif |
0085ce49 RD |
2172 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2173 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2174 | Py_DECREF(dict); | |
2175 | } | |
093d3ff1 | 2176 | |
0085ce49 RD |
2177 | |
2178 | SWIGINTERN PyObject * | |
2179 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2180 | PyObject *obj[2]; | |
2181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2182 | return NULL; | |
2183 | } else { | |
2184 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2185 | if (sthis) { | |
2186 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2187 | } else { |
0085ce49 | 2188 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2189 | } |
0085ce49 | 2190 | return SWIG_Py_Void(); |
093d3ff1 | 2191 | } |
0085ce49 RD |
2192 | } |
2193 | ||
2194 | /* Create a new pointer object */ | |
093d3ff1 | 2195 | |
093d3ff1 | 2196 | SWIGRUNTIME PyObject * |
0085ce49 | 2197 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2198 | if (!ptr) { |
0085ce49 RD |
2199 | return SWIG_Py_Void(); |
2200 | } else { | |
2201 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2202 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2203 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2204 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2205 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2206 | if (inst) { | |
2207 | Py_DECREF(robj); | |
2208 | robj = inst; | |
093d3ff1 | 2209 | } |
093d3ff1 | 2210 | } |
0085ce49 | 2211 | return robj; |
093d3ff1 | 2212 | } |
093d3ff1 RD |
2213 | } |
2214 | ||
0085ce49 RD |
2215 | /* Create a new packed object */ |
2216 | ||
2217 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2218 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2219 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2220 | } |
2221 | ||
2222 | /* -----------------------------------------------------------------------------* | |
2223 | * Get type list | |
2224 | * -----------------------------------------------------------------------------*/ | |
2ef75293 | 2225 | |
093d3ff1 RD |
2226 | #ifdef SWIG_LINK_RUNTIME |
2227 | void *SWIG_ReturnGlobalTypeList(void *); | |
2228 | #endif | |
2ef75293 | 2229 | |
32fe5131 RD |
2230 | SWIGRUNTIME swig_module_info * |
2231 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2232 | static void *type_pointer = (void *)0; |
2233 | /* first check if module already created */ | |
2234 | if (!type_pointer) { | |
2235 | #ifdef SWIG_LINK_RUNTIME | |
2236 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2237 | #else | |
2238 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2239 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2240 | if (PyErr_Occurred()) { | |
2241 | PyErr_Clear(); | |
2242 | type_pointer = (void *)0; | |
2243 | } | |
093d3ff1 | 2244 | #endif |
32fe5131 RD |
2245 | } |
2246 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2247 | } |
2ef75293 | 2248 | |
32fe5131 RD |
2249 | #if PY_MAJOR_VERSION < 2 |
2250 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2251 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2252 | SWIGINTERN int |
2253 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2254 | { | |
2255 | PyObject *dict; | |
2256 | if (!PyModule_Check(m)) { | |
2257 | PyErr_SetString(PyExc_TypeError, | |
2258 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2259 | return SWIG_ERROR; |
32fe5131 RD |
2260 | } |
2261 | if (!o) { | |
2262 | PyErr_SetString(PyExc_TypeError, | |
2263 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2264 | return SWIG_ERROR; |
32fe5131 RD |
2265 | } |
2266 | ||
2267 | dict = PyModule_GetDict(m); | |
2268 | if (dict == NULL) { | |
2269 | /* Internal error -- modules must have a dict! */ | |
2270 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2271 | PyModule_GetName(m)); | |
0085ce49 | 2272 | return SWIG_ERROR; |
32fe5131 RD |
2273 | } |
2274 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2275 | return SWIG_ERROR; |
32fe5131 | 2276 | Py_DECREF(o); |
0085ce49 | 2277 | return SWIG_OK; |
093d3ff1 | 2278 | } |
32fe5131 | 2279 | #endif |
2ef75293 | 2280 | |
0085ce49 RD |
2281 | SWIGRUNTIME void |
2282 | SWIG_Python_DestroyModule(void *vptr) | |
2283 | { | |
2284 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2285 | swig_type_info **types = swig_module->types; | |
2286 | size_t i; | |
2287 | for (i =0; i < swig_module->size; ++i) { | |
2288 | swig_type_info *ty = types[i]; | |
2289 | if (ty->owndata) { | |
2290 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2291 | if (data) PySwigClientData_Del(data); | |
2292 | } | |
2293 | } | |
2294 | Py_DECREF(SWIG_This()); | |
2295 | } | |
2296 | ||
32fe5131 RD |
2297 | SWIGRUNTIME void |
2298 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2299 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2300 | ||
2301 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2302 | swig_empty_runtime_method_table); | |
0085ce49 | 2303 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2304 | if (pointer && module) { |
2305 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2306 | } else { |
2307 | Py_XDECREF(pointer); | |
32fe5131 RD |
2308 | } |
2309 | } | |
2ef75293 | 2310 | |
0085ce49 RD |
2311 | /* The python cached type query */ |
2312 | SWIGRUNTIME PyObject * | |
2313 | SWIG_Python_TypeCache() { | |
2314 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2315 | return cache; | |
2ef75293 | 2316 | } |
2ef75293 | 2317 | |
0085ce49 RD |
2318 | SWIGRUNTIME swig_type_info * |
2319 | SWIG_Python_TypeQuery(const char *type) | |
2320 | { | |
2321 | PyObject *cache = SWIG_Python_TypeCache(); | |
2322 | PyObject *key = PyString_FromString(type); | |
2323 | PyObject *obj = PyDict_GetItem(cache, key); | |
2324 | swig_type_info *descriptor; | |
2325 | if (obj) { | |
2326 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2327 | } else { | |
2328 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2329 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2330 | if (descriptor) { | |
2331 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2332 | PyDict_SetItem(cache, key, obj); | |
2333 | Py_DECREF(obj); | |
2334 | } | |
2335 | } | |
2336 | Py_DECREF(key); | |
2337 | return descriptor; | |
2338 | } | |
2339 | ||
2340 | /* | |
2341 | For backward compatibility only | |
2342 | */ | |
2343 | #define SWIG_POINTER_EXCEPTION 0 | |
2344 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2345 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2346 | ||
2347 | SWIGRUNTIME int | |
2348 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2349 | { | |
2350 | if (PyErr_Occurred()) { | |
2351 | PyObject *type = 0; | |
2352 | PyObject *value = 0; | |
2353 | PyObject *traceback = 0; | |
2354 | PyErr_Fetch(&type, &value, &traceback); | |
2355 | if (value) { | |
2356 | PyObject *old_str = PyObject_Str(value); | |
2357 | Py_XINCREF(type); | |
2358 | PyErr_Clear(); | |
2359 | if (infront) { | |
2360 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2361 | } else { | |
2362 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2363 | } | |
2364 | Py_DECREF(old_str); | |
2365 | } | |
2366 | return 1; | |
2367 | } else { | |
2368 | return 0; | |
2369 | } | |
2370 | } | |
2371 | ||
2372 | SWIGRUNTIME int | |
2373 | SWIG_Python_ArgFail(int argnum) | |
2374 | { | |
2375 | if (PyErr_Occurred()) { | |
2376 | /* add information about failing argument */ | |
2377 | char mesg[256]; | |
2378 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2379 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2380 | } else { | |
2381 | return 0; | |
2382 | } | |
2383 | } | |
2384 | ||
2385 | SWIGRUNTIMEINLINE const char * | |
2386 | PySwigObject_GetDesc(PyObject *self) | |
2387 | { | |
2388 | PySwigObject *v = (PySwigObject *)self; | |
2389 | swig_type_info *ty = v ? v->ty : 0; | |
2390 | return ty ? ty->str : (char*)""; | |
2391 | } | |
2392 | ||
2393 | SWIGRUNTIME void | |
2394 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2395 | { | |
2396 | if (type) { | |
2397 | #if defined(SWIG_COBJECT_TYPES) | |
2398 | if (obj && PySwigObject_Check(obj)) { | |
2399 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2400 | if (otype) { | |
2401 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2402 | type, otype); | |
2403 | return; | |
2404 | } | |
2405 | } else | |
2406 | #endif | |
2407 | { | |
2408 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2409 | if (otype) { | |
2410 | PyObject *str = PyObject_Str(obj); | |
2411 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2412 | if (cstr) { | |
2413 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2414 | type, otype, cstr); | |
2415 | } else { | |
2416 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2417 | type, otype); | |
2418 | } | |
2419 | Py_XDECREF(str); | |
2420 | return; | |
2421 | } | |
2422 | } | |
2423 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2424 | } else { | |
2425 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2426 | } | |
2427 | } | |
2428 | ||
2429 | ||
2430 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2431 | SWIGRUNTIME void * | |
2432 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2433 | void *result; | |
2434 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2435 | PyErr_Clear(); | |
2436 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2437 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2438 | SWIG_Python_ArgFail(argnum); | |
2439 | } | |
2440 | } | |
2441 | return result; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | #ifdef __cplusplus | |
2446 | #if 0 | |
2447 | { /* cc-mode */ | |
2448 | #endif | |
2449 | } | |
2450 | #endif | |
2451 | ||
2452 | ||
2453 | ||
2454 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2455 | ||
2456 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2457 | ||
2458 | ||
2459 | ||
2460 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2461 | ||
2462 | #define SWIGTYPE_p_char swig_types[0] | |
2463 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
2464 | #define SWIGTYPE_p_int swig_types[2] | |
32fe5131 RD |
2465 | #define SWIGTYPE_p_unsigned_char swig_types[3] |
2466 | #define SWIGTYPE_p_unsigned_int swig_types[4] | |
2467 | #define SWIGTYPE_p_unsigned_long swig_types[5] | |
2468 | #define SWIGTYPE_p_wxANIHandler swig_types[6] | |
2469 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[7] | |
2470 | #define SWIGTYPE_p_wxActivateEvent swig_types[8] | |
2471 | #define SWIGTYPE_p_wxArtClient swig_types[9] | |
2472 | #define SWIGTYPE_p_wxBMPHandler swig_types[10] | |
2473 | #define SWIGTYPE_p_wxBitmap swig_types[11] | |
2474 | #define SWIGTYPE_p_wxBoxSizer swig_types[12] | |
2475 | #define SWIGTYPE_p_wxCURHandler swig_types[13] | |
01f6b6d3 RD |
2476 | #define SWIGTYPE_p_wxChar swig_types[14] |
2477 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[15] | |
2478 | #define SWIGTYPE_p_wxCloseEvent swig_types[16] | |
2479 | #define SWIGTYPE_p_wxColour swig_types[17] | |
2480 | #define SWIGTYPE_p_wxCommandEvent swig_types[18] | |
2481 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[19] | |
2482 | #define SWIGTYPE_p_wxControl swig_types[20] | |
2483 | #define SWIGTYPE_p_wxControlWithItems swig_types[21] | |
2484 | #define SWIGTYPE_p_wxDateEvent swig_types[22] | |
2485 | #define SWIGTYPE_p_wxDialog swig_types[23] | |
2486 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24] | |
2487 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[25] | |
2488 | #define SWIGTYPE_p_wxDuplexMode swig_types[26] | |
2489 | #define SWIGTYPE_p_wxEraseEvent swig_types[27] | |
2490 | #define SWIGTYPE_p_wxEvent swig_types[28] | |
2491 | #define SWIGTYPE_p_wxEvtHandler swig_types[29] | |
2492 | #define SWIGTYPE_p_wxFSFile swig_types[30] | |
2493 | #define SWIGTYPE_p_wxFileSystem swig_types[31] | |
2494 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[32] | |
2495 | #define SWIGTYPE_p_wxFocusEvent swig_types[33] | |
2496 | #define SWIGTYPE_p_wxFont swig_types[34] | |
2497 | #define SWIGTYPE_p_wxFrame swig_types[35] | |
2498 | #define SWIGTYPE_p_wxGBSizerItem swig_types[36] | |
2499 | #define SWIGTYPE_p_wxGIFHandler swig_types[37] | |
2500 | #define SWIGTYPE_p_wxGridBagSizer swig_types[38] | |
2501 | #define SWIGTYPE_p_wxGridSizer swig_types[39] | |
2502 | #define SWIGTYPE_p_wxICOHandler swig_types[40] | |
2503 | #define SWIGTYPE_p_wxIcon swig_types[41] | |
2504 | #define SWIGTYPE_p_wxIconizeEvent swig_types[42] | |
2505 | #define SWIGTYPE_p_wxIdleEvent swig_types[43] | |
2506 | #define SWIGTYPE_p_wxImage swig_types[44] | |
2507 | #define SWIGTYPE_p_wxImageHandler swig_types[45] | |
2508 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[46] | |
2509 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[47] | |
2510 | #define SWIGTYPE_p_wxInputStream swig_types[48] | |
2511 | #define SWIGTYPE_p_wxJPEGHandler swig_types[49] | |
2512 | #define SWIGTYPE_p_wxKeyEvent swig_types[50] | |
2513 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[51] | |
2514 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[52] | |
2515 | #define SWIGTYPE_p_wxMenu swig_types[53] | |
2516 | #define SWIGTYPE_p_wxMenuBar swig_types[54] | |
2517 | #define SWIGTYPE_p_wxMenuEvent swig_types[55] | |
2518 | #define SWIGTYPE_p_wxMenuItem swig_types[56] | |
2519 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[57] | |
2520 | #define SWIGTYPE_p_wxMouseEvent swig_types[58] | |
2521 | #define SWIGTYPE_p_wxMoveEvent swig_types[59] | |
2522 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[60] | |
2523 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[61] | |
2524 | #define SWIGTYPE_p_wxNotifyEvent swig_types[62] | |
2525 | #define SWIGTYPE_p_wxObject swig_types[63] | |
2526 | #define SWIGTYPE_p_wxOutputStream swig_types[64] | |
2527 | #define SWIGTYPE_p_wxPCXHandler swig_types[65] | |
2528 | #define SWIGTYPE_p_wxPNGHandler swig_types[66] | |
2529 | #define SWIGTYPE_p_wxPNMHandler swig_types[67] | |
2530 | #define SWIGTYPE_p_wxPaintEvent swig_types[68] | |
2531 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[69] | |
2532 | #define SWIGTYPE_p_wxPanel swig_types[70] | |
2533 | #define SWIGTYPE_p_wxPaperSize swig_types[71] | |
2534 | #define SWIGTYPE_p_wxPoint swig_types[72] | |
2535 | #define SWIGTYPE_p_wxPyApp swig_types[73] | |
2536 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[74] | |
2537 | #define SWIGTYPE_p_wxPyEvent swig_types[75] | |
2538 | #define SWIGTYPE_p_wxPyImageHandler swig_types[76] | |
2539 | #define SWIGTYPE_p_wxPySizer swig_types[77] | |
2540 | #define SWIGTYPE_p_wxPyValidator swig_types[78] | |
2541 | #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[79] | |
2542 | #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[80] | |
2543 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[81] | |
2544 | #define SWIGTYPE_p_wxScrollEvent swig_types[82] | |
2545 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[83] | |
2546 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[84] | |
2547 | #define SWIGTYPE_p_wxShowEvent swig_types[85] | |
2548 | #define SWIGTYPE_p_wxSize swig_types[86] | |
2549 | #define SWIGTYPE_p_wxSizeEvent swig_types[87] | |
2550 | #define SWIGTYPE_p_wxSizer swig_types[88] | |
2551 | #define SWIGTYPE_p_wxSizerItem swig_types[89] | |
2552 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[90] | |
2553 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[91] | |
2554 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[92] | |
2555 | #define SWIGTYPE_p_wxTIFFHandler swig_types[93] | |
2556 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[94] | |
2557 | #define SWIGTYPE_p_wxValidator swig_types[95] | |
2558 | #define SWIGTYPE_p_wxWindow swig_types[96] | |
2559 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[97] | |
2560 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[98] | |
2561 | #define SWIGTYPE_p_wxXPMHandler swig_types[99] | |
2562 | #define SWIGTYPE_p_wxXmlDocument swig_types[100] | |
2563 | #define SWIGTYPE_p_wxXmlNode swig_types[101] | |
2564 | #define SWIGTYPE_p_wxXmlProperty swig_types[102] | |
2565 | #define SWIGTYPE_p_wxXmlResource swig_types[103] | |
2566 | static swig_type_info *swig_types[105]; | |
2567 | static swig_module_info swig_module = {swig_types, 104, 0, 0, 0, 0}; | |
32fe5131 RD |
2568 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2569 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
2ef75293 RD |
2570 | |
2571 | /* -------- TYPES TABLE (END) -------- */ | |
2572 | ||
0085ce49 RD |
2573 | #if (PY_VERSION_HEX <= 0x02000000) |
2574 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2575 | # error "This python version requires to use swig with the '-classic' option" | |
2576 | # endif | |
2577 | #endif | |
2578 | #if (PY_VERSION_HEX <= 0x02020000) | |
2579 | # error "This python version requires to use swig with the '-nomodern' option" | |
2580 | #endif | |
2581 | #if (PY_VERSION_HEX <= 0x02020000) | |
2582 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2583 | #endif | |
2584 | #ifndef METH_O | |
2585 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2586 | #endif | |
2ef75293 RD |
2587 | |
2588 | /*----------------------------------------------- | |
2589 | @(target):= _xrc.so | |
2590 | ------------------------------------------------*/ | |
2591 | #define SWIG_init init_xrc | |
2592 | ||
2593 | #define SWIG_name "_xrc" | |
2594 | ||
0085ce49 RD |
2595 | #define SWIGVERSION 0x010329 |
2596 | ||
2597 | ||
2598 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2599 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2600 | ||
2601 | ||
2602 | #include <stdexcept> | |
2603 | ||
2604 | ||
2605 | namespace swig { | |
2606 | class PyObject_ptr { | |
2607 | protected: | |
2608 | PyObject *_obj; | |
2609 | ||
2610 | public: | |
2611 | PyObject_ptr() :_obj(0) | |
2612 | { | |
2613 | } | |
2614 | ||
2615 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2616 | { | |
2617 | Py_XINCREF(_obj); | |
2618 | } | |
2619 | ||
2620 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2621 | { | |
2622 | if (initial_ref) Py_XINCREF(_obj); | |
2623 | } | |
2624 | ||
2625 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2626 | { | |
2627 | Py_XINCREF(item._obj); | |
2628 | Py_XDECREF(_obj); | |
2629 | _obj = item._obj; | |
2630 | return *this; | |
2631 | } | |
2632 | ||
2633 | ~PyObject_ptr() | |
2634 | { | |
2635 | Py_XDECREF(_obj); | |
2636 | } | |
2637 | ||
2638 | operator PyObject *() const | |
2639 | { | |
2640 | return _obj; | |
2641 | } | |
2642 | ||
2643 | PyObject *operator->() const | |
2644 | { | |
2645 | return _obj; | |
2646 | } | |
2647 | }; | |
2648 | } | |
2649 | ||
2650 | ||
2651 | namespace swig { | |
2652 | struct PyObject_var : PyObject_ptr { | |
2653 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2654 | ||
2655 | PyObject_var & operator = (PyObject* obj) | |
2656 | { | |
2657 | Py_XDECREF(_obj); | |
2658 | _obj = obj; | |
2659 | return *this; | |
2660 | } | |
2661 | }; | |
2662 | } | |
2663 | ||
2664 | ||
2ef75293 RD |
2665 | #include "wx/wxPython/wxPython.h" |
2666 | #include "wx/wxPython/pyclasses.h" | |
2667 | #include "wx/wxPython/pyistream.h" | |
2668 | ||
2669 | #include <wx/xml/xml.h> | |
2670 | #include <wx/xrc/xmlres.h> | |
2671 | ||
2672 | static const wxString wxPyEmptyString(wxEmptyString); | |
2673 | static const wxString wxPyUTF8String(wxT("UTF-8")); | |
2674 | static const wxString wxPyStyleString(wxT("style")); | |
2675 | static const wxString wxPySizeString(wxT("size")); | |
2676 | static const wxString wxPyPosString(wxT("pos")); | |
2677 | static const wxString wxPyBitmapString(wxT("bitmap")); | |
2678 | static const wxString wxPyIconString(wxT("icon")); | |
2679 | static const wxString wxPyFontString(wxT("font")); | |
2680 | ||
0085ce49 | 2681 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2682 | |
2683 | ||
0085ce49 RD |
2684 | SWIGINTERNINLINE PyObject * |
2685 | SWIG_From_int (int value) | |
2686 | { | |
2687 | return SWIG_From_long (value); | |
2688 | } | |
2ef75293 RD |
2689 | |
2690 | ||
0085ce49 RD |
2691 | #include <limits.h> |
2692 | #ifndef LLONG_MIN | |
2693 | # define LLONG_MIN LONG_LONG_MIN | |
2694 | #endif | |
2695 | #ifndef LLONG_MAX | |
2696 | # define LLONG_MAX LONG_LONG_MAX | |
2697 | #endif | |
2698 | #ifndef ULLONG_MAX | |
2699 | # define ULLONG_MAX ULONG_LONG_MAX | |
2700 | #endif | |
2ef75293 RD |
2701 | |
2702 | ||
093d3ff1 | 2703 | SWIGINTERN int |
0085ce49 | 2704 | SWIG_AsVal_long (PyObject* obj, long* val) |
2ef75293 RD |
2705 | { |
2706 | if (PyNumber_Check(obj)) { | |
2707 | if (val) *val = PyInt_AsLong(obj); | |
0085ce49 | 2708 | return SWIG_OK; |
2ef75293 | 2709 | } |
0085ce49 | 2710 | return SWIG_TypeError; |
2ef75293 RD |
2711 | } |
2712 | ||
2713 | ||
093d3ff1 | 2714 | SWIGINTERN int |
0085ce49 RD |
2715 | SWIG_AsVal_int (PyObject * obj, int *val) |
2716 | { | |
2ef75293 | 2717 | long v; |
0085ce49 RD |
2718 | int res = SWIG_AsVal_long (obj, &v); |
2719 | if (SWIG_IsOK(res)) { | |
2720 | if ((v < INT_MIN || v > INT_MAX)) { | |
2721 | return SWIG_OverflowError; | |
2ef75293 | 2722 | } else { |
0085ce49 | 2723 | if (val) *val = static_cast< int >(v); |
2ef75293 | 2724 | } |
0085ce49 RD |
2725 | } |
2726 | return res; | |
2ef75293 RD |
2727 | } |
2728 | ||
0085ce49 | 2729 | SWIGINTERN bool wxXmlResource_LoadFromString(wxXmlResource *self,wxString const &data){ |
2ef75293 RD |
2730 | static int s_memFileIdx = 0; |
2731 | ||
2732 | // Check for memory FS. If not present, load the handler: | |
2733 | wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), | |
2734 | wxT("dummy data")); | |
2735 | wxFileSystem fsys; | |
2736 | wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file")); | |
2737 | wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file")); | |
2738 | if (f) | |
2739 | delete f; | |
2740 | else | |
2741 | wxFileSystem::AddHandler(new wxMemoryFSHandler); | |
2742 | ||
2743 | // Now put the resource data into the memory FS | |
2744 | wxString filename(wxT("XRC_resource/data_string_")); | |
2745 | filename << s_memFileIdx; | |
2746 | s_memFileIdx += 1; | |
2747 | wxMemoryFSHandler::AddFile(filename, data); | |
2748 | ||
2749 | // Load the "file" into the resource object | |
2750 | bool retval = self->Load(wxT("memory:") + filename ); | |
2751 | ||
2752 | return retval; | |
2753 | } | |
2754 | ||
2755 | class wxPyXmlSubclassFactory : public wxXmlSubclassFactory | |
2756 | { | |
2757 | public: | |
2758 | wxPyXmlSubclassFactory() {} | |
2759 | DEC_PYCALLBACK_OBJECT_STRING_pure(Create); | |
2760 | PYPRIVATE; | |
2761 | }; | |
2762 | ||
2763 | IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create); | |
2764 | ||
2765 | // C++ version of Python aware wxXmlResourceHandler, for the pure virtual | |
2766 | // callbacks, as well as to make some protected things public so they can | |
2767 | // be wrapped. | |
2768 | class wxPyXmlResourceHandler : public wxXmlResourceHandler { | |
2769 | public: | |
2770 | wxPyXmlResourceHandler() : wxXmlResourceHandler() {} | |
2771 | //~wxPyXmlResourceHandler(); | |
2772 | ||
2773 | // Base class virtuals | |
2774 | ||
2775 | DEC_PYCALLBACK_OBJECT__pure(DoCreateResource); | |
2776 | DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle); | |
2777 | ||
2778 | ||
2779 | // accessors for protected members | |
2780 | ||
2781 | wxXmlResource* GetResource() { return m_resource; } | |
2782 | wxXmlNode* GetNode() { return m_node; } | |
2783 | wxString GetClass() { return m_class; } | |
2784 | wxObject* GetParent() { return m_parent; } | |
2785 | wxObject* GetInstance() { return m_instance; } | |
2786 | wxWindow* GetParentAsWindow() { return m_parentAsWindow; } | |
2ef75293 RD |
2787 | |
2788 | ||
2789 | // turn some protected methods into public via delegation | |
2790 | ||
2791 | bool IsOfClass(wxXmlNode *node, const wxString& classname) | |
2792 | { return wxXmlResourceHandler::IsOfClass(node, classname); } | |
2793 | ||
2794 | wxString GetNodeContent(wxXmlNode *node) | |
2795 | { return wxXmlResourceHandler::GetNodeContent(node); } | |
2796 | ||
2797 | bool HasParam(const wxString& param) | |
2798 | { return wxXmlResourceHandler::HasParam(param); } | |
2799 | ||
2800 | wxXmlNode *GetParamNode(const wxString& param) | |
2801 | { return wxXmlResourceHandler::GetParamNode(param); } | |
2802 | ||
2803 | wxString GetParamValue(const wxString& param) | |
2804 | { return wxXmlResourceHandler::GetParamValue(param); } | |
2805 | ||
2806 | void AddStyle(const wxString& name, int value) | |
2807 | { wxXmlResourceHandler::AddStyle(name, value); } | |
2808 | ||
2809 | void AddWindowStyles() | |
2810 | { wxXmlResourceHandler::AddWindowStyles(); } | |
2811 | ||
2812 | int GetStyle(const wxString& param = wxT("style"), int defaults = 0) | |
2813 | { return wxXmlResourceHandler::GetStyle(param, defaults); } | |
2814 | ||
ae8162c8 | 2815 | wxString GetText(const wxString& param, bool translate = true) |
2ef75293 RD |
2816 | { return wxXmlResourceHandler::GetText(param, translate); } |
2817 | ||
2818 | int GetID() | |
2819 | { return wxXmlResourceHandler::GetID(); } | |
2820 | ||
2821 | wxString GetName() | |
2822 | { return wxXmlResourceHandler::GetName(); } | |
2823 | ||
ae8162c8 | 2824 | bool GetBool(const wxString& param, bool defaultv = false) |
2ef75293 RD |
2825 | { return wxXmlResourceHandler::GetBool(param, defaultv); } |
2826 | ||
2827 | long GetLong( const wxString& param, long defaultv = 0 ) | |
2828 | { return wxXmlResourceHandler::GetLong(param, defaultv); } | |
2829 | ||
2830 | wxColour GetColour(const wxString& param) | |
2831 | { return wxXmlResourceHandler::GetColour(param); } | |
2832 | ||
2833 | wxSize GetSize(const wxString& param = wxT("size")) | |
2834 | { return wxXmlResourceHandler::GetSize(param); } | |
2835 | ||
2836 | wxPoint GetPosition(const wxString& param = wxT("pos")) | |
2837 | { return wxXmlResourceHandler::GetPosition(param); } | |
2838 | ||
2839 | wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0) | |
2840 | { return wxXmlResourceHandler::GetDimension(param, defaultv); } | |
2841 | ||
2842 | wxBitmap GetBitmap(const wxString& param = wxT("bitmap"), | |
2843 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
2844 | wxSize size = wxDefaultSize) | |
2845 | { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); } | |
2846 | ||
2847 | wxIcon GetIcon(const wxString& param = wxT("icon"), | |
2848 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
2849 | wxSize size = wxDefaultSize) | |
2850 | { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); } | |
2851 | ||
2852 | wxFont GetFont(const wxString& param = wxT("font")) | |
2853 | { return wxXmlResourceHandler::GetFont(param); } | |
2854 | ||
2855 | void SetupWindow(wxWindow *wnd) | |
2856 | { wxXmlResourceHandler::SetupWindow(wnd); } | |
2857 | ||
ae8162c8 | 2858 | void CreateChildren(wxObject *parent, bool this_hnd_only = false) |
2ef75293 RD |
2859 | { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); } |
2860 | ||
2861 | void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL) | |
2862 | { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); } | |
2863 | ||
2864 | wxObject *CreateResFromNode(wxXmlNode *node, | |
2865 | wxObject *parent, wxObject *instance = NULL) | |
2866 | { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); } | |
2867 | ||
2868 | wxFileSystem& GetCurFileSystem() | |
2869 | { return wxXmlResourceHandler::GetCurFileSystem(); } | |
2870 | ||
2871 | ||
2872 | PYPRIVATE; | |
2873 | }; | |
2874 | ||
2875 | IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource); | |
2876 | IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle); | |
2877 | ||
2878 | ||
2879 | ||
093d3ff1 | 2880 | SWIGINTERN int |
0085ce49 | 2881 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
2ef75293 | 2882 | { |
2ef75293 RD |
2883 | if (obj == Py_True) { |
2884 | if (val) *val = true; | |
0085ce49 RD |
2885 | return SWIG_OK; |
2886 | } else if (obj == Py_False) { | |
2ef75293 | 2887 | if (val) *val = false; |
0085ce49 | 2888 | return SWIG_OK; |
093d3ff1 | 2889 | } else { |
0085ce49 RD |
2890 | long v = 0; |
2891 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2892 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2893 | return res; | |
2ef75293 | 2894 | } |
2ef75293 RD |
2895 | } |
2896 | ||
2897 | #ifdef __cplusplus | |
2898 | extern "C" { | |
2899 | #endif | |
0085ce49 RD |
2900 | SWIGINTERN int UTF8String_set(PyObject *) { |
2901 | SWIG_Error(SWIG_AttributeError,"Variable UTF8String is read-only."); | |
2902 | return 1; | |
2ef75293 RD |
2903 | } |
2904 | ||
2905 | ||
0085ce49 RD |
2906 | SWIGINTERN PyObject *UTF8String_get(void) { |
2907 | PyObject *pyobj = 0; | |
2908 | ||
2909 | { | |
2ef75293 | 2910 | #if wxUSE_UNICODE |
0085ce49 | 2911 | pyobj = PyUnicode_FromWideChar((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); |
2ef75293 | 2912 | #else |
0085ce49 | 2913 | pyobj = PyString_FromStringAndSize((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); |
2ef75293 | 2914 | #endif |
0085ce49 RD |
2915 | } |
2916 | return pyobj; | |
2ef75293 RD |
2917 | } |
2918 | ||
2919 | ||
0085ce49 RD |
2920 | SWIGINTERN int StyleString_set(PyObject *) { |
2921 | SWIG_Error(SWIG_AttributeError,"Variable StyleString is read-only."); | |
2922 | return 1; | |
2ef75293 RD |
2923 | } |
2924 | ||
2925 | ||
0085ce49 RD |
2926 | SWIGINTERN PyObject *StyleString_get(void) { |
2927 | PyObject *pyobj = 0; | |
2928 | ||
2929 | { | |
2ef75293 | 2930 | #if wxUSE_UNICODE |
0085ce49 | 2931 | pyobj = PyUnicode_FromWideChar((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); |
2ef75293 | 2932 | #else |
0085ce49 | 2933 | pyobj = PyString_FromStringAndSize((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); |
2ef75293 | 2934 | #endif |
0085ce49 RD |
2935 | } |
2936 | return pyobj; | |
2ef75293 RD |
2937 | } |
2938 | ||
2939 | ||
0085ce49 RD |
2940 | SWIGINTERN int SizeString_set(PyObject *) { |
2941 | SWIG_Error(SWIG_AttributeError,"Variable SizeString is read-only."); | |
2942 | return 1; | |
2ef75293 RD |
2943 | } |
2944 | ||
2945 | ||
0085ce49 RD |
2946 | SWIGINTERN PyObject *SizeString_get(void) { |
2947 | PyObject *pyobj = 0; | |
2948 | ||
2949 | { | |
2ef75293 | 2950 | #if wxUSE_UNICODE |
0085ce49 | 2951 | pyobj = PyUnicode_FromWideChar((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); |
2ef75293 | 2952 | #else |
0085ce49 | 2953 | pyobj = PyString_FromStringAndSize((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); |
2ef75293 | 2954 | #endif |
0085ce49 RD |
2955 | } |
2956 | return pyobj; | |
2ef75293 RD |
2957 | } |
2958 | ||
2959 | ||
0085ce49 RD |
2960 | SWIGINTERN int PosString_set(PyObject *) { |
2961 | SWIG_Error(SWIG_AttributeError,"Variable PosString is read-only."); | |
2962 | return 1; | |
2ef75293 RD |
2963 | } |
2964 | ||
2965 | ||
0085ce49 RD |
2966 | SWIGINTERN PyObject *PosString_get(void) { |
2967 | PyObject *pyobj = 0; | |
2968 | ||
2969 | { | |
2ef75293 | 2970 | #if wxUSE_UNICODE |
0085ce49 | 2971 | pyobj = PyUnicode_FromWideChar((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); |
2ef75293 | 2972 | #else |
0085ce49 | 2973 | pyobj = PyString_FromStringAndSize((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); |
2ef75293 | 2974 | #endif |
0085ce49 RD |
2975 | } |
2976 | return pyobj; | |
2ef75293 RD |
2977 | } |
2978 | ||
2979 | ||
0085ce49 RD |
2980 | SWIGINTERN int BitmapString_set(PyObject *) { |
2981 | SWIG_Error(SWIG_AttributeError,"Variable BitmapString is read-only."); | |
2982 | return 1; | |
2ef75293 RD |
2983 | } |
2984 | ||
2985 | ||
0085ce49 RD |
2986 | SWIGINTERN PyObject *BitmapString_get(void) { |
2987 | PyObject *pyobj = 0; | |
2988 | ||
2989 | { | |
2ef75293 | 2990 | #if wxUSE_UNICODE |
0085ce49 | 2991 | pyobj = PyUnicode_FromWideChar((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); |
2ef75293 | 2992 | #else |
0085ce49 | 2993 | pyobj = PyString_FromStringAndSize((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); |
2ef75293 | 2994 | #endif |
0085ce49 RD |
2995 | } |
2996 | return pyobj; | |
2ef75293 RD |
2997 | } |
2998 | ||
2999 | ||
0085ce49 RD |
3000 | SWIGINTERN int IconString_set(PyObject *) { |
3001 | SWIG_Error(SWIG_AttributeError,"Variable IconString is read-only."); | |
3002 | return 1; | |
2ef75293 RD |
3003 | } |
3004 | ||
3005 | ||
0085ce49 RD |
3006 | SWIGINTERN PyObject *IconString_get(void) { |
3007 | PyObject *pyobj = 0; | |
3008 | ||
3009 | { | |
2ef75293 | 3010 | #if wxUSE_UNICODE |
0085ce49 | 3011 | pyobj = PyUnicode_FromWideChar((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); |
2ef75293 | 3012 | #else |
0085ce49 | 3013 | pyobj = PyString_FromStringAndSize((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); |
2ef75293 | 3014 | #endif |
0085ce49 RD |
3015 | } |
3016 | return pyobj; | |
2ef75293 RD |
3017 | } |
3018 | ||
3019 | ||
0085ce49 RD |
3020 | SWIGINTERN int FontString_set(PyObject *) { |
3021 | SWIG_Error(SWIG_AttributeError,"Variable FontString is read-only."); | |
3022 | return 1; | |
2ef75293 RD |
3023 | } |
3024 | ||
3025 | ||
0085ce49 RD |
3026 | SWIGINTERN PyObject *FontString_get(void) { |
3027 | PyObject *pyobj = 0; | |
3028 | ||
3029 | { | |
2ef75293 | 3030 | #if wxUSE_UNICODE |
0085ce49 | 3031 | pyobj = PyUnicode_FromWideChar((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); |
2ef75293 | 3032 | #else |
0085ce49 | 3033 | pyobj = PyString_FromStringAndSize((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); |
2ef75293 | 3034 | #endif |
0085ce49 RD |
3035 | } |
3036 | return pyobj; | |
3037 | } | |
3038 | ||
3039 | ||
3040 | SWIGINTERN PyObject *_wrap_new_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3041 | PyObject *resultobj = 0; | |
3042 | wxString *arg1 = 0 ; | |
3043 | int arg2 = (int) wxXRC_USE_LOCALE ; | |
3044 | wxXmlResource *result = 0 ; | |
3045 | bool temp1 = false ; | |
3046 | int val2 ; | |
3047 | int ecode2 = 0 ; | |
3048 | PyObject * obj0 = 0 ; | |
3049 | PyObject * obj1 = 0 ; | |
3050 | char * kwnames[] = { | |
3051 | (char *) "filemask",(char *) "flags", NULL | |
3052 | }; | |
3053 | ||
3054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlResource",kwnames,&obj0,&obj1)) SWIG_fail; | |
3055 | { | |
3056 | arg1 = wxString_in_helper(obj0); | |
3057 | if (arg1 == NULL) SWIG_fail; | |
3058 | temp1 = true; | |
3059 | } | |
3060 | if (obj1) { | |
3061 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3062 | if (!SWIG_IsOK(ecode2)) { | |
3063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlResource" "', expected argument " "2"" of type '" "int""'"); | |
3064 | } | |
3065 | arg2 = static_cast< int >(val2); | |
3066 | } | |
3067 | { | |
3068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3069 | result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2); | |
3070 | wxPyEndAllowThreads(__tstate); | |
3071 | if (PyErr_Occurred()) SWIG_fail; | |
3072 | } | |
3073 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_NEW | 0 ); | |
3074 | { | |
3075 | if (temp1) | |
3076 | delete arg1; | |
3077 | } | |
3078 | return resultobj; | |
3079 | fail: | |
3080 | { | |
3081 | if (temp1) | |
3082 | delete arg1; | |
3083 | } | |
3084 | return NULL; | |
2ef75293 RD |
3085 | } |
3086 | ||
3087 | ||
0085ce49 RD |
3088 | SWIGINTERN PyObject *_wrap_new_EmptyXmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3089 | PyObject *resultobj = 0; | |
3090 | int arg1 = (int) wxXRC_USE_LOCALE ; | |
3091 | wxXmlResource *result = 0 ; | |
3092 | int val1 ; | |
3093 | int ecode1 = 0 ; | |
3094 | PyObject * obj0 = 0 ; | |
3095 | char * kwnames[] = { | |
3096 | (char *) "flags", NULL | |
3097 | }; | |
3098 | ||
3099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_EmptyXmlResource",kwnames,&obj0)) SWIG_fail; | |
3100 | if (obj0) { | |
3101 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3102 | if (!SWIG_IsOK(ecode1)) { | |
3103 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyXmlResource" "', expected argument " "1"" of type '" "int""'"); | |
3104 | } | |
3105 | arg1 = static_cast< int >(val1); | |
3106 | } | |
3107 | { | |
3108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3109 | result = (wxXmlResource *)new wxXmlResource(arg1); | |
3110 | wxPyEndAllowThreads(__tstate); | |
3111 | if (PyErr_Occurred()) SWIG_fail; | |
3112 | } | |
3113 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_OWN | 0 ); | |
3114 | return resultobj; | |
3115 | fail: | |
3116 | return NULL; | |
2ef75293 RD |
3117 | } |
3118 | ||
3119 | ||
0085ce49 RD |
3120 | SWIGINTERN PyObject *_wrap_delete_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3121 | PyObject *resultobj = 0; | |
3122 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3123 | void *argp1 = 0 ; | |
3124 | int res1 = 0 ; | |
3125 | PyObject *swig_obj[1] ; | |
3126 | ||
3127 | if (!args) SWIG_fail; | |
3128 | swig_obj[0] = args; | |
3129 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, SWIG_POINTER_DISOWN | 0 ); | |
3130 | if (!SWIG_IsOK(res1)) { | |
3131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResource" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3132 | } | |
3133 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3134 | { | |
3135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3136 | delete arg1; | |
2ef75293 | 3137 | |
0085ce49 RD |
3138 | wxPyEndAllowThreads(__tstate); |
3139 | if (PyErr_Occurred()) SWIG_fail; | |
3140 | } | |
3141 | resultobj = SWIG_Py_Void(); | |
3142 | return resultobj; | |
3143 | fail: | |
3144 | return NULL; | |
3145 | } | |
3146 | ||
3147 | ||
3148 | SWIGINTERN PyObject *_wrap_XmlResource_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3149 | PyObject *resultobj = 0; | |
3150 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3151 | wxString *arg2 = 0 ; | |
3152 | bool result; | |
3153 | void *argp1 = 0 ; | |
3154 | int res1 = 0 ; | |
3155 | bool temp2 = false ; | |
3156 | PyObject * obj0 = 0 ; | |
3157 | PyObject * obj1 = 0 ; | |
3158 | char * kwnames[] = { | |
3159 | (char *) "self",(char *) "filemask", NULL | |
3160 | }; | |
3161 | ||
3162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Load",kwnames,&obj0,&obj1)) SWIG_fail; | |
3163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3164 | if (!SWIG_IsOK(res1)) { | |
3165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Load" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3166 | } | |
3167 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3168 | { | |
3169 | arg2 = wxString_in_helper(obj1); | |
3170 | if (arg2 == NULL) SWIG_fail; | |
3171 | temp2 = true; | |
3172 | } | |
3173 | { | |
3174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3175 | result = (bool)(arg1)->Load((wxString const &)*arg2); | |
3176 | wxPyEndAllowThreads(__tstate); | |
3177 | if (PyErr_Occurred()) SWIG_fail; | |
3178 | } | |
3179 | { | |
3180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3181 | } | |
3182 | { | |
3183 | if (temp2) | |
3184 | delete arg2; | |
3185 | } | |
3186 | return resultobj; | |
3187 | fail: | |
3188 | { | |
3189 | if (temp2) | |
3190 | delete arg2; | |
3191 | } | |
3192 | return NULL; | |
3193 | } | |
3194 | ||
3195 | ||
3196 | SWIGINTERN PyObject *_wrap_XmlResource_LoadFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3197 | PyObject *resultobj = 0; | |
3198 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3199 | wxString *arg2 = 0 ; | |
3200 | bool result; | |
3201 | void *argp1 = 0 ; | |
3202 | int res1 = 0 ; | |
3203 | bool temp2 = false ; | |
3204 | PyObject * obj0 = 0 ; | |
3205 | PyObject * obj1 = 0 ; | |
3206 | char * kwnames[] = { | |
3207 | (char *) "self",(char *) "data", NULL | |
3208 | }; | |
3209 | ||
3210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
3211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3212 | if (!SWIG_IsOK(res1)) { | |
3213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFromString" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3214 | } | |
3215 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3216 | { | |
3217 | arg2 = wxString_in_helper(obj1); | |
3218 | if (arg2 == NULL) SWIG_fail; | |
3219 | temp2 = true; | |
3220 | } | |
3221 | { | |
3222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3223 | result = (bool)wxXmlResource_LoadFromString(arg1,(wxString const &)*arg2); | |
3224 | wxPyEndAllowThreads(__tstate); | |
3225 | if (PyErr_Occurred()) SWIG_fail; | |
3226 | } | |
3227 | { | |
3228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3229 | } | |
3230 | { | |
3231 | if (temp2) | |
3232 | delete arg2; | |
3233 | } | |
3234 | return resultobj; | |
3235 | fail: | |
3236 | { | |
3237 | if (temp2) | |
3238 | delete arg2; | |
3239 | } | |
3240 | return NULL; | |
3241 | } | |
3242 | ||
3243 | ||
3244 | SWIGINTERN PyObject *_wrap_XmlResource_Unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3245 | PyObject *resultobj = 0; | |
3246 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3247 | wxString *arg2 = 0 ; | |
3248 | bool result; | |
3249 | void *argp1 = 0 ; | |
3250 | int res1 = 0 ; | |
3251 | bool temp2 = false ; | |
3252 | PyObject * obj0 = 0 ; | |
3253 | PyObject * obj1 = 0 ; | |
3254 | char * kwnames[] = { | |
3255 | (char *) "self",(char *) "filename", NULL | |
3256 | }; | |
3257 | ||
3258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Unload",kwnames,&obj0,&obj1)) SWIG_fail; | |
3259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3260 | if (!SWIG_IsOK(res1)) { | |
3261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Unload" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3262 | } | |
3263 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3264 | { | |
3265 | arg2 = wxString_in_helper(obj1); | |
3266 | if (arg2 == NULL) SWIG_fail; | |
3267 | temp2 = true; | |
3268 | } | |
3269 | { | |
3270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3271 | result = (bool)(arg1)->Unload((wxString const &)*arg2); | |
3272 | wxPyEndAllowThreads(__tstate); | |
3273 | if (PyErr_Occurred()) SWIG_fail; | |
3274 | } | |
3275 | { | |
3276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3277 | } | |
3278 | { | |
3279 | if (temp2) | |
3280 | delete arg2; | |
3281 | } | |
3282 | return resultobj; | |
3283 | fail: | |
3284 | { | |
3285 | if (temp2) | |
3286 | delete arg2; | |
3287 | } | |
3288 | return NULL; | |
2ef75293 RD |
3289 | } |
3290 | ||
3291 | ||
0085ce49 RD |
3292 | SWIGINTERN PyObject *_wrap_XmlResource_InitAllHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3293 | PyObject *resultobj = 0; | |
3294 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3295 | void *argp1 = 0 ; | |
3296 | int res1 = 0 ; | |
3297 | PyObject *swig_obj[1] ; | |
3298 | ||
3299 | if (!args) SWIG_fail; | |
3300 | swig_obj[0] = args; | |
3301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3302 | if (!SWIG_IsOK(res1)) { | |
3303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InitAllHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3304 | } | |
3305 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3306 | { | |
3307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3308 | (arg1)->InitAllHandlers(); | |
3309 | wxPyEndAllowThreads(__tstate); | |
3310 | if (PyErr_Occurred()) SWIG_fail; | |
3311 | } | |
3312 | resultobj = SWIG_Py_Void(); | |
3313 | return resultobj; | |
3314 | fail: | |
3315 | return NULL; | |
3316 | } | |
3317 | ||
3318 | ||
3319 | SWIGINTERN PyObject *_wrap_XmlResource_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3320 | PyObject *resultobj = 0; | |
3321 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3322 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
3323 | void *argp1 = 0 ; | |
3324 | int res1 = 0 ; | |
3325 | void *argp2 = 0 ; | |
3326 | int res2 = 0 ; | |
3327 | PyObject * obj0 = 0 ; | |
3328 | PyObject * obj1 = 0 ; | |
3329 | char * kwnames[] = { | |
3330 | (char *) "self",(char *) "handler", NULL | |
3331 | }; | |
3332 | ||
3333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_AddHandler",kwnames,&obj0,&obj1)) SWIG_fail; | |
3334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3335 | if (!SWIG_IsOK(res1)) { | |
3336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3337 | } | |
3338 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3339 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
3340 | if (!SWIG_IsOK(res2)) { | |
3341 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_AddHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'"); | |
3342 | } | |
3343 | arg2 = reinterpret_cast< wxPyXmlResourceHandler * >(argp2); | |
3344 | { | |
3345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3346 | (arg1)->AddHandler(arg2); | |
3347 | wxPyEndAllowThreads(__tstate); | |
3348 | if (PyErr_Occurred()) SWIG_fail; | |
3349 | } | |
3350 | resultobj = SWIG_Py_Void(); | |
3351 | return resultobj; | |
3352 | fail: | |
3353 | return NULL; | |
3354 | } | |
3355 | ||
3356 | ||
3357 | SWIGINTERN PyObject *_wrap_XmlResource_InsertHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3358 | PyObject *resultobj = 0; | |
3359 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3360 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
3361 | void *argp1 = 0 ; | |
3362 | int res1 = 0 ; | |
3363 | void *argp2 = 0 ; | |
3364 | int res2 = 0 ; | |
3365 | PyObject * obj0 = 0 ; | |
3366 | PyObject * obj1 = 0 ; | |
3367 | char * kwnames[] = { | |
3368 | (char *) "self",(char *) "handler", NULL | |
3369 | }; | |
3370 | ||
3371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_InsertHandler",kwnames,&obj0,&obj1)) SWIG_fail; | |
3372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3373 | if (!SWIG_IsOK(res1)) { | |
3374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InsertHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3375 | } | |
3376 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3377 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
3378 | if (!SWIG_IsOK(res2)) { | |
3379 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_InsertHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'"); | |
3380 | } | |
3381 | arg2 = reinterpret_cast< wxPyXmlResourceHandler * >(argp2); | |
3382 | { | |
3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3384 | (arg1)->InsertHandler(arg2); | |
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
3388 | resultobj = SWIG_Py_Void(); | |
3389 | return resultobj; | |
3390 | fail: | |
3391 | return NULL; | |
2ef75293 RD |
3392 | } |
3393 | ||
3394 | ||
0085ce49 RD |
3395 | SWIGINTERN PyObject *_wrap_XmlResource_ClearHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3396 | PyObject *resultobj = 0; | |
3397 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3398 | void *argp1 = 0 ; | |
3399 | int res1 = 0 ; | |
3400 | PyObject *swig_obj[1] ; | |
3401 | ||
3402 | if (!args) SWIG_fail; | |
3403 | swig_obj[0] = args; | |
3404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3405 | if (!SWIG_IsOK(res1)) { | |
3406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_ClearHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3407 | } | |
3408 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3409 | { | |
3410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3411 | (arg1)->ClearHandlers(); | |
3412 | wxPyEndAllowThreads(__tstate); | |
3413 | if (PyErr_Occurred()) SWIG_fail; | |
3414 | } | |
3415 | resultobj = SWIG_Py_Void(); | |
3416 | return resultobj; | |
3417 | fail: | |
3418 | return NULL; | |
2ef75293 RD |
3419 | } |
3420 | ||
3421 | ||
0085ce49 RD |
3422 | SWIGINTERN PyObject *_wrap_XmlResource_AddSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3423 | PyObject *resultobj = 0; | |
3424 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
3425 | void *argp1 = 0 ; | |
3426 | int res1 = 0 ; | |
3427 | PyObject * obj0 = 0 ; | |
3428 | char * kwnames[] = { | |
3429 | (char *) "factory", NULL | |
3430 | }; | |
3431 | ||
3432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_AddSubclassFactory",kwnames,&obj0)) SWIG_fail; | |
3433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 ); | |
3434 | if (!SWIG_IsOK(res1)) { | |
3435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddSubclassFactory" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'"); | |
3436 | } | |
3437 | arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1); | |
3438 | { | |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | wxXmlResource::AddSubclassFactory(arg1); | |
3441 | wxPyEndAllowThreads(__tstate); | |
3442 | if (PyErr_Occurred()) SWIG_fail; | |
3443 | } | |
3444 | resultobj = SWIG_Py_Void(); | |
3445 | return resultobj; | |
3446 | fail: | |
3447 | return NULL; | |
3448 | } | |
3449 | ||
3450 | ||
3451 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3452 | PyObject *resultobj = 0; | |
3453 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3454 | wxString *arg2 = 0 ; | |
3455 | wxMenu *result = 0 ; | |
3456 | void *argp1 = 0 ; | |
3457 | int res1 = 0 ; | |
3458 | bool temp2 = false ; | |
3459 | PyObject * obj0 = 0 ; | |
3460 | PyObject * obj1 = 0 ; | |
3461 | char * kwnames[] = { | |
3462 | (char *) "self",(char *) "name", NULL | |
3463 | }; | |
3464 | ||
3465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
3466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3467 | if (!SWIG_IsOK(res1)) { | |
3468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenu" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3469 | } | |
3470 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3471 | { | |
3472 | arg2 = wxString_in_helper(obj1); | |
3473 | if (arg2 == NULL) SWIG_fail; | |
3474 | temp2 = true; | |
3475 | } | |
3476 | { | |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3478 | result = (wxMenu *)(arg1)->LoadMenu((wxString const &)*arg2); | |
3479 | wxPyEndAllowThreads(__tstate); | |
3480 | if (PyErr_Occurred()) SWIG_fail; | |
3481 | } | |
3482 | { | |
3483 | resultobj = wxPyMake_wxObject(result, 0); | |
3484 | } | |
3485 | { | |
3486 | if (temp2) | |
3487 | delete arg2; | |
3488 | } | |
3489 | return resultobj; | |
3490 | fail: | |
3491 | { | |
3492 | if (temp2) | |
3493 | delete arg2; | |
3494 | } | |
3495 | return NULL; | |
3496 | } | |
3497 | ||
3498 | ||
3499 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3500 | PyObject *resultobj = 0; | |
3501 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3502 | wxString *arg2 = 0 ; | |
3503 | wxMenuBar *result = 0 ; | |
3504 | void *argp1 = 0 ; | |
3505 | int res1 = 0 ; | |
3506 | bool temp2 = false ; | |
3507 | PyObject * obj0 = 0 ; | |
3508 | PyObject * obj1 = 0 ; | |
3509 | char * kwnames[] = { | |
3510 | (char *) "self",(char *) "name", NULL | |
3511 | }; | |
3512 | ||
3513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
3514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3515 | if (!SWIG_IsOK(res1)) { | |
3516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBar" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3517 | } | |
3518 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3519 | { | |
3520 | arg2 = wxString_in_helper(obj1); | |
3521 | if (arg2 == NULL) SWIG_fail; | |
3522 | temp2 = true; | |
3523 | } | |
3524 | { | |
3525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3526 | result = (wxMenuBar *)(arg1)->LoadMenuBar((wxString const &)*arg2); | |
3527 | wxPyEndAllowThreads(__tstate); | |
3528 | if (PyErr_Occurred()) SWIG_fail; | |
3529 | } | |
3530 | { | |
3531 | resultobj = wxPyMake_wxObject(result, 0); | |
3532 | } | |
3533 | { | |
3534 | if (temp2) | |
3535 | delete arg2; | |
3536 | } | |
3537 | return resultobj; | |
3538 | fail: | |
3539 | { | |
3540 | if (temp2) | |
3541 | delete arg2; | |
3542 | } | |
3543 | return NULL; | |
3544 | } | |
3545 | ||
3546 | ||
3547 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3548 | PyObject *resultobj = 0; | |
3549 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3550 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3551 | wxString *arg3 = 0 ; | |
3552 | wxMenuBar *result = 0 ; | |
3553 | void *argp1 = 0 ; | |
3554 | int res1 = 0 ; | |
3555 | void *argp2 = 0 ; | |
3556 | int res2 = 0 ; | |
3557 | bool temp3 = false ; | |
3558 | PyObject * obj0 = 0 ; | |
3559 | PyObject * obj1 = 0 ; | |
3560 | PyObject * obj2 = 0 ; | |
3561 | char * kwnames[] = { | |
3562 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3563 | }; | |
3564 | ||
3565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3567 | if (!SWIG_IsOK(res1)) { | |
3568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3569 | } | |
3570 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3571 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3572 | if (!SWIG_IsOK(res2)) { | |
3573 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3574 | } | |
3575 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3576 | { | |
3577 | arg3 = wxString_in_helper(obj2); | |
3578 | if (arg3 == NULL) SWIG_fail; | |
3579 | temp3 = true; | |
3580 | } | |
3581 | { | |
3582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3583 | result = (wxMenuBar *)(arg1)->LoadMenuBar(arg2,(wxString const &)*arg3); | |
3584 | wxPyEndAllowThreads(__tstate); | |
3585 | if (PyErr_Occurred()) SWIG_fail; | |
3586 | } | |
3587 | { | |
3588 | resultobj = wxPyMake_wxObject(result, 0); | |
3589 | } | |
3590 | { | |
3591 | if (temp3) | |
3592 | delete arg3; | |
3593 | } | |
3594 | return resultobj; | |
3595 | fail: | |
3596 | { | |
3597 | if (temp3) | |
3598 | delete arg3; | |
3599 | } | |
3600 | return NULL; | |
3601 | } | |
3602 | ||
3603 | ||
3604 | SWIGINTERN PyObject *_wrap_XmlResource_LoadToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3605 | PyObject *resultobj = 0; | |
3606 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3607 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3608 | wxString *arg3 = 0 ; | |
3609 | wxToolBar *result = 0 ; | |
3610 | void *argp1 = 0 ; | |
3611 | int res1 = 0 ; | |
3612 | void *argp2 = 0 ; | |
3613 | int res2 = 0 ; | |
3614 | bool temp3 = false ; | |
3615 | PyObject * obj0 = 0 ; | |
3616 | PyObject * obj1 = 0 ; | |
3617 | PyObject * obj2 = 0 ; | |
3618 | char * kwnames[] = { | |
3619 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3620 | }; | |
3621 | ||
3622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadToolBar",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3624 | if (!SWIG_IsOK(res1)) { | |
3625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadToolBar" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3626 | } | |
3627 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3628 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3629 | if (!SWIG_IsOK(res2)) { | |
3630 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadToolBar" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3631 | } | |
3632 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3633 | { | |
3634 | arg3 = wxString_in_helper(obj2); | |
3635 | if (arg3 == NULL) SWIG_fail; | |
3636 | temp3 = true; | |
3637 | } | |
3638 | { | |
3639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3640 | result = (wxToolBar *)(arg1)->LoadToolBar(arg2,(wxString const &)*arg3); | |
3641 | wxPyEndAllowThreads(__tstate); | |
3642 | if (PyErr_Occurred()) SWIG_fail; | |
3643 | } | |
3644 | { | |
3645 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3646 | } | |
3647 | { | |
3648 | if (temp3) | |
3649 | delete arg3; | |
3650 | } | |
3651 | return resultobj; | |
3652 | fail: | |
3653 | { | |
3654 | if (temp3) | |
3655 | delete arg3; | |
3656 | } | |
3657 | return NULL; | |
3658 | } | |
3659 | ||
3660 | ||
3661 | SWIGINTERN PyObject *_wrap_XmlResource_LoadDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3662 | PyObject *resultobj = 0; | |
3663 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3664 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3665 | wxString *arg3 = 0 ; | |
3666 | wxDialog *result = 0 ; | |
3667 | void *argp1 = 0 ; | |
3668 | int res1 = 0 ; | |
3669 | void *argp2 = 0 ; | |
3670 | int res2 = 0 ; | |
3671 | bool temp3 = false ; | |
3672 | PyObject * obj0 = 0 ; | |
3673 | PyObject * obj1 = 0 ; | |
3674 | PyObject * obj2 = 0 ; | |
3675 | char * kwnames[] = { | |
3676 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3677 | }; | |
3678 | ||
3679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadDialog",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3681 | if (!SWIG_IsOK(res1)) { | |
3682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3683 | } | |
3684 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3685 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3686 | if (!SWIG_IsOK(res2)) { | |
3687 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3688 | } | |
3689 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3690 | { | |
3691 | arg3 = wxString_in_helper(obj2); | |
3692 | if (arg3 == NULL) SWIG_fail; | |
3693 | temp3 = true; | |
3694 | } | |
3695 | { | |
3696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3697 | result = (wxDialog *)(arg1)->LoadDialog(arg2,(wxString const &)*arg3); | |
3698 | wxPyEndAllowThreads(__tstate); | |
3699 | if (PyErr_Occurred()) SWIG_fail; | |
3700 | } | |
3701 | { | |
3702 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3703 | } | |
3704 | { | |
3705 | if (temp3) | |
3706 | delete arg3; | |
3707 | } | |
3708 | return resultobj; | |
3709 | fail: | |
3710 | { | |
3711 | if (temp3) | |
3712 | delete arg3; | |
3713 | } | |
3714 | return NULL; | |
3715 | } | |
3716 | ||
3717 | ||
3718 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3719 | PyObject *resultobj = 0; | |
3720 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3721 | wxDialog *arg2 = (wxDialog *) 0 ; | |
3722 | wxWindow *arg3 = (wxWindow *) 0 ; | |
3723 | wxString *arg4 = 0 ; | |
3724 | bool result; | |
3725 | void *argp1 = 0 ; | |
3726 | int res1 = 0 ; | |
3727 | void *argp2 = 0 ; | |
3728 | int res2 = 0 ; | |
3729 | void *argp3 = 0 ; | |
3730 | int res3 = 0 ; | |
3731 | bool temp4 = false ; | |
3732 | PyObject * obj0 = 0 ; | |
3733 | PyObject * obj1 = 0 ; | |
3734 | PyObject * obj2 = 0 ; | |
3735 | PyObject * obj3 = 0 ; | |
3736 | char * kwnames[] = { | |
3737 | (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL | |
3738 | }; | |
3739 | ||
3740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3742 | if (!SWIG_IsOK(res1)) { | |
3743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3744 | } | |
3745 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3746 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
3747 | if (!SWIG_IsOK(res2)) { | |
3748 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "2"" of type '" "wxDialog *""'"); | |
3749 | } | |
3750 | arg2 = reinterpret_cast< wxDialog * >(argp2); | |
3751 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3752 | if (!SWIG_IsOK(res3)) { | |
3753 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
3754 | } | |
3755 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
3756 | { | |
3757 | arg4 = wxString_in_helper(obj3); | |
3758 | if (arg4 == NULL) SWIG_fail; | |
3759 | temp4 = true; | |
3760 | } | |
3761 | { | |
3762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3763 | result = (bool)(arg1)->LoadDialog(arg2,arg3,(wxString const &)*arg4); | |
3764 | wxPyEndAllowThreads(__tstate); | |
3765 | if (PyErr_Occurred()) SWIG_fail; | |
3766 | } | |
3767 | { | |
3768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3769 | } | |
3770 | { | |
3771 | if (temp4) | |
3772 | delete arg4; | |
3773 | } | |
3774 | return resultobj; | |
3775 | fail: | |
3776 | { | |
3777 | if (temp4) | |
3778 | delete arg4; | |
3779 | } | |
3780 | return NULL; | |
3781 | } | |
3782 | ||
3783 | ||
3784 | SWIGINTERN PyObject *_wrap_XmlResource_LoadPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3785 | PyObject *resultobj = 0; | |
3786 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3787 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3788 | wxString *arg3 = 0 ; | |
3789 | wxPanel *result = 0 ; | |
3790 | void *argp1 = 0 ; | |
3791 | int res1 = 0 ; | |
3792 | void *argp2 = 0 ; | |
3793 | int res2 = 0 ; | |
3794 | bool temp3 = false ; | |
3795 | PyObject * obj0 = 0 ; | |
3796 | PyObject * obj1 = 0 ; | |
3797 | PyObject * obj2 = 0 ; | |
3798 | char * kwnames[] = { | |
3799 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3800 | }; | |
3801 | ||
3802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadPanel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3804 | if (!SWIG_IsOK(res1)) { | |
3805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3806 | } | |
3807 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3808 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3809 | if (!SWIG_IsOK(res2)) { | |
3810 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadPanel" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3811 | } | |
3812 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3813 | { | |
3814 | arg3 = wxString_in_helper(obj2); | |
3815 | if (arg3 == NULL) SWIG_fail; | |
3816 | temp3 = true; | |
3817 | } | |
3818 | { | |
3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3820 | result = (wxPanel *)(arg1)->LoadPanel(arg2,(wxString const &)*arg3); | |
3821 | wxPyEndAllowThreads(__tstate); | |
3822 | if (PyErr_Occurred()) SWIG_fail; | |
3823 | } | |
3824 | { | |
3825 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3826 | } | |
3827 | { | |
3828 | if (temp3) | |
3829 | delete arg3; | |
3830 | } | |
3831 | return resultobj; | |
3832 | fail: | |
3833 | { | |
3834 | if (temp3) | |
3835 | delete arg3; | |
3836 | } | |
3837 | return NULL; | |
3838 | } | |
3839 | ||
3840 | ||
3841 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3842 | PyObject *resultobj = 0; | |
3843 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3844 | wxPanel *arg2 = (wxPanel *) 0 ; | |
3845 | wxWindow *arg3 = (wxWindow *) 0 ; | |
3846 | wxString *arg4 = 0 ; | |
3847 | bool result; | |
3848 | void *argp1 = 0 ; | |
3849 | int res1 = 0 ; | |
3850 | void *argp2 = 0 ; | |
3851 | int res2 = 0 ; | |
3852 | void *argp3 = 0 ; | |
3853 | int res3 = 0 ; | |
3854 | bool temp4 = false ; | |
3855 | PyObject * obj0 = 0 ; | |
3856 | PyObject * obj1 = 0 ; | |
3857 | PyObject * obj2 = 0 ; | |
3858 | PyObject * obj3 = 0 ; | |
3859 | char * kwnames[] = { | |
3860 | (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL | |
3861 | }; | |
3862 | ||
3863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3865 | if (!SWIG_IsOK(res1)) { | |
3866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3867 | } | |
3868 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3869 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3870 | if (!SWIG_IsOK(res2)) { | |
3871 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "2"" of type '" "wxPanel *""'"); | |
3872 | } | |
3873 | arg2 = reinterpret_cast< wxPanel * >(argp2); | |
3874 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3875 | if (!SWIG_IsOK(res3)) { | |
3876 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
3877 | } | |
3878 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
3879 | { | |
3880 | arg4 = wxString_in_helper(obj3); | |
3881 | if (arg4 == NULL) SWIG_fail; | |
3882 | temp4 = true; | |
3883 | } | |
3884 | { | |
3885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3886 | result = (bool)(arg1)->LoadPanel(arg2,arg3,(wxString const &)*arg4); | |
3887 | wxPyEndAllowThreads(__tstate); | |
3888 | if (PyErr_Occurred()) SWIG_fail; | |
3889 | } | |
3890 | { | |
3891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3892 | } | |
3893 | { | |
3894 | if (temp4) | |
3895 | delete arg4; | |
3896 | } | |
3897 | return resultobj; | |
3898 | fail: | |
3899 | { | |
3900 | if (temp4) | |
3901 | delete arg4; | |
3902 | } | |
3903 | return NULL; | |
3904 | } | |
3905 | ||
3906 | ||
3907 | SWIGINTERN PyObject *_wrap_XmlResource_LoadFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3908 | PyObject *resultobj = 0; | |
3909 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3910 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3911 | wxString *arg3 = 0 ; | |
3912 | wxFrame *result = 0 ; | |
3913 | void *argp1 = 0 ; | |
3914 | int res1 = 0 ; | |
3915 | void *argp2 = 0 ; | |
3916 | int res2 = 0 ; | |
3917 | bool temp3 = false ; | |
3918 | PyObject * obj0 = 0 ; | |
3919 | PyObject * obj1 = 0 ; | |
3920 | PyObject * obj2 = 0 ; | |
3921 | char * kwnames[] = { | |
3922 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3923 | }; | |
3924 | ||
3925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3926 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3927 | if (!SWIG_IsOK(res1)) { | |
3928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3929 | } | |
3930 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3931 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3932 | if (!SWIG_IsOK(res2)) { | |
3933 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadFrame" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3934 | } | |
3935 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3936 | { | |
3937 | arg3 = wxString_in_helper(obj2); | |
3938 | if (arg3 == NULL) SWIG_fail; | |
3939 | temp3 = true; | |
3940 | } | |
3941 | { | |
3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3943 | result = (wxFrame *)(arg1)->LoadFrame(arg2,(wxString const &)*arg3); | |
3944 | wxPyEndAllowThreads(__tstate); | |
3945 | if (PyErr_Occurred()) SWIG_fail; | |
3946 | } | |
3947 | { | |
3948 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3949 | } | |
3950 | { | |
3951 | if (temp3) | |
3952 | delete arg3; | |
3953 | } | |
3954 | return resultobj; | |
3955 | fail: | |
3956 | { | |
3957 | if (temp3) | |
3958 | delete arg3; | |
3959 | } | |
3960 | return NULL; | |
3961 | } | |
3962 | ||
3963 | ||
3964 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3965 | PyObject *resultobj = 0; | |
3966 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3967 | wxFrame *arg2 = (wxFrame *) 0 ; | |
3968 | wxWindow *arg3 = (wxWindow *) 0 ; | |
3969 | wxString *arg4 = 0 ; | |
3970 | bool result; | |
3971 | void *argp1 = 0 ; | |
3972 | int res1 = 0 ; | |
3973 | void *argp2 = 0 ; | |
3974 | int res2 = 0 ; | |
3975 | void *argp3 = 0 ; | |
3976 | int res3 = 0 ; | |
3977 | bool temp4 = false ; | |
3978 | PyObject * obj0 = 0 ; | |
3979 | PyObject * obj1 = 0 ; | |
3980 | PyObject * obj2 = 0 ; | |
3981 | PyObject * obj3 = 0 ; | |
3982 | char * kwnames[] = { | |
3983 | (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL | |
3984 | }; | |
3985 | ||
3986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3988 | if (!SWIG_IsOK(res1)) { | |
3989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3990 | } | |
3991 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3992 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
3993 | if (!SWIG_IsOK(res2)) { | |
3994 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
3995 | } | |
3996 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
3997 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3998 | if (!SWIG_IsOK(res3)) { | |
3999 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4000 | } | |
4001 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4002 | { | |
4003 | arg4 = wxString_in_helper(obj3); | |
4004 | if (arg4 == NULL) SWIG_fail; | |
4005 | temp4 = true; | |
4006 | } | |
4007 | { | |
4008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4009 | result = (bool)(arg1)->LoadFrame(arg2,arg3,(wxString const &)*arg4); | |
4010 | wxPyEndAllowThreads(__tstate); | |
4011 | if (PyErr_Occurred()) SWIG_fail; | |
4012 | } | |
4013 | { | |
4014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4015 | } | |
4016 | { | |
4017 | if (temp4) | |
4018 | delete arg4; | |
4019 | } | |
4020 | return resultobj; | |
4021 | fail: | |
4022 | { | |
4023 | if (temp4) | |
4024 | delete arg4; | |
4025 | } | |
4026 | return NULL; | |
4027 | } | |
4028 | ||
4029 | ||
4030 | SWIGINTERN PyObject *_wrap_XmlResource_LoadObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4031 | PyObject *resultobj = 0; | |
4032 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4033 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4034 | wxString *arg3 = 0 ; | |
4035 | wxString *arg4 = 0 ; | |
4036 | wxObject *result = 0 ; | |
4037 | void *argp1 = 0 ; | |
4038 | int res1 = 0 ; | |
4039 | void *argp2 = 0 ; | |
4040 | int res2 = 0 ; | |
4041 | bool temp3 = false ; | |
4042 | bool temp4 = false ; | |
4043 | PyObject * obj0 = 0 ; | |
4044 | PyObject * obj1 = 0 ; | |
4045 | PyObject * obj2 = 0 ; | |
4046 | PyObject * obj3 = 0 ; | |
4047 | char * kwnames[] = { | |
4048 | (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
4049 | }; | |
4050 | ||
4051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadObject",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4053 | if (!SWIG_IsOK(res1)) { | |
4054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadObject" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4055 | } | |
4056 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4057 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4058 | if (!SWIG_IsOK(res2)) { | |
4059 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadObject" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4060 | } | |
4061 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4062 | { | |
4063 | arg3 = wxString_in_helper(obj2); | |
4064 | if (arg3 == NULL) SWIG_fail; | |
4065 | temp3 = true; | |
4066 | } | |
4067 | { | |
4068 | arg4 = wxString_in_helper(obj3); | |
4069 | if (arg4 == NULL) SWIG_fail; | |
4070 | temp4 = true; | |
4071 | } | |
4072 | { | |
4073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4074 | result = (wxObject *)(arg1)->LoadObject(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
4075 | wxPyEndAllowThreads(__tstate); | |
4076 | if (PyErr_Occurred()) SWIG_fail; | |
4077 | } | |
4078 | { | |
4079 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
4080 | } | |
4081 | { | |
4082 | if (temp3) | |
4083 | delete arg3; | |
4084 | } | |
4085 | { | |
4086 | if (temp4) | |
4087 | delete arg4; | |
4088 | } | |
4089 | return resultobj; | |
4090 | fail: | |
4091 | { | |
4092 | if (temp3) | |
4093 | delete arg3; | |
4094 | } | |
4095 | { | |
4096 | if (temp4) | |
4097 | delete arg4; | |
4098 | } | |
4099 | return NULL; | |
4100 | } | |
4101 | ||
4102 | ||
4103 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4104 | PyObject *resultobj = 0; | |
4105 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4106 | wxObject *arg2 = (wxObject *) 0 ; | |
4107 | wxWindow *arg3 = (wxWindow *) 0 ; | |
4108 | wxString *arg4 = 0 ; | |
4109 | wxString *arg5 = 0 ; | |
4110 | bool result; | |
4111 | void *argp1 = 0 ; | |
4112 | int res1 = 0 ; | |
4113 | void *argp2 = 0 ; | |
4114 | int res2 = 0 ; | |
4115 | void *argp3 = 0 ; | |
4116 | int res3 = 0 ; | |
4117 | bool temp4 = false ; | |
4118 | bool temp5 = false ; | |
4119 | PyObject * obj0 = 0 ; | |
4120 | PyObject * obj1 = 0 ; | |
4121 | PyObject * obj2 = 0 ; | |
4122 | PyObject * obj3 = 0 ; | |
4123 | PyObject * obj4 = 0 ; | |
4124 | char * kwnames[] = { | |
4125 | (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
4126 | }; | |
4127 | ||
4128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
4129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4130 | if (!SWIG_IsOK(res1)) { | |
4131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnObject" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4132 | } | |
4133 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4134 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
4135 | if (!SWIG_IsOK(res2)) { | |
4136 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnObject" "', expected argument " "2"" of type '" "wxObject *""'"); | |
4137 | } | |
4138 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
4139 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4140 | if (!SWIG_IsOK(res3)) { | |
4141 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnObject" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4142 | } | |
4143 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4144 | { | |
4145 | arg4 = wxString_in_helper(obj3); | |
4146 | if (arg4 == NULL) SWIG_fail; | |
4147 | temp4 = true; | |
4148 | } | |
4149 | { | |
4150 | arg5 = wxString_in_helper(obj4); | |
4151 | if (arg5 == NULL) SWIG_fail; | |
4152 | temp5 = true; | |
4153 | } | |
4154 | { | |
4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4156 | result = (bool)(arg1)->LoadObject(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
4157 | wxPyEndAllowThreads(__tstate); | |
4158 | if (PyErr_Occurred()) SWIG_fail; | |
4159 | } | |
4160 | { | |
4161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4162 | } | |
4163 | { | |
4164 | if (temp4) | |
4165 | delete arg4; | |
4166 | } | |
4167 | { | |
4168 | if (temp5) | |
4169 | delete arg5; | |
4170 | } | |
4171 | return resultobj; | |
4172 | fail: | |
4173 | { | |
4174 | if (temp4) | |
4175 | delete arg4; | |
4176 | } | |
4177 | { | |
4178 | if (temp5) | |
4179 | delete arg5; | |
4180 | } | |
4181 | return NULL; | |
4182 | } | |
4183 | ||
4184 | ||
4185 | SWIGINTERN PyObject *_wrap_XmlResource_LoadBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4186 | PyObject *resultobj = 0; | |
4187 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4188 | wxString *arg2 = 0 ; | |
4189 | wxBitmap result; | |
4190 | void *argp1 = 0 ; | |
4191 | int res1 = 0 ; | |
4192 | bool temp2 = false ; | |
4193 | PyObject * obj0 = 0 ; | |
4194 | PyObject * obj1 = 0 ; | |
4195 | char * kwnames[] = { | |
4196 | (char *) "self",(char *) "name", NULL | |
4197 | }; | |
4198 | ||
4199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
4200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4201 | if (!SWIG_IsOK(res1)) { | |
4202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadBitmap" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4203 | } | |
4204 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4205 | { | |
4206 | arg2 = wxString_in_helper(obj1); | |
4207 | if (arg2 == NULL) SWIG_fail; | |
4208 | temp2 = true; | |
4209 | } | |
4210 | { | |
4211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4212 | result = (arg1)->LoadBitmap((wxString const &)*arg2); | |
4213 | wxPyEndAllowThreads(__tstate); | |
4214 | if (PyErr_Occurred()) SWIG_fail; | |
4215 | } | |
4216 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4217 | { | |
4218 | if (temp2) | |
4219 | delete arg2; | |
4220 | } | |
4221 | return resultobj; | |
4222 | fail: | |
4223 | { | |
4224 | if (temp2) | |
4225 | delete arg2; | |
4226 | } | |
4227 | return NULL; | |
4228 | } | |
4229 | ||
4230 | ||
4231 | SWIGINTERN PyObject *_wrap_XmlResource_LoadIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4232 | PyObject *resultobj = 0; | |
4233 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4234 | wxString *arg2 = 0 ; | |
4235 | wxIcon result; | |
4236 | void *argp1 = 0 ; | |
4237 | int res1 = 0 ; | |
4238 | bool temp2 = false ; | |
4239 | PyObject * obj0 = 0 ; | |
4240 | PyObject * obj1 = 0 ; | |
4241 | char * kwnames[] = { | |
4242 | (char *) "self",(char *) "name", NULL | |
4243 | }; | |
4244 | ||
4245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
4246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4247 | if (!SWIG_IsOK(res1)) { | |
4248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadIcon" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4249 | } | |
4250 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4251 | { | |
4252 | arg2 = wxString_in_helper(obj1); | |
4253 | if (arg2 == NULL) SWIG_fail; | |
4254 | temp2 = true; | |
4255 | } | |
4256 | { | |
4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4258 | result = (arg1)->LoadIcon((wxString const &)*arg2); | |
4259 | wxPyEndAllowThreads(__tstate); | |
4260 | if (PyErr_Occurred()) SWIG_fail; | |
4261 | } | |
4262 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
4263 | { | |
4264 | if (temp2) | |
4265 | delete arg2; | |
4266 | } | |
4267 | return resultobj; | |
4268 | fail: | |
4269 | { | |
4270 | if (temp2) | |
4271 | delete arg2; | |
4272 | } | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
4277 | SWIGINTERN PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4278 | PyObject *resultobj = 0; | |
4279 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4280 | wxString *arg2 = 0 ; | |
4281 | wxWindow *arg3 = (wxWindow *) 0 ; | |
4282 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4283 | bool result; | |
4284 | void *argp1 = 0 ; | |
4285 | int res1 = 0 ; | |
4286 | bool temp2 = false ; | |
4287 | void *argp3 = 0 ; | |
4288 | int res3 = 0 ; | |
4289 | void *argp4 = 0 ; | |
4290 | int res4 = 0 ; | |
4291 | PyObject * obj0 = 0 ; | |
4292 | PyObject * obj1 = 0 ; | |
4293 | PyObject * obj2 = 0 ; | |
4294 | PyObject * obj3 = 0 ; | |
4295 | char * kwnames[] = { | |
4296 | (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL | |
4297 | }; | |
4298 | ||
4299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4301 | if (!SWIG_IsOK(res1)) { | |
4302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4303 | } | |
4304 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4305 | { | |
4306 | arg2 = wxString_in_helper(obj1); | |
4307 | if (arg2 == NULL) SWIG_fail; | |
4308 | temp2 = true; | |
4309 | } | |
4310 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4311 | if (!SWIG_IsOK(res3)) { | |
4312 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4313 | } | |
4314 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4315 | if (obj3) { | |
4316 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4317 | if (!SWIG_IsOK(res4)) { | |
4318 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
2ef75293 | 4319 | } |
0085ce49 RD |
4320 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
4321 | } | |
4322 | { | |
4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4324 | result = (bool)(arg1)->AttachUnknownControl((wxString const &)*arg2,arg3,arg4); | |
4325 | wxPyEndAllowThreads(__tstate); | |
4326 | if (PyErr_Occurred()) SWIG_fail; | |
4327 | } | |
4328 | { | |
4329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4330 | } | |
4331 | { | |
4332 | if (temp2) | |
4333 | delete arg2; | |
4334 | } | |
4335 | return resultobj; | |
4336 | fail: | |
4337 | { | |
4338 | if (temp2) | |
4339 | delete arg2; | |
4340 | } | |
4341 | return NULL; | |
2ef75293 RD |
4342 | } |
4343 | ||
4344 | ||
0085ce49 RD |
4345 | SWIGINTERN PyObject *_wrap_XmlResource_GetXRCID(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4346 | PyObject *resultobj = 0; | |
01f6b6d3 RD |
4347 | wxChar *arg1 = (wxChar *) 0 ; |
4348 | int arg2 = (int) wxID_NONE ; | |
0085ce49 | 4349 | int result; |
01f6b6d3 RD |
4350 | void *argp1 = 0 ; |
4351 | int res1 = 0 ; | |
4352 | int val2 ; | |
4353 | int ecode2 = 0 ; | |
0085ce49 | 4354 | PyObject * obj0 = 0 ; |
01f6b6d3 | 4355 | PyObject * obj1 = 0 ; |
0085ce49 | 4356 | char * kwnames[] = { |
01f6b6d3 | 4357 | (char *) "str_id",(char *) "value_if_not_found", NULL |
0085ce49 RD |
4358 | }; |
4359 | ||
01f6b6d3 RD |
4360 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResource_GetXRCID",kwnames,&obj0,&obj1)) SWIG_fail; |
4361 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChar, 0 | 0 ); | |
4362 | if (!SWIG_IsOK(res1)) { | |
4363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetXRCID" "', expected argument " "1"" of type '" "wxChar const *""'"); | |
4364 | } | |
4365 | arg1 = reinterpret_cast< wxChar * >(argp1); | |
4366 | if (obj1) { | |
4367 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4368 | if (!SWIG_IsOK(ecode2)) { | |
4369 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_GetXRCID" "', expected argument " "2"" of type '" "int""'"); | |
4370 | } | |
4371 | arg2 = static_cast< int >(val2); | |
0085ce49 RD |
4372 | } |
4373 | { | |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 4375 | result = (int)wxXmlResource::GetXRCID((wxChar const *)arg1,arg2); |
0085ce49 RD |
4376 | wxPyEndAllowThreads(__tstate); |
4377 | if (PyErr_Occurred()) SWIG_fail; | |
4378 | } | |
4379 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
0085ce49 RD |
4380 | return resultobj; |
4381 | fail: | |
0085ce49 | 4382 | return NULL; |
2ef75293 RD |
4383 | } |
4384 | ||
4385 | ||
0085ce49 RD |
4386 | SWIGINTERN PyObject *_wrap_XmlResource_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4387 | PyObject *resultobj = 0; | |
4388 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4389 | long result; | |
4390 | void *argp1 = 0 ; | |
4391 | int res1 = 0 ; | |
4392 | PyObject *swig_obj[1] ; | |
4393 | ||
4394 | if (!args) SWIG_fail; | |
4395 | swig_obj[0] = args; | |
4396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4397 | if (!SWIG_IsOK(res1)) { | |
4398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'"); | |
4399 | } | |
4400 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4401 | { | |
4402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4403 | result = (long)((wxXmlResource const *)arg1)->GetVersion(); | |
4404 | wxPyEndAllowThreads(__tstate); | |
4405 | if (PyErr_Occurred()) SWIG_fail; | |
4406 | } | |
4407 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4408 | return resultobj; | |
4409 | fail: | |
4410 | return NULL; | |
4411 | } | |
4412 | ||
4413 | ||
4414 | SWIGINTERN PyObject *_wrap_XmlResource_CompareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4415 | PyObject *resultobj = 0; | |
4416 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4417 | int arg2 ; | |
4418 | int arg3 ; | |
4419 | int arg4 ; | |
4420 | int arg5 ; | |
4421 | int result; | |
4422 | void *argp1 = 0 ; | |
4423 | int res1 = 0 ; | |
4424 | int val2 ; | |
4425 | int ecode2 = 0 ; | |
4426 | int val3 ; | |
4427 | int ecode3 = 0 ; | |
4428 | int val4 ; | |
4429 | int ecode4 = 0 ; | |
4430 | int val5 ; | |
4431 | int ecode5 = 0 ; | |
4432 | PyObject * obj0 = 0 ; | |
4433 | PyObject * obj1 = 0 ; | |
4434 | PyObject * obj2 = 0 ; | |
4435 | PyObject * obj3 = 0 ; | |
4436 | PyObject * obj4 = 0 ; | |
4437 | char * kwnames[] = { | |
4438 | (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL | |
4439 | }; | |
4440 | ||
4441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_CompareVersion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
4442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4443 | if (!SWIG_IsOK(res1)) { | |
4444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_CompareVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'"); | |
4445 | } | |
4446 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4447 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4448 | if (!SWIG_IsOK(ecode2)) { | |
4449 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_CompareVersion" "', expected argument " "2"" of type '" "int""'"); | |
4450 | } | |
4451 | arg2 = static_cast< int >(val2); | |
4452 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4453 | if (!SWIG_IsOK(ecode3)) { | |
4454 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResource_CompareVersion" "', expected argument " "3"" of type '" "int""'"); | |
4455 | } | |
4456 | arg3 = static_cast< int >(val3); | |
4457 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4458 | if (!SWIG_IsOK(ecode4)) { | |
4459 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlResource_CompareVersion" "', expected argument " "4"" of type '" "int""'"); | |
4460 | } | |
4461 | arg4 = static_cast< int >(val4); | |
4462 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4463 | if (!SWIG_IsOK(ecode5)) { | |
4464 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "XmlResource_CompareVersion" "', expected argument " "5"" of type '" "int""'"); | |
4465 | } | |
4466 | arg5 = static_cast< int >(val5); | |
4467 | { | |
4468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4469 | result = (int)((wxXmlResource const *)arg1)->CompareVersion(arg2,arg3,arg4,arg5); | |
4470 | wxPyEndAllowThreads(__tstate); | |
4471 | if (PyErr_Occurred()) SWIG_fail; | |
4472 | } | |
4473 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4474 | return resultobj; | |
4475 | fail: | |
4476 | return NULL; | |
2ef75293 RD |
4477 | } |
4478 | ||
4479 | ||
0085ce49 RD |
4480 | SWIGINTERN PyObject *_wrap_XmlResource_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4481 | PyObject *resultobj = 0; | |
4482 | wxXmlResource *result = 0 ; | |
4483 | ||
4484 | if (!SWIG_Python_UnpackTuple(args,"XmlResource_Get",0,0,0)) SWIG_fail; | |
4485 | { | |
4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4487 | result = (wxXmlResource *)wxXmlResource::Get(); | |
4488 | wxPyEndAllowThreads(__tstate); | |
4489 | if (PyErr_Occurred()) SWIG_fail; | |
4490 | } | |
4491 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4492 | return resultobj; | |
4493 | fail: | |
4494 | return NULL; | |
4495 | } | |
4496 | ||
4497 | ||
4498 | SWIGINTERN PyObject *_wrap_XmlResource_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4499 | PyObject *resultobj = 0; | |
4500 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4501 | wxXmlResource *result = 0 ; | |
4502 | void *argp1 = 0 ; | |
4503 | int res1 = 0 ; | |
4504 | PyObject * obj0 = 0 ; | |
4505 | char * kwnames[] = { | |
4506 | (char *) "res", NULL | |
4507 | }; | |
4508 | ||
4509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_Set",kwnames,&obj0)) SWIG_fail; | |
4510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4511 | if (!SWIG_IsOK(res1)) { | |
4512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Set" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4513 | } | |
4514 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4515 | { | |
4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4517 | result = (wxXmlResource *)wxXmlResource::Set(arg1); | |
4518 | wxPyEndAllowThreads(__tstate); | |
4519 | if (PyErr_Occurred()) SWIG_fail; | |
4520 | } | |
4521 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4522 | return resultobj; | |
4523 | fail: | |
4524 | return NULL; | |
2ef75293 RD |
4525 | } |
4526 | ||
4527 | ||
0085ce49 RD |
4528 | SWIGINTERN PyObject *_wrap_XmlResource_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4529 | PyObject *resultobj = 0; | |
4530 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4531 | int result; | |
4532 | void *argp1 = 0 ; | |
4533 | int res1 = 0 ; | |
4534 | PyObject *swig_obj[1] ; | |
4535 | ||
4536 | if (!args) SWIG_fail; | |
4537 | swig_obj[0] = args; | |
4538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4539 | if (!SWIG_IsOK(res1)) { | |
4540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4541 | } | |
4542 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4543 | { | |
4544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4545 | result = (int)(arg1)->GetFlags(); | |
4546 | wxPyEndAllowThreads(__tstate); | |
4547 | if (PyErr_Occurred()) SWIG_fail; | |
4548 | } | |
4549 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4550 | return resultobj; | |
4551 | fail: | |
4552 | return NULL; | |
4553 | } | |
4554 | ||
4555 | ||
4556 | SWIGINTERN PyObject *_wrap_XmlResource_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4557 | PyObject *resultobj = 0; | |
4558 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4559 | int arg2 ; | |
4560 | void *argp1 = 0 ; | |
4561 | int res1 = 0 ; | |
4562 | int val2 ; | |
4563 | int ecode2 = 0 ; | |
4564 | PyObject * obj0 = 0 ; | |
4565 | PyObject * obj1 = 0 ; | |
4566 | char * kwnames[] = { | |
4567 | (char *) "self",(char *) "flags", NULL | |
4568 | }; | |
4569 | ||
4570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
4571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4572 | if (!SWIG_IsOK(res1)) { | |
4573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4574 | } | |
4575 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4576 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4577 | if (!SWIG_IsOK(ecode2)) { | |
4578 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
4579 | } | |
4580 | arg2 = static_cast< int >(val2); | |
4581 | { | |
4582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4583 | (arg1)->SetFlags(arg2); | |
4584 | wxPyEndAllowThreads(__tstate); | |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
4586 | } | |
4587 | resultobj = SWIG_Py_Void(); | |
4588 | return resultobj; | |
4589 | fail: | |
4590 | return NULL; | |
2ef75293 RD |
4591 | } |
4592 | ||
4593 | ||
0085ce49 RD |
4594 | SWIGINTERN PyObject *XmlResource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4595 | PyObject *obj; | |
4596 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4597 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlResource, SWIG_NewClientData(obj)); | |
4598 | return SWIG_Py_Void(); | |
2ef75293 RD |
4599 | } |
4600 | ||
0085ce49 RD |
4601 | SWIGINTERN PyObject *XmlResource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4602 | return SWIG_Python_InitShadowInstance(args); | |
2ef75293 RD |
4603 | } |
4604 | ||
0085ce49 RD |
4605 | SWIGINTERN PyObject *_wrap_new_XmlSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4606 | PyObject *resultobj = 0; | |
4607 | wxPyXmlSubclassFactory *result = 0 ; | |
4608 | ||
4609 | if (!SWIG_Python_UnpackTuple(args,"new_XmlSubclassFactory",0,0,0)) SWIG_fail; | |
4610 | { | |
4611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4612 | result = (wxPyXmlSubclassFactory *)new wxPyXmlSubclassFactory(); | |
4613 | wxPyEndAllowThreads(__tstate); | |
4614 | if (PyErr_Occurred()) SWIG_fail; | |
4615 | } | |
4616 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_POINTER_NEW | 0 ); | |
4617 | return resultobj; | |
4618 | fail: | |
4619 | return NULL; | |
4620 | } | |
4621 | ||
4622 | ||
4623 | SWIGINTERN PyObject *_wrap_XmlSubclassFactory__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4624 | PyObject *resultobj = 0; | |
4625 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
4626 | PyObject *arg2 = (PyObject *) 0 ; | |
4627 | PyObject *arg3 = (PyObject *) 0 ; | |
4628 | void *argp1 = 0 ; | |
4629 | int res1 = 0 ; | |
4630 | PyObject * obj0 = 0 ; | |
4631 | PyObject * obj1 = 0 ; | |
4632 | PyObject * obj2 = 0 ; | |
4633 | char * kwnames[] = { | |
4634 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
4635 | }; | |
4636 | ||
4637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 ); | |
4639 | if (!SWIG_IsOK(res1)) { | |
4640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlSubclassFactory__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'"); | |
4641 | } | |
4642 | arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1); | |
4643 | arg2 = obj1; | |
4644 | arg3 = obj2; | |
4645 | { | |
4646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4647 | (arg1)->_setCallbackInfo(arg2,arg3); | |
4648 | wxPyEndAllowThreads(__tstate); | |
4649 | if (PyErr_Occurred()) SWIG_fail; | |
4650 | } | |
4651 | resultobj = SWIG_Py_Void(); | |
4652 | return resultobj; | |
4653 | fail: | |
4654 | return NULL; | |
4655 | } | |
4656 | ||
4657 | ||
4658 | SWIGINTERN PyObject *XmlSubclassFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4659 | PyObject *obj; | |
4660 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4661 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_NewClientData(obj)); | |
4662 | return SWIG_Py_Void(); | |
4663 | } | |
4664 | ||
4665 | SWIGINTERN PyObject *XmlSubclassFactory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4666 | return SWIG_Python_InitShadowInstance(args); | |
4667 | } | |
4668 | ||
4669 | SWIGINTERN PyObject *_wrap_new_XmlProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4670 | PyObject *resultobj = 0; | |
4671 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
4672 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4673 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4674 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4675 | wxXmlProperty *arg3 = (wxXmlProperty *) NULL ; | |
4676 | wxXmlProperty *result = 0 ; | |
4677 | bool temp1 = false ; | |
4678 | bool temp2 = false ; | |
4679 | void *argp3 = 0 ; | |
4680 | int res3 = 0 ; | |
4681 | PyObject * obj0 = 0 ; | |
4682 | PyObject * obj1 = 0 ; | |
4683 | PyObject * obj2 = 0 ; | |
4684 | char * kwnames[] = { | |
4685 | (char *) "name",(char *) "value",(char *) "next", NULL | |
4686 | }; | |
4687 | ||
4688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_XmlProperty",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4689 | if (obj0) { | |
2ef75293 | 4690 | { |
0085ce49 RD |
4691 | arg1 = wxString_in_helper(obj0); |
4692 | if (arg1 == NULL) SWIG_fail; | |
4693 | temp1 = true; | |
2ef75293 | 4694 | } |
0085ce49 RD |
4695 | } |
4696 | if (obj1) { | |
2ef75293 | 4697 | { |
0085ce49 RD |
4698 | arg2 = wxString_in_helper(obj1); |
4699 | if (arg2 == NULL) SWIG_fail; | |
4700 | temp2 = true; | |
2ef75293 | 4701 | } |
0085ce49 RD |
4702 | } |
4703 | if (obj2) { | |
4704 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4705 | if (!SWIG_IsOK(res3)) { | |
4706 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_XmlProperty" "', expected argument " "3"" of type '" "wxXmlProperty *""'"); | |
2ef75293 | 4707 | } |
0085ce49 RD |
4708 | arg3 = reinterpret_cast< wxXmlProperty * >(argp3); |
4709 | } | |
4710 | { | |
4711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4712 | result = (wxXmlProperty *)new wxXmlProperty((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
4713 | wxPyEndAllowThreads(__tstate); | |
4714 | if (PyErr_Occurred()) SWIG_fail; | |
4715 | } | |
4716 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_NEW | 0 ); | |
4717 | { | |
4718 | if (temp1) | |
4719 | delete arg1; | |
4720 | } | |
4721 | { | |
4722 | if (temp2) | |
4723 | delete arg2; | |
4724 | } | |
4725 | return resultobj; | |
4726 | fail: | |
4727 | { | |
4728 | if (temp1) | |
4729 | delete arg1; | |
4730 | } | |
4731 | { | |
4732 | if (temp2) | |
4733 | delete arg2; | |
4734 | } | |
4735 | return NULL; | |
2ef75293 RD |
4736 | } |
4737 | ||
4738 | ||
0085ce49 RD |
4739 | SWIGINTERN PyObject *_wrap_XmlProperty_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4740 | PyObject *resultobj = 0; | |
4741 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4742 | wxString result; | |
4743 | void *argp1 = 0 ; | |
4744 | int res1 = 0 ; | |
4745 | PyObject *swig_obj[1] ; | |
4746 | ||
4747 | if (!args) SWIG_fail; | |
4748 | swig_obj[0] = args; | |
4749 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4750 | if (!SWIG_IsOK(res1)) { | |
4751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetName" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4752 | } | |
4753 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4754 | { | |
4755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4756 | result = ((wxXmlProperty const *)arg1)->GetName(); | |
4757 | wxPyEndAllowThreads(__tstate); | |
4758 | if (PyErr_Occurred()) SWIG_fail; | |
4759 | } | |
4760 | { | |
4761 | #if wxUSE_UNICODE | |
4762 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4763 | #else | |
4764 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4765 | #endif | |
4766 | } | |
4767 | return resultobj; | |
4768 | fail: | |
4769 | return NULL; | |
2ef75293 RD |
4770 | } |
4771 | ||
4772 | ||
0085ce49 RD |
4773 | SWIGINTERN PyObject *_wrap_XmlProperty_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4774 | PyObject *resultobj = 0; | |
4775 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4776 | wxString result; | |
4777 | void *argp1 = 0 ; | |
4778 | int res1 = 0 ; | |
4779 | PyObject *swig_obj[1] ; | |
4780 | ||
4781 | if (!args) SWIG_fail; | |
4782 | swig_obj[0] = args; | |
4783 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4784 | if (!SWIG_IsOK(res1)) { | |
4785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetValue" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4786 | } | |
4787 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4788 | { | |
4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4790 | result = ((wxXmlProperty const *)arg1)->GetValue(); | |
4791 | wxPyEndAllowThreads(__tstate); | |
4792 | if (PyErr_Occurred()) SWIG_fail; | |
4793 | } | |
4794 | { | |
4795 | #if wxUSE_UNICODE | |
4796 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4797 | #else | |
4798 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4799 | #endif | |
4800 | } | |
4801 | return resultobj; | |
4802 | fail: | |
4803 | return NULL; | |
2ef75293 RD |
4804 | } |
4805 | ||
4806 | ||
0085ce49 RD |
4807 | SWIGINTERN PyObject *_wrap_XmlProperty_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4808 | PyObject *resultobj = 0; | |
4809 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4810 | wxXmlProperty *result = 0 ; | |
4811 | void *argp1 = 0 ; | |
4812 | int res1 = 0 ; | |
4813 | PyObject *swig_obj[1] ; | |
4814 | ||
4815 | if (!args) SWIG_fail; | |
4816 | swig_obj[0] = args; | |
4817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4818 | if (!SWIG_IsOK(res1)) { | |
4819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetNext" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4820 | } | |
4821 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4822 | { | |
4823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4824 | result = (wxXmlProperty *)((wxXmlProperty const *)arg1)->GetNext(); | |
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
4828 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4829 | return resultobj; | |
4830 | fail: | |
4831 | return NULL; | |
4832 | } | |
4833 | ||
4834 | ||
4835 | SWIGINTERN PyObject *_wrap_XmlProperty_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4836 | PyObject *resultobj = 0; | |
4837 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4838 | wxString *arg2 = 0 ; | |
4839 | void *argp1 = 0 ; | |
4840 | int res1 = 0 ; | |
4841 | bool temp2 = false ; | |
4842 | PyObject * obj0 = 0 ; | |
4843 | PyObject * obj1 = 0 ; | |
4844 | char * kwnames[] = { | |
4845 | (char *) "self",(char *) "name", NULL | |
4846 | }; | |
4847 | ||
4848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4850 | if (!SWIG_IsOK(res1)) { | |
4851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetName" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
4852 | } | |
4853 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4854 | { | |
4855 | arg2 = wxString_in_helper(obj1); | |
4856 | if (arg2 == NULL) SWIG_fail; | |
4857 | temp2 = true; | |
4858 | } | |
4859 | { | |
4860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4861 | (arg1)->SetName((wxString const &)*arg2); | |
4862 | wxPyEndAllowThreads(__tstate); | |
4863 | if (PyErr_Occurred()) SWIG_fail; | |
4864 | } | |
4865 | resultobj = SWIG_Py_Void(); | |
4866 | { | |
4867 | if (temp2) | |
4868 | delete arg2; | |
4869 | } | |
4870 | return resultobj; | |
4871 | fail: | |
4872 | { | |
4873 | if (temp2) | |
4874 | delete arg2; | |
4875 | } | |
4876 | return NULL; | |
2ef75293 RD |
4877 | } |
4878 | ||
4879 | ||
0085ce49 RD |
4880 | SWIGINTERN PyObject *_wrap_XmlProperty_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4881 | PyObject *resultobj = 0; | |
4882 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4883 | wxString *arg2 = 0 ; | |
4884 | void *argp1 = 0 ; | |
4885 | int res1 = 0 ; | |
4886 | bool temp2 = false ; | |
4887 | PyObject * obj0 = 0 ; | |
4888 | PyObject * obj1 = 0 ; | |
4889 | char * kwnames[] = { | |
4890 | (char *) "self",(char *) "value", NULL | |
4891 | }; | |
4892 | ||
4893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
4894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4895 | if (!SWIG_IsOK(res1)) { | |
4896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetValue" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
4897 | } | |
4898 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4899 | { | |
4900 | arg2 = wxString_in_helper(obj1); | |
4901 | if (arg2 == NULL) SWIG_fail; | |
4902 | temp2 = true; | |
4903 | } | |
4904 | { | |
4905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4906 | (arg1)->SetValue((wxString const &)*arg2); | |
4907 | wxPyEndAllowThreads(__tstate); | |
4908 | if (PyErr_Occurred()) SWIG_fail; | |
4909 | } | |
4910 | resultobj = SWIG_Py_Void(); | |
4911 | { | |
4912 | if (temp2) | |
4913 | delete arg2; | |
4914 | } | |
4915 | return resultobj; | |
4916 | fail: | |
4917 | { | |
4918 | if (temp2) | |
4919 | delete arg2; | |
4920 | } | |
4921 | return NULL; | |
4922 | } | |
4923 | ||
4924 | ||
4925 | SWIGINTERN PyObject *_wrap_XmlProperty_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4926 | PyObject *resultobj = 0; | |
4927 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4928 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
4929 | void *argp1 = 0 ; | |
4930 | int res1 = 0 ; | |
4931 | void *argp2 = 0 ; | |
4932 | int res2 = 0 ; | |
4933 | PyObject * obj0 = 0 ; | |
4934 | PyObject * obj1 = 0 ; | |
4935 | char * kwnames[] = { | |
4936 | (char *) "self",(char *) "next", NULL | |
4937 | }; | |
4938 | ||
4939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetNext",kwnames,&obj0,&obj1)) SWIG_fail; | |
4940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4941 | if (!SWIG_IsOK(res1)) { | |
4942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetNext" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
4943 | } | |
4944 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4945 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4946 | if (!SWIG_IsOK(res2)) { | |
4947 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlProperty_SetNext" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
4948 | } | |
4949 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
4950 | { | |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | (arg1)->SetNext(arg2); | |
4953 | wxPyEndAllowThreads(__tstate); | |
4954 | if (PyErr_Occurred()) SWIG_fail; | |
4955 | } | |
4956 | resultobj = SWIG_Py_Void(); | |
4957 | return resultobj; | |
4958 | fail: | |
4959 | return NULL; | |
4960 | } | |
4961 | ||
4962 | ||
4963 | SWIGINTERN PyObject *XmlProperty_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4964 | PyObject *obj; | |
4965 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4966 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlProperty, SWIG_NewClientData(obj)); | |
4967 | return SWIG_Py_Void(); | |
4968 | } | |
4969 | ||
4970 | SWIGINTERN PyObject *XmlProperty_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4971 | return SWIG_Python_InitShadowInstance(args); | |
4972 | } | |
4973 | ||
4974 | SWIGINTERN PyObject *_wrap_new_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4975 | PyObject *resultobj = 0; | |
4976 | wxXmlNode *arg1 = (wxXmlNode *) NULL ; | |
4977 | wxXmlNodeType arg2 = (wxXmlNodeType) 0 ; | |
4978 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4979 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4980 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4981 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4982 | wxXmlProperty *arg5 = (wxXmlProperty *) NULL ; | |
4983 | wxXmlNode *arg6 = (wxXmlNode *) NULL ; | |
4984 | wxXmlNode *result = 0 ; | |
4985 | void *argp1 = 0 ; | |
4986 | int res1 = 0 ; | |
4987 | int val2 ; | |
4988 | int ecode2 = 0 ; | |
4989 | bool temp3 = false ; | |
4990 | bool temp4 = false ; | |
4991 | void *argp5 = 0 ; | |
4992 | int res5 = 0 ; | |
4993 | void *argp6 = 0 ; | |
4994 | int res6 = 0 ; | |
4995 | PyObject * obj0 = 0 ; | |
4996 | PyObject * obj1 = 0 ; | |
4997 | PyObject * obj2 = 0 ; | |
4998 | PyObject * obj3 = 0 ; | |
4999 | PyObject * obj4 = 0 ; | |
5000 | PyObject * obj5 = 0 ; | |
5001 | char * kwnames[] = { | |
5002 | (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL | |
5003 | }; | |
5004 | ||
5005 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_XmlNode",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
5006 | if (obj0) { | |
5007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5008 | if (!SWIG_IsOK(res1)) { | |
5009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
2ef75293 | 5010 | } |
0085ce49 RD |
5011 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); |
5012 | } | |
5013 | if (obj1) { | |
5014 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5015 | if (!SWIG_IsOK(ecode2)) { | |
5016 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlNode" "', expected argument " "2"" of type '" "wxXmlNodeType""'"); | |
5017 | } | |
5018 | arg2 = static_cast< wxXmlNodeType >(val2); | |
5019 | } | |
5020 | if (obj2) { | |
2ef75293 | 5021 | { |
0085ce49 RD |
5022 | arg3 = wxString_in_helper(obj2); |
5023 | if (arg3 == NULL) SWIG_fail; | |
5024 | temp3 = true; | |
2ef75293 | 5025 | } |
0085ce49 RD |
5026 | } |
5027 | if (obj3) { | |
2ef75293 | 5028 | { |
0085ce49 RD |
5029 | arg4 = wxString_in_helper(obj3); |
5030 | if (arg4 == NULL) SWIG_fail; | |
5031 | temp4 = true; | |
2ef75293 | 5032 | } |
0085ce49 RD |
5033 | } |
5034 | if (obj4) { | |
5035 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5036 | if (!SWIG_IsOK(res5)) { | |
5037 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_XmlNode" "', expected argument " "5"" of type '" "wxXmlProperty *""'"); | |
5038 | } | |
5039 | arg5 = reinterpret_cast< wxXmlProperty * >(argp5); | |
5040 | } | |
5041 | if (obj5) { | |
5042 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5043 | if (!SWIG_IsOK(res6)) { | |
5044 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_XmlNode" "', expected argument " "6"" of type '" "wxXmlNode *""'"); | |
5045 | } | |
5046 | arg6 = reinterpret_cast< wxXmlNode * >(argp6); | |
5047 | } | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = (wxXmlNode *)new wxXmlNode(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
5051 | wxPyEndAllowThreads(__tstate); | |
5052 | if (PyErr_Occurred()) SWIG_fail; | |
5053 | } | |
5054 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_NEW | 0 ); | |
5055 | { | |
5056 | if (temp3) | |
5057 | delete arg3; | |
5058 | } | |
5059 | { | |
5060 | if (temp4) | |
5061 | delete arg4; | |
5062 | } | |
5063 | return resultobj; | |
5064 | fail: | |
5065 | { | |
5066 | if (temp3) | |
5067 | delete arg3; | |
5068 | } | |
5069 | { | |
5070 | if (temp4) | |
5071 | delete arg4; | |
5072 | } | |
5073 | return NULL; | |
2ef75293 RD |
5074 | } |
5075 | ||
5076 | ||
0085ce49 RD |
5077 | SWIGINTERN PyObject *_wrap_delete_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5078 | PyObject *resultobj = 0; | |
5079 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5080 | void *argp1 = 0 ; | |
5081 | int res1 = 0 ; | |
5082 | PyObject *swig_obj[1] ; | |
5083 | ||
5084 | if (!args) SWIG_fail; | |
5085 | swig_obj[0] = args; | |
5086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, SWIG_POINTER_DISOWN | 0 ); | |
5087 | if (!SWIG_IsOK(res1)) { | |
5088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5089 | } | |
5090 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5091 | { | |
5092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5093 | delete arg1; | |
2ef75293 | 5094 | |
0085ce49 RD |
5095 | wxPyEndAllowThreads(__tstate); |
5096 | if (PyErr_Occurred()) SWIG_fail; | |
5097 | } | |
5098 | resultobj = SWIG_Py_Void(); | |
5099 | return resultobj; | |
5100 | fail: | |
5101 | return NULL; | |
5102 | } | |
5103 | ||
5104 | ||
5105 | SWIGINTERN PyObject *_wrap_new_XmlNodeEasy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5106 | PyObject *resultobj = 0; | |
5107 | wxXmlNodeType arg1 ; | |
5108 | wxString *arg2 = 0 ; | |
5109 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5110 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5111 | wxXmlNode *result = 0 ; | |
5112 | int val1 ; | |
5113 | int ecode1 = 0 ; | |
5114 | bool temp2 = false ; | |
5115 | bool temp3 = false ; | |
5116 | PyObject * obj0 = 0 ; | |
5117 | PyObject * obj1 = 0 ; | |
5118 | PyObject * obj2 = 0 ; | |
5119 | char * kwnames[] = { | |
5120 | (char *) "type",(char *) "name",(char *) "content", NULL | |
5121 | }; | |
5122 | ||
5123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_XmlNodeEasy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5124 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5125 | if (!SWIG_IsOK(ecode1)) { | |
5126 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_XmlNodeEasy" "', expected argument " "1"" of type '" "wxXmlNodeType""'"); | |
5127 | } | |
5128 | arg1 = static_cast< wxXmlNodeType >(val1); | |
5129 | { | |
5130 | arg2 = wxString_in_helper(obj1); | |
5131 | if (arg2 == NULL) SWIG_fail; | |
5132 | temp2 = true; | |
5133 | } | |
5134 | if (obj2) { | |
2ef75293 | 5135 | { |
0085ce49 RD |
5136 | arg3 = wxString_in_helper(obj2); |
5137 | if (arg3 == NULL) SWIG_fail; | |
5138 | temp3 = true; | |
2ef75293 | 5139 | } |
0085ce49 RD |
5140 | } |
5141 | { | |
5142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5143 | result = (wxXmlNode *)new wxXmlNode(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
5144 | wxPyEndAllowThreads(__tstate); | |
5145 | if (PyErr_Occurred()) SWIG_fail; | |
5146 | } | |
5147 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_OWN | 0 ); | |
5148 | { | |
5149 | if (temp2) | |
5150 | delete arg2; | |
5151 | } | |
5152 | { | |
5153 | if (temp3) | |
5154 | delete arg3; | |
5155 | } | |
5156 | return resultobj; | |
5157 | fail: | |
5158 | { | |
5159 | if (temp2) | |
5160 | delete arg2; | |
5161 | } | |
5162 | { | |
5163 | if (temp3) | |
5164 | delete arg3; | |
5165 | } | |
5166 | return NULL; | |
5167 | } | |
5168 | ||
5169 | ||
5170 | SWIGINTERN PyObject *_wrap_XmlNode_AddChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5171 | PyObject *resultobj = 0; | |
5172 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5173 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5174 | void *argp1 = 0 ; | |
5175 | int res1 = 0 ; | |
5176 | void *argp2 = 0 ; | |
5177 | int res2 = 0 ; | |
5178 | PyObject * obj0 = 0 ; | |
5179 | PyObject * obj1 = 0 ; | |
5180 | char * kwnames[] = { | |
5181 | (char *) "self",(char *) "child", NULL | |
5182 | }; | |
5183 | ||
5184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
5185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5186 | if (!SWIG_IsOK(res1)) { | |
5187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5188 | } | |
5189 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5190 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5191 | if (!SWIG_IsOK(res2)) { | |
5192 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5193 | } | |
5194 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5195 | { | |
5196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5197 | (arg1)->AddChild(arg2); | |
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | } | |
5201 | resultobj = SWIG_Py_Void(); | |
5202 | return resultobj; | |
5203 | fail: | |
5204 | return NULL; | |
5205 | } | |
5206 | ||
5207 | ||
5208 | SWIGINTERN PyObject *_wrap_XmlNode_InsertChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5209 | PyObject *resultobj = 0; | |
5210 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5211 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5212 | wxXmlNode *arg3 = (wxXmlNode *) 0 ; | |
5213 | void *argp1 = 0 ; | |
5214 | int res1 = 0 ; | |
5215 | void *argp2 = 0 ; | |
5216 | int res2 = 0 ; | |
5217 | void *argp3 = 0 ; | |
5218 | int res3 = 0 ; | |
5219 | PyObject * obj0 = 0 ; | |
5220 | PyObject * obj1 = 0 ; | |
5221 | PyObject * obj2 = 0 ; | |
5222 | char * kwnames[] = { | |
5223 | (char *) "self",(char *) "child",(char *) "before_node", NULL | |
5224 | }; | |
5225 | ||
5226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_InsertChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5228 | if (!SWIG_IsOK(res1)) { | |
5229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_InsertChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5230 | } | |
5231 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5232 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5233 | if (!SWIG_IsOK(res2)) { | |
5234 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_InsertChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5235 | } | |
5236 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5237 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5238 | if (!SWIG_IsOK(res3)) { | |
5239 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlNode_InsertChild" "', expected argument " "3"" of type '" "wxXmlNode *""'"); | |
5240 | } | |
5241 | arg3 = reinterpret_cast< wxXmlNode * >(argp3); | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5244 | (arg1)->InsertChild(arg2,arg3); | |
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
5247 | } | |
5248 | resultobj = SWIG_Py_Void(); | |
5249 | return resultobj; | |
5250 | fail: | |
5251 | return NULL; | |
5252 | } | |
5253 | ||
5254 | ||
5255 | SWIGINTERN PyObject *_wrap_XmlNode_RemoveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5256 | PyObject *resultobj = 0; | |
5257 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5258 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5259 | bool result; | |
5260 | void *argp1 = 0 ; | |
5261 | int res1 = 0 ; | |
5262 | void *argp2 = 0 ; | |
5263 | int res2 = 0 ; | |
5264 | PyObject * obj0 = 0 ; | |
5265 | PyObject * obj1 = 0 ; | |
5266 | char * kwnames[] = { | |
5267 | (char *) "self",(char *) "child", NULL | |
5268 | }; | |
5269 | ||
5270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_RemoveChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
5271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5272 | if (!SWIG_IsOK(res1)) { | |
5273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_RemoveChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5274 | } | |
5275 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5276 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5277 | if (!SWIG_IsOK(res2)) { | |
5278 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_RemoveChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5279 | } | |
5280 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5281 | { | |
5282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5283 | result = (bool)(arg1)->RemoveChild(arg2); | |
5284 | wxPyEndAllowThreads(__tstate); | |
5285 | if (PyErr_Occurred()) SWIG_fail; | |
5286 | } | |
5287 | { | |
5288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5289 | } | |
5290 | return resultobj; | |
5291 | fail: | |
5292 | return NULL; | |
5293 | } | |
5294 | ||
5295 | ||
5296 | SWIGINTERN PyObject *_wrap_XmlNode_AddProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5297 | PyObject *resultobj = 0; | |
5298 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5299 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
5300 | void *argp1 = 0 ; | |
5301 | int res1 = 0 ; | |
5302 | void *argp2 = 0 ; | |
5303 | int res2 = 0 ; | |
5304 | PyObject * obj0 = 0 ; | |
5305 | PyObject * obj1 = 0 ; | |
5306 | char * kwnames[] = { | |
5307 | (char *) "self",(char *) "prop", NULL | |
5308 | }; | |
5309 | ||
5310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddProperty",kwnames,&obj0,&obj1)) SWIG_fail; | |
5311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5312 | if (!SWIG_IsOK(res1)) { | |
5313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5314 | } | |
5315 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5316 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5317 | if (!SWIG_IsOK(res2)) { | |
5318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddProperty" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
5319 | } | |
5320 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
5321 | { | |
5322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5323 | (arg1)->AddProperty(arg2); | |
5324 | wxPyEndAllowThreads(__tstate); | |
5325 | if (PyErr_Occurred()) SWIG_fail; | |
5326 | } | |
5327 | resultobj = SWIG_Py_Void(); | |
5328 | return resultobj; | |
5329 | fail: | |
5330 | return NULL; | |
5331 | } | |
5332 | ||
5333 | ||
5334 | SWIGINTERN PyObject *_wrap_XmlNode_AddPropertyName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5335 | PyObject *resultobj = 0; | |
5336 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5337 | wxString *arg2 = 0 ; | |
5338 | wxString *arg3 = 0 ; | |
5339 | void *argp1 = 0 ; | |
5340 | int res1 = 0 ; | |
5341 | bool temp2 = false ; | |
5342 | bool temp3 = false ; | |
5343 | PyObject * obj0 = 0 ; | |
5344 | PyObject * obj1 = 0 ; | |
5345 | PyObject * obj2 = 0 ; | |
5346 | char * kwnames[] = { | |
5347 | (char *) "self",(char *) "name",(char *) "value", NULL | |
5348 | }; | |
5349 | ||
5350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_AddPropertyName",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5352 | if (!SWIG_IsOK(res1)) { | |
5353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddPropertyName" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5354 | } | |
5355 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5356 | { | |
5357 | arg2 = wxString_in_helper(obj1); | |
5358 | if (arg2 == NULL) SWIG_fail; | |
5359 | temp2 = true; | |
5360 | } | |
5361 | { | |
5362 | arg3 = wxString_in_helper(obj2); | |
5363 | if (arg3 == NULL) SWIG_fail; | |
5364 | temp3 = true; | |
5365 | } | |
5366 | { | |
5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5368 | (arg1)->AddProperty((wxString const &)*arg2,(wxString const &)*arg3); | |
5369 | wxPyEndAllowThreads(__tstate); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | } | |
5372 | resultobj = SWIG_Py_Void(); | |
5373 | { | |
5374 | if (temp2) | |
5375 | delete arg2; | |
5376 | } | |
5377 | { | |
5378 | if (temp3) | |
5379 | delete arg3; | |
5380 | } | |
5381 | return resultobj; | |
5382 | fail: | |
5383 | { | |
5384 | if (temp2) | |
5385 | delete arg2; | |
5386 | } | |
5387 | { | |
5388 | if (temp3) | |
5389 | delete arg3; | |
5390 | } | |
5391 | return NULL; | |
5392 | } | |
5393 | ||
5394 | ||
5395 | SWIGINTERN PyObject *_wrap_XmlNode_DeleteProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5396 | PyObject *resultobj = 0; | |
5397 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5398 | wxString *arg2 = 0 ; | |
5399 | bool result; | |
5400 | void *argp1 = 0 ; | |
5401 | int res1 = 0 ; | |
5402 | bool temp2 = false ; | |
5403 | PyObject * obj0 = 0 ; | |
5404 | PyObject * obj1 = 0 ; | |
5405 | char * kwnames[] = { | |
5406 | (char *) "self",(char *) "name", NULL | |
5407 | }; | |
5408 | ||
5409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_DeleteProperty",kwnames,&obj0,&obj1)) SWIG_fail; | |
5410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5411 | if (!SWIG_IsOK(res1)) { | |
5412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_DeleteProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5413 | } | |
5414 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5415 | { | |
5416 | arg2 = wxString_in_helper(obj1); | |
5417 | if (arg2 == NULL) SWIG_fail; | |
5418 | temp2 = true; | |
5419 | } | |
5420 | { | |
5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5422 | result = (bool)(arg1)->DeleteProperty((wxString const &)*arg2); | |
5423 | wxPyEndAllowThreads(__tstate); | |
5424 | if (PyErr_Occurred()) SWIG_fail; | |
5425 | } | |
5426 | { | |
5427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5428 | } | |
5429 | { | |
5430 | if (temp2) | |
5431 | delete arg2; | |
5432 | } | |
5433 | return resultobj; | |
5434 | fail: | |
5435 | { | |
5436 | if (temp2) | |
5437 | delete arg2; | |
5438 | } | |
5439 | return NULL; | |
2ef75293 RD |
5440 | } |
5441 | ||
5442 | ||
0085ce49 RD |
5443 | SWIGINTERN PyObject *_wrap_XmlNode_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5444 | PyObject *resultobj = 0; | |
5445 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5446 | wxXmlNodeType result; | |
5447 | void *argp1 = 0 ; | |
5448 | int res1 = 0 ; | |
5449 | PyObject *swig_obj[1] ; | |
5450 | ||
5451 | if (!args) SWIG_fail; | |
5452 | swig_obj[0] = args; | |
5453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5454 | if (!SWIG_IsOK(res1)) { | |
5455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetType" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5456 | } | |
5457 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5458 | { | |
5459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5460 | result = (wxXmlNodeType)((wxXmlNode const *)arg1)->GetType(); | |
5461 | wxPyEndAllowThreads(__tstate); | |
5462 | if (PyErr_Occurred()) SWIG_fail; | |
5463 | } | |
5464 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5465 | return resultobj; | |
5466 | fail: | |
5467 | return NULL; | |
2ef75293 RD |
5468 | } |
5469 | ||
5470 | ||
0085ce49 RD |
5471 | SWIGINTERN PyObject *_wrap_XmlNode_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5472 | PyObject *resultobj = 0; | |
5473 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5474 | wxString result; | |
5475 | void *argp1 = 0 ; | |
5476 | int res1 = 0 ; | |
5477 | PyObject *swig_obj[1] ; | |
5478 | ||
5479 | if (!args) SWIG_fail; | |
5480 | swig_obj[0] = args; | |
5481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5482 | if (!SWIG_IsOK(res1)) { | |
5483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetName" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5484 | } | |
5485 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5486 | { | |
5487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5488 | result = ((wxXmlNode const *)arg1)->GetName(); | |
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
5492 | { | |
2ef75293 | 5493 | #if wxUSE_UNICODE |
0085ce49 | 5494 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 5495 | #else |
0085ce49 | 5496 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 5497 | #endif |
0085ce49 RD |
5498 | } |
5499 | return resultobj; | |
5500 | fail: | |
5501 | return NULL; | |
2ef75293 RD |
5502 | } |
5503 | ||
5504 | ||
0085ce49 RD |
5505 | SWIGINTERN PyObject *_wrap_XmlNode_GetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5506 | PyObject *resultobj = 0; | |
5507 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5508 | wxString result; | |
5509 | void *argp1 = 0 ; | |
5510 | int res1 = 0 ; | |
5511 | PyObject *swig_obj[1] ; | |
5512 | ||
5513 | if (!args) SWIG_fail; | |
5514 | swig_obj[0] = args; | |
5515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5516 | if (!SWIG_IsOK(res1)) { | |
5517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5518 | } | |
5519 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5520 | { | |
5521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5522 | result = ((wxXmlNode const *)arg1)->GetContent(); | |
5523 | wxPyEndAllowThreads(__tstate); | |
5524 | if (PyErr_Occurred()) SWIG_fail; | |
5525 | } | |
5526 | { | |
2ef75293 | 5527 | #if wxUSE_UNICODE |
0085ce49 | 5528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 5529 | #else |
0085ce49 | 5530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 5531 | #endif |
0085ce49 RD |
5532 | } |
5533 | return resultobj; | |
5534 | fail: | |
5535 | return NULL; | |
2ef75293 RD |
5536 | } |
5537 | ||
5538 | ||
0085ce49 RD |
5539 | SWIGINTERN PyObject *_wrap_XmlNode_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5540 | PyObject *resultobj = 0; | |
5541 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5542 | wxXmlNode *result = 0 ; | |
5543 | void *argp1 = 0 ; | |
5544 | int res1 = 0 ; | |
5545 | PyObject *swig_obj[1] ; | |
5546 | ||
5547 | if (!args) SWIG_fail; | |
5548 | swig_obj[0] = args; | |
5549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5550 | if (!SWIG_IsOK(res1)) { | |
5551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetParent" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5552 | } | |
5553 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5554 | { | |
5555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5556 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetParent(); | |
5557 | wxPyEndAllowThreads(__tstate); | |
5558 | if (PyErr_Occurred()) SWIG_fail; | |
5559 | } | |
5560 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5561 | return resultobj; | |
5562 | fail: | |
5563 | return NULL; | |
2ef75293 RD |
5564 | } |
5565 | ||
5566 | ||
0085ce49 RD |
5567 | SWIGINTERN PyObject *_wrap_XmlNode_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5568 | PyObject *resultobj = 0; | |
5569 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5570 | wxXmlNode *result = 0 ; | |
5571 | void *argp1 = 0 ; | |
5572 | int res1 = 0 ; | |
5573 | PyObject *swig_obj[1] ; | |
5574 | ||
5575 | if (!args) SWIG_fail; | |
5576 | swig_obj[0] = args; | |
5577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5578 | if (!SWIG_IsOK(res1)) { | |
5579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNext" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5580 | } | |
5581 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5582 | { | |
5583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5584 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetNext(); | |
5585 | wxPyEndAllowThreads(__tstate); | |
5586 | if (PyErr_Occurred()) SWIG_fail; | |
5587 | } | |
5588 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5589 | return resultobj; | |
5590 | fail: | |
5591 | return NULL; | |
2ef75293 RD |
5592 | } |
5593 | ||
5594 | ||
0085ce49 RD |
5595 | SWIGINTERN PyObject *_wrap_XmlNode_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5596 | PyObject *resultobj = 0; | |
5597 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5598 | wxXmlNode *result = 0 ; | |
5599 | void *argp1 = 0 ; | |
5600 | int res1 = 0 ; | |
5601 | PyObject *swig_obj[1] ; | |
5602 | ||
5603 | if (!args) SWIG_fail; | |
5604 | swig_obj[0] = args; | |
5605 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5606 | if (!SWIG_IsOK(res1)) { | |
5607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetChildren" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5608 | } | |
5609 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5610 | { | |
5611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5612 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetChildren(); | |
5613 | wxPyEndAllowThreads(__tstate); | |
5614 | if (PyErr_Occurred()) SWIG_fail; | |
5615 | } | |
5616 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5617 | return resultobj; | |
5618 | fail: | |
5619 | return NULL; | |
2ef75293 RD |
5620 | } |
5621 | ||
5622 | ||
0085ce49 RD |
5623 | SWIGINTERN PyObject *_wrap_XmlNode_GetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5624 | PyObject *resultobj = 0; | |
5625 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5626 | wxXmlProperty *result = 0 ; | |
5627 | void *argp1 = 0 ; | |
5628 | int res1 = 0 ; | |
5629 | PyObject *swig_obj[1] ; | |
5630 | ||
5631 | if (!args) SWIG_fail; | |
5632 | swig_obj[0] = args; | |
5633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5634 | if (!SWIG_IsOK(res1)) { | |
5635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetProperties" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5636 | } | |
5637 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5638 | { | |
5639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5640 | result = (wxXmlProperty *)((wxXmlNode const *)arg1)->GetProperties(); | |
5641 | wxPyEndAllowThreads(__tstate); | |
5642 | if (PyErr_Occurred()) SWIG_fail; | |
5643 | } | |
5644 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5645 | return resultobj; | |
5646 | fail: | |
5647 | return NULL; | |
5648 | } | |
5649 | ||
5650 | ||
5651 | SWIGINTERN PyObject *_wrap_XmlNode_GetPropVal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5652 | PyObject *resultobj = 0; | |
5653 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5654 | wxString *arg2 = 0 ; | |
5655 | wxString *arg3 = 0 ; | |
5656 | wxString result; | |
5657 | void *argp1 = 0 ; | |
5658 | int res1 = 0 ; | |
5659 | bool temp2 = false ; | |
5660 | bool temp3 = false ; | |
5661 | PyObject * obj0 = 0 ; | |
5662 | PyObject * obj1 = 0 ; | |
5663 | PyObject * obj2 = 0 ; | |
5664 | char * kwnames[] = { | |
5665 | (char *) "self",(char *) "propName",(char *) "defaultVal", NULL | |
5666 | }; | |
5667 | ||
5668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_GetPropVal",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5670 | if (!SWIG_IsOK(res1)) { | |
5671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetPropVal" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5672 | } | |
5673 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5674 | { | |
5675 | arg2 = wxString_in_helper(obj1); | |
5676 | if (arg2 == NULL) SWIG_fail; | |
5677 | temp2 = true; | |
5678 | } | |
5679 | { | |
5680 | arg3 = wxString_in_helper(obj2); | |
5681 | if (arg3 == NULL) SWIG_fail; | |
5682 | temp3 = true; | |
5683 | } | |
5684 | { | |
5685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5686 | result = ((wxXmlNode const *)arg1)->GetPropVal((wxString const &)*arg2,(wxString const &)*arg3); | |
5687 | wxPyEndAllowThreads(__tstate); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
5690 | { | |
5691 | #if wxUSE_UNICODE | |
5692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5693 | #else | |
5694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5695 | #endif | |
5696 | } | |
5697 | { | |
5698 | if (temp2) | |
5699 | delete arg2; | |
5700 | } | |
5701 | { | |
5702 | if (temp3) | |
5703 | delete arg3; | |
5704 | } | |
5705 | return resultobj; | |
5706 | fail: | |
5707 | { | |
5708 | if (temp2) | |
5709 | delete arg2; | |
5710 | } | |
5711 | { | |
5712 | if (temp3) | |
5713 | delete arg3; | |
5714 | } | |
5715 | return NULL; | |
5716 | } | |
5717 | ||
5718 | ||
5719 | SWIGINTERN PyObject *_wrap_XmlNode_HasProp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5720 | PyObject *resultobj = 0; | |
5721 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5722 | wxString *arg2 = 0 ; | |
5723 | bool result; | |
5724 | void *argp1 = 0 ; | |
5725 | int res1 = 0 ; | |
5726 | bool temp2 = false ; | |
5727 | PyObject * obj0 = 0 ; | |
5728 | PyObject * obj1 = 0 ; | |
5729 | char * kwnames[] = { | |
5730 | (char *) "self",(char *) "propName", NULL | |
5731 | }; | |
5732 | ||
5733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_HasProp",kwnames,&obj0,&obj1)) SWIG_fail; | |
5734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5735 | if (!SWIG_IsOK(res1)) { | |
5736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_HasProp" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5737 | } | |
5738 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5739 | { | |
5740 | arg2 = wxString_in_helper(obj1); | |
5741 | if (arg2 == NULL) SWIG_fail; | |
5742 | temp2 = true; | |
5743 | } | |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | result = (bool)((wxXmlNode const *)arg1)->HasProp((wxString const &)*arg2); | |
5747 | wxPyEndAllowThreads(__tstate); | |
5748 | if (PyErr_Occurred()) SWIG_fail; | |
5749 | } | |
5750 | { | |
5751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5752 | } | |
5753 | { | |
5754 | if (temp2) | |
5755 | delete arg2; | |
5756 | } | |
5757 | return resultobj; | |
5758 | fail: | |
5759 | { | |
5760 | if (temp2) | |
5761 | delete arg2; | |
5762 | } | |
5763 | return NULL; | |
5764 | } | |
5765 | ||
5766 | ||
5767 | SWIGINTERN PyObject *_wrap_XmlNode_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5768 | PyObject *resultobj = 0; | |
5769 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5770 | wxXmlNodeType arg2 ; | |
5771 | void *argp1 = 0 ; | |
5772 | int res1 = 0 ; | |
5773 | int val2 ; | |
5774 | int ecode2 = 0 ; | |
5775 | PyObject * obj0 = 0 ; | |
5776 | PyObject * obj1 = 0 ; | |
5777 | char * kwnames[] = { | |
5778 | (char *) "self",(char *) "type", NULL | |
5779 | }; | |
5780 | ||
5781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetType",kwnames,&obj0,&obj1)) SWIG_fail; | |
5782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5783 | if (!SWIG_IsOK(res1)) { | |
5784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetType" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5785 | } | |
5786 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5787 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5788 | if (!SWIG_IsOK(ecode2)) { | |
5789 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlNode_SetType" "', expected argument " "2"" of type '" "wxXmlNodeType""'"); | |
5790 | } | |
5791 | arg2 = static_cast< wxXmlNodeType >(val2); | |
5792 | { | |
5793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5794 | (arg1)->SetType(arg2); | |
5795 | wxPyEndAllowThreads(__tstate); | |
5796 | if (PyErr_Occurred()) SWIG_fail; | |
5797 | } | |
5798 | resultobj = SWIG_Py_Void(); | |
5799 | return resultobj; | |
5800 | fail: | |
5801 | return NULL; | |
5802 | } | |
5803 | ||
5804 | ||
5805 | SWIGINTERN PyObject *_wrap_XmlNode_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5806 | PyObject *resultobj = 0; | |
5807 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5808 | wxString *arg2 = 0 ; | |
5809 | void *argp1 = 0 ; | |
5810 | int res1 = 0 ; | |
5811 | bool temp2 = false ; | |
5812 | PyObject * obj0 = 0 ; | |
5813 | PyObject * obj1 = 0 ; | |
5814 | char * kwnames[] = { | |
5815 | (char *) "self",(char *) "name", NULL | |
5816 | }; | |
5817 | ||
5818 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetName",kwnames,&obj0,&obj1)) SWIG_fail; | |
5819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5820 | if (!SWIG_IsOK(res1)) { | |
5821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetName" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5822 | } | |
5823 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5824 | { | |
5825 | arg2 = wxString_in_helper(obj1); | |
5826 | if (arg2 == NULL) SWIG_fail; | |
5827 | temp2 = true; | |
5828 | } | |
5829 | { | |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5831 | (arg1)->SetName((wxString const &)*arg2); | |
5832 | wxPyEndAllowThreads(__tstate); | |
5833 | if (PyErr_Occurred()) SWIG_fail; | |
5834 | } | |
5835 | resultobj = SWIG_Py_Void(); | |
5836 | { | |
5837 | if (temp2) | |
5838 | delete arg2; | |
5839 | } | |
5840 | return resultobj; | |
5841 | fail: | |
5842 | { | |
5843 | if (temp2) | |
5844 | delete arg2; | |
5845 | } | |
5846 | return NULL; | |
2ef75293 RD |
5847 | } |
5848 | ||
5849 | ||
0085ce49 RD |
5850 | SWIGINTERN PyObject *_wrap_XmlNode_SetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5851 | PyObject *resultobj = 0; | |
5852 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5853 | wxString *arg2 = 0 ; | |
5854 | void *argp1 = 0 ; | |
5855 | int res1 = 0 ; | |
5856 | bool temp2 = false ; | |
5857 | PyObject * obj0 = 0 ; | |
5858 | PyObject * obj1 = 0 ; | |
5859 | char * kwnames[] = { | |
5860 | (char *) "self",(char *) "con", NULL | |
5861 | }; | |
5862 | ||
5863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
5864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5865 | if (!SWIG_IsOK(res1)) { | |
5866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetContent" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5867 | } | |
5868 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5869 | { | |
5870 | arg2 = wxString_in_helper(obj1); | |
5871 | if (arg2 == NULL) SWIG_fail; | |
5872 | temp2 = true; | |
5873 | } | |
5874 | { | |
5875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5876 | (arg1)->SetContent((wxString const &)*arg2); | |
5877 | wxPyEndAllowThreads(__tstate); | |
5878 | if (PyErr_Occurred()) SWIG_fail; | |
5879 | } | |
5880 | resultobj = SWIG_Py_Void(); | |
5881 | { | |
5882 | if (temp2) | |
5883 | delete arg2; | |
5884 | } | |
5885 | return resultobj; | |
5886 | fail: | |
5887 | { | |
5888 | if (temp2) | |
5889 | delete arg2; | |
5890 | } | |
5891 | return NULL; | |
5892 | } | |
5893 | ||
5894 | ||
5895 | SWIGINTERN PyObject *_wrap_XmlNode_SetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5896 | PyObject *resultobj = 0; | |
5897 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5898 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5899 | void *argp1 = 0 ; | |
5900 | int res1 = 0 ; | |
5901 | void *argp2 = 0 ; | |
5902 | int res2 = 0 ; | |
5903 | PyObject * obj0 = 0 ; | |
5904 | PyObject * obj1 = 0 ; | |
5905 | char * kwnames[] = { | |
5906 | (char *) "self",(char *) "parent", NULL | |
5907 | }; | |
5908 | ||
5909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
5910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5911 | if (!SWIG_IsOK(res1)) { | |
5912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetParent" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5913 | } | |
5914 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5915 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5916 | if (!SWIG_IsOK(res2)) { | |
5917 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetParent" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5918 | } | |
5919 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5920 | { | |
5921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5922 | (arg1)->SetParent(arg2); | |
5923 | wxPyEndAllowThreads(__tstate); | |
5924 | if (PyErr_Occurred()) SWIG_fail; | |
5925 | } | |
5926 | resultobj = SWIG_Py_Void(); | |
5927 | return resultobj; | |
5928 | fail: | |
5929 | return NULL; | |
5930 | } | |
5931 | ||
5932 | ||
5933 | SWIGINTERN PyObject *_wrap_XmlNode_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5934 | PyObject *resultobj = 0; | |
5935 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5936 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5937 | void *argp1 = 0 ; | |
5938 | int res1 = 0 ; | |
5939 | void *argp2 = 0 ; | |
5940 | int res2 = 0 ; | |
5941 | PyObject * obj0 = 0 ; | |
5942 | PyObject * obj1 = 0 ; | |
5943 | char * kwnames[] = { | |
5944 | (char *) "self",(char *) "next", NULL | |
5945 | }; | |
5946 | ||
5947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetNext",kwnames,&obj0,&obj1)) SWIG_fail; | |
5948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5949 | if (!SWIG_IsOK(res1)) { | |
5950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetNext" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5951 | } | |
5952 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5953 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5954 | if (!SWIG_IsOK(res2)) { | |
5955 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetNext" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5956 | } | |
5957 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | (arg1)->SetNext(arg2); | |
5961 | wxPyEndAllowThreads(__tstate); | |
5962 | if (PyErr_Occurred()) SWIG_fail; | |
5963 | } | |
5964 | resultobj = SWIG_Py_Void(); | |
5965 | return resultobj; | |
5966 | fail: | |
5967 | return NULL; | |
5968 | } | |
5969 | ||
5970 | ||
5971 | SWIGINTERN PyObject *_wrap_XmlNode_SetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5972 | PyObject *resultobj = 0; | |
5973 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5974 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5975 | void *argp1 = 0 ; | |
5976 | int res1 = 0 ; | |
5977 | void *argp2 = 0 ; | |
5978 | int res2 = 0 ; | |
5979 | PyObject * obj0 = 0 ; | |
5980 | PyObject * obj1 = 0 ; | |
5981 | char * kwnames[] = { | |
5982 | (char *) "self",(char *) "child", NULL | |
5983 | }; | |
5984 | ||
5985 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
5986 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5987 | if (!SWIG_IsOK(res1)) { | |
5988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetChildren" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5989 | } | |
5990 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5991 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5992 | if (!SWIG_IsOK(res2)) { | |
5993 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetChildren" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5994 | } | |
5995 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5996 | { | |
5997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5998 | (arg1)->SetChildren(arg2); | |
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | resultobj = SWIG_Py_Void(); | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
6009 | SWIGINTERN PyObject *_wrap_XmlNode_SetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6010 | PyObject *resultobj = 0; | |
6011 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6012 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
6013 | void *argp1 = 0 ; | |
6014 | int res1 = 0 ; | |
6015 | void *argp2 = 0 ; | |
6016 | int res2 = 0 ; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | PyObject * obj1 = 0 ; | |
6019 | char * kwnames[] = { | |
6020 | (char *) "self",(char *) "prop", NULL | |
6021 | }; | |
6022 | ||
6023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetProperties",kwnames,&obj0,&obj1)) SWIG_fail; | |
6024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6025 | if (!SWIG_IsOK(res1)) { | |
6026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetProperties" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6027 | } | |
6028 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6029 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
6030 | if (!SWIG_IsOK(res2)) { | |
6031 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetProperties" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
6032 | } | |
6033 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
6034 | { | |
6035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6036 | (arg1)->SetProperties(arg2); | |
6037 | wxPyEndAllowThreads(__tstate); | |
6038 | if (PyErr_Occurred()) SWIG_fail; | |
6039 | } | |
6040 | resultobj = SWIG_Py_Void(); | |
6041 | return resultobj; | |
6042 | fail: | |
6043 | return NULL; | |
2ef75293 RD |
6044 | } |
6045 | ||
6046 | ||
0085ce49 RD |
6047 | SWIGINTERN PyObject *XmlNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6048 | PyObject *obj; | |
6049 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6050 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlNode, SWIG_NewClientData(obj)); | |
6051 | return SWIG_Py_Void(); | |
2ef75293 RD |
6052 | } |
6053 | ||
0085ce49 RD |
6054 | SWIGINTERN PyObject *XmlNode_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6055 | return SWIG_Python_InitShadowInstance(args); | |
2ef75293 RD |
6056 | } |
6057 | ||
0085ce49 RD |
6058 | SWIGINTERN PyObject *_wrap_new_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6059 | PyObject *resultobj = 0; | |
6060 | wxString *arg1 = 0 ; | |
6061 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
6062 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6063 | wxXmlDocument *result = 0 ; | |
6064 | bool temp1 = false ; | |
6065 | bool temp2 = false ; | |
6066 | PyObject * obj0 = 0 ; | |
6067 | PyObject * obj1 = 0 ; | |
6068 | char * kwnames[] = { | |
6069 | (char *) "filename",(char *) "encoding", NULL | |
6070 | }; | |
6071 | ||
6072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocument",kwnames,&obj0,&obj1)) SWIG_fail; | |
6073 | { | |
6074 | arg1 = wxString_in_helper(obj0); | |
6075 | if (arg1 == NULL) SWIG_fail; | |
6076 | temp1 = true; | |
6077 | } | |
6078 | if (obj1) { | |
2ef75293 | 6079 | { |
0085ce49 RD |
6080 | arg2 = wxString_in_helper(obj1); |
6081 | if (arg2 == NULL) SWIG_fail; | |
6082 | temp2 = true; | |
2ef75293 | 6083 | } |
0085ce49 RD |
6084 | } |
6085 | { | |
6086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6087 | result = (wxXmlDocument *)new wxXmlDocument((wxString const &)*arg1,(wxString const &)*arg2); | |
6088 | wxPyEndAllowThreads(__tstate); | |
6089 | if (PyErr_Occurred()) SWIG_fail; | |
6090 | } | |
6091 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_NEW | 0 ); | |
6092 | { | |
6093 | if (temp1) | |
6094 | delete arg1; | |
6095 | } | |
6096 | { | |
6097 | if (temp2) | |
6098 | delete arg2; | |
6099 | } | |
6100 | return resultobj; | |
6101 | fail: | |
6102 | { | |
6103 | if (temp1) | |
6104 | delete arg1; | |
6105 | } | |
6106 | { | |
6107 | if (temp2) | |
6108 | delete arg2; | |
6109 | } | |
6110 | return NULL; | |
6111 | } | |
6112 | ||
6113 | ||
6114 | SWIGINTERN PyObject *_wrap_new_XmlDocumentFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6115 | PyObject *resultobj = 0; | |
6116 | wxInputStream *arg1 = 0 ; | |
6117 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
6118 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6119 | wxXmlDocument *result = 0 ; | |
6120 | wxPyInputStream *temp1 ; | |
6121 | bool created1 ; | |
6122 | bool temp2 = false ; | |
6123 | PyObject * obj0 = 0 ; | |
6124 | PyObject * obj1 = 0 ; | |
6125 | char * kwnames[] = { | |
6126 | (char *) "stream",(char *) "encoding", NULL | |
6127 | }; | |
6128 | ||
6129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocumentFromStream",kwnames,&obj0,&obj1)) SWIG_fail; | |
6130 | { | |
6131 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6132 | arg1 = temp1->m_wxis; | |
6133 | created1 = false; | |
6134 | } else { | |
6135 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6136 | arg1 = wxPyCBInputStream_create(obj0, false); | |
6137 | if (arg1 == NULL) { | |
6138 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); | |
6139 | SWIG_fail; | |
6140 | } | |
6141 | created1 = true; | |
2ef75293 | 6142 | } |
0085ce49 RD |
6143 | } |
6144 | if (obj1) { | |
2ef75293 | 6145 | { |
0085ce49 RD |
6146 | arg2 = wxString_in_helper(obj1); |
6147 | if (arg2 == NULL) SWIG_fail; | |
6148 | temp2 = true; | |
2ef75293 | 6149 | } |
0085ce49 RD |
6150 | } |
6151 | { | |
6152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6153 | result = (wxXmlDocument *)new wxXmlDocument(*arg1,(wxString const &)*arg2); | |
6154 | wxPyEndAllowThreads(__tstate); | |
6155 | if (PyErr_Occurred()) SWIG_fail; | |
6156 | } | |
6157 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 ); | |
6158 | { | |
6159 | if (created1) delete arg1; | |
6160 | } | |
6161 | { | |
6162 | if (temp2) | |
6163 | delete arg2; | |
6164 | } | |
6165 | return resultobj; | |
6166 | fail: | |
6167 | { | |
6168 | if (created1) delete arg1; | |
6169 | } | |
6170 | { | |
6171 | if (temp2) | |
6172 | delete arg2; | |
6173 | } | |
6174 | return NULL; | |
2ef75293 RD |
6175 | } |
6176 | ||
6177 | ||
0085ce49 RD |
6178 | SWIGINTERN PyObject *_wrap_new_EmptyXmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6179 | PyObject *resultobj = 0; | |
6180 | wxXmlDocument *result = 0 ; | |
6181 | ||
6182 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyXmlDocument",0,0,0)) SWIG_fail; | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | result = (wxXmlDocument *)new wxXmlDocument(); | |
6186 | wxPyEndAllowThreads(__tstate); | |
6187 | if (PyErr_Occurred()) SWIG_fail; | |
6188 | } | |
6189 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 ); | |
6190 | return resultobj; | |
6191 | fail: | |
6192 | return NULL; | |
2ef75293 RD |
6193 | } |
6194 | ||
6195 | ||
0085ce49 RD |
6196 | SWIGINTERN PyObject *_wrap_delete_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6197 | PyObject *resultobj = 0; | |
6198 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6199 | void *argp1 = 0 ; | |
6200 | int res1 = 0 ; | |
6201 | PyObject *swig_obj[1] ; | |
6202 | ||
6203 | if (!args) SWIG_fail; | |
6204 | swig_obj[0] = args; | |
6205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_DISOWN | 0 ); | |
6206 | if (!SWIG_IsOK(res1)) { | |
6207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlDocument" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6208 | } | |
6209 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6210 | { | |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | delete arg1; | |
2ef75293 | 6213 | |
0085ce49 RD |
6214 | wxPyEndAllowThreads(__tstate); |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
6217 | resultobj = SWIG_Py_Void(); | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | return NULL; | |
6221 | } | |
6222 | ||
6223 | ||
6224 | SWIGINTERN PyObject *_wrap_XmlDocument_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6225 | PyObject *resultobj = 0; | |
6226 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6227 | wxString *arg2 = 0 ; | |
6228 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
6229 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6230 | bool result; | |
6231 | void *argp1 = 0 ; | |
6232 | int res1 = 0 ; | |
6233 | bool temp2 = false ; | |
6234 | bool temp3 = false ; | |
6235 | PyObject * obj0 = 0 ; | |
6236 | PyObject * obj1 = 0 ; | |
6237 | PyObject * obj2 = 0 ; | |
6238 | char * kwnames[] = { | |
6239 | (char *) "self",(char *) "filename",(char *) "encoding", NULL | |
6240 | }; | |
6241 | ||
6242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6244 | if (!SWIG_IsOK(res1)) { | |
6245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Load" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6246 | } | |
6247 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6248 | { | |
6249 | arg2 = wxString_in_helper(obj1); | |
6250 | if (arg2 == NULL) SWIG_fail; | |
6251 | temp2 = true; | |
6252 | } | |
6253 | if (obj2) { | |
2ef75293 | 6254 | { |
0085ce49 RD |
6255 | arg3 = wxString_in_helper(obj2); |
6256 | if (arg3 == NULL) SWIG_fail; | |
6257 | temp3 = true; | |
6258 | } | |
6259 | } | |
6260 | { | |
6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6262 | result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3); | |
6263 | wxPyEndAllowThreads(__tstate); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | } | |
6266 | { | |
6267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6268 | } | |
6269 | { | |
6270 | if (temp2) | |
6271 | delete arg2; | |
6272 | } | |
6273 | { | |
6274 | if (temp3) | |
6275 | delete arg3; | |
6276 | } | |
6277 | return resultobj; | |
6278 | fail: | |
6279 | { | |
6280 | if (temp2) | |
6281 | delete arg2; | |
6282 | } | |
6283 | { | |
6284 | if (temp3) | |
6285 | delete arg3; | |
6286 | } | |
6287 | return NULL; | |
6288 | } | |
6289 | ||
6290 | ||
6291 | SWIGINTERN PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6292 | PyObject *resultobj = 0; | |
6293 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6294 | wxInputStream *arg2 = 0 ; | |
6295 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
6296 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6297 | bool result; | |
6298 | void *argp1 = 0 ; | |
6299 | int res1 = 0 ; | |
6300 | wxPyInputStream *temp2 ; | |
6301 | bool created2 ; | |
6302 | bool temp3 = false ; | |
6303 | PyObject * obj0 = 0 ; | |
6304 | PyObject * obj1 = 0 ; | |
6305 | PyObject * obj2 = 0 ; | |
6306 | char * kwnames[] = { | |
6307 | (char *) "self",(char *) "stream",(char *) "encoding", NULL | |
6308 | }; | |
6309 | ||
6310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6312 | if (!SWIG_IsOK(res1)) { | |
6313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6314 | } | |
6315 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6316 | { | |
6317 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
6318 | arg2 = temp2->m_wxis; | |
6319 | created2 = false; | |
6320 | } else { | |
6321 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6322 | arg2 = wxPyCBInputStream_create(obj1, false); | |
6323 | if (arg2 == NULL) { | |
6324 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); | |
6325 | SWIG_fail; | |
6326 | } | |
6327 | created2 = true; | |
2ef75293 | 6328 | } |
0085ce49 RD |
6329 | } |
6330 | if (obj2) { | |
2ef75293 | 6331 | { |
0085ce49 RD |
6332 | arg3 = wxString_in_helper(obj2); |
6333 | if (arg3 == NULL) SWIG_fail; | |
6334 | temp3 = true; | |
2ef75293 | 6335 | } |
0085ce49 RD |
6336 | } |
6337 | { | |
6338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6339 | result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3); | |
6340 | wxPyEndAllowThreads(__tstate); | |
6341 | if (PyErr_Occurred()) SWIG_fail; | |
6342 | } | |
6343 | { | |
6344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6345 | } | |
6346 | { | |
6347 | if (created2) delete arg2; | |
6348 | } | |
6349 | { | |
6350 | if (temp3) | |
6351 | delete arg3; | |
6352 | } | |
6353 | return resultobj; | |
6354 | fail: | |
6355 | { | |
6356 | if (created2) delete arg2; | |
6357 | } | |
6358 | { | |
6359 | if (temp3) | |
6360 | delete arg3; | |
6361 | } | |
6362 | return NULL; | |
6363 | } | |
6364 | ||
6365 | ||
6366 | SWIGINTERN PyObject *_wrap_XmlDocument_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6367 | PyObject *resultobj = 0; | |
6368 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6369 | wxString *arg2 = 0 ; | |
6370 | bool result; | |
6371 | void *argp1 = 0 ; | |
6372 | int res1 = 0 ; | |
6373 | bool temp2 = false ; | |
6374 | PyObject * obj0 = 0 ; | |
6375 | PyObject * obj1 = 0 ; | |
6376 | char * kwnames[] = { | |
6377 | (char *) "self",(char *) "filename", NULL | |
6378 | }; | |
6379 | ||
6380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_Save",kwnames,&obj0,&obj1)) SWIG_fail; | |
6381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6382 | if (!SWIG_IsOK(res1)) { | |
6383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Save" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6384 | } | |
6385 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6386 | { | |
6387 | arg2 = wxString_in_helper(obj1); | |
6388 | if (arg2 == NULL) SWIG_fail; | |
6389 | temp2 = true; | |
6390 | } | |
6391 | { | |
6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6393 | result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2); | |
6394 | wxPyEndAllowThreads(__tstate); | |
6395 | if (PyErr_Occurred()) SWIG_fail; | |
6396 | } | |
6397 | { | |
6398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6399 | } | |
6400 | { | |
6401 | if (temp2) | |
6402 | delete arg2; | |
6403 | } | |
6404 | return resultobj; | |
6405 | fail: | |
6406 | { | |
6407 | if (temp2) | |
6408 | delete arg2; | |
6409 | } | |
6410 | return NULL; | |
6411 | } | |
6412 | ||
6413 | ||
6414 | SWIGINTERN PyObject *_wrap_XmlDocument_SaveToStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6415 | PyObject *resultobj = 0; | |
6416 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6417 | wxOutputStream *arg2 = 0 ; | |
6418 | bool result; | |
6419 | void *argp1 = 0 ; | |
6420 | int res1 = 0 ; | |
6421 | void *argp2 = 0 ; | |
6422 | int res2 = 0 ; | |
6423 | PyObject * obj0 = 0 ; | |
6424 | PyObject * obj1 = 0 ; | |
6425 | char * kwnames[] = { | |
6426 | (char *) "self",(char *) "stream", NULL | |
6427 | }; | |
6428 | ||
6429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SaveToStream",kwnames,&obj0,&obj1)) SWIG_fail; | |
6430 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6431 | if (!SWIG_IsOK(res1)) { | |
6432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SaveToStream" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6433 | } | |
6434 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6435 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxOutputStream, 0 ); | |
6436 | if (!SWIG_IsOK(res2)) { | |
6437 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'"); | |
6438 | } | |
6439 | if (!argp2) { | |
6440 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'"); | |
6441 | } | |
6442 | arg2 = reinterpret_cast< wxOutputStream * >(argp2); | |
6443 | { | |
6444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6445 | result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2); | |
6446 | wxPyEndAllowThreads(__tstate); | |
6447 | if (PyErr_Occurred()) SWIG_fail; | |
6448 | } | |
6449 | { | |
6450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6451 | } | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
2ef75293 RD |
6455 | } |
6456 | ||
6457 | ||
0085ce49 RD |
6458 | SWIGINTERN PyObject *_wrap_XmlDocument_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6459 | PyObject *resultobj = 0; | |
6460 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6461 | bool result; | |
6462 | void *argp1 = 0 ; | |
6463 | int res1 = 0 ; | |
6464 | PyObject *swig_obj[1] ; | |
6465 | ||
6466 | if (!args) SWIG_fail; | |
6467 | swig_obj[0] = args; | |
6468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6469 | if (!SWIG_IsOK(res1)) { | |
6470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_IsOk" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6471 | } | |
6472 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | result = (bool)((wxXmlDocument const *)arg1)->IsOk(); | |
6476 | wxPyEndAllowThreads(__tstate); | |
6477 | if (PyErr_Occurred()) SWIG_fail; | |
6478 | } | |
6479 | { | |
6480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6481 | } | |
6482 | return resultobj; | |
6483 | fail: | |
6484 | return NULL; | |
2ef75293 RD |
6485 | } |
6486 | ||
6487 | ||
0085ce49 RD |
6488 | SWIGINTERN PyObject *_wrap_XmlDocument_GetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6489 | PyObject *resultobj = 0; | |
6490 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6491 | wxXmlNode *result = 0 ; | |
6492 | void *argp1 = 0 ; | |
6493 | int res1 = 0 ; | |
6494 | PyObject *swig_obj[1] ; | |
6495 | ||
6496 | if (!args) SWIG_fail; | |
6497 | swig_obj[0] = args; | |
6498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6499 | if (!SWIG_IsOK(res1)) { | |
6500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetRoot" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6501 | } | |
6502 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6503 | { | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | result = (wxXmlNode *)((wxXmlDocument const *)arg1)->GetRoot(); | |
6506 | wxPyEndAllowThreads(__tstate); | |
6507 | if (PyErr_Occurred()) SWIG_fail; | |
6508 | } | |
6509 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6510 | return resultobj; | |
6511 | fail: | |
6512 | return NULL; | |
2ef75293 RD |
6513 | } |
6514 | ||
6515 | ||
0085ce49 RD |
6516 | SWIGINTERN PyObject *_wrap_XmlDocument_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6517 | PyObject *resultobj = 0; | |
6518 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6519 | wxString result; | |
6520 | void *argp1 = 0 ; | |
6521 | int res1 = 0 ; | |
6522 | PyObject *swig_obj[1] ; | |
6523 | ||
6524 | if (!args) SWIG_fail; | |
6525 | swig_obj[0] = args; | |
6526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6527 | if (!SWIG_IsOK(res1)) { | |
6528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetVersion" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6529 | } | |
6530 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6531 | { | |
6532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6533 | result = ((wxXmlDocument const *)arg1)->GetVersion(); | |
6534 | wxPyEndAllowThreads(__tstate); | |
6535 | if (PyErr_Occurred()) SWIG_fail; | |
6536 | } | |
6537 | { | |
2ef75293 | 6538 | #if wxUSE_UNICODE |
0085ce49 | 6539 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6540 | #else |
0085ce49 | 6541 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6542 | #endif |
0085ce49 RD |
6543 | } |
6544 | return resultobj; | |
6545 | fail: | |
6546 | return NULL; | |
2ef75293 RD |
6547 | } |
6548 | ||
6549 | ||
0085ce49 RD |
6550 | SWIGINTERN PyObject *_wrap_XmlDocument_GetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6551 | PyObject *resultobj = 0; | |
6552 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6553 | wxString result; | |
6554 | void *argp1 = 0 ; | |
6555 | int res1 = 0 ; | |
6556 | PyObject *swig_obj[1] ; | |
6557 | ||
6558 | if (!args) SWIG_fail; | |
6559 | swig_obj[0] = args; | |
6560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6561 | if (!SWIG_IsOK(res1)) { | |
6562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6563 | } | |
6564 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6565 | { | |
6566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6567 | result = ((wxXmlDocument const *)arg1)->GetFileEncoding(); | |
6568 | wxPyEndAllowThreads(__tstate); | |
6569 | if (PyErr_Occurred()) SWIG_fail; | |
6570 | } | |
6571 | { | |
2ef75293 | 6572 | #if wxUSE_UNICODE |
0085ce49 | 6573 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6574 | #else |
0085ce49 | 6575 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6576 | #endif |
0085ce49 RD |
6577 | } |
6578 | return resultobj; | |
6579 | fail: | |
6580 | return NULL; | |
6581 | } | |
6582 | ||
6583 | ||
6584 | SWIGINTERN PyObject *_wrap_XmlDocument_SetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6585 | PyObject *resultobj = 0; | |
6586 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6587 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6588 | void *argp1 = 0 ; | |
6589 | int res1 = 0 ; | |
6590 | void *argp2 = 0 ; | |
6591 | int res2 = 0 ; | |
6592 | PyObject * obj0 = 0 ; | |
6593 | PyObject * obj1 = 0 ; | |
6594 | char * kwnames[] = { | |
6595 | (char *) "self",(char *) "node", NULL | |
6596 | }; | |
6597 | ||
6598 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetRoot",kwnames,&obj0,&obj1)) SWIG_fail; | |
6599 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6600 | if (!SWIG_IsOK(res1)) { | |
6601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6602 | } | |
6603 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6604 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6605 | if (!SWIG_IsOK(res2)) { | |
6606 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SetRoot" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6607 | } | |
6608 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6609 | { | |
6610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6611 | (arg1)->SetRoot(arg2); | |
6612 | wxPyEndAllowThreads(__tstate); | |
6613 | if (PyErr_Occurred()) SWIG_fail; | |
6614 | } | |
6615 | resultobj = SWIG_Py_Void(); | |
6616 | return resultobj; | |
6617 | fail: | |
6618 | return NULL; | |
6619 | } | |
6620 | ||
6621 | ||
6622 | SWIGINTERN PyObject *_wrap_XmlDocument_SetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6623 | PyObject *resultobj = 0; | |
6624 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6625 | wxString *arg2 = 0 ; | |
6626 | void *argp1 = 0 ; | |
6627 | int res1 = 0 ; | |
6628 | bool temp2 = false ; | |
6629 | PyObject * obj0 = 0 ; | |
6630 | PyObject * obj1 = 0 ; | |
6631 | char * kwnames[] = { | |
6632 | (char *) "self",(char *) "version", NULL | |
6633 | }; | |
6634 | ||
6635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
6636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6637 | if (!SWIG_IsOK(res1)) { | |
6638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetVersion" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6639 | } | |
6640 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6641 | { | |
6642 | arg2 = wxString_in_helper(obj1); | |
6643 | if (arg2 == NULL) SWIG_fail; | |
6644 | temp2 = true; | |
6645 | } | |
6646 | { | |
6647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6648 | (arg1)->SetVersion((wxString const &)*arg2); | |
6649 | wxPyEndAllowThreads(__tstate); | |
6650 | if (PyErr_Occurred()) SWIG_fail; | |
6651 | } | |
6652 | resultobj = SWIG_Py_Void(); | |
6653 | { | |
6654 | if (temp2) | |
6655 | delete arg2; | |
6656 | } | |
6657 | return resultobj; | |
6658 | fail: | |
6659 | { | |
6660 | if (temp2) | |
6661 | delete arg2; | |
6662 | } | |
6663 | return NULL; | |
2ef75293 RD |
6664 | } |
6665 | ||
6666 | ||
0085ce49 RD |
6667 | SWIGINTERN PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6668 | PyObject *resultobj = 0; | |
6669 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6670 | wxString *arg2 = 0 ; | |
6671 | void *argp1 = 0 ; | |
6672 | int res1 = 0 ; | |
6673 | bool temp2 = false ; | |
6674 | PyObject * obj0 = 0 ; | |
6675 | PyObject * obj1 = 0 ; | |
6676 | char * kwnames[] = { | |
6677 | (char *) "self",(char *) "encoding", NULL | |
6678 | }; | |
6679 | ||
6680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetFileEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
6681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6682 | if (!SWIG_IsOK(res1)) { | |
6683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6684 | } | |
6685 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6686 | { | |
6687 | arg2 = wxString_in_helper(obj1); | |
6688 | if (arg2 == NULL) SWIG_fail; | |
6689 | temp2 = true; | |
6690 | } | |
6691 | { | |
6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6693 | (arg1)->SetFileEncoding((wxString const &)*arg2); | |
6694 | wxPyEndAllowThreads(__tstate); | |
6695 | if (PyErr_Occurred()) SWIG_fail; | |
6696 | } | |
6697 | resultobj = SWIG_Py_Void(); | |
6698 | { | |
6699 | if (temp2) | |
6700 | delete arg2; | |
6701 | } | |
6702 | return resultobj; | |
6703 | fail: | |
6704 | { | |
6705 | if (temp2) | |
6706 | delete arg2; | |
6707 | } | |
6708 | return NULL; | |
2ef75293 RD |
6709 | } |
6710 | ||
6711 | ||
0085ce49 RD |
6712 | SWIGINTERN PyObject *XmlDocument_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6713 | PyObject *obj; | |
6714 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6715 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlDocument, SWIG_NewClientData(obj)); | |
6716 | return SWIG_Py_Void(); | |
2ef75293 RD |
6717 | } |
6718 | ||
0085ce49 RD |
6719 | SWIGINTERN PyObject *XmlDocument_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6720 | return SWIG_Python_InitShadowInstance(args); | |
6721 | } | |
2ef75293 | 6722 | |
0085ce49 RD |
6723 | SWIGINTERN PyObject *_wrap_new_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6724 | PyObject *resultobj = 0; | |
6725 | wxPyXmlResourceHandler *result = 0 ; | |
6726 | ||
6727 | if (!SWIG_Python_UnpackTuple(args,"new_XmlResourceHandler",0,0,0)) SWIG_fail; | |
6728 | { | |
6729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6730 | result = (wxPyXmlResourceHandler *)new wxPyXmlResourceHandler(); | |
6731 | wxPyEndAllowThreads(__tstate); | |
6732 | if (PyErr_Occurred()) SWIG_fail; | |
6733 | } | |
6734 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_NEW | 0 ); | |
6735 | return resultobj; | |
6736 | fail: | |
6737 | return NULL; | |
6738 | } | |
6739 | ||
6740 | ||
6741 | SWIGINTERN PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6742 | PyObject *resultobj = 0; | |
6743 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
6744 | PyObject *arg2 = (PyObject *) 0 ; | |
6745 | PyObject *arg3 = (PyObject *) 0 ; | |
6746 | void *argp1 = 0 ; | |
6747 | int res1 = 0 ; | |
6748 | PyObject * obj0 = 0 ; | |
6749 | PyObject * obj1 = 0 ; | |
6750 | PyObject * obj2 = 0 ; | |
6751 | char * kwnames[] = { | |
6752 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6753 | }; | |
6754 | ||
6755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
6757 | if (!SWIG_IsOK(res1)) { | |
6758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
6759 | } | |
6760 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
6761 | arg2 = obj1; | |
6762 | arg3 = obj2; | |
6763 | { | |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6766 | wxPyEndAllowThreads(__tstate); | |
6767 | if (PyErr_Occurred()) SWIG_fail; | |
6768 | } | |
6769 | resultobj = SWIG_Py_Void(); | |
6770 | return resultobj; | |
6771 | fail: | |
6772 | return NULL; | |
6773 | } | |
6774 | ||
6775 | ||
6776 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6777 | PyObject *resultobj = 0; | |
6778 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
6779 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6780 | wxObject *arg3 = (wxObject *) 0 ; | |
6781 | wxObject *arg4 = (wxObject *) 0 ; | |
6782 | wxObject *result = 0 ; | |
6783 | void *argp1 = 0 ; | |
6784 | int res1 = 0 ; | |
6785 | void *argp2 = 0 ; | |
6786 | int res2 = 0 ; | |
6787 | void *argp3 = 0 ; | |
6788 | int res3 = 0 ; | |
6789 | void *argp4 = 0 ; | |
6790 | int res4 = 0 ; | |
6791 | PyObject * obj0 = 0 ; | |
6792 | PyObject * obj1 = 0 ; | |
6793 | PyObject * obj2 = 0 ; | |
6794 | PyObject * obj3 = 0 ; | |
6795 | char * kwnames[] = { | |
6796 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
6797 | }; | |
6798 | ||
6799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
6801 | if (!SWIG_IsOK(res1)) { | |
6802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
6803 | } | |
6804 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
6805 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6806 | if (!SWIG_IsOK(res2)) { | |
6807 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6808 | } | |
6809 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6810 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 ); | |
6811 | if (!SWIG_IsOK(res3)) { | |
6812 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "3"" of type '" "wxObject *""'"); | |
6813 | } | |
6814 | arg3 = reinterpret_cast< wxObject * >(argp3); | |
6815 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 ); | |
6816 | if (!SWIG_IsOK(res4)) { | |
6817 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "4"" of type '" "wxObject *""'"); | |
6818 | } | |
6819 | arg4 = reinterpret_cast< wxObject * >(argp4); | |
6820 | { | |
6821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6822 | result = (wxObject *)(arg1)->CreateResource(arg2,arg3,arg4); | |
6823 | wxPyEndAllowThreads(__tstate); | |
6824 | if (PyErr_Occurred()) SWIG_fail; | |
6825 | } | |
6826 | { | |
6827 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6828 | } | |
6829 | return resultobj; | |
6830 | fail: | |
6831 | return NULL; | |
6832 | } | |
6833 | ||
6834 | ||
6835 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetParentResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6836 | PyObject *resultobj = 0; | |
6837 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
6838 | wxXmlResource *arg2 = (wxXmlResource *) 0 ; | |
6839 | void *argp1 = 0 ; | |
6840 | int res1 = 0 ; | |
6841 | void *argp2 = 0 ; | |
6842 | int res2 = 0 ; | |
6843 | PyObject * obj0 = 0 ; | |
6844 | PyObject * obj1 = 0 ; | |
6845 | char * kwnames[] = { | |
6846 | (char *) "self",(char *) "res", NULL | |
6847 | }; | |
6848 | ||
6849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames,&obj0,&obj1)) SWIG_fail; | |
6850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
6851 | if (!SWIG_IsOK(res1)) { | |
6852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
6853 | } | |
6854 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
6855 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
6856 | if (!SWIG_IsOK(res2)) { | |
6857 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "2"" of type '" "wxXmlResource *""'"); | |
6858 | } | |
6859 | arg2 = reinterpret_cast< wxXmlResource * >(argp2); | |
6860 | { | |
6861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6862 | (arg1)->SetParentResource(arg2); | |
6863 | wxPyEndAllowThreads(__tstate); | |
6864 | if (PyErr_Occurred()) SWIG_fail; | |
6865 | } | |
6866 | resultobj = SWIG_Py_Void(); | |
6867 | return resultobj; | |
6868 | fail: | |
6869 | return NULL; | |
2ef75293 RD |
6870 | } |
6871 | ||
6872 | ||
0085ce49 RD |
6873 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6874 | PyObject *resultobj = 0; | |
6875 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
6876 | wxXmlResource *result = 0 ; | |
6877 | void *argp1 = 0 ; | |
6878 | int res1 = 0 ; | |
6879 | PyObject *swig_obj[1] ; | |
6880 | ||
6881 | if (!args) SWIG_fail; | |
6882 | swig_obj[0] = args; | |
6883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
6884 | if (!SWIG_IsOK(res1)) { | |
6885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
6886 | } | |
6887 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
6888 | { | |
6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6890 | result = (wxXmlResource *)(arg1)->GetResource(); | |
6891 | wxPyEndAllowThreads(__tstate); | |
6892 | if (PyErr_Occurred()) SWIG_fail; | |
6893 | } | |
6894 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
6895 | return resultobj; | |
6896 | fail: | |
6897 | return NULL; | |
2ef75293 RD |
6898 | } |
6899 | ||
6900 | ||
0085ce49 RD |
6901 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6902 | PyObject *resultobj = 0; | |
6903 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
6904 | wxXmlNode *result = 0 ; | |
6905 | void *argp1 = 0 ; | |
6906 | int res1 = 0 ; | |
6907 | PyObject *swig_obj[1] ; | |
6908 | ||
6909 | if (!args) SWIG_fail; | |
6910 | swig_obj[0] = args; | |
6911 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
6912 | if (!SWIG_IsOK(res1)) { | |
6913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
6914 | } | |
6915 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
6916 | { | |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6918 | result = (wxXmlNode *)(arg1)->GetNode(); | |
6919 | wxPyEndAllowThreads(__tstate); | |
6920 | if (PyErr_Occurred()) SWIG_fail; | |
6921 | } | |
6922 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6923 | return resultobj; | |
6924 | fail: | |
6925 | return NULL; | |
2ef75293 RD |
6926 | } |
6927 | ||
6928 | ||
0085ce49 RD |
6929 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6930 | PyObject *resultobj = 0; | |
6931 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
6932 | wxString result; | |
6933 | void *argp1 = 0 ; | |
6934 | int res1 = 0 ; | |
6935 | PyObject *swig_obj[1] ; | |
6936 | ||
6937 | if (!args) SWIG_fail; | |
6938 | swig_obj[0] = args; | |
6939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
6940 | if (!SWIG_IsOK(res1)) { | |
6941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
6942 | } | |
6943 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
6944 | { | |
6945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6946 | result = (arg1)->GetClass(); | |
6947 | wxPyEndAllowThreads(__tstate); | |
6948 | if (PyErr_Occurred()) SWIG_fail; | |
6949 | } | |
6950 | { | |
2ef75293 | 6951 | #if wxUSE_UNICODE |
0085ce49 | 6952 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6953 | #else |
0085ce49 | 6954 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6955 | #endif |
0085ce49 RD |
6956 | } |
6957 | return resultobj; | |
6958 | fail: | |
6959 | return NULL; | |
2ef75293 RD |
6960 | } |
6961 | ||
6962 | ||
0085ce49 RD |
6963 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6964 | PyObject *resultobj = 0; | |
6965 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
6966 | wxObject *result = 0 ; | |
6967 | void *argp1 = 0 ; | |
6968 | int res1 = 0 ; | |
6969 | PyObject *swig_obj[1] ; | |
6970 | ||
6971 | if (!args) SWIG_fail; | |
6972 | swig_obj[0] = args; | |
6973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
6974 | if (!SWIG_IsOK(res1)) { | |
6975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
6976 | } | |
6977 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
6978 | { | |
6979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6980 | result = (wxObject *)(arg1)->GetParent(); | |
6981 | wxPyEndAllowThreads(__tstate); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | } | |
6984 | { | |
6985 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6986 | } | |
6987 | return resultobj; | |
6988 | fail: | |
6989 | return NULL; | |
2ef75293 RD |
6990 | } |
6991 | ||
6992 | ||
0085ce49 RD |
6993 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6994 | PyObject *resultobj = 0; | |
6995 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
6996 | wxObject *result = 0 ; | |
6997 | void *argp1 = 0 ; | |
6998 | int res1 = 0 ; | |
6999 | PyObject *swig_obj[1] ; | |
7000 | ||
7001 | if (!args) SWIG_fail; | |
7002 | swig_obj[0] = args; | |
7003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7004 | if (!SWIG_IsOK(res1)) { | |
7005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetInstance" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7006 | } | |
7007 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7008 | { | |
7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7010 | result = (wxObject *)(arg1)->GetInstance(); | |
7011 | wxPyEndAllowThreads(__tstate); | |
7012 | if (PyErr_Occurred()) SWIG_fail; | |
7013 | } | |
7014 | { | |
7015 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7016 | } | |
7017 | return resultobj; | |
7018 | fail: | |
7019 | return NULL; | |
2ef75293 RD |
7020 | } |
7021 | ||
7022 | ||
0085ce49 RD |
7023 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7024 | PyObject *resultobj = 0; | |
7025 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7026 | wxWindow *result = 0 ; | |
7027 | void *argp1 = 0 ; | |
7028 | int res1 = 0 ; | |
7029 | PyObject *swig_obj[1] ; | |
7030 | ||
7031 | if (!args) SWIG_fail; | |
7032 | swig_obj[0] = args; | |
7033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7034 | if (!SWIG_IsOK(res1)) { | |
7035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParentAsWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7036 | } | |
7037 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7038 | { | |
7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7040 | result = (wxWindow *)(arg1)->GetParentAsWindow(); | |
7041 | wxPyEndAllowThreads(__tstate); | |
7042 | if (PyErr_Occurred()) SWIG_fail; | |
7043 | } | |
7044 | { | |
7045 | resultobj = wxPyMake_wxObject(result, 0); | |
7046 | } | |
7047 | return resultobj; | |
7048 | fail: | |
7049 | return NULL; | |
7050 | } | |
7051 | ||
7052 | ||
7053 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7054 | PyObject *resultobj = 0; | |
7055 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7056 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
7057 | wxString *arg3 = 0 ; | |
7058 | bool result; | |
7059 | void *argp1 = 0 ; | |
7060 | int res1 = 0 ; | |
7061 | void *argp2 = 0 ; | |
7062 | int res2 = 0 ; | |
7063 | bool temp3 = false ; | |
7064 | PyObject * obj0 = 0 ; | |
7065 | PyObject * obj1 = 0 ; | |
7066 | PyObject * obj2 = 0 ; | |
7067 | char * kwnames[] = { | |
7068 | (char *) "self",(char *) "node",(char *) "classname", NULL | |
7069 | }; | |
7070 | ||
7071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7073 | if (!SWIG_IsOK(res1)) { | |
7074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7075 | } | |
7076 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7077 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7078 | if (!SWIG_IsOK(res2)) { | |
7079 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
7080 | } | |
7081 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
7082 | { | |
7083 | arg3 = wxString_in_helper(obj2); | |
7084 | if (arg3 == NULL) SWIG_fail; | |
7085 | temp3 = true; | |
7086 | } | |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | result = (bool)(arg1)->IsOfClass(arg2,(wxString const &)*arg3); | |
7090 | wxPyEndAllowThreads(__tstate); | |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
7092 | } | |
7093 | { | |
7094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7095 | } | |
7096 | { | |
7097 | if (temp3) | |
7098 | delete arg3; | |
7099 | } | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | { | |
7103 | if (temp3) | |
7104 | delete arg3; | |
7105 | } | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
7110 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7111 | PyObject *resultobj = 0; | |
7112 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7113 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
7114 | wxString result; | |
7115 | void *argp1 = 0 ; | |
7116 | int res1 = 0 ; | |
7117 | void *argp2 = 0 ; | |
7118 | int res2 = 0 ; | |
7119 | PyObject * obj0 = 0 ; | |
7120 | PyObject * obj1 = 0 ; | |
7121 | char * kwnames[] = { | |
7122 | (char *) "self",(char *) "node", NULL | |
7123 | }; | |
7124 | ||
7125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
7126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7127 | if (!SWIG_IsOK(res1)) { | |
7128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7129 | } | |
7130 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7131 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7132 | if (!SWIG_IsOK(res2)) { | |
7133 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
7134 | } | |
7135 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
7136 | { | |
7137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7138 | result = (arg1)->GetNodeContent(arg2); | |
7139 | wxPyEndAllowThreads(__tstate); | |
7140 | if (PyErr_Occurred()) SWIG_fail; | |
7141 | } | |
7142 | { | |
7143 | #if wxUSE_UNICODE | |
7144 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7145 | #else | |
7146 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7147 | #endif | |
7148 | } | |
7149 | return resultobj; | |
7150 | fail: | |
7151 | return NULL; | |
7152 | } | |
7153 | ||
7154 | ||
7155 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7156 | PyObject *resultobj = 0; | |
7157 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7158 | wxString *arg2 = 0 ; | |
7159 | bool result; | |
7160 | void *argp1 = 0 ; | |
7161 | int res1 = 0 ; | |
7162 | bool temp2 = false ; | |
7163 | PyObject * obj0 = 0 ; | |
7164 | PyObject * obj1 = 0 ; | |
7165 | char * kwnames[] = { | |
7166 | (char *) "self",(char *) "param", NULL | |
7167 | }; | |
7168 | ||
7169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_HasParam",kwnames,&obj0,&obj1)) SWIG_fail; | |
7170 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7171 | if (!SWIG_IsOK(res1)) { | |
7172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_HasParam" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7173 | } | |
7174 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7175 | { | |
7176 | arg2 = wxString_in_helper(obj1); | |
7177 | if (arg2 == NULL) SWIG_fail; | |
7178 | temp2 = true; | |
7179 | } | |
7180 | { | |
7181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7182 | result = (bool)(arg1)->HasParam((wxString const &)*arg2); | |
7183 | wxPyEndAllowThreads(__tstate); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | { | |
7187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7188 | } | |
7189 | { | |
7190 | if (temp2) | |
7191 | delete arg2; | |
7192 | } | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | { | |
7196 | if (temp2) | |
7197 | delete arg2; | |
7198 | } | |
7199 | return NULL; | |
7200 | } | |
7201 | ||
7202 | ||
7203 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7204 | PyObject *resultobj = 0; | |
7205 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7206 | wxString *arg2 = 0 ; | |
7207 | wxXmlNode *result = 0 ; | |
7208 | void *argp1 = 0 ; | |
7209 | int res1 = 0 ; | |
7210 | bool temp2 = false ; | |
7211 | PyObject * obj0 = 0 ; | |
7212 | PyObject * obj1 = 0 ; | |
7213 | char * kwnames[] = { | |
7214 | (char *) "self",(char *) "param", NULL | |
7215 | }; | |
7216 | ||
7217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7219 | if (!SWIG_IsOK(res1)) { | |
7220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7221 | } | |
7222 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7223 | { | |
7224 | arg2 = wxString_in_helper(obj1); | |
7225 | if (arg2 == NULL) SWIG_fail; | |
7226 | temp2 = true; | |
7227 | } | |
7228 | { | |
7229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7230 | result = (wxXmlNode *)(arg1)->GetParamNode((wxString const &)*arg2); | |
7231 | wxPyEndAllowThreads(__tstate); | |
7232 | if (PyErr_Occurred()) SWIG_fail; | |
7233 | } | |
7234 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7235 | { | |
7236 | if (temp2) | |
7237 | delete arg2; | |
7238 | } | |
7239 | return resultobj; | |
7240 | fail: | |
7241 | { | |
7242 | if (temp2) | |
7243 | delete arg2; | |
7244 | } | |
7245 | return NULL; | |
7246 | } | |
7247 | ||
7248 | ||
7249 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7250 | PyObject *resultobj = 0; | |
7251 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7252 | wxString *arg2 = 0 ; | |
7253 | wxString result; | |
7254 | void *argp1 = 0 ; | |
7255 | int res1 = 0 ; | |
7256 | bool temp2 = false ; | |
7257 | PyObject * obj0 = 0 ; | |
7258 | PyObject * obj1 = 0 ; | |
7259 | char * kwnames[] = { | |
7260 | (char *) "self",(char *) "param", NULL | |
7261 | }; | |
7262 | ||
7263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
7264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7265 | if (!SWIG_IsOK(res1)) { | |
7266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamValue" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7267 | } | |
7268 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7269 | { | |
7270 | arg2 = wxString_in_helper(obj1); | |
7271 | if (arg2 == NULL) SWIG_fail; | |
7272 | temp2 = true; | |
7273 | } | |
7274 | { | |
7275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7276 | result = (arg1)->GetParamValue((wxString const &)*arg2); | |
7277 | wxPyEndAllowThreads(__tstate); | |
7278 | if (PyErr_Occurred()) SWIG_fail; | |
7279 | } | |
7280 | { | |
7281 | #if wxUSE_UNICODE | |
7282 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7283 | #else | |
7284 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7285 | #endif | |
7286 | } | |
7287 | { | |
7288 | if (temp2) | |
7289 | delete arg2; | |
7290 | } | |
7291 | return resultobj; | |
7292 | fail: | |
7293 | { | |
7294 | if (temp2) | |
7295 | delete arg2; | |
7296 | } | |
7297 | return NULL; | |
7298 | } | |
7299 | ||
7300 | ||
7301 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7302 | PyObject *resultobj = 0; | |
7303 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7304 | wxString *arg2 = 0 ; | |
7305 | int arg3 ; | |
7306 | void *argp1 = 0 ; | |
7307 | int res1 = 0 ; | |
7308 | bool temp2 = false ; | |
7309 | int val3 ; | |
7310 | int ecode3 = 0 ; | |
7311 | PyObject * obj0 = 0 ; | |
7312 | PyObject * obj1 = 0 ; | |
7313 | PyObject * obj2 = 0 ; | |
7314 | char * kwnames[] = { | |
7315 | (char *) "self",(char *) "name",(char *) "value", NULL | |
7316 | }; | |
7317 | ||
7318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7320 | if (!SWIG_IsOK(res1)) { | |
7321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7322 | } | |
7323 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7324 | { | |
7325 | arg2 = wxString_in_helper(obj1); | |
7326 | if (arg2 == NULL) SWIG_fail; | |
7327 | temp2 = true; | |
7328 | } | |
7329 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7330 | if (!SWIG_IsOK(ecode3)) { | |
7331 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "3"" of type '" "int""'"); | |
7332 | } | |
7333 | arg3 = static_cast< int >(val3); | |
7334 | { | |
7335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7336 | (arg1)->AddStyle((wxString const &)*arg2,arg3); | |
7337 | wxPyEndAllowThreads(__tstate); | |
7338 | if (PyErr_Occurred()) SWIG_fail; | |
7339 | } | |
7340 | resultobj = SWIG_Py_Void(); | |
7341 | { | |
7342 | if (temp2) | |
7343 | delete arg2; | |
7344 | } | |
7345 | return resultobj; | |
7346 | fail: | |
7347 | { | |
7348 | if (temp2) | |
7349 | delete arg2; | |
7350 | } | |
7351 | return NULL; | |
2ef75293 RD |
7352 | } |
7353 | ||
7354 | ||
0085ce49 RD |
7355 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddWindowStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7356 | PyObject *resultobj = 0; | |
7357 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7358 | void *argp1 = 0 ; | |
7359 | int res1 = 0 ; | |
7360 | PyObject *swig_obj[1] ; | |
7361 | ||
7362 | if (!args) SWIG_fail; | |
7363 | swig_obj[0] = args; | |
7364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7365 | if (!SWIG_IsOK(res1)) { | |
7366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddWindowStyles" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7367 | } | |
7368 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7369 | { | |
7370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7371 | (arg1)->AddWindowStyles(); | |
7372 | wxPyEndAllowThreads(__tstate); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
7375 | resultobj = SWIG_Py_Void(); | |
7376 | return resultobj; | |
7377 | fail: | |
7378 | return NULL; | |
7379 | } | |
7380 | ||
7381 | ||
7382 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7383 | PyObject *resultobj = 0; | |
7384 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7385 | wxString const &arg2_defvalue = wxPyStyleString ; | |
7386 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7387 | int arg3 = (int) 0 ; | |
7388 | int result; | |
7389 | void *argp1 = 0 ; | |
7390 | int res1 = 0 ; | |
7391 | bool temp2 = false ; | |
7392 | int val3 ; | |
7393 | int ecode3 = 0 ; | |
7394 | PyObject * obj0 = 0 ; | |
7395 | PyObject * obj1 = 0 ; | |
7396 | PyObject * obj2 = 0 ; | |
7397 | char * kwnames[] = { | |
7398 | (char *) "self",(char *) "param",(char *) "defaults", NULL | |
7399 | }; | |
7400 | ||
7401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7403 | if (!SWIG_IsOK(res1)) { | |
7404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7405 | } | |
7406 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7407 | if (obj1) { | |
2ef75293 | 7408 | { |
0085ce49 RD |
7409 | arg2 = wxString_in_helper(obj1); |
7410 | if (arg2 == NULL) SWIG_fail; | |
7411 | temp2 = true; | |
2ef75293 | 7412 | } |
0085ce49 RD |
7413 | } |
7414 | if (obj2) { | |
7415 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7416 | if (!SWIG_IsOK(ecode3)) { | |
7417 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "3"" of type '" "int""'"); | |
7418 | } | |
7419 | arg3 = static_cast< int >(val3); | |
7420 | } | |
7421 | { | |
7422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7423 | result = (int)(arg1)->GetStyle((wxString const &)*arg2,arg3); | |
7424 | wxPyEndAllowThreads(__tstate); | |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
7426 | } | |
7427 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7428 | { | |
7429 | if (temp2) | |
7430 | delete arg2; | |
7431 | } | |
7432 | return resultobj; | |
7433 | fail: | |
7434 | { | |
7435 | if (temp2) | |
7436 | delete arg2; | |
7437 | } | |
7438 | return NULL; | |
7439 | } | |
7440 | ||
7441 | ||
7442 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7443 | PyObject *resultobj = 0; | |
7444 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7445 | wxString *arg2 = 0 ; | |
7446 | bool arg3 = (bool) true ; | |
7447 | wxString result; | |
7448 | void *argp1 = 0 ; | |
7449 | int res1 = 0 ; | |
7450 | bool temp2 = false ; | |
7451 | bool val3 ; | |
7452 | int ecode3 = 0 ; | |
7453 | PyObject * obj0 = 0 ; | |
7454 | PyObject * obj1 = 0 ; | |
7455 | PyObject * obj2 = 0 ; | |
7456 | char * kwnames[] = { | |
7457 | (char *) "self",(char *) "param",(char *) "translate", NULL | |
7458 | }; | |
7459 | ||
7460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7462 | if (!SWIG_IsOK(res1)) { | |
7463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetText" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7464 | } | |
7465 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7466 | { | |
7467 | arg2 = wxString_in_helper(obj1); | |
7468 | if (arg2 == NULL) SWIG_fail; | |
7469 | temp2 = true; | |
7470 | } | |
7471 | if (obj2) { | |
7472 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7473 | if (!SWIG_IsOK(ecode3)) { | |
7474 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetText" "', expected argument " "3"" of type '" "bool""'"); | |
7475 | } | |
7476 | arg3 = static_cast< bool >(val3); | |
7477 | } | |
7478 | { | |
7479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7480 | result = (arg1)->GetText((wxString const &)*arg2,arg3); | |
7481 | wxPyEndAllowThreads(__tstate); | |
7482 | if (PyErr_Occurred()) SWIG_fail; | |
7483 | } | |
7484 | { | |
7485 | #if wxUSE_UNICODE | |
7486 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7487 | #else | |
7488 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7489 | #endif | |
7490 | } | |
7491 | { | |
7492 | if (temp2) | |
7493 | delete arg2; | |
7494 | } | |
7495 | return resultobj; | |
7496 | fail: | |
7497 | { | |
7498 | if (temp2) | |
7499 | delete arg2; | |
7500 | } | |
7501 | return NULL; | |
2ef75293 RD |
7502 | } |
7503 | ||
7504 | ||
0085ce49 RD |
7505 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7506 | PyObject *resultobj = 0; | |
7507 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7508 | int result; | |
7509 | void *argp1 = 0 ; | |
7510 | int res1 = 0 ; | |
7511 | PyObject *swig_obj[1] ; | |
7512 | ||
7513 | if (!args) SWIG_fail; | |
7514 | swig_obj[0] = args; | |
7515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7516 | if (!SWIG_IsOK(res1)) { | |
7517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetID" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7518 | } | |
7519 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7520 | { | |
7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7522 | result = (int)(arg1)->GetID(); | |
7523 | wxPyEndAllowThreads(__tstate); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
7526 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7527 | return resultobj; | |
7528 | fail: | |
7529 | return NULL; | |
2ef75293 RD |
7530 | } |
7531 | ||
7532 | ||
0085ce49 RD |
7533 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7534 | PyObject *resultobj = 0; | |
7535 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7536 | wxString result; | |
7537 | void *argp1 = 0 ; | |
7538 | int res1 = 0 ; | |
7539 | PyObject *swig_obj[1] ; | |
7540 | ||
7541 | if (!args) SWIG_fail; | |
7542 | swig_obj[0] = args; | |
7543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7544 | if (!SWIG_IsOK(res1)) { | |
7545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetName" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7546 | } | |
7547 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7548 | { | |
7549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7550 | result = (arg1)->GetName(); | |
7551 | wxPyEndAllowThreads(__tstate); | |
7552 | if (PyErr_Occurred()) SWIG_fail; | |
7553 | } | |
7554 | { | |
7555 | #if wxUSE_UNICODE | |
7556 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7557 | #else | |
7558 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7559 | #endif | |
7560 | } | |
7561 | return resultobj; | |
7562 | fail: | |
7563 | return NULL; | |
7564 | } | |
7565 | ||
7566 | ||
7567 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7568 | PyObject *resultobj = 0; | |
7569 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7570 | wxString *arg2 = 0 ; | |
7571 | bool arg3 = (bool) false ; | |
7572 | bool result; | |
7573 | void *argp1 = 0 ; | |
7574 | int res1 = 0 ; | |
7575 | bool temp2 = false ; | |
7576 | bool val3 ; | |
7577 | int ecode3 = 0 ; | |
7578 | PyObject * obj0 = 0 ; | |
7579 | PyObject * obj1 = 0 ; | |
7580 | PyObject * obj2 = 0 ; | |
7581 | char * kwnames[] = { | |
7582 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
7583 | }; | |
7584 | ||
7585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7587 | if (!SWIG_IsOK(res1)) { | |
7588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7589 | } | |
7590 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7591 | { | |
7592 | arg2 = wxString_in_helper(obj1); | |
7593 | if (arg2 == NULL) SWIG_fail; | |
7594 | temp2 = true; | |
7595 | } | |
7596 | if (obj2) { | |
7597 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7598 | if (!SWIG_IsOK(ecode3)) { | |
7599 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "3"" of type '" "bool""'"); | |
7600 | } | |
7601 | arg3 = static_cast< bool >(val3); | |
7602 | } | |
7603 | { | |
7604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7605 | result = (bool)(arg1)->GetBool((wxString const &)*arg2,arg3); | |
7606 | wxPyEndAllowThreads(__tstate); | |
7607 | if (PyErr_Occurred()) SWIG_fail; | |
7608 | } | |
7609 | { | |
7610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7611 | } | |
7612 | { | |
7613 | if (temp2) | |
7614 | delete arg2; | |
7615 | } | |
7616 | return resultobj; | |
7617 | fail: | |
7618 | { | |
7619 | if (temp2) | |
7620 | delete arg2; | |
7621 | } | |
7622 | return NULL; | |
7623 | } | |
7624 | ||
7625 | ||
7626 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7627 | PyObject *resultobj = 0; | |
7628 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7629 | wxString *arg2 = 0 ; | |
7630 | long arg3 = (long) 0 ; | |
7631 | long result; | |
7632 | void *argp1 = 0 ; | |
7633 | int res1 = 0 ; | |
7634 | bool temp2 = false ; | |
7635 | long val3 ; | |
7636 | int ecode3 = 0 ; | |
7637 | PyObject * obj0 = 0 ; | |
7638 | PyObject * obj1 = 0 ; | |
7639 | PyObject * obj2 = 0 ; | |
7640 | char * kwnames[] = { | |
7641 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
7642 | }; | |
7643 | ||
7644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7646 | if (!SWIG_IsOK(res1)) { | |
7647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7648 | } | |
7649 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7650 | { | |
7651 | arg2 = wxString_in_helper(obj1); | |
7652 | if (arg2 == NULL) SWIG_fail; | |
7653 | temp2 = true; | |
7654 | } | |
7655 | if (obj2) { | |
7656 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
7657 | if (!SWIG_IsOK(ecode3)) { | |
7658 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "3"" of type '" "long""'"); | |
7659 | } | |
7660 | arg3 = static_cast< long >(val3); | |
7661 | } | |
7662 | { | |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | result = (long)(arg1)->GetLong((wxString const &)*arg2,arg3); | |
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
7668 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
7669 | { | |
7670 | if (temp2) | |
7671 | delete arg2; | |
7672 | } | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | { | |
7676 | if (temp2) | |
7677 | delete arg2; | |
7678 | } | |
7679 | return NULL; | |
7680 | } | |
7681 | ||
7682 | ||
7683 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7684 | PyObject *resultobj = 0; | |
7685 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7686 | wxString *arg2 = 0 ; | |
7687 | wxColour result; | |
7688 | void *argp1 = 0 ; | |
7689 | int res1 = 0 ; | |
7690 | bool temp2 = false ; | |
7691 | PyObject * obj0 = 0 ; | |
7692 | PyObject * obj1 = 0 ; | |
7693 | char * kwnames[] = { | |
7694 | (char *) "self",(char *) "param", NULL | |
7695 | }; | |
7696 | ||
7697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
7698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7699 | if (!SWIG_IsOK(res1)) { | |
7700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetColour" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7701 | } | |
7702 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7703 | { | |
7704 | arg2 = wxString_in_helper(obj1); | |
7705 | if (arg2 == NULL) SWIG_fail; | |
7706 | temp2 = true; | |
7707 | } | |
7708 | { | |
7709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7710 | result = (arg1)->GetColour((wxString const &)*arg2); | |
7711 | wxPyEndAllowThreads(__tstate); | |
7712 | if (PyErr_Occurred()) SWIG_fail; | |
7713 | } | |
7714 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
7715 | { | |
7716 | if (temp2) | |
7717 | delete arg2; | |
7718 | } | |
7719 | return resultobj; | |
7720 | fail: | |
7721 | { | |
7722 | if (temp2) | |
7723 | delete arg2; | |
7724 | } | |
7725 | return NULL; | |
7726 | } | |
7727 | ||
7728 | ||
7729 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7730 | PyObject *resultobj = 0; | |
7731 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7732 | wxString const &arg2_defvalue = wxPySizeString ; | |
7733 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7734 | wxSize result; | |
7735 | void *argp1 = 0 ; | |
7736 | int res1 = 0 ; | |
7737 | bool temp2 = false ; | |
7738 | PyObject * obj0 = 0 ; | |
7739 | PyObject * obj1 = 0 ; | |
7740 | char * kwnames[] = { | |
7741 | (char *) "self",(char *) "param", NULL | |
7742 | }; | |
7743 | ||
7744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
7745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7746 | if (!SWIG_IsOK(res1)) { | |
7747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetSize" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7748 | } | |
7749 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7750 | if (obj1) { | |
2ef75293 | 7751 | { |
0085ce49 RD |
7752 | arg2 = wxString_in_helper(obj1); |
7753 | if (arg2 == NULL) SWIG_fail; | |
7754 | temp2 = true; | |
2ef75293 | 7755 | } |
0085ce49 RD |
7756 | } |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | result = (arg1)->GetSize((wxString const &)*arg2); | |
7760 | wxPyEndAllowThreads(__tstate); | |
7761 | if (PyErr_Occurred()) SWIG_fail; | |
7762 | } | |
7763 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7764 | { | |
7765 | if (temp2) | |
7766 | delete arg2; | |
7767 | } | |
7768 | return resultobj; | |
7769 | fail: | |
7770 | { | |
7771 | if (temp2) | |
7772 | delete arg2; | |
7773 | } | |
7774 | return NULL; | |
7775 | } | |
7776 | ||
7777 | ||
7778 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7779 | PyObject *resultobj = 0; | |
7780 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7781 | wxString const &arg2_defvalue = wxPyPosString ; | |
7782 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7783 | wxPoint result; | |
7784 | void *argp1 = 0 ; | |
7785 | int res1 = 0 ; | |
7786 | bool temp2 = false ; | |
7787 | PyObject * obj0 = 0 ; | |
7788 | PyObject * obj1 = 0 ; | |
7789 | char * kwnames[] = { | |
7790 | (char *) "self",(char *) "param", NULL | |
7791 | }; | |
7792 | ||
7793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
7794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7795 | if (!SWIG_IsOK(res1)) { | |
7796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetPosition" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7797 | } | |
7798 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7799 | if (obj1) { | |
2ef75293 | 7800 | { |
0085ce49 RD |
7801 | arg2 = wxString_in_helper(obj1); |
7802 | if (arg2 == NULL) SWIG_fail; | |
7803 | temp2 = true; | |
2ef75293 | 7804 | } |
0085ce49 RD |
7805 | } |
7806 | { | |
7807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7808 | result = (arg1)->GetPosition((wxString const &)*arg2); | |
7809 | wxPyEndAllowThreads(__tstate); | |
7810 | if (PyErr_Occurred()) SWIG_fail; | |
7811 | } | |
7812 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7813 | { | |
7814 | if (temp2) | |
7815 | delete arg2; | |
7816 | } | |
7817 | return resultobj; | |
7818 | fail: | |
7819 | { | |
7820 | if (temp2) | |
7821 | delete arg2; | |
7822 | } | |
7823 | return NULL; | |
7824 | } | |
7825 | ||
7826 | ||
7827 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7828 | PyObject *resultobj = 0; | |
7829 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7830 | wxString *arg2 = 0 ; | |
7831 | int arg3 = (int) 0 ; | |
7832 | int result; | |
7833 | void *argp1 = 0 ; | |
7834 | int res1 = 0 ; | |
7835 | bool temp2 = false ; | |
7836 | int val3 ; | |
7837 | int ecode3 = 0 ; | |
7838 | PyObject * obj0 = 0 ; | |
7839 | PyObject * obj1 = 0 ; | |
7840 | PyObject * obj2 = 0 ; | |
7841 | char * kwnames[] = { | |
7842 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
7843 | }; | |
7844 | ||
7845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7847 | if (!SWIG_IsOK(res1)) { | |
7848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7849 | } | |
7850 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7851 | { | |
7852 | arg2 = wxString_in_helper(obj1); | |
7853 | if (arg2 == NULL) SWIG_fail; | |
7854 | temp2 = true; | |
7855 | } | |
7856 | if (obj2) { | |
7857 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7858 | if (!SWIG_IsOK(ecode3)) { | |
7859 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "3"" of type '" "int""'"); | |
7860 | } | |
7861 | arg3 = static_cast< int >(val3); | |
7862 | } | |
7863 | { | |
7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7865 | result = (int)(arg1)->GetDimension((wxString const &)*arg2,arg3); | |
7866 | wxPyEndAllowThreads(__tstate); | |
7867 | if (PyErr_Occurred()) SWIG_fail; | |
7868 | } | |
7869 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7870 | { | |
7871 | if (temp2) | |
7872 | delete arg2; | |
7873 | } | |
7874 | return resultobj; | |
7875 | fail: | |
7876 | { | |
7877 | if (temp2) | |
7878 | delete arg2; | |
7879 | } | |
7880 | return NULL; | |
7881 | } | |
7882 | ||
7883 | ||
7884 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7885 | PyObject *resultobj = 0; | |
7886 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7887 | wxString const &arg2_defvalue = wxPyBitmapString ; | |
7888 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7889 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
7890 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
7891 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
7892 | wxBitmap result; | |
7893 | void *argp1 = 0 ; | |
7894 | int res1 = 0 ; | |
7895 | bool temp2 = false ; | |
7896 | void *argp3 = 0 ; | |
7897 | int res3 = 0 ; | |
7898 | void *argp4 ; | |
7899 | int res4 = 0 ; | |
7900 | PyObject * obj0 = 0 ; | |
7901 | PyObject * obj1 = 0 ; | |
7902 | PyObject * obj2 = 0 ; | |
7903 | PyObject * obj3 = 0 ; | |
7904 | char * kwnames[] = { | |
7905 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
7906 | }; | |
7907 | ||
7908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7910 | if (!SWIG_IsOK(res1)) { | |
7911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7912 | } | |
7913 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7914 | if (obj1) { | |
2ef75293 | 7915 | { |
0085ce49 RD |
7916 | arg2 = wxString_in_helper(obj1); |
7917 | if (arg2 == NULL) SWIG_fail; | |
7918 | temp2 = true; | |
2ef75293 | 7919 | } |
0085ce49 RD |
7920 | } |
7921 | if (obj2) { | |
7922 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0); | |
7923 | if (!SWIG_IsOK(res3)) { | |
7924 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
2ef75293 | 7925 | } |
0085ce49 RD |
7926 | if (!argp3) { |
7927 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
2ef75293 | 7928 | } |
0085ce49 RD |
7929 | arg3 = reinterpret_cast< wxArtClient * >(argp3); |
7930 | } | |
7931 | if (obj3) { | |
7932 | { | |
7933 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0); | |
7934 | if (!SWIG_IsOK(res4)) { | |
7935 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'"); | |
7936 | } | |
7937 | if (!argp4) { | |
7938 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'"); | |
7939 | } else { | |
7940 | wxSize * temp = reinterpret_cast< wxSize * >(argp4); | |
7941 | arg4 = *temp; | |
7942 | if (SWIG_IsNewObj(res4)) delete temp; | |
7943 | } | |
2ef75293 | 7944 | } |
0085ce49 RD |
7945 | } |
7946 | { | |
7947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7948 | result = (arg1)->GetBitmap((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
7949 | wxPyEndAllowThreads(__tstate); | |
7950 | if (PyErr_Occurred()) SWIG_fail; | |
7951 | } | |
7952 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7953 | { | |
7954 | if (temp2) | |
7955 | delete arg2; | |
7956 | } | |
7957 | return resultobj; | |
7958 | fail: | |
7959 | { | |
7960 | if (temp2) | |
7961 | delete arg2; | |
7962 | } | |
7963 | return NULL; | |
7964 | } | |
7965 | ||
7966 | ||
7967 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7968 | PyObject *resultobj = 0; | |
7969 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7970 | wxString const &arg2_defvalue = wxPyIconString ; | |
7971 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7972 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
7973 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
7974 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
7975 | wxIcon result; | |
7976 | void *argp1 = 0 ; | |
7977 | int res1 = 0 ; | |
7978 | bool temp2 = false ; | |
7979 | void *argp3 = 0 ; | |
7980 | int res3 = 0 ; | |
7981 | void *argp4 ; | |
7982 | int res4 = 0 ; | |
7983 | PyObject * obj0 = 0 ; | |
7984 | PyObject * obj1 = 0 ; | |
7985 | PyObject * obj2 = 0 ; | |
7986 | PyObject * obj3 = 0 ; | |
7987 | char * kwnames[] = { | |
7988 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
7989 | }; | |
7990 | ||
7991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7993 | if (!SWIG_IsOK(res1)) { | |
7994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7995 | } | |
7996 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7997 | if (obj1) { | |
2ef75293 | 7998 | { |
0085ce49 RD |
7999 | arg2 = wxString_in_helper(obj1); |
8000 | if (arg2 == NULL) SWIG_fail; | |
8001 | temp2 = true; | |
2ef75293 | 8002 | } |
0085ce49 RD |
8003 | } |
8004 | if (obj2) { | |
8005 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0); | |
8006 | if (!SWIG_IsOK(res3)) { | |
8007 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
2ef75293 | 8008 | } |
0085ce49 RD |
8009 | if (!argp3) { |
8010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
2ef75293 | 8011 | } |
0085ce49 RD |
8012 | arg3 = reinterpret_cast< wxArtClient * >(argp3); |
8013 | } | |
8014 | if (obj3) { | |
8015 | { | |
8016 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0); | |
8017 | if (!SWIG_IsOK(res4)) { | |
8018 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'"); | |
8019 | } | |
8020 | if (!argp4) { | |
8021 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'"); | |
8022 | } else { | |
8023 | wxSize * temp = reinterpret_cast< wxSize * >(argp4); | |
8024 | arg4 = *temp; | |
8025 | if (SWIG_IsNewObj(res4)) delete temp; | |
8026 | } | |
2ef75293 | 8027 | } |
0085ce49 RD |
8028 | } |
8029 | { | |
8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8031 | result = (arg1)->GetIcon((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
8032 | wxPyEndAllowThreads(__tstate); | |
8033 | if (PyErr_Occurred()) SWIG_fail; | |
8034 | } | |
8035 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
8036 | { | |
8037 | if (temp2) | |
8038 | delete arg2; | |
8039 | } | |
8040 | return resultobj; | |
8041 | fail: | |
8042 | { | |
8043 | if (temp2) | |
8044 | delete arg2; | |
8045 | } | |
8046 | return NULL; | |
8047 | } | |
8048 | ||
8049 | ||
8050 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8051 | PyObject *resultobj = 0; | |
8052 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8053 | wxString const &arg2_defvalue = wxPyFontString ; | |
8054 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8055 | wxFont result; | |
8056 | void *argp1 = 0 ; | |
8057 | int res1 = 0 ; | |
8058 | bool temp2 = false ; | |
8059 | PyObject * obj0 = 0 ; | |
8060 | PyObject * obj1 = 0 ; | |
8061 | char * kwnames[] = { | |
8062 | (char *) "self",(char *) "param", NULL | |
8063 | }; | |
8064 | ||
8065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
8066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8067 | if (!SWIG_IsOK(res1)) { | |
8068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetFont" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8069 | } | |
8070 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8071 | if (obj1) { | |
2ef75293 | 8072 | { |
0085ce49 RD |
8073 | arg2 = wxString_in_helper(obj1); |
8074 | if (arg2 == NULL) SWIG_fail; | |
8075 | temp2 = true; | |
2ef75293 | 8076 | } |
0085ce49 RD |
8077 | } |
8078 | { | |
8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8080 | result = (arg1)->GetFont((wxString const &)*arg2); | |
8081 | wxPyEndAllowThreads(__tstate); | |
8082 | if (PyErr_Occurred()) SWIG_fail; | |
8083 | } | |
8084 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
8085 | { | |
8086 | if (temp2) | |
8087 | delete arg2; | |
8088 | } | |
8089 | return resultobj; | |
8090 | fail: | |
8091 | { | |
8092 | if (temp2) | |
8093 | delete arg2; | |
8094 | } | |
8095 | return NULL; | |
8096 | } | |
8097 | ||
8098 | ||
8099 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8100 | PyObject *resultobj = 0; | |
8101 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8102 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8103 | void *argp1 = 0 ; | |
8104 | int res1 = 0 ; | |
8105 | void *argp2 = 0 ; | |
8106 | int res2 = 0 ; | |
8107 | PyObject * obj0 = 0 ; | |
8108 | PyObject * obj1 = 0 ; | |
8109 | char * kwnames[] = { | |
8110 | (char *) "self",(char *) "wnd", NULL | |
8111 | }; | |
8112 | ||
8113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
8114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8115 | if (!SWIG_IsOK(res1)) { | |
8116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8117 | } | |
8118 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8119 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8120 | if (!SWIG_IsOK(res2)) { | |
8121 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8122 | } | |
8123 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8124 | { | |
8125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8126 | (arg1)->SetupWindow(arg2); | |
8127 | wxPyEndAllowThreads(__tstate); | |
8128 | if (PyErr_Occurred()) SWIG_fail; | |
8129 | } | |
8130 | resultobj = SWIG_Py_Void(); | |
8131 | return resultobj; | |
8132 | fail: | |
8133 | return NULL; | |
8134 | } | |
8135 | ||
8136 | ||
8137 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8138 | PyObject *resultobj = 0; | |
8139 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8140 | wxObject *arg2 = (wxObject *) 0 ; | |
8141 | bool arg3 = (bool) false ; | |
8142 | void *argp1 = 0 ; | |
8143 | int res1 = 0 ; | |
8144 | void *argp2 = 0 ; | |
8145 | int res2 = 0 ; | |
8146 | bool val3 ; | |
8147 | int ecode3 = 0 ; | |
8148 | PyObject * obj0 = 0 ; | |
8149 | PyObject * obj1 = 0 ; | |
8150 | PyObject * obj2 = 0 ; | |
8151 | char * kwnames[] = { | |
8152 | (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL | |
8153 | }; | |
8154 | ||
8155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8157 | if (!SWIG_IsOK(res1)) { | |
8158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8159 | } | |
8160 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8161 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8162 | if (!SWIG_IsOK(res2)) { | |
8163 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "2"" of type '" "wxObject *""'"); | |
8164 | } | |
8165 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
8166 | if (obj2) { | |
8167 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
8168 | if (!SWIG_IsOK(ecode3)) { | |
8169 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "3"" of type '" "bool""'"); | |
8170 | } | |
8171 | arg3 = static_cast< bool >(val3); | |
8172 | } | |
8173 | { | |
8174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8175 | (arg1)->CreateChildren(arg2,arg3); | |
8176 | wxPyEndAllowThreads(__tstate); | |
8177 | if (PyErr_Occurred()) SWIG_fail; | |
8178 | } | |
8179 | resultobj = SWIG_Py_Void(); | |
8180 | return resultobj; | |
8181 | fail: | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
8186 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8187 | PyObject *resultobj = 0; | |
8188 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8189 | wxObject *arg2 = (wxObject *) 0 ; | |
8190 | wxXmlNode *arg3 = (wxXmlNode *) NULL ; | |
8191 | void *argp1 = 0 ; | |
8192 | int res1 = 0 ; | |
8193 | void *argp2 = 0 ; | |
8194 | int res2 = 0 ; | |
8195 | void *argp3 = 0 ; | |
8196 | int res3 = 0 ; | |
8197 | PyObject * obj0 = 0 ; | |
8198 | PyObject * obj1 = 0 ; | |
8199 | PyObject * obj2 = 0 ; | |
8200 | char * kwnames[] = { | |
8201 | (char *) "self",(char *) "parent",(char *) "rootnode", NULL | |
8202 | }; | |
8203 | ||
8204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8206 | if (!SWIG_IsOK(res1)) { | |
8207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8208 | } | |
8209 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8210 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8211 | if (!SWIG_IsOK(res2)) { | |
8212 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "2"" of type '" "wxObject *""'"); | |
8213 | } | |
8214 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
8215 | if (obj2) { | |
8216 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
8217 | if (!SWIG_IsOK(res3)) { | |
8218 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "3"" of type '" "wxXmlNode *""'"); | |
2ef75293 | 8219 | } |
0085ce49 RD |
8220 | arg3 = reinterpret_cast< wxXmlNode * >(argp3); |
8221 | } | |
8222 | { | |
8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8224 | (arg1)->CreateChildrenPrivately(arg2,arg3); | |
8225 | wxPyEndAllowThreads(__tstate); | |
8226 | if (PyErr_Occurred()) SWIG_fail; | |
8227 | } | |
8228 | resultobj = SWIG_Py_Void(); | |
8229 | return resultobj; | |
8230 | fail: | |
8231 | return NULL; | |
8232 | } | |
8233 | ||
8234 | ||
8235 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8236 | PyObject *resultobj = 0; | |
8237 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8238 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
8239 | wxObject *arg3 = (wxObject *) 0 ; | |
8240 | wxObject *arg4 = (wxObject *) NULL ; | |
8241 | wxObject *result = 0 ; | |
8242 | void *argp1 = 0 ; | |
8243 | int res1 = 0 ; | |
8244 | void *argp2 = 0 ; | |
8245 | int res2 = 0 ; | |
8246 | void *argp3 = 0 ; | |
8247 | int res3 = 0 ; | |
8248 | void *argp4 = 0 ; | |
8249 | int res4 = 0 ; | |
8250 | PyObject * obj0 = 0 ; | |
8251 | PyObject * obj1 = 0 ; | |
8252 | PyObject * obj2 = 0 ; | |
8253 | PyObject * obj3 = 0 ; | |
8254 | char * kwnames[] = { | |
8255 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
8256 | }; | |
8257 | ||
8258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8260 | if (!SWIG_IsOK(res1)) { | |
8261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8262 | } | |
8263 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8264 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
8265 | if (!SWIG_IsOK(res2)) { | |
8266 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
8267 | } | |
8268 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
8269 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8270 | if (!SWIG_IsOK(res3)) { | |
8271 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "3"" of type '" "wxObject *""'"); | |
8272 | } | |
8273 | arg3 = reinterpret_cast< wxObject * >(argp3); | |
8274 | if (obj3) { | |
8275 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8276 | if (!SWIG_IsOK(res4)) { | |
8277 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "4"" of type '" "wxObject *""'"); | |
2ef75293 | 8278 | } |
0085ce49 RD |
8279 | arg4 = reinterpret_cast< wxObject * >(argp4); |
8280 | } | |
8281 | { | |
8282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8283 | result = (wxObject *)(arg1)->CreateResFromNode(arg2,arg3,arg4); | |
8284 | wxPyEndAllowThreads(__tstate); | |
8285 | if (PyErr_Occurred()) SWIG_fail; | |
8286 | } | |
8287 | { | |
8288 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
8289 | } | |
8290 | return resultobj; | |
8291 | fail: | |
8292 | return NULL; | |
2ef75293 RD |
8293 | } |
8294 | ||
8295 | ||
0085ce49 RD |
8296 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetCurFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8297 | PyObject *resultobj = 0; | |
8298 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8299 | wxFileSystem *result = 0 ; | |
8300 | void *argp1 = 0 ; | |
8301 | int res1 = 0 ; | |
8302 | PyObject *swig_obj[1] ; | |
8303 | ||
8304 | if (!args) SWIG_fail; | |
8305 | swig_obj[0] = args; | |
8306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8307 | if (!SWIG_IsOK(res1)) { | |
8308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetCurFileSystem" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8309 | } | |
8310 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8311 | { | |
8312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2ef75293 | 8313 | { |
0085ce49 RD |
8314 | wxFileSystem &_result_ref = (arg1)->GetCurFileSystem(); |
8315 | result = (wxFileSystem *) &_result_ref; | |
2ef75293 | 8316 | } |
0085ce49 RD |
8317 | wxPyEndAllowThreads(__tstate); |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
2ef75293 RD |
8324 | } |
8325 | ||
8326 | ||
0085ce49 RD |
8327 | SWIGINTERN PyObject *XmlResourceHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8328 | PyObject *obj; | |
8329 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8330 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_NewClientData(obj)); | |
8331 | return SWIG_Py_Void(); | |
2ef75293 RD |
8332 | } |
8333 | ||
0085ce49 RD |
8334 | SWIGINTERN PyObject *XmlResourceHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8335 | return SWIG_Python_InitShadowInstance(args); | |
2ef75293 RD |
8336 | } |
8337 | ||
2ef75293 | 8338 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
8339 | { (char *)"new_XmlResource", (PyCFunction) _wrap_new_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL}, |
8340 | { (char *)"new_EmptyXmlResource", (PyCFunction) _wrap_new_EmptyXmlResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8341 | { (char *)"delete_XmlResource", (PyCFunction)_wrap_delete_XmlResource, METH_O, NULL}, |
093d3ff1 RD |
8342 | { (char *)"XmlResource_Load", (PyCFunction) _wrap_XmlResource_Load, METH_VARARGS | METH_KEYWORDS, NULL}, |
8343 | { (char *)"XmlResource_LoadFromString", (PyCFunction) _wrap_XmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 8344 | { (char *)"XmlResource_Unload", (PyCFunction) _wrap_XmlResource_Unload, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 8345 | { (char *)"XmlResource_InitAllHandlers", (PyCFunction)_wrap_XmlResource_InitAllHandlers, METH_O, NULL}, |
093d3ff1 RD |
8346 | { (char *)"XmlResource_AddHandler", (PyCFunction) _wrap_XmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, |
8347 | { (char *)"XmlResource_InsertHandler", (PyCFunction) _wrap_XmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8348 | { (char *)"XmlResource_ClearHandlers", (PyCFunction)_wrap_XmlResource_ClearHandlers, METH_O, NULL}, |
093d3ff1 RD |
8349 | { (char *)"XmlResource_AddSubclassFactory", (PyCFunction) _wrap_XmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
8350 | { (char *)"XmlResource_LoadMenu", (PyCFunction) _wrap_XmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8351 | { (char *)"XmlResource_LoadMenuBar", (PyCFunction) _wrap_XmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8352 | { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_XmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8353 | { (char *)"XmlResource_LoadToolBar", (PyCFunction) _wrap_XmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8354 | { (char *)"XmlResource_LoadDialog", (PyCFunction) _wrap_XmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8355 | { (char *)"XmlResource_LoadOnDialog", (PyCFunction) _wrap_XmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8356 | { (char *)"XmlResource_LoadPanel", (PyCFunction) _wrap_XmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8357 | { (char *)"XmlResource_LoadOnPanel", (PyCFunction) _wrap_XmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8358 | { (char *)"XmlResource_LoadFrame", (PyCFunction) _wrap_XmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8359 | { (char *)"XmlResource_LoadOnFrame", (PyCFunction) _wrap_XmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8360 | { (char *)"XmlResource_LoadObject", (PyCFunction) _wrap_XmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8361 | { (char *)"XmlResource_LoadOnObject", (PyCFunction) _wrap_XmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8362 | { (char *)"XmlResource_LoadBitmap", (PyCFunction) _wrap_XmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8363 | { (char *)"XmlResource_LoadIcon", (PyCFunction) _wrap_XmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8364 | { (char *)"XmlResource_AttachUnknownControl", (PyCFunction) _wrap_XmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8365 | { (char *)"XmlResource_GetXRCID", (PyCFunction) _wrap_XmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8366 | { (char *)"XmlResource_GetVersion", (PyCFunction)_wrap_XmlResource_GetVersion, METH_O, NULL}, |
093d3ff1 | 8367 | { (char *)"XmlResource_CompareVersion", (PyCFunction) _wrap_XmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 8368 | { (char *)"XmlResource_Get", (PyCFunction)_wrap_XmlResource_Get, METH_NOARGS, NULL}, |
093d3ff1 | 8369 | { (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 8370 | { (char *)"XmlResource_GetFlags", (PyCFunction)_wrap_XmlResource_GetFlags, METH_O, NULL}, |
093d3ff1 RD |
8371 | { (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
8372 | { (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
8373 | { (char *)"XmlResource_swiginit", XmlResource_swiginit, METH_VARARGS, NULL}, |
8374 | { (char *)"new_XmlSubclassFactory", (PyCFunction)_wrap_new_XmlSubclassFactory, METH_NOARGS, NULL}, | |
093d3ff1 RD |
8375 | { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_XmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
8376 | { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 8377 | { (char *)"XmlSubclassFactory_swiginit", XmlSubclassFactory_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 8378 | { (char *)"new_XmlProperty", (PyCFunction) _wrap_new_XmlProperty, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
8379 | { (char *)"XmlProperty_GetName", (PyCFunction)_wrap_XmlProperty_GetName, METH_O, NULL}, |
8380 | { (char *)"XmlProperty_GetValue", (PyCFunction)_wrap_XmlProperty_GetValue, METH_O, NULL}, | |
8381 | { (char *)"XmlProperty_GetNext", (PyCFunction)_wrap_XmlProperty_GetNext, METH_O, NULL}, | |
093d3ff1 RD |
8382 | { (char *)"XmlProperty_SetName", (PyCFunction) _wrap_XmlProperty_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, |
8383 | { (char *)"XmlProperty_SetValue", (PyCFunction) _wrap_XmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8384 | { (char *)"XmlProperty_SetNext", (PyCFunction) _wrap_XmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8385 | { (char *)"XmlProperty_swigregister", XmlProperty_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 8386 | { (char *)"XmlProperty_swiginit", XmlProperty_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 8387 | { (char *)"new_XmlNode", (PyCFunction) _wrap_new_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 8388 | { (char *)"delete_XmlNode", (PyCFunction)_wrap_delete_XmlNode, METH_O, NULL}, |
093d3ff1 RD |
8389 | { (char *)"new_XmlNodeEasy", (PyCFunction) _wrap_new_XmlNodeEasy, METH_VARARGS | METH_KEYWORDS, NULL}, |
8390 | { (char *)"XmlNode_AddChild", (PyCFunction) _wrap_XmlNode_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8391 | { (char *)"XmlNode_InsertChild", (PyCFunction) _wrap_XmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8392 | { (char *)"XmlNode_RemoveChild", (PyCFunction) _wrap_XmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8393 | { (char *)"XmlNode_AddProperty", (PyCFunction) _wrap_XmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8394 | { (char *)"XmlNode_AddPropertyName", (PyCFunction) _wrap_XmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8395 | { (char *)"XmlNode_DeleteProperty", (PyCFunction) _wrap_XmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8396 | { (char *)"XmlNode_GetType", (PyCFunction)_wrap_XmlNode_GetType, METH_O, NULL}, |
8397 | { (char *)"XmlNode_GetName", (PyCFunction)_wrap_XmlNode_GetName, METH_O, NULL}, | |
8398 | { (char *)"XmlNode_GetContent", (PyCFunction)_wrap_XmlNode_GetContent, METH_O, NULL}, | |
8399 | { (char *)"XmlNode_GetParent", (PyCFunction)_wrap_XmlNode_GetParent, METH_O, NULL}, | |
8400 | { (char *)"XmlNode_GetNext", (PyCFunction)_wrap_XmlNode_GetNext, METH_O, NULL}, | |
8401 | { (char *)"XmlNode_GetChildren", (PyCFunction)_wrap_XmlNode_GetChildren, METH_O, NULL}, | |
8402 | { (char *)"XmlNode_GetProperties", (PyCFunction)_wrap_XmlNode_GetProperties, METH_O, NULL}, | |
093d3ff1 RD |
8403 | { (char *)"XmlNode_GetPropVal", (PyCFunction) _wrap_XmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS, NULL}, |
8404 | { (char *)"XmlNode_HasProp", (PyCFunction) _wrap_XmlNode_HasProp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8405 | { (char *)"XmlNode_SetType", (PyCFunction) _wrap_XmlNode_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8406 | { (char *)"XmlNode_SetName", (PyCFunction) _wrap_XmlNode_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8407 | { (char *)"XmlNode_SetContent", (PyCFunction) _wrap_XmlNode_SetContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8408 | { (char *)"XmlNode_SetParent", (PyCFunction) _wrap_XmlNode_SetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8409 | { (char *)"XmlNode_SetNext", (PyCFunction) _wrap_XmlNode_SetNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8410 | { (char *)"XmlNode_SetChildren", (PyCFunction) _wrap_XmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8411 | { (char *)"XmlNode_SetProperties", (PyCFunction) _wrap_XmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8412 | { (char *)"XmlNode_swigregister", XmlNode_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 8413 | { (char *)"XmlNode_swiginit", XmlNode_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
8414 | { (char *)"new_XmlDocument", (PyCFunction) _wrap_new_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
8415 | { (char *)"new_XmlDocumentFromStream", (PyCFunction) _wrap_new_XmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8416 | { (char *)"new_EmptyXmlDocument", (PyCFunction)_wrap_new_EmptyXmlDocument, METH_NOARGS, NULL}, |
8417 | { (char *)"delete_XmlDocument", (PyCFunction)_wrap_delete_XmlDocument, METH_O, NULL}, | |
093d3ff1 RD |
8418 | { (char *)"XmlDocument_Load", (PyCFunction) _wrap_XmlDocument_Load, METH_VARARGS | METH_KEYWORDS, NULL}, |
8419 | { (char *)"XmlDocument_LoadFromStream", (PyCFunction) _wrap_XmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8420 | { (char *)"XmlDocument_Save", (PyCFunction) _wrap_XmlDocument_Save, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8421 | { (char *)"XmlDocument_SaveToStream", (PyCFunction) _wrap_XmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8422 | { (char *)"XmlDocument_IsOk", (PyCFunction)_wrap_XmlDocument_IsOk, METH_O, NULL}, |
8423 | { (char *)"XmlDocument_GetRoot", (PyCFunction)_wrap_XmlDocument_GetRoot, METH_O, NULL}, | |
8424 | { (char *)"XmlDocument_GetVersion", (PyCFunction)_wrap_XmlDocument_GetVersion, METH_O, NULL}, | |
8425 | { (char *)"XmlDocument_GetFileEncoding", (PyCFunction)_wrap_XmlDocument_GetFileEncoding, METH_O, NULL}, | |
093d3ff1 RD |
8426 | { (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS, NULL}, |
8427 | { (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8428 | { (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8429 | { (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
8430 | { (char *)"XmlDocument_swiginit", XmlDocument_swiginit, METH_VARARGS, NULL}, |
8431 | { (char *)"new_XmlResourceHandler", (PyCFunction)_wrap_new_XmlResourceHandler, METH_NOARGS, NULL}, | |
093d3ff1 RD |
8432 | { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
8433 | { (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8434 | { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8435 | { (char *)"XmlResourceHandler_GetResource", (PyCFunction)_wrap_XmlResourceHandler_GetResource, METH_O, NULL}, |
8436 | { (char *)"XmlResourceHandler_GetNode", (PyCFunction)_wrap_XmlResourceHandler_GetNode, METH_O, NULL}, | |
8437 | { (char *)"XmlResourceHandler_GetClass", (PyCFunction)_wrap_XmlResourceHandler_GetClass, METH_O, NULL}, | |
8438 | { (char *)"XmlResourceHandler_GetParent", (PyCFunction)_wrap_XmlResourceHandler_GetParent, METH_O, NULL}, | |
8439 | { (char *)"XmlResourceHandler_GetInstance", (PyCFunction)_wrap_XmlResourceHandler_GetInstance, METH_O, NULL}, | |
8440 | { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction)_wrap_XmlResourceHandler_GetParentAsWindow, METH_O, NULL}, | |
093d3ff1 RD |
8441 | { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS, NULL}, |
8442 | { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8443 | { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8444 | { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction) _wrap_XmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8445 | { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction) _wrap_XmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8446 | { (char *)"XmlResourceHandler_AddStyle", (PyCFunction) _wrap_XmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8447 | { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction)_wrap_XmlResourceHandler_AddWindowStyles, METH_O, NULL}, |
093d3ff1 RD |
8448 | { (char *)"XmlResourceHandler_GetStyle", (PyCFunction) _wrap_XmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
8449 | { (char *)"XmlResourceHandler_GetText", (PyCFunction) _wrap_XmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8450 | { (char *)"XmlResourceHandler_GetID", (PyCFunction)_wrap_XmlResourceHandler_GetID, METH_O, NULL}, |
8451 | { (char *)"XmlResourceHandler_GetName", (PyCFunction)_wrap_XmlResourceHandler_GetName, METH_O, NULL}, | |
093d3ff1 RD |
8452 | { (char *)"XmlResourceHandler_GetBool", (PyCFunction) _wrap_XmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS, NULL}, |
8453 | { (char *)"XmlResourceHandler_GetLong", (PyCFunction) _wrap_XmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8454 | { (char *)"XmlResourceHandler_GetColour", (PyCFunction) _wrap_XmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8455 | { (char *)"XmlResourceHandler_GetSize", (PyCFunction) _wrap_XmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8456 | { (char *)"XmlResourceHandler_GetPosition", (PyCFunction) _wrap_XmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8457 | { (char *)"XmlResourceHandler_GetDimension", (PyCFunction) _wrap_XmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8458 | { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction) _wrap_XmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8459 | { (char *)"XmlResourceHandler_GetIcon", (PyCFunction) _wrap_XmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8460 | { (char *)"XmlResourceHandler_GetFont", (PyCFunction) _wrap_XmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8461 | { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction) _wrap_XmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8462 | { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction) _wrap_XmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8463 | { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_XmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8464 | { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_XmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8465 | { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction)_wrap_XmlResourceHandler_GetCurFileSystem, METH_O, NULL}, |
093d3ff1 | 8466 | { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 8467 | { (char *)"XmlResourceHandler_swiginit", XmlResourceHandler_swiginit, METH_VARARGS, NULL}, |
2ef75293 RD |
8468 | { NULL, NULL, 0, NULL } |
8469 | }; | |
8470 | ||
8471 | ||
8472 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
8473 | ||
01f6b6d3 RD |
8474 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
8475 | return (void *)((wxWindow *) ((wxControl *) x)); | |
8476 | } | |
8477 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
8478 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
8479 | } | |
8480 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
8481 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
8482 | } | |
2ef75293 RD |
8483 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
8484 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
8485 | } | |
8486 | static void *_p_wxXmlDocumentTo_p_wxObject(void *x) { | |
8487 | return (void *)((wxObject *) ((wxXmlDocument *) x)); | |
8488 | } | |
8489 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
8490 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
8491 | } | |
8492 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
8493 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
8494 | } | |
8495 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
8496 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
8497 | } | |
8498 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
8499 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
8500 | } | |
8501 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
8502 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
8503 | } | |
8504 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
8505 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
8506 | } | |
8507 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
8508 | return (void *)((wxObject *) ((wxSizer *) x)); | |
8509 | } | |
8510 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
8511 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
8512 | } | |
8513 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
8514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
8515 | } | |
8516 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
8517 | return (void *)((wxObject *) ((wxEvent *) x)); | |
8518 | } | |
8519 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
8520 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
8521 | } | |
8522 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
8523 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
8524 | } | |
8525 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
8526 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
8527 | } | |
8528 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
8529 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
8530 | } | |
8531 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
8532 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
8533 | } | |
8534 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
8535 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
8536 | } | |
8537 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
8538 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
8539 | } | |
8540 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
8541 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
8542 | } | |
8543 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
8544 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
8545 | } | |
8546 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
8547 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
8548 | } | |
8549 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
8550 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
8551 | } | |
8552 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
8553 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
8554 | } | |
8555 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
8556 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
8557 | } | |
8558 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
8559 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
8560 | } | |
8561 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
8562 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
8563 | } | |
8564 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
8565 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
8566 | } | |
8567 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
8568 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
8569 | } | |
53aa7709 RD |
8570 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
8571 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
8572 | } | |
2ef75293 RD |
8573 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
8574 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
8575 | } | |
8576 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
8577 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
8578 | } | |
8579 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
8580 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
8581 | } | |
8582 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
8583 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
8584 | } | |
8585 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
8586 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
8587 | } | |
8588 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
8589 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
8590 | } | |
8591 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
8592 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
8593 | } | |
8594 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
8595 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
8596 | } | |
2ef75293 RD |
8597 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
8598 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
8599 | } | |
8600 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
8601 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
8602 | } | |
8603 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
8604 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
8605 | } | |
8606 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
8607 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
8608 | } | |
8609 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
8610 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
8611 | } | |
8612 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
8613 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
8614 | } | |
8615 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
8616 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
8617 | } | |
8618 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
8619 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
8620 | } | |
8621 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
8622 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
8623 | } | |
943e8dfd RD |
8624 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
8625 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
8626 | } | |
2ef75293 RD |
8627 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
8628 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
8629 | } | |
943e8dfd RD |
8630 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
8631 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
8632 | } | |
2ef75293 RD |
8633 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
8634 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
8635 | } | |
8636 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
8637 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
8638 | } | |
8639 | static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x) { | |
8640 | return (void *)((wxObject *) ((wxPyXmlResourceHandler *) x)); | |
8641 | } | |
51b83b37 RD |
8642 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
8643 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
8644 | } | |
2ef75293 RD |
8645 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
8646 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
8647 | } | |
8648 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
8649 | return (void *)((wxObject *) ((wxImage *) x)); | |
8650 | } | |
8651 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
8652 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
8653 | } | |
8654 | static void *_p_wxXmlResourceTo_p_wxObject(void *x) { | |
8655 | return (void *)((wxObject *) ((wxXmlResource *) x)); | |
8656 | } | |
8657 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
8658 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
8659 | } | |
8660 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
8661 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
8662 | } | |
8663 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
8664 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
8665 | } | |
8666 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
8667 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
8668 | } | |
8669 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
8670 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
8671 | } | |
8672 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
8673 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
8674 | } | |
8675 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
8676 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
8677 | } | |
8678 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
8679 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
8680 | } | |
8681 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
8682 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
8683 | } | |
8684 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
8685 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
8686 | } | |
8687 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
8688 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
8689 | } | |
8690 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
8691 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
8692 | } | |
8693 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
8694 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
8695 | } | |
8696 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
8697 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
8698 | } | |
8699 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
8700 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
8701 | } | |
8702 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
8703 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
8704 | } | |
8705 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
8706 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
8707 | } | |
8708 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
8709 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
8710 | } | |
8711 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
8712 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
8713 | } | |
8714 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
8715 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
8716 | } | |
8717 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
8718 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
8719 | } | |
0085ce49 RD |
8720 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
8721 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0}; | |
8722 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0}; | |
8723 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
8724 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
8725 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
8726 | static swig_type_info _swigt__p_wxArtClient = {"_p_wxArtClient", "wxArtClient *", 0, 0, (void*)0, 0}; | |
8727 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
01f6b6d3 | 8728 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
8729 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
8730 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
8731 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
8732 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
8733 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
8734 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
8735 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
8736 | static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0}; | |
8737 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
8738 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
8739 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
8740 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
8741 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
8742 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
8743 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
8744 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
8745 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
8746 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
8747 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
8748 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
8749 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
8750 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
8751 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
8752 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
8753 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
8754 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
8755 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
8756 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
8757 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
8758 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
8759 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
8760 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
8761 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
8762 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
8763 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
8764 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
8765 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
8766 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
8767 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
8768 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
8769 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
8770 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
8771 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
8772 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
8773 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
8774 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
8775 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
8776 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
8777 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
8778 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
8779 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
8780 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
8781 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
8782 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
8783 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
8784 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
8785 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
8786 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
8787 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
8788 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
8789 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; | |
8790 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
8791 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
8792 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
8793 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
8794 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
8795 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
8796 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
8797 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
8798 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
8799 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
8800 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
8801 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
8802 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
8803 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
8804 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
8805 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
8806 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
8807 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
8808 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
8809 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
8810 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
8811 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
8812 | static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0}; | |
8813 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
8814 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
8815 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
8816 | static swig_type_info _swigt__p_wxPyXmlResourceHandler = {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, (void*)0, 0}; | |
8817 | static swig_type_info _swigt__p_wxPyXmlSubclassFactory = {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, (void*)0, 0}; | |
8818 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
8819 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
8820 | static swig_type_info _swigt__p_wxXmlDocument = {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, (void*)0, 0}; | |
8821 | static swig_type_info _swigt__p_wxXmlNode = {"_p_wxXmlNode", "wxXmlNode *", 0, 0, (void*)0, 0}; | |
8822 | static swig_type_info _swigt__p_wxXmlProperty = {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, (void*)0, 0}; | |
8823 | static swig_type_info _swigt__p_wxXmlResource = {"_p_wxXmlResource", "wxXmlResource *", 0, 0, (void*)0, 0}; | |
32fe5131 RD |
8824 | |
8825 | static swig_type_info *swig_type_initial[] = { | |
8826 | &_swigt__p_char, | |
8827 | &_swigt__p_form_ops_t, | |
8828 | &_swigt__p_int, | |
8829 | &_swigt__p_unsigned_char, | |
8830 | &_swigt__p_unsigned_int, | |
8831 | &_swigt__p_unsigned_long, | |
8832 | &_swigt__p_wxANIHandler, | |
8833 | &_swigt__p_wxAcceleratorTable, | |
8834 | &_swigt__p_wxActivateEvent, | |
8835 | &_swigt__p_wxArtClient, | |
8836 | &_swigt__p_wxBMPHandler, | |
8837 | &_swigt__p_wxBitmap, | |
8838 | &_swigt__p_wxBoxSizer, | |
8839 | &_swigt__p_wxCURHandler, | |
01f6b6d3 | 8840 | &_swigt__p_wxChar, |
32fe5131 RD |
8841 | &_swigt__p_wxChildFocusEvent, |
8842 | &_swigt__p_wxCloseEvent, | |
8843 | &_swigt__p_wxColour, | |
8844 | &_swigt__p_wxCommandEvent, | |
8845 | &_swigt__p_wxContextMenuEvent, | |
8846 | &_swigt__p_wxControl, | |
8847 | &_swigt__p_wxControlWithItems, | |
8848 | &_swigt__p_wxDateEvent, | |
8849 | &_swigt__p_wxDialog, | |
8850 | &_swigt__p_wxDisplayChangedEvent, | |
8851 | &_swigt__p_wxDropFilesEvent, | |
8852 | &_swigt__p_wxDuplexMode, | |
8853 | &_swigt__p_wxEraseEvent, | |
8854 | &_swigt__p_wxEvent, | |
8855 | &_swigt__p_wxEvtHandler, | |
8856 | &_swigt__p_wxFSFile, | |
8857 | &_swigt__p_wxFileSystem, | |
8858 | &_swigt__p_wxFlexGridSizer, | |
8859 | &_swigt__p_wxFocusEvent, | |
8860 | &_swigt__p_wxFont, | |
8861 | &_swigt__p_wxFrame, | |
8862 | &_swigt__p_wxGBSizerItem, | |
8863 | &_swigt__p_wxGIFHandler, | |
8864 | &_swigt__p_wxGridBagSizer, | |
8865 | &_swigt__p_wxGridSizer, | |
8866 | &_swigt__p_wxICOHandler, | |
8867 | &_swigt__p_wxIcon, | |
8868 | &_swigt__p_wxIconizeEvent, | |
8869 | &_swigt__p_wxIdleEvent, | |
8870 | &_swigt__p_wxImage, | |
8871 | &_swigt__p_wxImageHandler, | |
8872 | &_swigt__p_wxIndividualLayoutConstraint, | |
8873 | &_swigt__p_wxInitDialogEvent, | |
8874 | &_swigt__p_wxInputStream, | |
8875 | &_swigt__p_wxJPEGHandler, | |
8876 | &_swigt__p_wxKeyEvent, | |
8877 | &_swigt__p_wxLayoutConstraints, | |
8878 | &_swigt__p_wxMaximizeEvent, | |
8879 | &_swigt__p_wxMenu, | |
8880 | &_swigt__p_wxMenuBar, | |
8881 | &_swigt__p_wxMenuEvent, | |
8882 | &_swigt__p_wxMenuItem, | |
8883 | &_swigt__p_wxMouseCaptureChangedEvent, | |
8884 | &_swigt__p_wxMouseEvent, | |
8885 | &_swigt__p_wxMoveEvent, | |
8886 | &_swigt__p_wxNavigationKeyEvent, | |
8887 | &_swigt__p_wxNcPaintEvent, | |
8888 | &_swigt__p_wxNotifyEvent, | |
8889 | &_swigt__p_wxObject, | |
8890 | &_swigt__p_wxOutputStream, | |
8891 | &_swigt__p_wxPCXHandler, | |
8892 | &_swigt__p_wxPNGHandler, | |
8893 | &_swigt__p_wxPNMHandler, | |
8894 | &_swigt__p_wxPaintEvent, | |
8895 | &_swigt__p_wxPaletteChangedEvent, | |
8896 | &_swigt__p_wxPanel, | |
8897 | &_swigt__p_wxPaperSize, | |
8898 | &_swigt__p_wxPoint, | |
8899 | &_swigt__p_wxPyApp, | |
8900 | &_swigt__p_wxPyCommandEvent, | |
8901 | &_swigt__p_wxPyEvent, | |
8902 | &_swigt__p_wxPyImageHandler, | |
8903 | &_swigt__p_wxPySizer, | |
8904 | &_swigt__p_wxPyValidator, | |
8905 | &_swigt__p_wxPyXmlResourceHandler, | |
8906 | &_swigt__p_wxPyXmlSubclassFactory, | |
8907 | &_swigt__p_wxQueryNewPaletteEvent, | |
8908 | &_swigt__p_wxScrollEvent, | |
8909 | &_swigt__p_wxScrollWinEvent, | |
8910 | &_swigt__p_wxSetCursorEvent, | |
8911 | &_swigt__p_wxShowEvent, | |
8912 | &_swigt__p_wxSize, | |
8913 | &_swigt__p_wxSizeEvent, | |
8914 | &_swigt__p_wxSizer, | |
8915 | &_swigt__p_wxSizerItem, | |
8916 | &_swigt__p_wxStaticBoxSizer, | |
8917 | &_swigt__p_wxStdDialogButtonSizer, | |
8918 | &_swigt__p_wxSysColourChangedEvent, | |
8919 | &_swigt__p_wxTIFFHandler, | |
8920 | &_swigt__p_wxUpdateUIEvent, | |
8921 | &_swigt__p_wxValidator, | |
8922 | &_swigt__p_wxWindow, | |
8923 | &_swigt__p_wxWindowCreateEvent, | |
8924 | &_swigt__p_wxWindowDestroyEvent, | |
8925 | &_swigt__p_wxXPMHandler, | |
8926 | &_swigt__p_wxXmlDocument, | |
8927 | &_swigt__p_wxXmlNode, | |
8928 | &_swigt__p_wxXmlProperty, | |
8929 | &_swigt__p_wxXmlResource, | |
32fe5131 RD |
8930 | }; |
8931 | ||
8932 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
8933 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
8934 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
8935 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
8936 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
8937 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
8938 | static swig_cast_info _swigc__p_wxArtClient[] = { {&_swigt__p_wxArtClient, 0, 0, 0},{0, 0, 0, 0}}; | |
8939 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
01f6b6d3 | 8940 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
8941 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
8942 | static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
8943 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
8944 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
8945 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
8946 | static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
8947 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
8948 | static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}}; | |
8949 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
8950 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
8951 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
8952 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8953 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
8954 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
8955 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
8956 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
8957 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
8958 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8959 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
8960 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8961 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
8962 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
8963 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8964 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8965 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8966 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8967 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8968 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8969 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8970 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
8971 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8972 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
8973 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
8974 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8975 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8976 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8977 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
8978 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8979 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8980 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8981 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8982 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8983 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8984 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8985 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8986 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
8987 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8988 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8989 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8990 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8991 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8992 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8993 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8994 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8995 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8996 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8997 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8998 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
8999 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9000 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9001 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9002 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
9003 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
9004 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9005 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9006 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9007 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9008 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
9009 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9010 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9011 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
9012 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9013 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9014 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9015 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9016 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9017 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9018 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9019 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9020 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
9021 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
9022 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
9023 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxXmlDocument, _p_wxXmlDocumentTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyXmlResourceHandler, _p_wxPyXmlResourceHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxXmlResource, _p_wxXmlResourceTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
9024 | static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}}; | |
9025 | static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
9026 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
9027 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
9028 | static swig_cast_info _swigc__p_wxPyXmlResourceHandler[] = { {&_swigt__p_wxPyXmlResourceHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9029 | static swig_cast_info _swigc__p_wxPyXmlSubclassFactory[] = { {&_swigt__p_wxPyXmlSubclassFactory, 0, 0, 0},{0, 0, 0, 0}}; | |
9030 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
9031 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
9032 | static swig_cast_info _swigc__p_wxXmlDocument[] = { {&_swigt__p_wxXmlDocument, 0, 0, 0},{0, 0, 0, 0}}; | |
9033 | static swig_cast_info _swigc__p_wxXmlNode[] = { {&_swigt__p_wxXmlNode, 0, 0, 0},{0, 0, 0, 0}}; | |
9034 | static swig_cast_info _swigc__p_wxXmlProperty[] = { {&_swigt__p_wxXmlProperty, 0, 0, 0},{0, 0, 0, 0}}; | |
9035 | static swig_cast_info _swigc__p_wxXmlResource[] = { {&_swigt__p_wxXmlResource, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
9036 | |
9037 | static swig_cast_info *swig_cast_initial[] = { | |
9038 | _swigc__p_char, | |
9039 | _swigc__p_form_ops_t, | |
9040 | _swigc__p_int, | |
9041 | _swigc__p_unsigned_char, | |
9042 | _swigc__p_unsigned_int, | |
9043 | _swigc__p_unsigned_long, | |
9044 | _swigc__p_wxANIHandler, | |
9045 | _swigc__p_wxAcceleratorTable, | |
9046 | _swigc__p_wxActivateEvent, | |
9047 | _swigc__p_wxArtClient, | |
9048 | _swigc__p_wxBMPHandler, | |
9049 | _swigc__p_wxBitmap, | |
9050 | _swigc__p_wxBoxSizer, | |
9051 | _swigc__p_wxCURHandler, | |
01f6b6d3 | 9052 | _swigc__p_wxChar, |
32fe5131 RD |
9053 | _swigc__p_wxChildFocusEvent, |
9054 | _swigc__p_wxCloseEvent, | |
9055 | _swigc__p_wxColour, | |
9056 | _swigc__p_wxCommandEvent, | |
9057 | _swigc__p_wxContextMenuEvent, | |
9058 | _swigc__p_wxControl, | |
9059 | _swigc__p_wxControlWithItems, | |
9060 | _swigc__p_wxDateEvent, | |
9061 | _swigc__p_wxDialog, | |
9062 | _swigc__p_wxDisplayChangedEvent, | |
9063 | _swigc__p_wxDropFilesEvent, | |
9064 | _swigc__p_wxDuplexMode, | |
9065 | _swigc__p_wxEraseEvent, | |
9066 | _swigc__p_wxEvent, | |
9067 | _swigc__p_wxEvtHandler, | |
9068 | _swigc__p_wxFSFile, | |
9069 | _swigc__p_wxFileSystem, | |
9070 | _swigc__p_wxFlexGridSizer, | |
9071 | _swigc__p_wxFocusEvent, | |
9072 | _swigc__p_wxFont, | |
9073 | _swigc__p_wxFrame, | |
9074 | _swigc__p_wxGBSizerItem, | |
9075 | _swigc__p_wxGIFHandler, | |
9076 | _swigc__p_wxGridBagSizer, | |
9077 | _swigc__p_wxGridSizer, | |
9078 | _swigc__p_wxICOHandler, | |
9079 | _swigc__p_wxIcon, | |
9080 | _swigc__p_wxIconizeEvent, | |
9081 | _swigc__p_wxIdleEvent, | |
9082 | _swigc__p_wxImage, | |
9083 | _swigc__p_wxImageHandler, | |
9084 | _swigc__p_wxIndividualLayoutConstraint, | |
9085 | _swigc__p_wxInitDialogEvent, | |
9086 | _swigc__p_wxInputStream, | |
9087 | _swigc__p_wxJPEGHandler, | |
9088 | _swigc__p_wxKeyEvent, | |
9089 | _swigc__p_wxLayoutConstraints, | |
9090 | _swigc__p_wxMaximizeEvent, | |
9091 | _swigc__p_wxMenu, | |
9092 | _swigc__p_wxMenuBar, | |
9093 | _swigc__p_wxMenuEvent, | |
9094 | _swigc__p_wxMenuItem, | |
9095 | _swigc__p_wxMouseCaptureChangedEvent, | |
9096 | _swigc__p_wxMouseEvent, | |
9097 | _swigc__p_wxMoveEvent, | |
9098 | _swigc__p_wxNavigationKeyEvent, | |
9099 | _swigc__p_wxNcPaintEvent, | |
9100 | _swigc__p_wxNotifyEvent, | |
9101 | _swigc__p_wxObject, | |
9102 | _swigc__p_wxOutputStream, | |
9103 | _swigc__p_wxPCXHandler, | |
9104 | _swigc__p_wxPNGHandler, | |
9105 | _swigc__p_wxPNMHandler, | |
9106 | _swigc__p_wxPaintEvent, | |
9107 | _swigc__p_wxPaletteChangedEvent, | |
9108 | _swigc__p_wxPanel, | |
9109 | _swigc__p_wxPaperSize, | |
9110 | _swigc__p_wxPoint, | |
9111 | _swigc__p_wxPyApp, | |
9112 | _swigc__p_wxPyCommandEvent, | |
9113 | _swigc__p_wxPyEvent, | |
9114 | _swigc__p_wxPyImageHandler, | |
9115 | _swigc__p_wxPySizer, | |
9116 | _swigc__p_wxPyValidator, | |
9117 | _swigc__p_wxPyXmlResourceHandler, | |
9118 | _swigc__p_wxPyXmlSubclassFactory, | |
9119 | _swigc__p_wxQueryNewPaletteEvent, | |
9120 | _swigc__p_wxScrollEvent, | |
9121 | _swigc__p_wxScrollWinEvent, | |
9122 | _swigc__p_wxSetCursorEvent, | |
9123 | _swigc__p_wxShowEvent, | |
9124 | _swigc__p_wxSize, | |
9125 | _swigc__p_wxSizeEvent, | |
9126 | _swigc__p_wxSizer, | |
9127 | _swigc__p_wxSizerItem, | |
9128 | _swigc__p_wxStaticBoxSizer, | |
9129 | _swigc__p_wxStdDialogButtonSizer, | |
9130 | _swigc__p_wxSysColourChangedEvent, | |
9131 | _swigc__p_wxTIFFHandler, | |
9132 | _swigc__p_wxUpdateUIEvent, | |
9133 | _swigc__p_wxValidator, | |
9134 | _swigc__p_wxWindow, | |
9135 | _swigc__p_wxWindowCreateEvent, | |
9136 | _swigc__p_wxWindowDestroyEvent, | |
9137 | _swigc__p_wxXPMHandler, | |
9138 | _swigc__p_wxXmlDocument, | |
9139 | _swigc__p_wxXmlNode, | |
9140 | _swigc__p_wxXmlProperty, | |
9141 | _swigc__p_wxXmlResource, | |
2ef75293 RD |
9142 | }; |
9143 | ||
9144 | ||
9145 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
9146 | ||
9147 | static swig_const_info swig_const_table[] = { | |
9148 | {0, 0, 0, 0.0, 0, 0}}; | |
9149 | ||
9150 | #ifdef __cplusplus | |
9151 | } | |
9152 | #endif | |
0085ce49 | 9153 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
9154 | * Type initialization: |
9155 | * This problem is tough by the requirement that no dynamic | |
9156 | * memory is used. Also, since swig_type_info structures store pointers to | |
9157 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
9158 | * to swig_type_info structures, we need some lookup code at initialization. | |
9159 | * The idea is that swig generates all the structures that are needed. | |
9160 | * The runtime then collects these partially filled structures. | |
9161 | * The SWIG_InitializeModule function takes these initial arrays out of | |
9162 | * swig_module, and does all the lookup, filling in the swig_module.types | |
9163 | * array with the correct data and linking the correct swig_cast_info | |
9164 | * structures together. | |
0085ce49 | 9165 | * |
32fe5131 RD |
9166 | * The generated swig_type_info structures are assigned staticly to an initial |
9167 | * array. We just loop though that array, and handle each type individually. | |
9168 | * First we lookup if this type has been already loaded, and if so, use the | |
9169 | * loaded structure instead of the generated one. Then we have to fill in the | |
9170 | * cast linked list. The cast data is initially stored in something like a | |
9171 | * two-dimensional array. Each row corresponds to a type (there are the same | |
9172 | * number of rows as there are in the swig_type_initial array). Each entry in | |
9173 | * a column is one of the swig_cast_info structures for that type. | |
9174 | * The cast_initial array is actually an array of arrays, because each row has | |
9175 | * a variable number of columns. So to actually build the cast linked list, | |
9176 | * we find the array of casts associated with the type, and loop through it | |
9177 | * adding the casts to the list. The one last trick we need to do is making | |
9178 | * sure the type pointer in the swig_cast_info struct is correct. | |
0085ce49 | 9179 | * |
32fe5131 RD |
9180 | * First off, we lookup the cast->type name to see if it is already loaded. |
9181 | * There are three cases to handle: | |
9182 | * 1) If the cast->type has already been loaded AND the type we are adding | |
9183 | * casting info to has not been loaded (it is in this module), THEN we | |
9184 | * replace the cast->type pointer with the type pointer that has already | |
9185 | * been loaded. | |
9186 | * 2) If BOTH types (the one we are adding casting info to, and the | |
9187 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
9188 | * the previous module so we just ignore it. | |
9189 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
9190 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
9191 | * be correct. | |
0085ce49 | 9192 | * ----------------------------------------------------------------------------- */ |
32fe5131 RD |
9193 | |
9194 | #ifdef __cplusplus | |
9195 | extern "C" { | |
9196 | #if 0 | |
9197 | } /* c-mode */ | |
9198 | #endif | |
9199 | #endif | |
9200 | ||
9201 | #if 0 | |
9202 | #define SWIGRUNTIME_DEBUG | |
9203 | #endif | |
9204 | ||
9205 | SWIGRUNTIME void | |
9206 | SWIG_InitializeModule(void *clientdata) { | |
0085ce49 RD |
9207 | size_t i; |
9208 | swig_module_info *module_head; | |
9209 | static int init_run = 0; | |
9210 | ||
9211 | clientdata = clientdata; | |
9212 | ||
9213 | if (init_run) return; | |
9214 | init_run = 1; | |
9215 | ||
9216 | /* Initialize the swig_module */ | |
9217 | swig_module.type_initial = swig_type_initial; | |
9218 | swig_module.cast_initial = swig_cast_initial; | |
9219 | ||
9220 | /* Try and load any already created modules */ | |
9221 | module_head = SWIG_GetModule(clientdata); | |
9222 | if (module_head) { | |
9223 | swig_module.next = module_head->next; | |
9224 | module_head->next = &swig_module; | |
9225 | } else { | |
9226 | /* This is the first module loaded */ | |
9227 | swig_module.next = &swig_module; | |
9228 | SWIG_SetModule(clientdata, &swig_module); | |
9229 | } | |
9230 | ||
9231 | /* Now work on filling in swig_module.types */ | |
32fe5131 | 9232 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9233 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
32fe5131 | 9234 | #endif |
0085ce49 RD |
9235 | for (i = 0; i < swig_module.size; ++i) { |
9236 | swig_type_info *type = 0; | |
9237 | swig_type_info *ret; | |
9238 | swig_cast_info *cast; | |
9239 | ||
32fe5131 | 9240 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9241 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
32fe5131 | 9242 | #endif |
0085ce49 RD |
9243 | |
9244 | /* if there is another module already loaded */ | |
9245 | if (swig_module.next != &swig_module) { | |
9246 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
9247 | } | |
9248 | if (type) { | |
9249 | /* Overwrite clientdata field */ | |
32fe5131 | 9250 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9251 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
32fe5131 | 9252 | #endif |
0085ce49 RD |
9253 | if (swig_module.type_initial[i]->clientdata) { |
9254 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
32fe5131 | 9255 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9256 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
32fe5131 | 9257 | #endif |
0085ce49 RD |
9258 | } |
9259 | } else { | |
9260 | type = swig_module.type_initial[i]; | |
9261 | } | |
9262 | ||
9263 | /* Insert casting types */ | |
9264 | cast = swig_module.cast_initial[i]; | |
9265 | while (cast->type) { | |
9266 | /* Don't need to add information already in the list */ | |
9267 | ret = 0; | |
32fe5131 | 9268 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9269 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
32fe5131 | 9270 | #endif |
0085ce49 RD |
9271 | if (swig_module.next != &swig_module) { |
9272 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
32fe5131 | 9273 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9274 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
32fe5131 | 9275 | #endif |
0085ce49 RD |
9276 | } |
9277 | if (ret) { | |
9278 | if (type == swig_module.type_initial[i]) { | |
32fe5131 | 9279 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9280 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
32fe5131 | 9281 | #endif |
0085ce49 RD |
9282 | cast->type = ret; |
9283 | ret = 0; | |
9284 | } else { | |
9285 | /* Check for casting already in the list */ | |
9286 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
32fe5131 | 9287 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9288 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
32fe5131 | 9289 | #endif |
0085ce49 RD |
9290 | if (!ocast) ret = 0; |
9291 | } | |
9292 | } | |
9293 | ||
9294 | if (!ret) { | |
32fe5131 | 9295 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9296 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
32fe5131 | 9297 | #endif |
0085ce49 RD |
9298 | if (type->cast) { |
9299 | type->cast->prev = cast; | |
9300 | cast->next = type->cast; | |
32fe5131 | 9301 | } |
0085ce49 RD |
9302 | type->cast = cast; |
9303 | } | |
9304 | cast++; | |
32fe5131 | 9305 | } |
0085ce49 RD |
9306 | /* Set entry in modules->types array equal to the type */ |
9307 | swig_module.types[i] = type; | |
9308 | } | |
9309 | swig_module.types[i] = 0; | |
9310 | ||
32fe5131 | 9311 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 RD |
9312 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
9313 | for (i = 0; i < swig_module.size; ++i) { | |
9314 | int j = 0; | |
9315 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
9316 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
9317 | while (cast->type) { | |
9318 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
9319 | cast++; | |
9320 | ++j; | |
9321 | } | |
9322 | printf("---- Total casts: %d\n",j); | |
9323 | } | |
9324 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
32fe5131 RD |
9325 | #endif |
9326 | } | |
9327 | ||
9328 | /* This function will propagate the clientdata field of type to | |
9329 | * any new swig_type_info structures that have been added into the list | |
9330 | * of equivalent types. It is like calling | |
9331 | * SWIG_TypeClientData(type, clientdata) a second time. | |
9332 | */ | |
9333 | SWIGRUNTIME void | |
9334 | SWIG_PropagateClientData(void) { | |
0085ce49 RD |
9335 | size_t i; |
9336 | swig_cast_info *equiv; | |
9337 | static int init_run = 0; | |
9338 | ||
9339 | if (init_run) return; | |
9340 | init_run = 1; | |
9341 | ||
9342 | for (i = 0; i < swig_module.size; i++) { | |
9343 | if (swig_module.types[i]->clientdata) { | |
9344 | equiv = swig_module.types[i]->cast; | |
9345 | while (equiv) { | |
9346 | if (!equiv->converter) { | |
9347 | if (equiv->type && !equiv->type->clientdata) | |
9348 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
32fe5131 | 9349 | } |
0085ce49 RD |
9350 | equiv = equiv->next; |
9351 | } | |
32fe5131 | 9352 | } |
0085ce49 | 9353 | } |
32fe5131 RD |
9354 | } |
9355 | ||
9356 | #ifdef __cplusplus | |
9357 | #if 0 | |
9358 | { | |
0085ce49 | 9359 | /* c-mode */ |
32fe5131 RD |
9360 | #endif |
9361 | } | |
9362 | #endif | |
9363 | ||
2ef75293 | 9364 | |
093d3ff1 RD |
9365 | |
9366 | #ifdef __cplusplus | |
9367 | extern "C" { | |
9368 | #endif | |
0085ce49 RD |
9369 | |
9370 | /* Python-specific SWIG API */ | |
093d3ff1 RD |
9371 | #define SWIG_newvarlink() SWIG_Python_newvarlink() |
9372 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
9373 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
0085ce49 RD |
9374 | |
9375 | /* ----------------------------------------------------------------------------- | |
9376 | * global variable support code. | |
9377 | * ----------------------------------------------------------------------------- */ | |
9378 | ||
9379 | typedef struct swig_globalvar { | |
9380 | char *name; /* Name of global variable */ | |
9381 | PyObject *(*get_attr)(void); /* Return the current value */ | |
9382 | int (*set_attr)(PyObject *); /* Set the value */ | |
9383 | struct swig_globalvar *next; | |
9384 | } swig_globalvar; | |
9385 | ||
9386 | typedef struct swig_varlinkobject { | |
9387 | PyObject_HEAD | |
9388 | swig_globalvar *vars; | |
9389 | } swig_varlinkobject; | |
9390 | ||
9391 | SWIGINTERN PyObject * | |
9392 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
9393 | return PyString_FromString("<Swig global variables>"); | |
9394 | } | |
9395 | ||
9396 | SWIGINTERN PyObject * | |
9397 | swig_varlink_str(swig_varlinkobject *v) { | |
9398 | PyObject *str = PyString_FromString("("); | |
9399 | swig_globalvar *var; | |
9400 | for (var = v->vars; var; var=var->next) { | |
9401 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
9402 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
9403 | } | |
9404 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
9405 | return str; | |
9406 | } | |
9407 | ||
9408 | SWIGINTERN int | |
9409 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
9410 | PyObject *str = swig_varlink_str(v); | |
9411 | fprintf(fp,"Swig global variables "); | |
9412 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
9413 | Py_DECREF(str); | |
9414 | return 0; | |
9415 | } | |
9416 | ||
9417 | SWIGINTERN void | |
9418 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
9419 | swig_globalvar *var = v->vars; | |
9420 | while (var) { | |
9421 | swig_globalvar *n = var->next; | |
9422 | free(var->name); | |
9423 | free(var); | |
9424 | var = n; | |
093d3ff1 | 9425 | } |
0085ce49 RD |
9426 | } |
9427 | ||
9428 | SWIGINTERN PyObject * | |
9429 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
9430 | PyObject *res = NULL; | |
9431 | swig_globalvar *var = v->vars; | |
9432 | while (var) { | |
9433 | if (strcmp(var->name,n) == 0) { | |
9434 | res = (*var->get_attr)(); | |
9435 | break; | |
9436 | } | |
9437 | var = var->next; | |
093d3ff1 | 9438 | } |
0085ce49 RD |
9439 | if (res == NULL && !PyErr_Occurred()) { |
9440 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 9441 | } |
0085ce49 RD |
9442 | return res; |
9443 | } | |
9444 | ||
9445 | SWIGINTERN int | |
9446 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
9447 | int res = 1; | |
9448 | swig_globalvar *var = v->vars; | |
9449 | while (var) { | |
9450 | if (strcmp(var->name,n) == 0) { | |
9451 | res = (*var->set_attr)(p); | |
9452 | break; | |
9453 | } | |
9454 | var = var->next; | |
093d3ff1 | 9455 | } |
0085ce49 RD |
9456 | if (res == 1 && !PyErr_Occurred()) { |
9457 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
9458 | } | |
9459 | return res; | |
9460 | } | |
9461 | ||
9462 | SWIGINTERN PyTypeObject* | |
9463 | swig_varlink_type(void) { | |
9464 | static char varlink__doc__[] = "Swig var link object"; | |
9465 | static PyTypeObject varlink_type; | |
9466 | static int type_init = 0; | |
9467 | if (!type_init) { | |
9468 | const PyTypeObject tmp | |
9469 | = { | |
9470 | PyObject_HEAD_INIT(NULL) | |
9471 | 0, /* Number of items in variable part (ob_size) */ | |
9472 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
9473 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
9474 | 0, /* Itemsize (tp_itemsize) */ | |
9475 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
9476 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
9477 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
9478 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
9479 | 0, /* tp_compare */ | |
9480 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
9481 | 0, /* tp_as_number */ | |
9482 | 0, /* tp_as_sequence */ | |
9483 | 0, /* tp_as_mapping */ | |
9484 | 0, /* tp_hash */ | |
9485 | 0, /* tp_call */ | |
9486 | (reprfunc)swig_varlink_str, /* tp_str */ | |
9487 | 0, /* tp_getattro */ | |
9488 | 0, /* tp_setattro */ | |
9489 | 0, /* tp_as_buffer */ | |
9490 | 0, /* tp_flags */ | |
9491 | varlink__doc__, /* tp_doc */ | |
9492 | 0, /* tp_traverse */ | |
9493 | 0, /* tp_clear */ | |
9494 | 0, /* tp_richcompare */ | |
9495 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 9496 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 | 9497 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
093d3ff1 RD |
9498 | #endif |
9499 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 9500 | 0, /* tp_del */ |
093d3ff1 RD |
9501 | #endif |
9502 | #ifdef COUNT_ALLOCS | |
0085ce49 | 9503 | 0,0,0,0 /* tp_alloc -> tp_next */ |
32fe5131 | 9504 | #endif |
0085ce49 RD |
9505 | }; |
9506 | varlink_type = tmp; | |
9507 | varlink_type.ob_type = &PyType_Type; | |
9508 | type_init = 1; | |
093d3ff1 | 9509 | } |
0085ce49 RD |
9510 | return &varlink_type; |
9511 | } | |
9512 | ||
9513 | /* Create a variable linking object for use later */ | |
9514 | SWIGINTERN PyObject * | |
9515 | SWIG_Python_newvarlink(void) { | |
9516 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
9517 | if (result) { | |
9518 | result->vars = 0; | |
9519 | } | |
9520 | return ((PyObject*) result); | |
9521 | } | |
9522 | ||
9523 | SWIGINTERN void | |
9524 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
9525 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
9526 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
9527 | if (gv) { | |
9528 | size_t size = strlen(name)+1; | |
9529 | gv->name = (char *)malloc(size); | |
9530 | if (gv->name) { | |
9531 | strncpy(gv->name,name,size); | |
9532 | gv->get_attr = get_attr; | |
9533 | gv->set_attr = set_attr; | |
9534 | gv->next = v->vars; | |
9535 | } | |
093d3ff1 | 9536 | } |
0085ce49 RD |
9537 | v->vars = gv; |
9538 | } | |
9539 | ||
9540 | SWIGINTERN PyObject * | |
9541 | SWIG_globals() { | |
9542 | static PyObject *_SWIG_globals = 0; | |
9543 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
9544 | return _SWIG_globals; | |
9545 | } | |
9546 | ||
9547 | /* ----------------------------------------------------------------------------- | |
9548 | * constants/methods manipulation | |
9549 | * ----------------------------------------------------------------------------- */ | |
9550 | ||
9551 | /* Install Constants */ | |
9552 | SWIGINTERN void | |
9553 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
9554 | PyObject *obj = 0; | |
9555 | size_t i; | |
9556 | for (i = 0; constants[i].type; ++i) { | |
9557 | switch(constants[i].type) { | |
9558 | case SWIG_PY_POINTER: | |
9559 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
9560 | break; | |
9561 | case SWIG_PY_BINARY: | |
9562 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
9563 | break; | |
9564 | default: | |
9565 | obj = 0; | |
9566 | break; | |
9567 | } | |
9568 | if (obj) { | |
9569 | PyDict_SetItemString(d, constants[i].name, obj); | |
9570 | Py_DECREF(obj); | |
9571 | } | |
093d3ff1 | 9572 | } |
0085ce49 RD |
9573 | } |
9574 | ||
9575 | /* -----------------------------------------------------------------------------*/ | |
9576 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
9577 | /* -----------------------------------------------------------------------------*/ | |
9578 | ||
9579 | SWIGINTERN void | |
9580 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
093d3ff1 RD |
9581 | swig_const_info *const_table, |
9582 | swig_type_info **types, | |
9583 | swig_type_info **types_initial) { | |
0085ce49 RD |
9584 | size_t i; |
9585 | for (i = 0; methods[i].ml_name; ++i) { | |
9586 | char *c = methods[i].ml_doc; | |
9587 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
9588 | int j; | |
9589 | swig_const_info *ci = 0; | |
9590 | char *name = c + 10; | |
9591 | for (j = 0; const_table[j].type; ++j) { | |
9592 | if (strncmp(const_table[j].name, name, | |
9593 | strlen(const_table[j].name)) == 0) { | |
9594 | ci = &(const_table[j]); | |
9595 | break; | |
9596 | } | |
9597 | } | |
9598 | if (ci) { | |
9599 | size_t shift = (ci->ptype) - types; | |
9600 | swig_type_info *ty = types_initial[shift]; | |
9601 | size_t ldoc = (c - methods[i].ml_doc); | |
9602 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
9603 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
9604 | if (ndoc) { | |
9605 | char *buff = ndoc; | |
9606 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
9607 | if (ptr) { | |
9608 | strncpy(buff, methods[i].ml_doc, ldoc); | |
9609 | buff += ldoc; | |
9610 | strncpy(buff, "swig_ptr: ", 10); | |
9611 | buff += 10; | |
9612 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
9613 | methods[i].ml_doc = ndoc; | |
093d3ff1 | 9614 | } |
0085ce49 | 9615 | } |
093d3ff1 | 9616 | } |
0085ce49 | 9617 | } |
093d3ff1 | 9618 | } |
0085ce49 RD |
9619 | } |
9620 | ||
093d3ff1 RD |
9621 | #ifdef __cplusplus |
9622 | } | |
9623 | #endif | |
9624 | ||
9625 | /* -----------------------------------------------------------------------------* | |
9626 | * Partial Init method | |
9627 | * -----------------------------------------------------------------------------*/ | |
9628 | ||
2ef75293 RD |
9629 | #ifdef __cplusplus |
9630 | extern "C" | |
9631 | #endif | |
32fe5131 | 9632 | SWIGEXPORT void SWIG_init(void) { |
0085ce49 RD |
9633 | PyObject *m, *d; |
9634 | ||
9635 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
9636 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
9637 | ||
9638 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
9639 | d = PyModule_GetDict(m); | |
9640 | ||
9641 | SWIG_InitializeModule(0); | |
9642 | SWIG_InstallConstants(d,swig_const_table); | |
9643 | ||
9644 | ||
9645 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
9646 | SWIG_addvarlink(SWIG_globals(),(char*)"UTF8String",UTF8String_get, UTF8String_set); | |
9647 | SWIG_addvarlink(SWIG_globals(),(char*)"StyleString",StyleString_get, StyleString_set); | |
9648 | SWIG_addvarlink(SWIG_globals(),(char*)"SizeString",SizeString_get, SizeString_set); | |
9649 | SWIG_addvarlink(SWIG_globals(),(char*)"PosString",PosString_get, PosString_set); | |
9650 | SWIG_addvarlink(SWIG_globals(),(char*)"BitmapString",BitmapString_get, BitmapString_set); | |
9651 | SWIG_addvarlink(SWIG_globals(),(char*)"IconString",IconString_get, IconString_set); | |
9652 | SWIG_addvarlink(SWIG_globals(),(char*)"FontString",FontString_get, FontString_set); | |
9653 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MAJOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MAJOR))); | |
9654 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MINOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MINOR))); | |
9655 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_RELEASE",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_RELEASE))); | |
9656 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_REVISION",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_REVISION))); | |
9657 | SWIG_Python_SetConstant(d, "XRC_USE_LOCALE",SWIG_From_int(static_cast< int >(wxXRC_USE_LOCALE))); | |
9658 | SWIG_Python_SetConstant(d, "XRC_NO_SUBCLASSING",SWIG_From_int(static_cast< int >(wxXRC_NO_SUBCLASSING))); | |
9659 | SWIG_Python_SetConstant(d, "XRC_NO_RELOADING",SWIG_From_int(static_cast< int >(wxXRC_NO_RELOADING))); | |
9660 | SWIG_Python_SetConstant(d, "XML_ELEMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_ELEMENT_NODE))); | |
9661 | SWIG_Python_SetConstant(d, "XML_ATTRIBUTE_NODE",SWIG_From_int(static_cast< int >(wxXML_ATTRIBUTE_NODE))); | |
9662 | SWIG_Python_SetConstant(d, "XML_TEXT_NODE",SWIG_From_int(static_cast< int >(wxXML_TEXT_NODE))); | |
9663 | SWIG_Python_SetConstant(d, "XML_CDATA_SECTION_NODE",SWIG_From_int(static_cast< int >(wxXML_CDATA_SECTION_NODE))); | |
9664 | SWIG_Python_SetConstant(d, "XML_ENTITY_REF_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_REF_NODE))); | |
9665 | SWIG_Python_SetConstant(d, "XML_ENTITY_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_NODE))); | |
9666 | SWIG_Python_SetConstant(d, "XML_PI_NODE",SWIG_From_int(static_cast< int >(wxXML_PI_NODE))); | |
9667 | SWIG_Python_SetConstant(d, "XML_COMMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_COMMENT_NODE))); | |
9668 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_NODE))); | |
9669 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_TYPE_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_TYPE_NODE))); | |
9670 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_FRAG_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_FRAG_NODE))); | |
9671 | SWIG_Python_SetConstant(d, "XML_NOTATION_NODE",SWIG_From_int(static_cast< int >(wxXML_NOTATION_NODE))); | |
9672 | SWIG_Python_SetConstant(d, "XML_HTML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_HTML_DOCUMENT_NODE))); | |
9673 | ||
9674 | ||
9675 | wxXmlInitResourceModule(); | |
9676 | wxXmlResource::Get()->InitAllHandlers(); | |
9677 | ||
9678 | ||
2ef75293 RD |
9679 | } |
9680 |