]>
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 | |
d1a49b78 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
0085ce49 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
093d3ff1 | 1000 | |
0085ce49 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
093d3ff1 | 1004 | |
0085ce49 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
093d3ff1 | 1008 | |
0085ce49 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
093d3ff1 | 1012 | |
0085ce49 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
093d3ff1 | 1017 | |
0085ce49 | 1018 | /* Runtime API */ |
093d3ff1 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
0085ce49 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
093d3ff1 | 1030 | |
0085ce49 | 1031 | /* Runtime API implementation */ |
093d3ff1 | 1032 | |
0085ce49 | 1033 | /* Error manipulation */ |
093d3ff1 | 1034 | |
0085ce49 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
093d3ff1 RD |
1041 | } |
1042 | ||
0085ce49 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
093d3ff1 RD |
1048 | } |
1049 | ||
0085ce49 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
0085ce49 | 1052 | /* Set a constant value */ |
093d3ff1 | 1053 | |
0085ce49 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
093d3ff1 RD |
1058 | } |
1059 | ||
0085ce49 | 1060 | /* Append a value to the result obj */ |
093d3ff1 | 1061 | |
0085ce49 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
093d3ff1 | 1088 | } else { |
0085ce49 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
093d3ff1 | 1100 | } |
0085ce49 RD |
1101 | return result; |
1102 | #endif | |
093d3ff1 RD |
1103 | } |
1104 | ||
0085ce49 | 1105 | /* Unpack the argument tuple */ |
093d3ff1 | 1106 | |
0085ce49 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
0085ce49 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
0085ce49 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1632 | #endif |
0085ce49 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1672 | #endif |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
0085ce49 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
0085ce49 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1682 | type_init = 1; |
1683 | } | |
32fe5131 | 1684 | return &pyswigobject_type; |
093d3ff1 RD |
1685 | } |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
0085ce49 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
0085ce49 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
0085ce49 | 1697 | return (PyObject *)sobj; |
093d3ff1 RD |
1698 | } |
1699 | ||
1700 | /* ----------------------------------------------------------------------------- | |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
1703 | ||
1704 | typedef struct { | |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
0085ce49 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
0085ce49 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
093d3ff1 RD |
1713 | { |
1714 | char result[SWIG_BUFFER_SIZE]; | |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
0085ce49 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
1724 | ||
1725 | SWIGRUNTIME PyObject * | |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
1727 | { | |
1728 | char result[SWIG_BUFFER_SIZE]; | |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
0085ce49 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 RD |
1733 | } |
1734 | } | |
1735 | ||
1736 | SWIGRUNTIME PyObject * | |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
0085ce49 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
1746 | ||
1747 | SWIGRUNTIME int | |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1749 | { | |
0085ce49 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
093d3ff1 RD |
1754 | } |
1755 | ||
0085ce49 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1757 | |
1758 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1759 | PySwigPacked_type(void) { |
0085ce49 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
0085ce49 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
0085ce49 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
0085ce49 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1852 | { |
0085ce49 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
093d3ff1 | 1865 | } |
0085ce49 | 1866 | return (PyObject *) sobj; |
093d3ff1 RD |
1867 | } |
1868 | ||
0085ce49 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
0085ce49 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
093d3ff1 RD |
1880 | } |
1881 | ||
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1883 | * pointers/data manipulation |
093d3ff1 RD |
1884 | * ----------------------------------------------------------------------------- */ |
1885 | ||
0085ce49 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
093d3ff1 | 1891 | |
0085ce49 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
093d3ff1 | 1898 | |
0085ce49 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1900 | |
0085ce49 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1903 | { |
0085ce49 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
093d3ff1 | 1926 | } else { |
0085ce49 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
0085ce49 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1947 | } |
1948 | } | |
1949 | ||
0085ce49 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
093d3ff1 | 1961 | } |
0085ce49 | 1962 | return 0; |
093d3ff1 RD |
1963 | } |
1964 | ||
0085ce49 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
0085ce49 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
093d3ff1 | 1992 | } else { |
0085ce49 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
0085ce49 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
093d3ff1 RD |
2042 | } |
2043 | } | |
2044 | ||
0085ce49 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
0085ce49 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2051 | } else { |
0085ce49 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
d1a49b78 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
0085ce49 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
093d3ff1 RD |
2069 | } |
2070 | } | |
2071 | ||
0085ce49 | 2072 | /* Convert a packed value value */ |
093d3ff1 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
0085ce49 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
093d3ff1 | 2084 | } |
0085ce49 RD |
2085 | return SWIG_OK; |
2086 | } | |
093d3ff1 | 2087 | |
0085ce49 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 2091 | |
0085ce49 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
093d3ff1 | 2096 | |
0085ce49 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
093d3ff1 | 2115 | } |
0085ce49 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
0085ce49 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
093d3ff1 | 2126 | } |
0085ce49 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
093d3ff1 | 2140 | } |
0085ce49 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
093d3ff1 | 2147 | } |
0085ce49 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
093d3ff1 RD |
2158 | } |
2159 | ||
0085ce49 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
093d3ff1 | 2175 | #endif |
0085ce49 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
093d3ff1 | 2180 | |
0085ce49 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2191 | } else { |
0085ce49 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
0085ce49 | 2194 | return SWIG_Py_Void(); |
093d3ff1 | 2195 | } |
0085ce49 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
0085ce49 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
0085ce49 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
093d3ff1 | 2213 | } |
093d3ff1 | 2214 | } |
0085ce49 | 2215 | return robj; |
093d3ff1 | 2216 | } |
093d3ff1 RD |
2217 | } |
2218 | ||
0085ce49 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2224 | } |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2ef75293 | 2229 | |
093d3ff1 RD |
2230 | #ifdef SWIG_LINK_RUNTIME |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2ef75293 | 2233 | |
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2241 | #else | |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
093d3ff1 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2251 | } |
2ef75293 | 2252 | |
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
0085ce49 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
0085ce49 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
32fe5131 | 2283 | #endif |
2ef75293 | 2284 | |
0085ce49 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
0085ce49 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
2ef75293 | 2314 | |
0085ce49 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
2ef75293 | 2320 | } |
2ef75293 | 2321 | |
0085ce49 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
2466 | #define SWIGTYPE_p_char swig_types[0] | |
2467 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
2468 | #define SWIGTYPE_p_int swig_types[2] | |
32fe5131 RD |
2469 | #define SWIGTYPE_p_unsigned_char swig_types[3] |
2470 | #define SWIGTYPE_p_unsigned_int swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_long swig_types[5] | |
2472 | #define SWIGTYPE_p_wxANIHandler swig_types[6] | |
2473 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[7] | |
2474 | #define SWIGTYPE_p_wxActivateEvent swig_types[8] | |
0a27f394 RD |
2475 | #define SWIGTYPE_p_wxAnimation swig_types[9] |
2476 | #define SWIGTYPE_p_wxArtClient swig_types[10] | |
2477 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
2478 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
2479 | #define SWIGTYPE_p_wxBoxSizer swig_types[13] | |
2480 | #define SWIGTYPE_p_wxCURHandler swig_types[14] | |
2481 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[15] | |
2482 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[16] | |
2483 | #define SWIGTYPE_p_wxCloseEvent swig_types[17] | |
2484 | #define SWIGTYPE_p_wxColour swig_types[18] | |
2485 | #define SWIGTYPE_p_wxCommandEvent swig_types[19] | |
2486 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[20] | |
2487 | #define SWIGTYPE_p_wxControl swig_types[21] | |
2488 | #define SWIGTYPE_p_wxControlWithItems swig_types[22] | |
2489 | #define SWIGTYPE_p_wxDateEvent swig_types[23] | |
2490 | #define SWIGTYPE_p_wxDialog swig_types[24] | |
2491 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[25] | |
2492 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[26] | |
2493 | #define SWIGTYPE_p_wxDuplexMode swig_types[27] | |
2494 | #define SWIGTYPE_p_wxEraseEvent swig_types[28] | |
2495 | #define SWIGTYPE_p_wxEvent swig_types[29] | |
2496 | #define SWIGTYPE_p_wxEvtHandler swig_types[30] | |
2497 | #define SWIGTYPE_p_wxFSFile swig_types[31] | |
2498 | #define SWIGTYPE_p_wxFileSystem swig_types[32] | |
2499 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[33] | |
2500 | #define SWIGTYPE_p_wxFocusEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxFont swig_types[35] | |
2502 | #define SWIGTYPE_p_wxFrame swig_types[36] | |
2503 | #define SWIGTYPE_p_wxGBSizerItem swig_types[37] | |
2504 | #define SWIGTYPE_p_wxGIFHandler swig_types[38] | |
2505 | #define SWIGTYPE_p_wxGridBagSizer swig_types[39] | |
2506 | #define SWIGTYPE_p_wxGridSizer swig_types[40] | |
2507 | #define SWIGTYPE_p_wxICOHandler swig_types[41] | |
2508 | #define SWIGTYPE_p_wxIcon swig_types[42] | |
2509 | #define SWIGTYPE_p_wxIconizeEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxIdleEvent swig_types[44] | |
2511 | #define SWIGTYPE_p_wxImage swig_types[45] | |
2512 | #define SWIGTYPE_p_wxImageHandler swig_types[46] | |
2513 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[47] | |
2514 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[48] | |
2515 | #define SWIGTYPE_p_wxInputStream swig_types[49] | |
2516 | #define SWIGTYPE_p_wxJPEGHandler swig_types[50] | |
2517 | #define SWIGTYPE_p_wxKeyEvent swig_types[51] | |
2518 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[52] | |
2519 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[53] | |
2520 | #define SWIGTYPE_p_wxMenu swig_types[54] | |
2521 | #define SWIGTYPE_p_wxMenuBar swig_types[55] | |
2522 | #define SWIGTYPE_p_wxMenuEvent swig_types[56] | |
2523 | #define SWIGTYPE_p_wxMenuItem swig_types[57] | |
2524 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[58] | |
2525 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[59] | |
2526 | #define SWIGTYPE_p_wxMouseEvent swig_types[60] | |
2527 | #define SWIGTYPE_p_wxMoveEvent swig_types[61] | |
2528 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[62] | |
2529 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[63] | |
2530 | #define SWIGTYPE_p_wxNotifyEvent swig_types[64] | |
2531 | #define SWIGTYPE_p_wxObject swig_types[65] | |
2532 | #define SWIGTYPE_p_wxOutputStream swig_types[66] | |
2533 | #define SWIGTYPE_p_wxPCXHandler swig_types[67] | |
2534 | #define SWIGTYPE_p_wxPNGHandler swig_types[68] | |
2535 | #define SWIGTYPE_p_wxPNMHandler swig_types[69] | |
2536 | #define SWIGTYPE_p_wxPaintEvent swig_types[70] | |
2537 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[71] | |
2538 | #define SWIGTYPE_p_wxPanel swig_types[72] | |
2539 | #define SWIGTYPE_p_wxPaperSize swig_types[73] | |
2540 | #define SWIGTYPE_p_wxPoint swig_types[74] | |
2541 | #define SWIGTYPE_p_wxPyApp swig_types[75] | |
2542 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[76] | |
2543 | #define SWIGTYPE_p_wxPyEvent swig_types[77] | |
2544 | #define SWIGTYPE_p_wxPyImageHandler swig_types[78] | |
2545 | #define SWIGTYPE_p_wxPySizer swig_types[79] | |
2546 | #define SWIGTYPE_p_wxPyValidator swig_types[80] | |
2547 | #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[81] | |
2548 | #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[82] | |
2549 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[83] | |
2550 | #define SWIGTYPE_p_wxScrollEvent swig_types[84] | |
2551 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[85] | |
2552 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[86] | |
2553 | #define SWIGTYPE_p_wxShowEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxSize swig_types[88] | |
2555 | #define SWIGTYPE_p_wxSizeEvent swig_types[89] | |
2556 | #define SWIGTYPE_p_wxSizer swig_types[90] | |
2557 | #define SWIGTYPE_p_wxSizerItem swig_types[91] | |
2558 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[92] | |
2559 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[93] | |
2560 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[94] | |
580080c5 RD |
2561 | #define SWIGTYPE_p_wxTGAHandler swig_types[95] |
2562 | #define SWIGTYPE_p_wxTIFFHandler swig_types[96] | |
2563 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[97] | |
2564 | #define SWIGTYPE_p_wxValidator swig_types[98] | |
2565 | #define SWIGTYPE_p_wxWindow swig_types[99] | |
2566 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[100] | |
2567 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxXPMHandler swig_types[102] | |
2569 | #define SWIGTYPE_p_wxXmlDocument swig_types[103] | |
2570 | #define SWIGTYPE_p_wxXmlNode swig_types[104] | |
2571 | #define SWIGTYPE_p_wxXmlProperty swig_types[105] | |
2572 | #define SWIGTYPE_p_wxXmlResource swig_types[106] | |
2573 | static swig_type_info *swig_types[108]; | |
2574 | static swig_module_info swig_module = {swig_types, 107, 0, 0, 0, 0}; | |
32fe5131 RD |
2575 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2576 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
2ef75293 RD |
2577 | |
2578 | /* -------- TYPES TABLE (END) -------- */ | |
2579 | ||
0085ce49 RD |
2580 | #if (PY_VERSION_HEX <= 0x02000000) |
2581 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2582 | # error "This python version requires to use swig with the '-classic' option" | |
2583 | # endif | |
2584 | #endif | |
2585 | #if (PY_VERSION_HEX <= 0x02020000) | |
2586 | # error "This python version requires to use swig with the '-nomodern' option" | |
2587 | #endif | |
2588 | #if (PY_VERSION_HEX <= 0x02020000) | |
2589 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2590 | #endif | |
2591 | #ifndef METH_O | |
2592 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2593 | #endif | |
2ef75293 RD |
2594 | |
2595 | /*----------------------------------------------- | |
2596 | @(target):= _xrc.so | |
2597 | ------------------------------------------------*/ | |
2598 | #define SWIG_init init_xrc | |
2599 | ||
2600 | #define SWIG_name "_xrc" | |
2601 | ||
0085ce49 RD |
2602 | #define SWIGVERSION 0x010329 |
2603 | ||
2604 | ||
2605 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2606 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2607 | ||
2608 | ||
2609 | #include <stdexcept> | |
2610 | ||
2611 | ||
2612 | namespace swig { | |
2613 | class PyObject_ptr { | |
2614 | protected: | |
2615 | PyObject *_obj; | |
2616 | ||
2617 | public: | |
2618 | PyObject_ptr() :_obj(0) | |
2619 | { | |
2620 | } | |
2621 | ||
2622 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2623 | { | |
2624 | Py_XINCREF(_obj); | |
2625 | } | |
2626 | ||
2627 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2628 | { | |
2629 | if (initial_ref) Py_XINCREF(_obj); | |
2630 | } | |
2631 | ||
2632 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2633 | { | |
2634 | Py_XINCREF(item._obj); | |
2635 | Py_XDECREF(_obj); | |
2636 | _obj = item._obj; | |
2637 | return *this; | |
2638 | } | |
2639 | ||
2640 | ~PyObject_ptr() | |
2641 | { | |
2642 | Py_XDECREF(_obj); | |
2643 | } | |
2644 | ||
2645 | operator PyObject *() const | |
2646 | { | |
2647 | return _obj; | |
2648 | } | |
2649 | ||
2650 | PyObject *operator->() const | |
2651 | { | |
2652 | return _obj; | |
2653 | } | |
2654 | }; | |
2655 | } | |
2656 | ||
2657 | ||
2658 | namespace swig { | |
2659 | struct PyObject_var : PyObject_ptr { | |
2660 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2661 | ||
2662 | PyObject_var & operator = (PyObject* obj) | |
2663 | { | |
2664 | Py_XDECREF(_obj); | |
2665 | _obj = obj; | |
2666 | return *this; | |
2667 | } | |
2668 | }; | |
2669 | } | |
2670 | ||
2671 | ||
2ef75293 RD |
2672 | #include "wx/wxPython/wxPython.h" |
2673 | #include "wx/wxPython/pyclasses.h" | |
2674 | #include "wx/wxPython/pyistream.h" | |
2675 | ||
2676 | #include <wx/xml/xml.h> | |
2677 | #include <wx/xrc/xmlres.h> | |
2678 | ||
2679 | static const wxString wxPyEmptyString(wxEmptyString); | |
2680 | static const wxString wxPyUTF8String(wxT("UTF-8")); | |
2681 | static const wxString wxPyStyleString(wxT("style")); | |
2682 | static const wxString wxPySizeString(wxT("size")); | |
2683 | static const wxString wxPyPosString(wxT("pos")); | |
2684 | static const wxString wxPyBitmapString(wxT("bitmap")); | |
2685 | static const wxString wxPyIconString(wxT("icon")); | |
2686 | static const wxString wxPyFontString(wxT("font")); | |
0a27f394 | 2687 | static const wxString wxPyAnimationString(wxT("animation")); |
2ef75293 | 2688 | |
0085ce49 | 2689 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2690 | |
2691 | ||
0085ce49 RD |
2692 | SWIGINTERNINLINE PyObject * |
2693 | SWIG_From_int (int value) | |
2694 | { | |
2695 | return SWIG_From_long (value); | |
2696 | } | |
2ef75293 RD |
2697 | |
2698 | ||
0085ce49 RD |
2699 | #include <limits.h> |
2700 | #ifndef LLONG_MIN | |
2701 | # define LLONG_MIN LONG_LONG_MIN | |
2702 | #endif | |
2703 | #ifndef LLONG_MAX | |
2704 | # define LLONG_MAX LONG_LONG_MAX | |
2705 | #endif | |
2706 | #ifndef ULLONG_MAX | |
2707 | # define ULLONG_MAX ULONG_LONG_MAX | |
2708 | #endif | |
2ef75293 RD |
2709 | |
2710 | ||
093d3ff1 | 2711 | SWIGINTERN int |
0085ce49 | 2712 | SWIG_AsVal_long (PyObject* obj, long* val) |
2ef75293 RD |
2713 | { |
2714 | if (PyNumber_Check(obj)) { | |
2715 | if (val) *val = PyInt_AsLong(obj); | |
0085ce49 | 2716 | return SWIG_OK; |
2ef75293 | 2717 | } |
0085ce49 | 2718 | return SWIG_TypeError; |
2ef75293 RD |
2719 | } |
2720 | ||
2721 | ||
093d3ff1 | 2722 | SWIGINTERN int |
0085ce49 RD |
2723 | SWIG_AsVal_int (PyObject * obj, int *val) |
2724 | { | |
2ef75293 | 2725 | long v; |
0085ce49 RD |
2726 | int res = SWIG_AsVal_long (obj, &v); |
2727 | if (SWIG_IsOK(res)) { | |
2728 | if ((v < INT_MIN || v > INT_MAX)) { | |
2729 | return SWIG_OverflowError; | |
2ef75293 | 2730 | } else { |
0085ce49 | 2731 | if (val) *val = static_cast< int >(v); |
2ef75293 | 2732 | } |
0085ce49 RD |
2733 | } |
2734 | return res; | |
2ef75293 RD |
2735 | } |
2736 | ||
0085ce49 | 2737 | SWIGINTERN bool wxXmlResource_LoadFromString(wxXmlResource *self,wxString const &data){ |
2ef75293 RD |
2738 | static int s_memFileIdx = 0; |
2739 | ||
2740 | // Check for memory FS. If not present, load the handler: | |
2741 | wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), | |
2742 | wxT("dummy data")); | |
2743 | wxFileSystem fsys; | |
2744 | wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file")); | |
2745 | wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file")); | |
2746 | if (f) | |
2747 | delete f; | |
2748 | else | |
2749 | wxFileSystem::AddHandler(new wxMemoryFSHandler); | |
2750 | ||
2751 | // Now put the resource data into the memory FS | |
2752 | wxString filename(wxT("XRC_resource/data_string_")); | |
2753 | filename << s_memFileIdx; | |
2754 | s_memFileIdx += 1; | |
2755 | wxMemoryFSHandler::AddFile(filename, data); | |
2756 | ||
2757 | // Load the "file" into the resource object | |
2758 | bool retval = self->Load(wxT("memory:") + filename ); | |
2759 | ||
2760 | return retval; | |
2761 | } | |
2762 | ||
2763 | class wxPyXmlSubclassFactory : public wxXmlSubclassFactory | |
2764 | { | |
2765 | public: | |
2766 | wxPyXmlSubclassFactory() {} | |
2767 | DEC_PYCALLBACK_OBJECT_STRING_pure(Create); | |
2768 | PYPRIVATE; | |
2769 | }; | |
2770 | ||
2771 | IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create); | |
2772 | ||
2773 | // C++ version of Python aware wxXmlResourceHandler, for the pure virtual | |
2774 | // callbacks, as well as to make some protected things public so they can | |
2775 | // be wrapped. | |
2776 | class wxPyXmlResourceHandler : public wxXmlResourceHandler { | |
2777 | public: | |
2778 | wxPyXmlResourceHandler() : wxXmlResourceHandler() {} | |
70d7cb34 | 2779 | ~wxPyXmlResourceHandler() {} |
2ef75293 RD |
2780 | |
2781 | // Base class virtuals | |
2782 | ||
2783 | DEC_PYCALLBACK_OBJECT__pure(DoCreateResource); | |
2784 | DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle); | |
2785 | ||
2786 | ||
2787 | // accessors for protected members | |
2788 | ||
2789 | wxXmlResource* GetResource() { return m_resource; } | |
2790 | wxXmlNode* GetNode() { return m_node; } | |
2791 | wxString GetClass() { return m_class; } | |
2792 | wxObject* GetParent() { return m_parent; } | |
2793 | wxObject* GetInstance() { return m_instance; } | |
2794 | wxWindow* GetParentAsWindow() { return m_parentAsWindow; } | |
2ef75293 RD |
2795 | |
2796 | ||
2797 | // turn some protected methods into public via delegation | |
2798 | ||
2799 | bool IsOfClass(wxXmlNode *node, const wxString& classname) | |
2800 | { return wxXmlResourceHandler::IsOfClass(node, classname); } | |
2801 | ||
2802 | wxString GetNodeContent(wxXmlNode *node) | |
2803 | { return wxXmlResourceHandler::GetNodeContent(node); } | |
2804 | ||
2805 | bool HasParam(const wxString& param) | |
2806 | { return wxXmlResourceHandler::HasParam(param); } | |
2807 | ||
2808 | wxXmlNode *GetParamNode(const wxString& param) | |
2809 | { return wxXmlResourceHandler::GetParamNode(param); } | |
2810 | ||
2811 | wxString GetParamValue(const wxString& param) | |
2812 | { return wxXmlResourceHandler::GetParamValue(param); } | |
2813 | ||
2814 | void AddStyle(const wxString& name, int value) | |
2815 | { wxXmlResourceHandler::AddStyle(name, value); } | |
2816 | ||
2817 | void AddWindowStyles() | |
2818 | { wxXmlResourceHandler::AddWindowStyles(); } | |
2819 | ||
2820 | int GetStyle(const wxString& param = wxT("style"), int defaults = 0) | |
2821 | { return wxXmlResourceHandler::GetStyle(param, defaults); } | |
2822 | ||
ae8162c8 | 2823 | wxString GetText(const wxString& param, bool translate = true) |
2ef75293 RD |
2824 | { return wxXmlResourceHandler::GetText(param, translate); } |
2825 | ||
2826 | int GetID() | |
2827 | { return wxXmlResourceHandler::GetID(); } | |
2828 | ||
2829 | wxString GetName() | |
2830 | { return wxXmlResourceHandler::GetName(); } | |
2831 | ||
ae8162c8 | 2832 | bool GetBool(const wxString& param, bool defaultv = false) |
2ef75293 RD |
2833 | { return wxXmlResourceHandler::GetBool(param, defaultv); } |
2834 | ||
2835 | long GetLong( const wxString& param, long defaultv = 0 ) | |
2836 | { return wxXmlResourceHandler::GetLong(param, defaultv); } | |
2837 | ||
2838 | wxColour GetColour(const wxString& param) | |
2839 | { return wxXmlResourceHandler::GetColour(param); } | |
2840 | ||
2841 | wxSize GetSize(const wxString& param = wxT("size")) | |
2842 | { return wxXmlResourceHandler::GetSize(param); } | |
2843 | ||
2844 | wxPoint GetPosition(const wxString& param = wxT("pos")) | |
2845 | { return wxXmlResourceHandler::GetPosition(param); } | |
2846 | ||
2847 | wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0) | |
2848 | { return wxXmlResourceHandler::GetDimension(param, defaultv); } | |
2849 | ||
2850 | wxBitmap GetBitmap(const wxString& param = wxT("bitmap"), | |
2851 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
2852 | wxSize size = wxDefaultSize) | |
2853 | { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); } | |
2854 | ||
2855 | wxIcon GetIcon(const wxString& param = wxT("icon"), | |
2856 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
2857 | wxSize size = wxDefaultSize) | |
2858 | { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); } | |
2859 | ||
0a27f394 RD |
2860 | wxAnimation GetAnimation(const wxString& param = wxT("animation")) |
2861 | { return wxXmlResourceHandler::GetAnimation(param); } | |
2862 | ||
2ef75293 RD |
2863 | wxFont GetFont(const wxString& param = wxT("font")) |
2864 | { return wxXmlResourceHandler::GetFont(param); } | |
2865 | ||
2866 | void SetupWindow(wxWindow *wnd) | |
2867 | { wxXmlResourceHandler::SetupWindow(wnd); } | |
2868 | ||
ae8162c8 | 2869 | void CreateChildren(wxObject *parent, bool this_hnd_only = false) |
2ef75293 RD |
2870 | { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); } |
2871 | ||
2872 | void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL) | |
2873 | { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); } | |
2874 | ||
2875 | wxObject *CreateResFromNode(wxXmlNode *node, | |
2876 | wxObject *parent, wxObject *instance = NULL) | |
2877 | { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); } | |
2878 | ||
2879 | wxFileSystem& GetCurFileSystem() | |
2880 | { return wxXmlResourceHandler::GetCurFileSystem(); } | |
2881 | ||
2882 | ||
2883 | PYPRIVATE; | |
2884 | }; | |
2885 | ||
2886 | IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource); | |
2887 | IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle); | |
2888 | ||
2889 | ||
2890 | ||
093d3ff1 | 2891 | SWIGINTERN int |
0085ce49 | 2892 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
2ef75293 | 2893 | { |
2ef75293 RD |
2894 | if (obj == Py_True) { |
2895 | if (val) *val = true; | |
0085ce49 RD |
2896 | return SWIG_OK; |
2897 | } else if (obj == Py_False) { | |
2ef75293 | 2898 | if (val) *val = false; |
0085ce49 | 2899 | return SWIG_OK; |
093d3ff1 | 2900 | } else { |
0085ce49 RD |
2901 | long v = 0; |
2902 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2903 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2904 | return res; | |
2ef75293 | 2905 | } |
2ef75293 RD |
2906 | } |
2907 | ||
2908 | #ifdef __cplusplus | |
2909 | extern "C" { | |
2910 | #endif | |
0085ce49 RD |
2911 | SWIGINTERN int UTF8String_set(PyObject *) { |
2912 | SWIG_Error(SWIG_AttributeError,"Variable UTF8String is read-only."); | |
2913 | return 1; | |
2ef75293 RD |
2914 | } |
2915 | ||
2916 | ||
0085ce49 RD |
2917 | SWIGINTERN PyObject *UTF8String_get(void) { |
2918 | PyObject *pyobj = 0; | |
2919 | ||
2920 | { | |
2ef75293 | 2921 | #if wxUSE_UNICODE |
0085ce49 | 2922 | pyobj = PyUnicode_FromWideChar((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); |
2ef75293 | 2923 | #else |
0085ce49 | 2924 | pyobj = PyString_FromStringAndSize((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); |
2ef75293 | 2925 | #endif |
0085ce49 RD |
2926 | } |
2927 | return pyobj; | |
2ef75293 RD |
2928 | } |
2929 | ||
2930 | ||
0085ce49 RD |
2931 | SWIGINTERN int StyleString_set(PyObject *) { |
2932 | SWIG_Error(SWIG_AttributeError,"Variable StyleString is read-only."); | |
2933 | return 1; | |
2ef75293 RD |
2934 | } |
2935 | ||
2936 | ||
0085ce49 RD |
2937 | SWIGINTERN PyObject *StyleString_get(void) { |
2938 | PyObject *pyobj = 0; | |
2939 | ||
2940 | { | |
2ef75293 | 2941 | #if wxUSE_UNICODE |
0085ce49 | 2942 | pyobj = PyUnicode_FromWideChar((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); |
2ef75293 | 2943 | #else |
0085ce49 | 2944 | pyobj = PyString_FromStringAndSize((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); |
2ef75293 | 2945 | #endif |
0085ce49 RD |
2946 | } |
2947 | return pyobj; | |
2ef75293 RD |
2948 | } |
2949 | ||
2950 | ||
0085ce49 RD |
2951 | SWIGINTERN int SizeString_set(PyObject *) { |
2952 | SWIG_Error(SWIG_AttributeError,"Variable SizeString is read-only."); | |
2953 | return 1; | |
2ef75293 RD |
2954 | } |
2955 | ||
2956 | ||
0085ce49 RD |
2957 | SWIGINTERN PyObject *SizeString_get(void) { |
2958 | PyObject *pyobj = 0; | |
2959 | ||
2960 | { | |
2ef75293 | 2961 | #if wxUSE_UNICODE |
0085ce49 | 2962 | pyobj = PyUnicode_FromWideChar((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); |
2ef75293 | 2963 | #else |
0085ce49 | 2964 | pyobj = PyString_FromStringAndSize((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); |
2ef75293 | 2965 | #endif |
0085ce49 RD |
2966 | } |
2967 | return pyobj; | |
2ef75293 RD |
2968 | } |
2969 | ||
2970 | ||
0085ce49 RD |
2971 | SWIGINTERN int PosString_set(PyObject *) { |
2972 | SWIG_Error(SWIG_AttributeError,"Variable PosString is read-only."); | |
2973 | return 1; | |
2ef75293 RD |
2974 | } |
2975 | ||
2976 | ||
0085ce49 RD |
2977 | SWIGINTERN PyObject *PosString_get(void) { |
2978 | PyObject *pyobj = 0; | |
2979 | ||
2980 | { | |
2ef75293 | 2981 | #if wxUSE_UNICODE |
0085ce49 | 2982 | pyobj = PyUnicode_FromWideChar((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); |
2ef75293 | 2983 | #else |
0085ce49 | 2984 | pyobj = PyString_FromStringAndSize((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); |
2ef75293 | 2985 | #endif |
0085ce49 RD |
2986 | } |
2987 | return pyobj; | |
2ef75293 RD |
2988 | } |
2989 | ||
2990 | ||
0085ce49 RD |
2991 | SWIGINTERN int BitmapString_set(PyObject *) { |
2992 | SWIG_Error(SWIG_AttributeError,"Variable BitmapString is read-only."); | |
2993 | return 1; | |
2ef75293 RD |
2994 | } |
2995 | ||
2996 | ||
0085ce49 RD |
2997 | SWIGINTERN PyObject *BitmapString_get(void) { |
2998 | PyObject *pyobj = 0; | |
2999 | ||
3000 | { | |
2ef75293 | 3001 | #if wxUSE_UNICODE |
0085ce49 | 3002 | pyobj = PyUnicode_FromWideChar((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); |
2ef75293 | 3003 | #else |
0085ce49 | 3004 | pyobj = PyString_FromStringAndSize((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); |
2ef75293 | 3005 | #endif |
0085ce49 RD |
3006 | } |
3007 | return pyobj; | |
2ef75293 RD |
3008 | } |
3009 | ||
3010 | ||
0085ce49 RD |
3011 | SWIGINTERN int IconString_set(PyObject *) { |
3012 | SWIG_Error(SWIG_AttributeError,"Variable IconString is read-only."); | |
3013 | return 1; | |
2ef75293 RD |
3014 | } |
3015 | ||
3016 | ||
0085ce49 RD |
3017 | SWIGINTERN PyObject *IconString_get(void) { |
3018 | PyObject *pyobj = 0; | |
3019 | ||
3020 | { | |
2ef75293 | 3021 | #if wxUSE_UNICODE |
0085ce49 | 3022 | pyobj = PyUnicode_FromWideChar((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); |
2ef75293 | 3023 | #else |
0085ce49 | 3024 | pyobj = PyString_FromStringAndSize((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); |
2ef75293 | 3025 | #endif |
0085ce49 RD |
3026 | } |
3027 | return pyobj; | |
2ef75293 RD |
3028 | } |
3029 | ||
3030 | ||
0085ce49 RD |
3031 | SWIGINTERN int FontString_set(PyObject *) { |
3032 | SWIG_Error(SWIG_AttributeError,"Variable FontString is read-only."); | |
3033 | return 1; | |
2ef75293 RD |
3034 | } |
3035 | ||
3036 | ||
0085ce49 RD |
3037 | SWIGINTERN PyObject *FontString_get(void) { |
3038 | PyObject *pyobj = 0; | |
3039 | ||
3040 | { | |
2ef75293 | 3041 | #if wxUSE_UNICODE |
0085ce49 | 3042 | pyobj = PyUnicode_FromWideChar((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); |
2ef75293 | 3043 | #else |
0085ce49 | 3044 | pyobj = PyString_FromStringAndSize((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); |
2ef75293 | 3045 | #endif |
0085ce49 RD |
3046 | } |
3047 | return pyobj; | |
3048 | } | |
3049 | ||
3050 | ||
0a27f394 RD |
3051 | SWIGINTERN int AnimationString_set(PyObject *) { |
3052 | SWIG_Error(SWIG_AttributeError,"Variable AnimationString is read-only."); | |
3053 | return 1; | |
3054 | } | |
3055 | ||
3056 | ||
3057 | SWIGINTERN PyObject *AnimationString_get(void) { | |
3058 | PyObject *pyobj = 0; | |
3059 | ||
3060 | { | |
3061 | #if wxUSE_UNICODE | |
3062 | pyobj = PyUnicode_FromWideChar((&wxPyAnimationString)->c_str(), (&wxPyAnimationString)->Len()); | |
3063 | #else | |
3064 | pyobj = PyString_FromStringAndSize((&wxPyAnimationString)->c_str(), (&wxPyAnimationString)->Len()); | |
3065 | #endif | |
3066 | } | |
3067 | return pyobj; | |
3068 | } | |
3069 | ||
3070 | ||
0085ce49 RD |
3071 | SWIGINTERN PyObject *_wrap_new_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3072 | PyObject *resultobj = 0; | |
3073 | wxString *arg1 = 0 ; | |
3074 | int arg2 = (int) wxXRC_USE_LOCALE ; | |
fc46b7f3 RD |
3075 | wxString const &arg3_defvalue = wxEmptyString ; |
3076 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
0085ce49 RD |
3077 | wxXmlResource *result = 0 ; |
3078 | bool temp1 = false ; | |
3079 | int val2 ; | |
3080 | int ecode2 = 0 ; | |
fc46b7f3 | 3081 | bool temp3 = false ; |
0085ce49 RD |
3082 | PyObject * obj0 = 0 ; |
3083 | PyObject * obj1 = 0 ; | |
fc46b7f3 | 3084 | PyObject * obj2 = 0 ; |
0085ce49 | 3085 | char * kwnames[] = { |
fc46b7f3 | 3086 | (char *) "filemask",(char *) "flags",(char *) "domain", NULL |
0085ce49 RD |
3087 | }; |
3088 | ||
fc46b7f3 | 3089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_XmlResource",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
0085ce49 RD |
3090 | { |
3091 | arg1 = wxString_in_helper(obj0); | |
3092 | if (arg1 == NULL) SWIG_fail; | |
3093 | temp1 = true; | |
3094 | } | |
3095 | if (obj1) { | |
3096 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3097 | if (!SWIG_IsOK(ecode2)) { | |
3098 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlResource" "', expected argument " "2"" of type '" "int""'"); | |
3099 | } | |
3100 | arg2 = static_cast< int >(val2); | |
3101 | } | |
fc46b7f3 RD |
3102 | if (obj2) { |
3103 | { | |
3104 | arg3 = wxString_in_helper(obj2); | |
3105 | if (arg3 == NULL) SWIG_fail; | |
3106 | temp3 = true; | |
3107 | } | |
3108 | } | |
0085ce49 RD |
3109 | { |
3110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 3111 | result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2,(wxString const &)*arg3); |
0085ce49 RD |
3112 | wxPyEndAllowThreads(__tstate); |
3113 | if (PyErr_Occurred()) SWIG_fail; | |
3114 | } | |
3115 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_NEW | 0 ); | |
3116 | { | |
3117 | if (temp1) | |
3118 | delete arg1; | |
3119 | } | |
fc46b7f3 RD |
3120 | { |
3121 | if (temp3) | |
3122 | delete arg3; | |
3123 | } | |
0085ce49 RD |
3124 | return resultobj; |
3125 | fail: | |
3126 | { | |
3127 | if (temp1) | |
3128 | delete arg1; | |
3129 | } | |
fc46b7f3 RD |
3130 | { |
3131 | if (temp3) | |
3132 | delete arg3; | |
3133 | } | |
0085ce49 | 3134 | return NULL; |
2ef75293 RD |
3135 | } |
3136 | ||
3137 | ||
0085ce49 RD |
3138 | SWIGINTERN PyObject *_wrap_new_EmptyXmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3139 | PyObject *resultobj = 0; | |
3140 | int arg1 = (int) wxXRC_USE_LOCALE ; | |
fc46b7f3 RD |
3141 | wxString const &arg2_defvalue = wxEmptyString ; |
3142 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
0085ce49 RD |
3143 | wxXmlResource *result = 0 ; |
3144 | int val1 ; | |
3145 | int ecode1 = 0 ; | |
fc46b7f3 | 3146 | bool temp2 = false ; |
0085ce49 | 3147 | PyObject * obj0 = 0 ; |
fc46b7f3 | 3148 | PyObject * obj1 = 0 ; |
0085ce49 | 3149 | char * kwnames[] = { |
fc46b7f3 | 3150 | (char *) "flags",(char *) "domain", NULL |
0085ce49 RD |
3151 | }; |
3152 | ||
fc46b7f3 | 3153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EmptyXmlResource",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
3154 | if (obj0) { |
3155 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3156 | if (!SWIG_IsOK(ecode1)) { | |
3157 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyXmlResource" "', expected argument " "1"" of type '" "int""'"); | |
3158 | } | |
3159 | arg1 = static_cast< int >(val1); | |
3160 | } | |
fc46b7f3 RD |
3161 | if (obj1) { |
3162 | { | |
3163 | arg2 = wxString_in_helper(obj1); | |
3164 | if (arg2 == NULL) SWIG_fail; | |
3165 | temp2 = true; | |
3166 | } | |
3167 | } | |
0085ce49 RD |
3168 | { |
3169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 3170 | result = (wxXmlResource *)new wxXmlResource(arg1,(wxString const &)*arg2); |
0085ce49 RD |
3171 | wxPyEndAllowThreads(__tstate); |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | } | |
3174 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_OWN | 0 ); | |
fc46b7f3 RD |
3175 | { |
3176 | if (temp2) | |
3177 | delete arg2; | |
3178 | } | |
0085ce49 RD |
3179 | return resultobj; |
3180 | fail: | |
fc46b7f3 RD |
3181 | { |
3182 | if (temp2) | |
3183 | delete arg2; | |
3184 | } | |
0085ce49 | 3185 | return NULL; |
2ef75293 RD |
3186 | } |
3187 | ||
3188 | ||
0085ce49 RD |
3189 | SWIGINTERN PyObject *_wrap_delete_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3190 | PyObject *resultobj = 0; | |
3191 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3192 | void *argp1 = 0 ; | |
3193 | int res1 = 0 ; | |
3194 | PyObject *swig_obj[1] ; | |
3195 | ||
3196 | if (!args) SWIG_fail; | |
3197 | swig_obj[0] = args; | |
3198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, SWIG_POINTER_DISOWN | 0 ); | |
3199 | if (!SWIG_IsOK(res1)) { | |
3200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResource" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3201 | } | |
3202 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3203 | { | |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3205 | delete arg1; | |
2ef75293 | 3206 | |
0085ce49 RD |
3207 | wxPyEndAllowThreads(__tstate); |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
3210 | resultobj = SWIG_Py_Void(); | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | return NULL; | |
3214 | } | |
3215 | ||
3216 | ||
3217 | SWIGINTERN PyObject *_wrap_XmlResource_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3218 | PyObject *resultobj = 0; | |
3219 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3220 | wxString *arg2 = 0 ; | |
3221 | bool result; | |
3222 | void *argp1 = 0 ; | |
3223 | int res1 = 0 ; | |
3224 | bool temp2 = false ; | |
3225 | PyObject * obj0 = 0 ; | |
3226 | PyObject * obj1 = 0 ; | |
3227 | char * kwnames[] = { | |
3228 | (char *) "self",(char *) "filemask", NULL | |
3229 | }; | |
3230 | ||
3231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Load",kwnames,&obj0,&obj1)) SWIG_fail; | |
3232 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3233 | if (!SWIG_IsOK(res1)) { | |
3234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Load" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3235 | } | |
3236 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3237 | { | |
3238 | arg2 = wxString_in_helper(obj1); | |
3239 | if (arg2 == NULL) SWIG_fail; | |
3240 | temp2 = true; | |
3241 | } | |
3242 | { | |
3243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3244 | result = (bool)(arg1)->Load((wxString const &)*arg2); | |
3245 | wxPyEndAllowThreads(__tstate); | |
3246 | if (PyErr_Occurred()) SWIG_fail; | |
3247 | } | |
3248 | { | |
3249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3250 | } | |
3251 | { | |
3252 | if (temp2) | |
3253 | delete arg2; | |
3254 | } | |
3255 | return resultobj; | |
3256 | fail: | |
3257 | { | |
3258 | if (temp2) | |
3259 | delete arg2; | |
3260 | } | |
3261 | return NULL; | |
3262 | } | |
3263 | ||
3264 | ||
3265 | SWIGINTERN PyObject *_wrap_XmlResource_LoadFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3266 | PyObject *resultobj = 0; | |
3267 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3268 | wxString *arg2 = 0 ; | |
3269 | bool result; | |
3270 | void *argp1 = 0 ; | |
3271 | int res1 = 0 ; | |
3272 | bool temp2 = false ; | |
3273 | PyObject * obj0 = 0 ; | |
3274 | PyObject * obj1 = 0 ; | |
3275 | char * kwnames[] = { | |
3276 | (char *) "self",(char *) "data", NULL | |
3277 | }; | |
3278 | ||
3279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
3280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3281 | if (!SWIG_IsOK(res1)) { | |
3282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFromString" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3283 | } | |
3284 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3285 | { | |
3286 | arg2 = wxString_in_helper(obj1); | |
3287 | if (arg2 == NULL) SWIG_fail; | |
3288 | temp2 = true; | |
3289 | } | |
3290 | { | |
3291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3292 | result = (bool)wxXmlResource_LoadFromString(arg1,(wxString const &)*arg2); | |
3293 | wxPyEndAllowThreads(__tstate); | |
3294 | if (PyErr_Occurred()) SWIG_fail; | |
3295 | } | |
3296 | { | |
3297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3298 | } | |
3299 | { | |
3300 | if (temp2) | |
3301 | delete arg2; | |
3302 | } | |
3303 | return resultobj; | |
3304 | fail: | |
3305 | { | |
3306 | if (temp2) | |
3307 | delete arg2; | |
3308 | } | |
3309 | return NULL; | |
3310 | } | |
3311 | ||
3312 | ||
3313 | SWIGINTERN PyObject *_wrap_XmlResource_Unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3314 | PyObject *resultobj = 0; | |
3315 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3316 | wxString *arg2 = 0 ; | |
3317 | bool result; | |
3318 | void *argp1 = 0 ; | |
3319 | int res1 = 0 ; | |
3320 | bool temp2 = false ; | |
3321 | PyObject * obj0 = 0 ; | |
3322 | PyObject * obj1 = 0 ; | |
3323 | char * kwnames[] = { | |
3324 | (char *) "self",(char *) "filename", NULL | |
3325 | }; | |
3326 | ||
3327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Unload",kwnames,&obj0,&obj1)) SWIG_fail; | |
3328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3329 | if (!SWIG_IsOK(res1)) { | |
3330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Unload" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3331 | } | |
3332 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3333 | { | |
3334 | arg2 = wxString_in_helper(obj1); | |
3335 | if (arg2 == NULL) SWIG_fail; | |
3336 | temp2 = true; | |
3337 | } | |
3338 | { | |
3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3340 | result = (bool)(arg1)->Unload((wxString const &)*arg2); | |
3341 | wxPyEndAllowThreads(__tstate); | |
3342 | if (PyErr_Occurred()) SWIG_fail; | |
3343 | } | |
3344 | { | |
3345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3346 | } | |
3347 | { | |
3348 | if (temp2) | |
3349 | delete arg2; | |
3350 | } | |
3351 | return resultobj; | |
3352 | fail: | |
3353 | { | |
3354 | if (temp2) | |
3355 | delete arg2; | |
3356 | } | |
3357 | return NULL; | |
2ef75293 RD |
3358 | } |
3359 | ||
3360 | ||
0085ce49 RD |
3361 | SWIGINTERN PyObject *_wrap_XmlResource_InitAllHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3362 | PyObject *resultobj = 0; | |
3363 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3364 | void *argp1 = 0 ; | |
3365 | int res1 = 0 ; | |
3366 | PyObject *swig_obj[1] ; | |
3367 | ||
3368 | if (!args) SWIG_fail; | |
3369 | swig_obj[0] = args; | |
3370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3371 | if (!SWIG_IsOK(res1)) { | |
3372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InitAllHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3373 | } | |
3374 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3375 | { | |
3376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3377 | (arg1)->InitAllHandlers(); | |
3378 | wxPyEndAllowThreads(__tstate); | |
3379 | if (PyErr_Occurred()) SWIG_fail; | |
3380 | } | |
3381 | resultobj = SWIG_Py_Void(); | |
3382 | return resultobj; | |
3383 | fail: | |
3384 | return NULL; | |
3385 | } | |
3386 | ||
3387 | ||
3388 | SWIGINTERN PyObject *_wrap_XmlResource_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3389 | PyObject *resultobj = 0; | |
3390 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3391 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
3392 | void *argp1 = 0 ; | |
3393 | int res1 = 0 ; | |
0085ce49 RD |
3394 | int res2 = 0 ; |
3395 | PyObject * obj0 = 0 ; | |
3396 | PyObject * obj1 = 0 ; | |
3397 | char * kwnames[] = { | |
3398 | (char *) "self",(char *) "handler", NULL | |
3399 | }; | |
3400 | ||
3401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_AddHandler",kwnames,&obj0,&obj1)) SWIG_fail; | |
3402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3403 | if (!SWIG_IsOK(res1)) { | |
3404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3405 | } | |
3406 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
a08f21ce | 3407 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 3408 | if (!SWIG_IsOK(res2)) { |
a08f21ce | 3409 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_AddHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'"); |
0085ce49 | 3410 | } |
0085ce49 RD |
3411 | { |
3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3413 | (arg1)->AddHandler(arg2); | |
3414 | wxPyEndAllowThreads(__tstate); | |
3415 | if (PyErr_Occurred()) SWIG_fail; | |
3416 | } | |
3417 | resultobj = SWIG_Py_Void(); | |
3418 | return resultobj; | |
3419 | fail: | |
3420 | return NULL; | |
3421 | } | |
3422 | ||
3423 | ||
3424 | SWIGINTERN PyObject *_wrap_XmlResource_InsertHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3425 | PyObject *resultobj = 0; | |
3426 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3427 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
3428 | void *argp1 = 0 ; | |
3429 | int res1 = 0 ; | |
0085ce49 RD |
3430 | int res2 = 0 ; |
3431 | PyObject * obj0 = 0 ; | |
3432 | PyObject * obj1 = 0 ; | |
3433 | char * kwnames[] = { | |
3434 | (char *) "self",(char *) "handler", NULL | |
3435 | }; | |
3436 | ||
3437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_InsertHandler",kwnames,&obj0,&obj1)) SWIG_fail; | |
3438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3439 | if (!SWIG_IsOK(res1)) { | |
3440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InsertHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3441 | } | |
3442 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
a08f21ce | 3443 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 3444 | if (!SWIG_IsOK(res2)) { |
a08f21ce | 3445 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_InsertHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'"); |
0085ce49 | 3446 | } |
0085ce49 RD |
3447 | { |
3448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3449 | (arg1)->InsertHandler(arg2); | |
3450 | wxPyEndAllowThreads(__tstate); | |
3451 | if (PyErr_Occurred()) SWIG_fail; | |
3452 | } | |
3453 | resultobj = SWIG_Py_Void(); | |
3454 | return resultobj; | |
3455 | fail: | |
3456 | return NULL; | |
2ef75293 RD |
3457 | } |
3458 | ||
3459 | ||
0085ce49 RD |
3460 | SWIGINTERN PyObject *_wrap_XmlResource_ClearHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3461 | PyObject *resultobj = 0; | |
3462 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3463 | void *argp1 = 0 ; | |
3464 | int res1 = 0 ; | |
3465 | PyObject *swig_obj[1] ; | |
3466 | ||
3467 | if (!args) SWIG_fail; | |
3468 | swig_obj[0] = args; | |
3469 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3470 | if (!SWIG_IsOK(res1)) { | |
3471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_ClearHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3472 | } | |
3473 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3474 | { | |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3476 | (arg1)->ClearHandlers(); | |
3477 | wxPyEndAllowThreads(__tstate); | |
3478 | if (PyErr_Occurred()) SWIG_fail; | |
3479 | } | |
3480 | resultobj = SWIG_Py_Void(); | |
3481 | return resultobj; | |
3482 | fail: | |
3483 | return NULL; | |
2ef75293 RD |
3484 | } |
3485 | ||
3486 | ||
0085ce49 RD |
3487 | SWIGINTERN PyObject *_wrap_XmlResource_AddSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3488 | PyObject *resultobj = 0; | |
3489 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
3490 | void *argp1 = 0 ; | |
3491 | int res1 = 0 ; | |
3492 | PyObject * obj0 = 0 ; | |
3493 | char * kwnames[] = { | |
3494 | (char *) "factory", NULL | |
3495 | }; | |
3496 | ||
3497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_AddSubclassFactory",kwnames,&obj0)) SWIG_fail; | |
3498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 ); | |
3499 | if (!SWIG_IsOK(res1)) { | |
3500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddSubclassFactory" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'"); | |
3501 | } | |
3502 | arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1); | |
3503 | { | |
3504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3505 | wxXmlResource::AddSubclassFactory(arg1); | |
3506 | wxPyEndAllowThreads(__tstate); | |
3507 | if (PyErr_Occurred()) SWIG_fail; | |
3508 | } | |
3509 | resultobj = SWIG_Py_Void(); | |
3510 | return resultobj; | |
3511 | fail: | |
3512 | return NULL; | |
3513 | } | |
3514 | ||
3515 | ||
3516 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3517 | PyObject *resultobj = 0; | |
3518 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3519 | wxString *arg2 = 0 ; | |
3520 | wxMenu *result = 0 ; | |
3521 | void *argp1 = 0 ; | |
3522 | int res1 = 0 ; | |
3523 | bool temp2 = false ; | |
3524 | PyObject * obj0 = 0 ; | |
3525 | PyObject * obj1 = 0 ; | |
3526 | char * kwnames[] = { | |
3527 | (char *) "self",(char *) "name", NULL | |
3528 | }; | |
3529 | ||
3530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
3531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3532 | if (!SWIG_IsOK(res1)) { | |
3533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenu" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3534 | } | |
3535 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3536 | { | |
3537 | arg2 = wxString_in_helper(obj1); | |
3538 | if (arg2 == NULL) SWIG_fail; | |
3539 | temp2 = true; | |
3540 | } | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | result = (wxMenu *)(arg1)->LoadMenu((wxString const &)*arg2); | |
3544 | wxPyEndAllowThreads(__tstate); | |
3545 | if (PyErr_Occurred()) SWIG_fail; | |
3546 | } | |
3547 | { | |
3548 | resultobj = wxPyMake_wxObject(result, 0); | |
3549 | } | |
3550 | { | |
3551 | if (temp2) | |
3552 | delete arg2; | |
3553 | } | |
3554 | return resultobj; | |
3555 | fail: | |
3556 | { | |
3557 | if (temp2) | |
3558 | delete arg2; | |
3559 | } | |
3560 | return NULL; | |
3561 | } | |
3562 | ||
3563 | ||
3564 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3565 | PyObject *resultobj = 0; | |
3566 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3567 | wxString *arg2 = 0 ; | |
3568 | wxMenuBar *result = 0 ; | |
3569 | void *argp1 = 0 ; | |
3570 | int res1 = 0 ; | |
3571 | bool temp2 = false ; | |
3572 | PyObject * obj0 = 0 ; | |
3573 | PyObject * obj1 = 0 ; | |
3574 | char * kwnames[] = { | |
3575 | (char *) "self",(char *) "name", NULL | |
3576 | }; | |
3577 | ||
3578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
3579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3580 | if (!SWIG_IsOK(res1)) { | |
3581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBar" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3582 | } | |
3583 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3584 | { | |
3585 | arg2 = wxString_in_helper(obj1); | |
3586 | if (arg2 == NULL) SWIG_fail; | |
3587 | temp2 = true; | |
3588 | } | |
3589 | { | |
3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3591 | result = (wxMenuBar *)(arg1)->LoadMenuBar((wxString const &)*arg2); | |
3592 | wxPyEndAllowThreads(__tstate); | |
3593 | if (PyErr_Occurred()) SWIG_fail; | |
3594 | } | |
3595 | { | |
3596 | resultobj = wxPyMake_wxObject(result, 0); | |
3597 | } | |
3598 | { | |
3599 | if (temp2) | |
3600 | delete arg2; | |
3601 | } | |
3602 | return resultobj; | |
3603 | fail: | |
3604 | { | |
3605 | if (temp2) | |
3606 | delete arg2; | |
3607 | } | |
3608 | return NULL; | |
3609 | } | |
3610 | ||
3611 | ||
3612 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3613 | PyObject *resultobj = 0; | |
3614 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3615 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3616 | wxString *arg3 = 0 ; | |
3617 | wxMenuBar *result = 0 ; | |
3618 | void *argp1 = 0 ; | |
3619 | int res1 = 0 ; | |
3620 | void *argp2 = 0 ; | |
3621 | int res2 = 0 ; | |
3622 | bool temp3 = false ; | |
3623 | PyObject * obj0 = 0 ; | |
3624 | PyObject * obj1 = 0 ; | |
3625 | PyObject * obj2 = 0 ; | |
3626 | char * kwnames[] = { | |
3627 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3628 | }; | |
3629 | ||
3630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3632 | if (!SWIG_IsOK(res1)) { | |
3633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3634 | } | |
3635 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3636 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3637 | if (!SWIG_IsOK(res2)) { | |
3638 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3639 | } | |
3640 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3641 | { | |
3642 | arg3 = wxString_in_helper(obj2); | |
3643 | if (arg3 == NULL) SWIG_fail; | |
3644 | temp3 = true; | |
3645 | } | |
3646 | { | |
3647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3648 | result = (wxMenuBar *)(arg1)->LoadMenuBar(arg2,(wxString const &)*arg3); | |
3649 | wxPyEndAllowThreads(__tstate); | |
3650 | if (PyErr_Occurred()) SWIG_fail; | |
3651 | } | |
3652 | { | |
3653 | resultobj = wxPyMake_wxObject(result, 0); | |
3654 | } | |
3655 | { | |
3656 | if (temp3) | |
3657 | delete arg3; | |
3658 | } | |
3659 | return resultobj; | |
3660 | fail: | |
3661 | { | |
3662 | if (temp3) | |
3663 | delete arg3; | |
3664 | } | |
3665 | return NULL; | |
3666 | } | |
3667 | ||
3668 | ||
3669 | SWIGINTERN PyObject *_wrap_XmlResource_LoadToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3670 | PyObject *resultobj = 0; | |
3671 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3672 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3673 | wxString *arg3 = 0 ; | |
3674 | wxToolBar *result = 0 ; | |
3675 | void *argp1 = 0 ; | |
3676 | int res1 = 0 ; | |
3677 | void *argp2 = 0 ; | |
3678 | int res2 = 0 ; | |
3679 | bool temp3 = false ; | |
3680 | PyObject * obj0 = 0 ; | |
3681 | PyObject * obj1 = 0 ; | |
3682 | PyObject * obj2 = 0 ; | |
3683 | char * kwnames[] = { | |
3684 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3685 | }; | |
3686 | ||
3687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadToolBar",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3689 | if (!SWIG_IsOK(res1)) { | |
3690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadToolBar" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3691 | } | |
3692 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3693 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3694 | if (!SWIG_IsOK(res2)) { | |
3695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadToolBar" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3696 | } | |
3697 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3698 | { | |
3699 | arg3 = wxString_in_helper(obj2); | |
3700 | if (arg3 == NULL) SWIG_fail; | |
3701 | temp3 = true; | |
3702 | } | |
3703 | { | |
3704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3705 | result = (wxToolBar *)(arg1)->LoadToolBar(arg2,(wxString const &)*arg3); | |
3706 | wxPyEndAllowThreads(__tstate); | |
3707 | if (PyErr_Occurred()) SWIG_fail; | |
3708 | } | |
3709 | { | |
3710 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3711 | } | |
3712 | { | |
3713 | if (temp3) | |
3714 | delete arg3; | |
3715 | } | |
3716 | return resultobj; | |
3717 | fail: | |
3718 | { | |
3719 | if (temp3) | |
3720 | delete arg3; | |
3721 | } | |
3722 | return NULL; | |
3723 | } | |
3724 | ||
3725 | ||
3726 | SWIGINTERN PyObject *_wrap_XmlResource_LoadDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3727 | PyObject *resultobj = 0; | |
3728 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3729 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3730 | wxString *arg3 = 0 ; | |
3731 | wxDialog *result = 0 ; | |
3732 | void *argp1 = 0 ; | |
3733 | int res1 = 0 ; | |
3734 | void *argp2 = 0 ; | |
3735 | int res2 = 0 ; | |
3736 | bool temp3 = false ; | |
3737 | PyObject * obj0 = 0 ; | |
3738 | PyObject * obj1 = 0 ; | |
3739 | PyObject * obj2 = 0 ; | |
3740 | char * kwnames[] = { | |
3741 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3742 | }; | |
3743 | ||
3744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadDialog",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3746 | if (!SWIG_IsOK(res1)) { | |
3747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3748 | } | |
3749 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3750 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3751 | if (!SWIG_IsOK(res2)) { | |
3752 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3753 | } | |
3754 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3755 | { | |
3756 | arg3 = wxString_in_helper(obj2); | |
3757 | if (arg3 == NULL) SWIG_fail; | |
3758 | temp3 = true; | |
3759 | } | |
3760 | { | |
3761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3762 | result = (wxDialog *)(arg1)->LoadDialog(arg2,(wxString const &)*arg3); | |
3763 | wxPyEndAllowThreads(__tstate); | |
3764 | if (PyErr_Occurred()) SWIG_fail; | |
3765 | } | |
3766 | { | |
3767 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3768 | } | |
3769 | { | |
3770 | if (temp3) | |
3771 | delete arg3; | |
3772 | } | |
3773 | return resultobj; | |
3774 | fail: | |
3775 | { | |
3776 | if (temp3) | |
3777 | delete arg3; | |
3778 | } | |
3779 | return NULL; | |
3780 | } | |
3781 | ||
3782 | ||
3783 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3784 | PyObject *resultobj = 0; | |
3785 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3786 | wxDialog *arg2 = (wxDialog *) 0 ; | |
3787 | wxWindow *arg3 = (wxWindow *) 0 ; | |
3788 | wxString *arg4 = 0 ; | |
3789 | bool result; | |
3790 | void *argp1 = 0 ; | |
3791 | int res1 = 0 ; | |
3792 | void *argp2 = 0 ; | |
3793 | int res2 = 0 ; | |
3794 | void *argp3 = 0 ; | |
3795 | int res3 = 0 ; | |
3796 | bool temp4 = false ; | |
3797 | PyObject * obj0 = 0 ; | |
3798 | PyObject * obj1 = 0 ; | |
3799 | PyObject * obj2 = 0 ; | |
3800 | PyObject * obj3 = 0 ; | |
3801 | char * kwnames[] = { | |
3802 | (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL | |
3803 | }; | |
3804 | ||
3805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3807 | if (!SWIG_IsOK(res1)) { | |
3808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3809 | } | |
3810 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3811 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
3812 | if (!SWIG_IsOK(res2)) { | |
3813 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "2"" of type '" "wxDialog *""'"); | |
3814 | } | |
3815 | arg2 = reinterpret_cast< wxDialog * >(argp2); | |
3816 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3817 | if (!SWIG_IsOK(res3)) { | |
3818 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
3819 | } | |
3820 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
3821 | { | |
3822 | arg4 = wxString_in_helper(obj3); | |
3823 | if (arg4 == NULL) SWIG_fail; | |
3824 | temp4 = true; | |
3825 | } | |
3826 | { | |
3827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3828 | result = (bool)(arg1)->LoadDialog(arg2,arg3,(wxString const &)*arg4); | |
3829 | wxPyEndAllowThreads(__tstate); | |
3830 | if (PyErr_Occurred()) SWIG_fail; | |
3831 | } | |
3832 | { | |
3833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3834 | } | |
3835 | { | |
3836 | if (temp4) | |
3837 | delete arg4; | |
3838 | } | |
3839 | return resultobj; | |
3840 | fail: | |
3841 | { | |
3842 | if (temp4) | |
3843 | delete arg4; | |
3844 | } | |
3845 | return NULL; | |
3846 | } | |
3847 | ||
3848 | ||
3849 | SWIGINTERN PyObject *_wrap_XmlResource_LoadPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3850 | PyObject *resultobj = 0; | |
3851 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3852 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3853 | wxString *arg3 = 0 ; | |
3854 | wxPanel *result = 0 ; | |
3855 | void *argp1 = 0 ; | |
3856 | int res1 = 0 ; | |
3857 | void *argp2 = 0 ; | |
3858 | int res2 = 0 ; | |
3859 | bool temp3 = false ; | |
3860 | PyObject * obj0 = 0 ; | |
3861 | PyObject * obj1 = 0 ; | |
3862 | PyObject * obj2 = 0 ; | |
3863 | char * kwnames[] = { | |
3864 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3865 | }; | |
3866 | ||
3867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadPanel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3869 | if (!SWIG_IsOK(res1)) { | |
3870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3871 | } | |
3872 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3873 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3874 | if (!SWIG_IsOK(res2)) { | |
3875 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadPanel" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3876 | } | |
3877 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3878 | { | |
3879 | arg3 = wxString_in_helper(obj2); | |
3880 | if (arg3 == NULL) SWIG_fail; | |
3881 | temp3 = true; | |
3882 | } | |
3883 | { | |
3884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3885 | result = (wxPanel *)(arg1)->LoadPanel(arg2,(wxString const &)*arg3); | |
3886 | wxPyEndAllowThreads(__tstate); | |
3887 | if (PyErr_Occurred()) SWIG_fail; | |
3888 | } | |
3889 | { | |
3890 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3891 | } | |
3892 | { | |
3893 | if (temp3) | |
3894 | delete arg3; | |
3895 | } | |
3896 | return resultobj; | |
3897 | fail: | |
3898 | { | |
3899 | if (temp3) | |
3900 | delete arg3; | |
3901 | } | |
3902 | return NULL; | |
3903 | } | |
3904 | ||
3905 | ||
3906 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3907 | PyObject *resultobj = 0; | |
3908 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3909 | wxPanel *arg2 = (wxPanel *) 0 ; | |
3910 | wxWindow *arg3 = (wxWindow *) 0 ; | |
3911 | wxString *arg4 = 0 ; | |
3912 | bool result; | |
3913 | void *argp1 = 0 ; | |
3914 | int res1 = 0 ; | |
3915 | void *argp2 = 0 ; | |
3916 | int res2 = 0 ; | |
3917 | void *argp3 = 0 ; | |
3918 | int res3 = 0 ; | |
3919 | bool temp4 = false ; | |
3920 | PyObject * obj0 = 0 ; | |
3921 | PyObject * obj1 = 0 ; | |
3922 | PyObject * obj2 = 0 ; | |
3923 | PyObject * obj3 = 0 ; | |
3924 | char * kwnames[] = { | |
3925 | (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL | |
3926 | }; | |
3927 | ||
3928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3930 | if (!SWIG_IsOK(res1)) { | |
3931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3932 | } | |
3933 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3934 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3935 | if (!SWIG_IsOK(res2)) { | |
3936 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "2"" of type '" "wxPanel *""'"); | |
3937 | } | |
3938 | arg2 = reinterpret_cast< wxPanel * >(argp2); | |
3939 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3940 | if (!SWIG_IsOK(res3)) { | |
3941 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
3942 | } | |
3943 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
3944 | { | |
3945 | arg4 = wxString_in_helper(obj3); | |
3946 | if (arg4 == NULL) SWIG_fail; | |
3947 | temp4 = true; | |
3948 | } | |
3949 | { | |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | result = (bool)(arg1)->LoadPanel(arg2,arg3,(wxString const &)*arg4); | |
3952 | wxPyEndAllowThreads(__tstate); | |
3953 | if (PyErr_Occurred()) SWIG_fail; | |
3954 | } | |
3955 | { | |
3956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3957 | } | |
3958 | { | |
3959 | if (temp4) | |
3960 | delete arg4; | |
3961 | } | |
3962 | return resultobj; | |
3963 | fail: | |
3964 | { | |
3965 | if (temp4) | |
3966 | delete arg4; | |
3967 | } | |
3968 | return NULL; | |
3969 | } | |
3970 | ||
3971 | ||
3972 | SWIGINTERN PyObject *_wrap_XmlResource_LoadFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3973 | PyObject *resultobj = 0; | |
3974 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3975 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3976 | wxString *arg3 = 0 ; | |
3977 | wxFrame *result = 0 ; | |
3978 | void *argp1 = 0 ; | |
3979 | int res1 = 0 ; | |
3980 | void *argp2 = 0 ; | |
3981 | int res2 = 0 ; | |
3982 | bool temp3 = false ; | |
3983 | PyObject * obj0 = 0 ; | |
3984 | PyObject * obj1 = 0 ; | |
3985 | PyObject * obj2 = 0 ; | |
3986 | char * kwnames[] = { | |
3987 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3988 | }; | |
3989 | ||
3990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3992 | if (!SWIG_IsOK(res1)) { | |
3993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3994 | } | |
3995 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3996 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3997 | if (!SWIG_IsOK(res2)) { | |
3998 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadFrame" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3999 | } | |
4000 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4001 | { | |
4002 | arg3 = wxString_in_helper(obj2); | |
4003 | if (arg3 == NULL) SWIG_fail; | |
4004 | temp3 = true; | |
4005 | } | |
4006 | { | |
4007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4008 | result = (wxFrame *)(arg1)->LoadFrame(arg2,(wxString const &)*arg3); | |
4009 | wxPyEndAllowThreads(__tstate); | |
4010 | if (PyErr_Occurred()) SWIG_fail; | |
4011 | } | |
4012 | { | |
4013 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
4014 | } | |
4015 | { | |
4016 | if (temp3) | |
4017 | delete arg3; | |
4018 | } | |
4019 | return resultobj; | |
4020 | fail: | |
4021 | { | |
4022 | if (temp3) | |
4023 | delete arg3; | |
4024 | } | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
4029 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj = 0; | |
4031 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4032 | wxFrame *arg2 = (wxFrame *) 0 ; | |
4033 | wxWindow *arg3 = (wxWindow *) 0 ; | |
4034 | wxString *arg4 = 0 ; | |
4035 | bool result; | |
4036 | void *argp1 = 0 ; | |
4037 | int res1 = 0 ; | |
4038 | void *argp2 = 0 ; | |
4039 | int res2 = 0 ; | |
4040 | void *argp3 = 0 ; | |
4041 | int res3 = 0 ; | |
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 *) "frame",(char *) "parent",(char *) "name", NULL | |
4049 | }; | |
4050 | ||
4051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnFrame",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_LoadOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4055 | } | |
4056 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4057 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
4058 | if (!SWIG_IsOK(res2)) { | |
4059 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
4060 | } | |
4061 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
4062 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4063 | if (!SWIG_IsOK(res3)) { | |
4064 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4065 | } | |
4066 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4067 | { | |
4068 | arg4 = wxString_in_helper(obj3); | |
4069 | if (arg4 == NULL) SWIG_fail; | |
4070 | temp4 = true; | |
4071 | } | |
4072 | { | |
4073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4074 | result = (bool)(arg1)->LoadFrame(arg2,arg3,(wxString const &)*arg4); | |
4075 | wxPyEndAllowThreads(__tstate); | |
4076 | if (PyErr_Occurred()) SWIG_fail; | |
4077 | } | |
4078 | { | |
4079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4080 | } | |
4081 | { | |
4082 | if (temp4) | |
4083 | delete arg4; | |
4084 | } | |
4085 | return resultobj; | |
4086 | fail: | |
4087 | { | |
4088 | if (temp4) | |
4089 | delete arg4; | |
4090 | } | |
4091 | return NULL; | |
4092 | } | |
4093 | ||
4094 | ||
4095 | SWIGINTERN PyObject *_wrap_XmlResource_LoadObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4096 | PyObject *resultobj = 0; | |
4097 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4098 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4099 | wxString *arg3 = 0 ; | |
4100 | wxString *arg4 = 0 ; | |
4101 | wxObject *result = 0 ; | |
4102 | void *argp1 = 0 ; | |
4103 | int res1 = 0 ; | |
4104 | void *argp2 = 0 ; | |
4105 | int res2 = 0 ; | |
4106 | bool temp3 = false ; | |
4107 | bool temp4 = false ; | |
4108 | PyObject * obj0 = 0 ; | |
4109 | PyObject * obj1 = 0 ; | |
4110 | PyObject * obj2 = 0 ; | |
4111 | PyObject * obj3 = 0 ; | |
4112 | char * kwnames[] = { | |
4113 | (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
4114 | }; | |
4115 | ||
4116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadObject",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4118 | if (!SWIG_IsOK(res1)) { | |
4119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadObject" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4120 | } | |
4121 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4122 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4123 | if (!SWIG_IsOK(res2)) { | |
4124 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadObject" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4125 | } | |
4126 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4127 | { | |
4128 | arg3 = wxString_in_helper(obj2); | |
4129 | if (arg3 == NULL) SWIG_fail; | |
4130 | temp3 = true; | |
4131 | } | |
4132 | { | |
4133 | arg4 = wxString_in_helper(obj3); | |
4134 | if (arg4 == NULL) SWIG_fail; | |
4135 | temp4 = true; | |
4136 | } | |
4137 | { | |
4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4139 | result = (wxObject *)(arg1)->LoadObject(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
4140 | wxPyEndAllowThreads(__tstate); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | } | |
4143 | { | |
4144 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
4145 | } | |
4146 | { | |
4147 | if (temp3) | |
4148 | delete arg3; | |
4149 | } | |
4150 | { | |
4151 | if (temp4) | |
4152 | delete arg4; | |
4153 | } | |
4154 | return resultobj; | |
4155 | fail: | |
4156 | { | |
4157 | if (temp3) | |
4158 | delete arg3; | |
4159 | } | |
4160 | { | |
4161 | if (temp4) | |
4162 | delete arg4; | |
4163 | } | |
4164 | return NULL; | |
4165 | } | |
4166 | ||
4167 | ||
4168 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4169 | PyObject *resultobj = 0; | |
4170 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4171 | wxObject *arg2 = (wxObject *) 0 ; | |
4172 | wxWindow *arg3 = (wxWindow *) 0 ; | |
4173 | wxString *arg4 = 0 ; | |
4174 | wxString *arg5 = 0 ; | |
4175 | bool result; | |
4176 | void *argp1 = 0 ; | |
4177 | int res1 = 0 ; | |
4178 | void *argp2 = 0 ; | |
4179 | int res2 = 0 ; | |
4180 | void *argp3 = 0 ; | |
4181 | int res3 = 0 ; | |
4182 | bool temp4 = false ; | |
4183 | bool temp5 = false ; | |
4184 | PyObject * obj0 = 0 ; | |
4185 | PyObject * obj1 = 0 ; | |
4186 | PyObject * obj2 = 0 ; | |
4187 | PyObject * obj3 = 0 ; | |
4188 | PyObject * obj4 = 0 ; | |
4189 | char * kwnames[] = { | |
4190 | (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
4191 | }; | |
4192 | ||
4193 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
4194 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4195 | if (!SWIG_IsOK(res1)) { | |
4196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnObject" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4197 | } | |
4198 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4199 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
4200 | if (!SWIG_IsOK(res2)) { | |
4201 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnObject" "', expected argument " "2"" of type '" "wxObject *""'"); | |
4202 | } | |
4203 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
4204 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4205 | if (!SWIG_IsOK(res3)) { | |
4206 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnObject" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4207 | } | |
4208 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4209 | { | |
4210 | arg4 = wxString_in_helper(obj3); | |
4211 | if (arg4 == NULL) SWIG_fail; | |
4212 | temp4 = true; | |
4213 | } | |
4214 | { | |
4215 | arg5 = wxString_in_helper(obj4); | |
4216 | if (arg5 == NULL) SWIG_fail; | |
4217 | temp5 = true; | |
4218 | } | |
4219 | { | |
4220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4221 | result = (bool)(arg1)->LoadObject(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | { | |
4226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4227 | } | |
4228 | { | |
4229 | if (temp4) | |
4230 | delete arg4; | |
4231 | } | |
4232 | { | |
4233 | if (temp5) | |
4234 | delete arg5; | |
4235 | } | |
4236 | return resultobj; | |
4237 | fail: | |
4238 | { | |
4239 | if (temp4) | |
4240 | delete arg4; | |
4241 | } | |
4242 | { | |
4243 | if (temp5) | |
4244 | delete arg5; | |
4245 | } | |
4246 | return NULL; | |
4247 | } | |
4248 | ||
4249 | ||
4250 | SWIGINTERN PyObject *_wrap_XmlResource_LoadBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4251 | PyObject *resultobj = 0; | |
4252 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4253 | wxString *arg2 = 0 ; | |
4254 | wxBitmap result; | |
4255 | void *argp1 = 0 ; | |
4256 | int res1 = 0 ; | |
4257 | bool temp2 = false ; | |
4258 | PyObject * obj0 = 0 ; | |
4259 | PyObject * obj1 = 0 ; | |
4260 | char * kwnames[] = { | |
4261 | (char *) "self",(char *) "name", NULL | |
4262 | }; | |
4263 | ||
4264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
4265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4266 | if (!SWIG_IsOK(res1)) { | |
4267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadBitmap" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4268 | } | |
4269 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4270 | { | |
4271 | arg2 = wxString_in_helper(obj1); | |
4272 | if (arg2 == NULL) SWIG_fail; | |
4273 | temp2 = true; | |
4274 | } | |
4275 | { | |
4276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4277 | result = (arg1)->LoadBitmap((wxString const &)*arg2); | |
4278 | wxPyEndAllowThreads(__tstate); | |
4279 | if (PyErr_Occurred()) SWIG_fail; | |
4280 | } | |
4281 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4282 | { | |
4283 | if (temp2) | |
4284 | delete arg2; | |
4285 | } | |
4286 | return resultobj; | |
4287 | fail: | |
4288 | { | |
4289 | if (temp2) | |
4290 | delete arg2; | |
4291 | } | |
4292 | return NULL; | |
4293 | } | |
4294 | ||
4295 | ||
4296 | SWIGINTERN PyObject *_wrap_XmlResource_LoadIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4297 | PyObject *resultobj = 0; | |
4298 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4299 | wxString *arg2 = 0 ; | |
4300 | wxIcon result; | |
4301 | void *argp1 = 0 ; | |
4302 | int res1 = 0 ; | |
4303 | bool temp2 = false ; | |
4304 | PyObject * obj0 = 0 ; | |
4305 | PyObject * obj1 = 0 ; | |
4306 | char * kwnames[] = { | |
4307 | (char *) "self",(char *) "name", NULL | |
4308 | }; | |
4309 | ||
4310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
4311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4312 | if (!SWIG_IsOK(res1)) { | |
4313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadIcon" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4314 | } | |
4315 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4316 | { | |
4317 | arg2 = wxString_in_helper(obj1); | |
4318 | if (arg2 == NULL) SWIG_fail; | |
4319 | temp2 = true; | |
4320 | } | |
4321 | { | |
4322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4323 | result = (arg1)->LoadIcon((wxString const &)*arg2); | |
4324 | wxPyEndAllowThreads(__tstate); | |
4325 | if (PyErr_Occurred()) SWIG_fail; | |
4326 | } | |
4327 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
4328 | { | |
4329 | if (temp2) | |
4330 | delete arg2; | |
4331 | } | |
4332 | return resultobj; | |
4333 | fail: | |
4334 | { | |
4335 | if (temp2) | |
4336 | delete arg2; | |
4337 | } | |
4338 | return NULL; | |
4339 | } | |
4340 | ||
4341 | ||
4342 | SWIGINTERN PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4343 | PyObject *resultobj = 0; | |
4344 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4345 | wxString *arg2 = 0 ; | |
4346 | wxWindow *arg3 = (wxWindow *) 0 ; | |
4347 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4348 | bool result; | |
4349 | void *argp1 = 0 ; | |
4350 | int res1 = 0 ; | |
4351 | bool temp2 = false ; | |
4352 | void *argp3 = 0 ; | |
4353 | int res3 = 0 ; | |
4354 | void *argp4 = 0 ; | |
4355 | int res4 = 0 ; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | PyObject * obj1 = 0 ; | |
4358 | PyObject * obj2 = 0 ; | |
4359 | PyObject * obj3 = 0 ; | |
4360 | char * kwnames[] = { | |
4361 | (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL | |
4362 | }; | |
4363 | ||
4364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4366 | if (!SWIG_IsOK(res1)) { | |
4367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4368 | } | |
4369 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4370 | { | |
4371 | arg2 = wxString_in_helper(obj1); | |
4372 | if (arg2 == NULL) SWIG_fail; | |
4373 | temp2 = true; | |
4374 | } | |
4375 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4376 | if (!SWIG_IsOK(res3)) { | |
4377 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4378 | } | |
4379 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4380 | if (obj3) { | |
4381 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4382 | if (!SWIG_IsOK(res4)) { | |
4383 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
2ef75293 | 4384 | } |
0085ce49 RD |
4385 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
4386 | } | |
4387 | { | |
4388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4389 | result = (bool)(arg1)->AttachUnknownControl((wxString const &)*arg2,arg3,arg4); | |
4390 | wxPyEndAllowThreads(__tstate); | |
4391 | if (PyErr_Occurred()) SWIG_fail; | |
4392 | } | |
4393 | { | |
4394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4395 | } | |
4396 | { | |
4397 | if (temp2) | |
4398 | delete arg2; | |
4399 | } | |
4400 | return resultobj; | |
4401 | fail: | |
4402 | { | |
4403 | if (temp2) | |
4404 | delete arg2; | |
4405 | } | |
4406 | return NULL; | |
2ef75293 RD |
4407 | } |
4408 | ||
4409 | ||
0085ce49 RD |
4410 | SWIGINTERN PyObject *_wrap_XmlResource_GetXRCID(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4411 | PyObject *resultobj = 0; | |
2131d850 | 4412 | wxString *arg1 = 0 ; |
01f6b6d3 | 4413 | int arg2 = (int) wxID_NONE ; |
0085ce49 | 4414 | int result; |
2131d850 | 4415 | bool temp1 = false ; |
01f6b6d3 RD |
4416 | int val2 ; |
4417 | int ecode2 = 0 ; | |
0085ce49 | 4418 | PyObject * obj0 = 0 ; |
01f6b6d3 | 4419 | PyObject * obj1 = 0 ; |
0085ce49 | 4420 | char * kwnames[] = { |
01f6b6d3 | 4421 | (char *) "str_id",(char *) "value_if_not_found", NULL |
0085ce49 RD |
4422 | }; |
4423 | ||
01f6b6d3 | 4424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResource_GetXRCID",kwnames,&obj0,&obj1)) SWIG_fail; |
2131d850 RD |
4425 | { |
4426 | arg1 = wxString_in_helper(obj0); | |
4427 | if (arg1 == NULL) SWIG_fail; | |
4428 | temp1 = true; | |
01f6b6d3 | 4429 | } |
01f6b6d3 RD |
4430 | if (obj1) { |
4431 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4432 | if (!SWIG_IsOK(ecode2)) { | |
4433 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_GetXRCID" "', expected argument " "2"" of type '" "int""'"); | |
4434 | } | |
4435 | arg2 = static_cast< int >(val2); | |
0085ce49 RD |
4436 | } |
4437 | { | |
4438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131d850 | 4439 | result = (int)wxXmlResource::GetXRCID((wxString const &)*arg1,arg2); |
0085ce49 RD |
4440 | wxPyEndAllowThreads(__tstate); |
4441 | if (PyErr_Occurred()) SWIG_fail; | |
4442 | } | |
4443 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
2131d850 RD |
4444 | { |
4445 | if (temp1) | |
4446 | delete arg1; | |
4447 | } | |
0085ce49 RD |
4448 | return resultobj; |
4449 | fail: | |
2131d850 RD |
4450 | { |
4451 | if (temp1) | |
4452 | delete arg1; | |
4453 | } | |
0085ce49 | 4454 | return NULL; |
2ef75293 RD |
4455 | } |
4456 | ||
4457 | ||
0085ce49 RD |
4458 | SWIGINTERN PyObject *_wrap_XmlResource_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4459 | PyObject *resultobj = 0; | |
4460 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4461 | long result; | |
4462 | void *argp1 = 0 ; | |
4463 | int res1 = 0 ; | |
4464 | PyObject *swig_obj[1] ; | |
4465 | ||
4466 | if (!args) SWIG_fail; | |
4467 | swig_obj[0] = args; | |
4468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4469 | if (!SWIG_IsOK(res1)) { | |
4470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'"); | |
4471 | } | |
4472 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4473 | { | |
4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4475 | result = (long)((wxXmlResource const *)arg1)->GetVersion(); | |
4476 | wxPyEndAllowThreads(__tstate); | |
4477 | if (PyErr_Occurred()) SWIG_fail; | |
4478 | } | |
4479 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4480 | return resultobj; | |
4481 | fail: | |
4482 | return NULL; | |
4483 | } | |
4484 | ||
4485 | ||
4486 | SWIGINTERN PyObject *_wrap_XmlResource_CompareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4487 | PyObject *resultobj = 0; | |
4488 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4489 | int arg2 ; | |
4490 | int arg3 ; | |
4491 | int arg4 ; | |
4492 | int arg5 ; | |
4493 | int result; | |
4494 | void *argp1 = 0 ; | |
4495 | int res1 = 0 ; | |
4496 | int val2 ; | |
4497 | int ecode2 = 0 ; | |
4498 | int val3 ; | |
4499 | int ecode3 = 0 ; | |
4500 | int val4 ; | |
4501 | int ecode4 = 0 ; | |
4502 | int val5 ; | |
4503 | int ecode5 = 0 ; | |
4504 | PyObject * obj0 = 0 ; | |
4505 | PyObject * obj1 = 0 ; | |
4506 | PyObject * obj2 = 0 ; | |
4507 | PyObject * obj3 = 0 ; | |
4508 | PyObject * obj4 = 0 ; | |
4509 | char * kwnames[] = { | |
4510 | (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL | |
4511 | }; | |
4512 | ||
4513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_CompareVersion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
4514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4515 | if (!SWIG_IsOK(res1)) { | |
4516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_CompareVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'"); | |
4517 | } | |
4518 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4519 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4520 | if (!SWIG_IsOK(ecode2)) { | |
4521 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_CompareVersion" "', expected argument " "2"" of type '" "int""'"); | |
4522 | } | |
4523 | arg2 = static_cast< int >(val2); | |
4524 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4525 | if (!SWIG_IsOK(ecode3)) { | |
4526 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResource_CompareVersion" "', expected argument " "3"" of type '" "int""'"); | |
4527 | } | |
4528 | arg3 = static_cast< int >(val3); | |
4529 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4530 | if (!SWIG_IsOK(ecode4)) { | |
4531 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlResource_CompareVersion" "', expected argument " "4"" of type '" "int""'"); | |
4532 | } | |
4533 | arg4 = static_cast< int >(val4); | |
4534 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4535 | if (!SWIG_IsOK(ecode5)) { | |
4536 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "XmlResource_CompareVersion" "', expected argument " "5"" of type '" "int""'"); | |
4537 | } | |
4538 | arg5 = static_cast< int >(val5); | |
4539 | { | |
4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4541 | result = (int)((wxXmlResource const *)arg1)->CompareVersion(arg2,arg3,arg4,arg5); | |
4542 | wxPyEndAllowThreads(__tstate); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
4545 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4546 | return resultobj; | |
4547 | fail: | |
4548 | return NULL; | |
2ef75293 RD |
4549 | } |
4550 | ||
4551 | ||
0085ce49 RD |
4552 | SWIGINTERN PyObject *_wrap_XmlResource_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4553 | PyObject *resultobj = 0; | |
4554 | wxXmlResource *result = 0 ; | |
4555 | ||
4556 | if (!SWIG_Python_UnpackTuple(args,"XmlResource_Get",0,0,0)) SWIG_fail; | |
4557 | { | |
4558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4559 | result = (wxXmlResource *)wxXmlResource::Get(); | |
4560 | wxPyEndAllowThreads(__tstate); | |
4561 | if (PyErr_Occurred()) SWIG_fail; | |
4562 | } | |
4563 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4564 | return resultobj; | |
4565 | fail: | |
4566 | return NULL; | |
4567 | } | |
4568 | ||
4569 | ||
4570 | SWIGINTERN PyObject *_wrap_XmlResource_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4571 | PyObject *resultobj = 0; | |
4572 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4573 | wxXmlResource *result = 0 ; | |
4574 | void *argp1 = 0 ; | |
4575 | int res1 = 0 ; | |
4576 | PyObject * obj0 = 0 ; | |
4577 | char * kwnames[] = { | |
4578 | (char *) "res", NULL | |
4579 | }; | |
4580 | ||
4581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_Set",kwnames,&obj0)) SWIG_fail; | |
4582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4583 | if (!SWIG_IsOK(res1)) { | |
4584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Set" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4585 | } | |
4586 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4587 | { | |
4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4589 | result = (wxXmlResource *)wxXmlResource::Set(arg1); | |
4590 | wxPyEndAllowThreads(__tstate); | |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
4592 | } | |
4593 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4594 | return resultobj; | |
4595 | fail: | |
4596 | return NULL; | |
2ef75293 RD |
4597 | } |
4598 | ||
4599 | ||
0085ce49 RD |
4600 | SWIGINTERN PyObject *_wrap_XmlResource_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4601 | PyObject *resultobj = 0; | |
4602 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4603 | int result; | |
4604 | void *argp1 = 0 ; | |
4605 | int res1 = 0 ; | |
4606 | PyObject *swig_obj[1] ; | |
4607 | ||
4608 | if (!args) SWIG_fail; | |
4609 | swig_obj[0] = args; | |
4610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4611 | if (!SWIG_IsOK(res1)) { | |
4612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4613 | } | |
4614 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4615 | { | |
4616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4617 | result = (int)(arg1)->GetFlags(); | |
4618 | wxPyEndAllowThreads(__tstate); | |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
4620 | } | |
4621 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4622 | return resultobj; | |
4623 | fail: | |
4624 | return NULL; | |
4625 | } | |
4626 | ||
4627 | ||
4628 | SWIGINTERN PyObject *_wrap_XmlResource_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4629 | PyObject *resultobj = 0; | |
4630 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4631 | int arg2 ; | |
4632 | void *argp1 = 0 ; | |
4633 | int res1 = 0 ; | |
4634 | int val2 ; | |
4635 | int ecode2 = 0 ; | |
4636 | PyObject * obj0 = 0 ; | |
4637 | PyObject * obj1 = 0 ; | |
4638 | char * kwnames[] = { | |
4639 | (char *) "self",(char *) "flags", NULL | |
4640 | }; | |
4641 | ||
4642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
4643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4644 | if (!SWIG_IsOK(res1)) { | |
4645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4646 | } | |
4647 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4649 | if (!SWIG_IsOK(ecode2)) { | |
4650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
4651 | } | |
4652 | arg2 = static_cast< int >(val2); | |
4653 | { | |
4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4655 | (arg1)->SetFlags(arg2); | |
4656 | wxPyEndAllowThreads(__tstate); | |
4657 | if (PyErr_Occurred()) SWIG_fail; | |
4658 | } | |
4659 | resultobj = SWIG_Py_Void(); | |
4660 | return resultobj; | |
4661 | fail: | |
4662 | return NULL; | |
2ef75293 RD |
4663 | } |
4664 | ||
4665 | ||
fc46b7f3 RD |
4666 | SWIGINTERN PyObject *_wrap_XmlResource_GetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4667 | PyObject *resultobj = 0; | |
4668 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4669 | wxString result; | |
4670 | void *argp1 = 0 ; | |
4671 | int res1 = 0 ; | |
4672 | PyObject *swig_obj[1] ; | |
4673 | ||
4674 | if (!args) SWIG_fail; | |
4675 | swig_obj[0] = args; | |
4676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4677 | if (!SWIG_IsOK(res1)) { | |
4678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetDomain" "', expected argument " "1"" of type '" "wxXmlResource const *""'"); | |
4679 | } | |
4680 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4681 | { | |
4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4683 | result = ((wxXmlResource const *)arg1)->GetDomain(); | |
4684 | wxPyEndAllowThreads(__tstate); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
4687 | { | |
4688 | #if wxUSE_UNICODE | |
4689 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4690 | #else | |
4691 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4692 | #endif | |
4693 | } | |
4694 | return resultobj; | |
4695 | fail: | |
4696 | return NULL; | |
4697 | } | |
4698 | ||
4699 | ||
4700 | SWIGINTERN PyObject *_wrap_XmlResource_SetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4701 | PyObject *resultobj = 0; | |
4702 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4703 | wxString *arg2 = 0 ; | |
4704 | void *argp1 = 0 ; | |
4705 | int res1 = 0 ; | |
4706 | bool temp2 = false ; | |
4707 | PyObject * obj0 = 0 ; | |
4708 | PyObject * obj1 = 0 ; | |
4709 | char * kwnames[] = { | |
4710 | (char *) "self",(char *) "domain", NULL | |
4711 | }; | |
4712 | ||
4713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetDomain",kwnames,&obj0,&obj1)) SWIG_fail; | |
4714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4715 | if (!SWIG_IsOK(res1)) { | |
4716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetDomain" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4717 | } | |
4718 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4719 | { | |
4720 | arg2 = wxString_in_helper(obj1); | |
4721 | if (arg2 == NULL) SWIG_fail; | |
4722 | temp2 = true; | |
4723 | } | |
4724 | { | |
4725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4726 | (arg1)->SetDomain((wxString const &)*arg2); | |
4727 | wxPyEndAllowThreads(__tstate); | |
4728 | if (PyErr_Occurred()) SWIG_fail; | |
4729 | } | |
4730 | resultobj = SWIG_Py_Void(); | |
4731 | { | |
4732 | if (temp2) | |
4733 | delete arg2; | |
4734 | } | |
4735 | return resultobj; | |
4736 | fail: | |
4737 | { | |
4738 | if (temp2) | |
4739 | delete arg2; | |
4740 | } | |
4741 | return NULL; | |
4742 | } | |
4743 | ||
4744 | ||
0085ce49 RD |
4745 | SWIGINTERN PyObject *XmlResource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4746 | PyObject *obj; | |
4747 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4748 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlResource, SWIG_NewClientData(obj)); | |
4749 | return SWIG_Py_Void(); | |
2ef75293 RD |
4750 | } |
4751 | ||
0085ce49 RD |
4752 | SWIGINTERN PyObject *XmlResource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4753 | return SWIG_Python_InitShadowInstance(args); | |
2ef75293 RD |
4754 | } |
4755 | ||
0085ce49 RD |
4756 | SWIGINTERN PyObject *_wrap_new_XmlSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4757 | PyObject *resultobj = 0; | |
4758 | wxPyXmlSubclassFactory *result = 0 ; | |
4759 | ||
4760 | if (!SWIG_Python_UnpackTuple(args,"new_XmlSubclassFactory",0,0,0)) SWIG_fail; | |
4761 | { | |
4762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4763 | result = (wxPyXmlSubclassFactory *)new wxPyXmlSubclassFactory(); | |
4764 | wxPyEndAllowThreads(__tstate); | |
4765 | if (PyErr_Occurred()) SWIG_fail; | |
4766 | } | |
4767 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_POINTER_NEW | 0 ); | |
4768 | return resultobj; | |
4769 | fail: | |
4770 | return NULL; | |
4771 | } | |
4772 | ||
4773 | ||
4774 | SWIGINTERN PyObject *_wrap_XmlSubclassFactory__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4775 | PyObject *resultobj = 0; | |
4776 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
4777 | PyObject *arg2 = (PyObject *) 0 ; | |
4778 | PyObject *arg3 = (PyObject *) 0 ; | |
4779 | void *argp1 = 0 ; | |
4780 | int res1 = 0 ; | |
4781 | PyObject * obj0 = 0 ; | |
4782 | PyObject * obj1 = 0 ; | |
4783 | PyObject * obj2 = 0 ; | |
4784 | char * kwnames[] = { | |
4785 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
4786 | }; | |
4787 | ||
4788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 ); | |
4790 | if (!SWIG_IsOK(res1)) { | |
4791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlSubclassFactory__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'"); | |
4792 | } | |
4793 | arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1); | |
4794 | arg2 = obj1; | |
4795 | arg3 = obj2; | |
4796 | { | |
4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4798 | (arg1)->_setCallbackInfo(arg2,arg3); | |
4799 | wxPyEndAllowThreads(__tstate); | |
4800 | if (PyErr_Occurred()) SWIG_fail; | |
4801 | } | |
4802 | resultobj = SWIG_Py_Void(); | |
4803 | return resultobj; | |
4804 | fail: | |
4805 | return NULL; | |
4806 | } | |
4807 | ||
4808 | ||
4809 | SWIGINTERN PyObject *XmlSubclassFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4810 | PyObject *obj; | |
4811 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4812 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_NewClientData(obj)); | |
4813 | return SWIG_Py_Void(); | |
4814 | } | |
4815 | ||
4816 | SWIGINTERN PyObject *XmlSubclassFactory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4817 | return SWIG_Python_InitShadowInstance(args); | |
4818 | } | |
4819 | ||
4820 | SWIGINTERN PyObject *_wrap_new_XmlProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4821 | PyObject *resultobj = 0; | |
4822 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
4823 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4824 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4825 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4826 | wxXmlProperty *arg3 = (wxXmlProperty *) NULL ; | |
4827 | wxXmlProperty *result = 0 ; | |
4828 | bool temp1 = false ; | |
4829 | bool temp2 = false ; | |
4830 | void *argp3 = 0 ; | |
4831 | int res3 = 0 ; | |
4832 | PyObject * obj0 = 0 ; | |
4833 | PyObject * obj1 = 0 ; | |
4834 | PyObject * obj2 = 0 ; | |
4835 | char * kwnames[] = { | |
4836 | (char *) "name",(char *) "value",(char *) "next", NULL | |
4837 | }; | |
4838 | ||
4839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_XmlProperty",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4840 | if (obj0) { | |
2ef75293 | 4841 | { |
0085ce49 RD |
4842 | arg1 = wxString_in_helper(obj0); |
4843 | if (arg1 == NULL) SWIG_fail; | |
4844 | temp1 = true; | |
2ef75293 | 4845 | } |
0085ce49 RD |
4846 | } |
4847 | if (obj1) { | |
2ef75293 | 4848 | { |
0085ce49 RD |
4849 | arg2 = wxString_in_helper(obj1); |
4850 | if (arg2 == NULL) SWIG_fail; | |
4851 | temp2 = true; | |
2ef75293 | 4852 | } |
0085ce49 RD |
4853 | } |
4854 | if (obj2) { | |
4855 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4856 | if (!SWIG_IsOK(res3)) { | |
4857 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_XmlProperty" "', expected argument " "3"" of type '" "wxXmlProperty *""'"); | |
2ef75293 | 4858 | } |
0085ce49 RD |
4859 | arg3 = reinterpret_cast< wxXmlProperty * >(argp3); |
4860 | } | |
4861 | { | |
4862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4863 | result = (wxXmlProperty *)new wxXmlProperty((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
4864 | wxPyEndAllowThreads(__tstate); | |
4865 | if (PyErr_Occurred()) SWIG_fail; | |
4866 | } | |
4867 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_NEW | 0 ); | |
4868 | { | |
4869 | if (temp1) | |
4870 | delete arg1; | |
4871 | } | |
4872 | { | |
4873 | if (temp2) | |
4874 | delete arg2; | |
4875 | } | |
4876 | return resultobj; | |
4877 | fail: | |
4878 | { | |
4879 | if (temp1) | |
4880 | delete arg1; | |
4881 | } | |
4882 | { | |
4883 | if (temp2) | |
4884 | delete arg2; | |
4885 | } | |
4886 | return NULL; | |
2ef75293 RD |
4887 | } |
4888 | ||
4889 | ||
0085ce49 RD |
4890 | SWIGINTERN PyObject *_wrap_XmlProperty_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4891 | PyObject *resultobj = 0; | |
4892 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4893 | wxString result; | |
4894 | void *argp1 = 0 ; | |
4895 | int res1 = 0 ; | |
4896 | PyObject *swig_obj[1] ; | |
4897 | ||
4898 | if (!args) SWIG_fail; | |
4899 | swig_obj[0] = args; | |
4900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4901 | if (!SWIG_IsOK(res1)) { | |
4902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetName" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4903 | } | |
4904 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4905 | { | |
4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4907 | result = ((wxXmlProperty const *)arg1)->GetName(); | |
4908 | wxPyEndAllowThreads(__tstate); | |
4909 | if (PyErr_Occurred()) SWIG_fail; | |
4910 | } | |
4911 | { | |
4912 | #if wxUSE_UNICODE | |
4913 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4914 | #else | |
4915 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4916 | #endif | |
4917 | } | |
4918 | return resultobj; | |
4919 | fail: | |
4920 | return NULL; | |
2ef75293 RD |
4921 | } |
4922 | ||
4923 | ||
0085ce49 RD |
4924 | SWIGINTERN PyObject *_wrap_XmlProperty_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4925 | PyObject *resultobj = 0; | |
4926 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4927 | wxString result; | |
4928 | void *argp1 = 0 ; | |
4929 | int res1 = 0 ; | |
4930 | PyObject *swig_obj[1] ; | |
4931 | ||
4932 | if (!args) SWIG_fail; | |
4933 | swig_obj[0] = args; | |
4934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4935 | if (!SWIG_IsOK(res1)) { | |
4936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetValue" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4937 | } | |
4938 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4939 | { | |
4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4941 | result = ((wxXmlProperty const *)arg1)->GetValue(); | |
4942 | wxPyEndAllowThreads(__tstate); | |
4943 | if (PyErr_Occurred()) SWIG_fail; | |
4944 | } | |
4945 | { | |
4946 | #if wxUSE_UNICODE | |
4947 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4948 | #else | |
4949 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4950 | #endif | |
4951 | } | |
4952 | return resultobj; | |
4953 | fail: | |
4954 | return NULL; | |
2ef75293 RD |
4955 | } |
4956 | ||
4957 | ||
0085ce49 RD |
4958 | SWIGINTERN PyObject *_wrap_XmlProperty_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4959 | PyObject *resultobj = 0; | |
4960 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4961 | wxXmlProperty *result = 0 ; | |
4962 | void *argp1 = 0 ; | |
4963 | int res1 = 0 ; | |
4964 | PyObject *swig_obj[1] ; | |
4965 | ||
4966 | if (!args) SWIG_fail; | |
4967 | swig_obj[0] = args; | |
4968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4969 | if (!SWIG_IsOK(res1)) { | |
4970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetNext" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4971 | } | |
4972 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4973 | { | |
4974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4975 | result = (wxXmlProperty *)((wxXmlProperty const *)arg1)->GetNext(); | |
4976 | wxPyEndAllowThreads(__tstate); | |
4977 | if (PyErr_Occurred()) SWIG_fail; | |
4978 | } | |
4979 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4980 | return resultobj; | |
4981 | fail: | |
4982 | return NULL; | |
4983 | } | |
4984 | ||
4985 | ||
4986 | SWIGINTERN PyObject *_wrap_XmlProperty_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4987 | PyObject *resultobj = 0; | |
4988 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4989 | wxString *arg2 = 0 ; | |
4990 | void *argp1 = 0 ; | |
4991 | int res1 = 0 ; | |
4992 | bool temp2 = false ; | |
4993 | PyObject * obj0 = 0 ; | |
4994 | PyObject * obj1 = 0 ; | |
4995 | char * kwnames[] = { | |
4996 | (char *) "self",(char *) "name", NULL | |
4997 | }; | |
4998 | ||
4999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetName",kwnames,&obj0,&obj1)) SWIG_fail; | |
5000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5001 | if (!SWIG_IsOK(res1)) { | |
5002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetName" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
5003 | } | |
5004 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
5005 | { | |
5006 | arg2 = wxString_in_helper(obj1); | |
5007 | if (arg2 == NULL) SWIG_fail; | |
5008 | temp2 = true; | |
5009 | } | |
5010 | { | |
5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5012 | (arg1)->SetName((wxString const &)*arg2); | |
5013 | wxPyEndAllowThreads(__tstate); | |
5014 | if (PyErr_Occurred()) SWIG_fail; | |
5015 | } | |
5016 | resultobj = SWIG_Py_Void(); | |
5017 | { | |
5018 | if (temp2) | |
5019 | delete arg2; | |
5020 | } | |
5021 | return resultobj; | |
5022 | fail: | |
5023 | { | |
5024 | if (temp2) | |
5025 | delete arg2; | |
5026 | } | |
5027 | return NULL; | |
2ef75293 RD |
5028 | } |
5029 | ||
5030 | ||
0085ce49 RD |
5031 | SWIGINTERN PyObject *_wrap_XmlProperty_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5032 | PyObject *resultobj = 0; | |
5033 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
5034 | wxString *arg2 = 0 ; | |
5035 | void *argp1 = 0 ; | |
5036 | int res1 = 0 ; | |
5037 | bool temp2 = false ; | |
5038 | PyObject * obj0 = 0 ; | |
5039 | PyObject * obj1 = 0 ; | |
5040 | char * kwnames[] = { | |
5041 | (char *) "self",(char *) "value", NULL | |
5042 | }; | |
5043 | ||
5044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
5045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5046 | if (!SWIG_IsOK(res1)) { | |
5047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetValue" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
5048 | } | |
5049 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
5050 | { | |
5051 | arg2 = wxString_in_helper(obj1); | |
5052 | if (arg2 == NULL) SWIG_fail; | |
5053 | temp2 = true; | |
5054 | } | |
5055 | { | |
5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5057 | (arg1)->SetValue((wxString const &)*arg2); | |
5058 | wxPyEndAllowThreads(__tstate); | |
5059 | if (PyErr_Occurred()) SWIG_fail; | |
5060 | } | |
5061 | resultobj = SWIG_Py_Void(); | |
5062 | { | |
5063 | if (temp2) | |
5064 | delete arg2; | |
5065 | } | |
5066 | return resultobj; | |
5067 | fail: | |
5068 | { | |
5069 | if (temp2) | |
5070 | delete arg2; | |
5071 | } | |
5072 | return NULL; | |
5073 | } | |
5074 | ||
5075 | ||
5076 | SWIGINTERN PyObject *_wrap_XmlProperty_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5077 | PyObject *resultobj = 0; | |
5078 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
5079 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
5080 | void *argp1 = 0 ; | |
5081 | int res1 = 0 ; | |
5082 | void *argp2 = 0 ; | |
5083 | int res2 = 0 ; | |
5084 | PyObject * obj0 = 0 ; | |
5085 | PyObject * obj1 = 0 ; | |
5086 | char * kwnames[] = { | |
5087 | (char *) "self",(char *) "next", NULL | |
5088 | }; | |
5089 | ||
5090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetNext",kwnames,&obj0,&obj1)) SWIG_fail; | |
5091 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5092 | if (!SWIG_IsOK(res1)) { | |
5093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetNext" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
5094 | } | |
5095 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
5096 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5097 | if (!SWIG_IsOK(res2)) { | |
5098 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlProperty_SetNext" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
5099 | } | |
5100 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
5101 | { | |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | (arg1)->SetNext(arg2); | |
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | resultobj = SWIG_Py_Void(); | |
5108 | return resultobj; | |
5109 | fail: | |
5110 | return NULL; | |
5111 | } | |
5112 | ||
5113 | ||
5114 | SWIGINTERN PyObject *XmlProperty_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5115 | PyObject *obj; | |
5116 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5117 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlProperty, SWIG_NewClientData(obj)); | |
5118 | return SWIG_Py_Void(); | |
5119 | } | |
5120 | ||
5121 | SWIGINTERN PyObject *XmlProperty_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5122 | return SWIG_Python_InitShadowInstance(args); | |
5123 | } | |
5124 | ||
5125 | SWIGINTERN PyObject *_wrap_new_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5126 | PyObject *resultobj = 0; | |
5127 | wxXmlNode *arg1 = (wxXmlNode *) NULL ; | |
5128 | wxXmlNodeType arg2 = (wxXmlNodeType) 0 ; | |
5129 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5130 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5131 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5132 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5133 | wxXmlProperty *arg5 = (wxXmlProperty *) NULL ; | |
5134 | wxXmlNode *arg6 = (wxXmlNode *) NULL ; | |
5135 | wxXmlNode *result = 0 ; | |
5136 | void *argp1 = 0 ; | |
5137 | int res1 = 0 ; | |
5138 | int val2 ; | |
5139 | int ecode2 = 0 ; | |
5140 | bool temp3 = false ; | |
5141 | bool temp4 = false ; | |
5142 | void *argp5 = 0 ; | |
5143 | int res5 = 0 ; | |
5144 | void *argp6 = 0 ; | |
5145 | int res6 = 0 ; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | PyObject * obj1 = 0 ; | |
5148 | PyObject * obj2 = 0 ; | |
5149 | PyObject * obj3 = 0 ; | |
5150 | PyObject * obj4 = 0 ; | |
5151 | PyObject * obj5 = 0 ; | |
5152 | char * kwnames[] = { | |
5153 | (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL | |
5154 | }; | |
5155 | ||
5156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_XmlNode",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
5157 | if (obj0) { | |
5158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5159 | if (!SWIG_IsOK(res1)) { | |
5160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
2ef75293 | 5161 | } |
0085ce49 RD |
5162 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); |
5163 | } | |
5164 | if (obj1) { | |
5165 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5166 | if (!SWIG_IsOK(ecode2)) { | |
5167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlNode" "', expected argument " "2"" of type '" "wxXmlNodeType""'"); | |
5168 | } | |
5169 | arg2 = static_cast< wxXmlNodeType >(val2); | |
5170 | } | |
5171 | if (obj2) { | |
2ef75293 | 5172 | { |
0085ce49 RD |
5173 | arg3 = wxString_in_helper(obj2); |
5174 | if (arg3 == NULL) SWIG_fail; | |
5175 | temp3 = true; | |
2ef75293 | 5176 | } |
0085ce49 RD |
5177 | } |
5178 | if (obj3) { | |
2ef75293 | 5179 | { |
0085ce49 RD |
5180 | arg4 = wxString_in_helper(obj3); |
5181 | if (arg4 == NULL) SWIG_fail; | |
5182 | temp4 = true; | |
2ef75293 | 5183 | } |
0085ce49 RD |
5184 | } |
5185 | if (obj4) { | |
5186 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5187 | if (!SWIG_IsOK(res5)) { | |
5188 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_XmlNode" "', expected argument " "5"" of type '" "wxXmlProperty *""'"); | |
5189 | } | |
5190 | arg5 = reinterpret_cast< wxXmlProperty * >(argp5); | |
5191 | } | |
5192 | if (obj5) { | |
5193 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5194 | if (!SWIG_IsOK(res6)) { | |
5195 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_XmlNode" "', expected argument " "6"" of type '" "wxXmlNode *""'"); | |
5196 | } | |
5197 | arg6 = reinterpret_cast< wxXmlNode * >(argp6); | |
5198 | } | |
5199 | { | |
5200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5201 | result = (wxXmlNode *)new wxXmlNode(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
5202 | wxPyEndAllowThreads(__tstate); | |
5203 | if (PyErr_Occurred()) SWIG_fail; | |
5204 | } | |
5205 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_NEW | 0 ); | |
5206 | { | |
5207 | if (temp3) | |
5208 | delete arg3; | |
5209 | } | |
5210 | { | |
5211 | if (temp4) | |
5212 | delete arg4; | |
5213 | } | |
5214 | return resultobj; | |
5215 | fail: | |
5216 | { | |
5217 | if (temp3) | |
5218 | delete arg3; | |
5219 | } | |
5220 | { | |
5221 | if (temp4) | |
5222 | delete arg4; | |
5223 | } | |
5224 | return NULL; | |
2ef75293 RD |
5225 | } |
5226 | ||
5227 | ||
0085ce49 RD |
5228 | SWIGINTERN PyObject *_wrap_delete_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5229 | PyObject *resultobj = 0; | |
5230 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5231 | void *argp1 = 0 ; | |
5232 | int res1 = 0 ; | |
5233 | PyObject *swig_obj[1] ; | |
5234 | ||
5235 | if (!args) SWIG_fail; | |
5236 | swig_obj[0] = args; | |
5237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, SWIG_POINTER_DISOWN | 0 ); | |
5238 | if (!SWIG_IsOK(res1)) { | |
5239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5240 | } | |
5241 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5244 | delete arg1; | |
2ef75293 | 5245 | |
0085ce49 RD |
5246 | wxPyEndAllowThreads(__tstate); |
5247 | if (PyErr_Occurred()) SWIG_fail; | |
5248 | } | |
5249 | resultobj = SWIG_Py_Void(); | |
5250 | return resultobj; | |
5251 | fail: | |
5252 | return NULL; | |
5253 | } | |
5254 | ||
5255 | ||
5256 | SWIGINTERN PyObject *_wrap_new_XmlNodeEasy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5257 | PyObject *resultobj = 0; | |
5258 | wxXmlNodeType arg1 ; | |
5259 | wxString *arg2 = 0 ; | |
5260 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5261 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5262 | wxXmlNode *result = 0 ; | |
5263 | int val1 ; | |
5264 | int ecode1 = 0 ; | |
5265 | bool temp2 = false ; | |
5266 | bool temp3 = false ; | |
5267 | PyObject * obj0 = 0 ; | |
5268 | PyObject * obj1 = 0 ; | |
5269 | PyObject * obj2 = 0 ; | |
5270 | char * kwnames[] = { | |
5271 | (char *) "type",(char *) "name",(char *) "content", NULL | |
5272 | }; | |
5273 | ||
5274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_XmlNodeEasy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5275 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5276 | if (!SWIG_IsOK(ecode1)) { | |
5277 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_XmlNodeEasy" "', expected argument " "1"" of type '" "wxXmlNodeType""'"); | |
5278 | } | |
5279 | arg1 = static_cast< wxXmlNodeType >(val1); | |
5280 | { | |
5281 | arg2 = wxString_in_helper(obj1); | |
5282 | if (arg2 == NULL) SWIG_fail; | |
5283 | temp2 = true; | |
5284 | } | |
5285 | if (obj2) { | |
2ef75293 | 5286 | { |
0085ce49 RD |
5287 | arg3 = wxString_in_helper(obj2); |
5288 | if (arg3 == NULL) SWIG_fail; | |
5289 | temp3 = true; | |
2ef75293 | 5290 | } |
0085ce49 RD |
5291 | } |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5294 | result = (wxXmlNode *)new wxXmlNode(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
5295 | wxPyEndAllowThreads(__tstate); | |
5296 | if (PyErr_Occurred()) SWIG_fail; | |
5297 | } | |
5298 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_OWN | 0 ); | |
5299 | { | |
5300 | if (temp2) | |
5301 | delete arg2; | |
5302 | } | |
5303 | { | |
5304 | if (temp3) | |
5305 | delete arg3; | |
5306 | } | |
5307 | return resultobj; | |
5308 | fail: | |
5309 | { | |
5310 | if (temp2) | |
5311 | delete arg2; | |
5312 | } | |
5313 | { | |
5314 | if (temp3) | |
5315 | delete arg3; | |
5316 | } | |
5317 | return NULL; | |
5318 | } | |
5319 | ||
5320 | ||
5321 | SWIGINTERN PyObject *_wrap_XmlNode_AddChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5322 | PyObject *resultobj = 0; | |
5323 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5324 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5325 | void *argp1 = 0 ; | |
5326 | int res1 = 0 ; | |
5327 | void *argp2 = 0 ; | |
5328 | int res2 = 0 ; | |
5329 | PyObject * obj0 = 0 ; | |
5330 | PyObject * obj1 = 0 ; | |
5331 | char * kwnames[] = { | |
5332 | (char *) "self",(char *) "child", NULL | |
5333 | }; | |
5334 | ||
5335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
5336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5337 | if (!SWIG_IsOK(res1)) { | |
5338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5339 | } | |
5340 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5341 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5342 | if (!SWIG_IsOK(res2)) { | |
5343 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5344 | } | |
5345 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5346 | { | |
5347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5348 | (arg1)->AddChild(arg2); | |
5349 | wxPyEndAllowThreads(__tstate); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
5352 | resultobj = SWIG_Py_Void(); | |
5353 | return resultobj; | |
5354 | fail: | |
5355 | return NULL; | |
5356 | } | |
5357 | ||
5358 | ||
5359 | SWIGINTERN PyObject *_wrap_XmlNode_InsertChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5360 | PyObject *resultobj = 0; | |
5361 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5362 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5363 | wxXmlNode *arg3 = (wxXmlNode *) 0 ; | |
57332a5a | 5364 | bool result; |
0085ce49 RD |
5365 | void *argp1 = 0 ; |
5366 | int res1 = 0 ; | |
5367 | void *argp2 = 0 ; | |
5368 | int res2 = 0 ; | |
5369 | void *argp3 = 0 ; | |
5370 | int res3 = 0 ; | |
5371 | PyObject * obj0 = 0 ; | |
5372 | PyObject * obj1 = 0 ; | |
5373 | PyObject * obj2 = 0 ; | |
5374 | char * kwnames[] = { | |
5375 | (char *) "self",(char *) "child",(char *) "before_node", NULL | |
5376 | }; | |
5377 | ||
5378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_InsertChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5380 | if (!SWIG_IsOK(res1)) { | |
5381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_InsertChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5382 | } | |
5383 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5384 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5385 | if (!SWIG_IsOK(res2)) { | |
5386 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_InsertChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5387 | } | |
5388 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5389 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5390 | if (!SWIG_IsOK(res3)) { | |
5391 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlNode_InsertChild" "', expected argument " "3"" of type '" "wxXmlNode *""'"); | |
5392 | } | |
5393 | arg3 = reinterpret_cast< wxXmlNode * >(argp3); | |
5394 | { | |
5395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
57332a5a | 5396 | result = (bool)(arg1)->InsertChild(arg2,arg3); |
0085ce49 RD |
5397 | wxPyEndAllowThreads(__tstate); |
5398 | if (PyErr_Occurred()) SWIG_fail; | |
5399 | } | |
57332a5a RD |
5400 | { |
5401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5402 | } | |
0085ce49 RD |
5403 | return resultobj; |
5404 | fail: | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
5409 | SWIGINTERN PyObject *_wrap_XmlNode_RemoveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5410 | PyObject *resultobj = 0; | |
5411 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5412 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5413 | bool result; | |
5414 | void *argp1 = 0 ; | |
5415 | int res1 = 0 ; | |
5416 | void *argp2 = 0 ; | |
5417 | int res2 = 0 ; | |
5418 | PyObject * obj0 = 0 ; | |
5419 | PyObject * obj1 = 0 ; | |
5420 | char * kwnames[] = { | |
5421 | (char *) "self",(char *) "child", NULL | |
5422 | }; | |
5423 | ||
5424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_RemoveChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
5425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5426 | if (!SWIG_IsOK(res1)) { | |
5427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_RemoveChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5428 | } | |
5429 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5430 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5431 | if (!SWIG_IsOK(res2)) { | |
5432 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_RemoveChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5433 | } | |
5434 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5435 | { | |
5436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5437 | result = (bool)(arg1)->RemoveChild(arg2); | |
5438 | wxPyEndAllowThreads(__tstate); | |
5439 | if (PyErr_Occurred()) SWIG_fail; | |
5440 | } | |
5441 | { | |
5442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5443 | } | |
5444 | return resultobj; | |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
5450 | SWIGINTERN PyObject *_wrap_XmlNode_AddProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5451 | PyObject *resultobj = 0; | |
5452 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5453 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
5454 | void *argp1 = 0 ; | |
5455 | int res1 = 0 ; | |
5456 | void *argp2 = 0 ; | |
5457 | int res2 = 0 ; | |
5458 | PyObject * obj0 = 0 ; | |
5459 | PyObject * obj1 = 0 ; | |
5460 | char * kwnames[] = { | |
5461 | (char *) "self",(char *) "prop", NULL | |
5462 | }; | |
5463 | ||
5464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddProperty",kwnames,&obj0,&obj1)) SWIG_fail; | |
5465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5466 | if (!SWIG_IsOK(res1)) { | |
5467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5468 | } | |
5469 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5470 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5471 | if (!SWIG_IsOK(res2)) { | |
5472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddProperty" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
5473 | } | |
5474 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
5475 | { | |
5476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5477 | (arg1)->AddProperty(arg2); | |
5478 | wxPyEndAllowThreads(__tstate); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | resultobj = SWIG_Py_Void(); | |
5482 | return resultobj; | |
5483 | fail: | |
5484 | return NULL; | |
5485 | } | |
5486 | ||
5487 | ||
5488 | SWIGINTERN PyObject *_wrap_XmlNode_AddPropertyName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5489 | PyObject *resultobj = 0; | |
5490 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5491 | wxString *arg2 = 0 ; | |
5492 | wxString *arg3 = 0 ; | |
5493 | void *argp1 = 0 ; | |
5494 | int res1 = 0 ; | |
5495 | bool temp2 = false ; | |
5496 | bool temp3 = false ; | |
5497 | PyObject * obj0 = 0 ; | |
5498 | PyObject * obj1 = 0 ; | |
5499 | PyObject * obj2 = 0 ; | |
5500 | char * kwnames[] = { | |
5501 | (char *) "self",(char *) "name",(char *) "value", NULL | |
5502 | }; | |
5503 | ||
5504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_AddPropertyName",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5506 | if (!SWIG_IsOK(res1)) { | |
5507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddPropertyName" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5508 | } | |
5509 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5510 | { | |
5511 | arg2 = wxString_in_helper(obj1); | |
5512 | if (arg2 == NULL) SWIG_fail; | |
5513 | temp2 = true; | |
5514 | } | |
5515 | { | |
5516 | arg3 = wxString_in_helper(obj2); | |
5517 | if (arg3 == NULL) SWIG_fail; | |
5518 | temp3 = true; | |
5519 | } | |
5520 | { | |
5521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5522 | (arg1)->AddProperty((wxString const &)*arg2,(wxString const &)*arg3); | |
5523 | wxPyEndAllowThreads(__tstate); | |
5524 | if (PyErr_Occurred()) SWIG_fail; | |
5525 | } | |
5526 | resultobj = SWIG_Py_Void(); | |
5527 | { | |
5528 | if (temp2) | |
5529 | delete arg2; | |
5530 | } | |
5531 | { | |
5532 | if (temp3) | |
5533 | delete arg3; | |
5534 | } | |
5535 | return resultobj; | |
5536 | fail: | |
5537 | { | |
5538 | if (temp2) | |
5539 | delete arg2; | |
5540 | } | |
5541 | { | |
5542 | if (temp3) | |
5543 | delete arg3; | |
5544 | } | |
5545 | return NULL; | |
5546 | } | |
5547 | ||
5548 | ||
5549 | SWIGINTERN PyObject *_wrap_XmlNode_DeleteProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5550 | PyObject *resultobj = 0; | |
5551 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5552 | wxString *arg2 = 0 ; | |
5553 | bool result; | |
5554 | void *argp1 = 0 ; | |
5555 | int res1 = 0 ; | |
5556 | bool temp2 = false ; | |
5557 | PyObject * obj0 = 0 ; | |
5558 | PyObject * obj1 = 0 ; | |
5559 | char * kwnames[] = { | |
5560 | (char *) "self",(char *) "name", NULL | |
5561 | }; | |
5562 | ||
5563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_DeleteProperty",kwnames,&obj0,&obj1)) SWIG_fail; | |
5564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5565 | if (!SWIG_IsOK(res1)) { | |
5566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_DeleteProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5567 | } | |
5568 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5569 | { | |
5570 | arg2 = wxString_in_helper(obj1); | |
5571 | if (arg2 == NULL) SWIG_fail; | |
5572 | temp2 = true; | |
5573 | } | |
5574 | { | |
5575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5576 | result = (bool)(arg1)->DeleteProperty((wxString const &)*arg2); | |
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | } | |
5580 | { | |
5581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5582 | } | |
5583 | { | |
5584 | if (temp2) | |
5585 | delete arg2; | |
5586 | } | |
5587 | return resultobj; | |
5588 | fail: | |
5589 | { | |
5590 | if (temp2) | |
5591 | delete arg2; | |
5592 | } | |
5593 | return NULL; | |
2ef75293 RD |
5594 | } |
5595 | ||
5596 | ||
0085ce49 RD |
5597 | SWIGINTERN PyObject *_wrap_XmlNode_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5598 | PyObject *resultobj = 0; | |
5599 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5600 | wxXmlNodeType result; | |
5601 | void *argp1 = 0 ; | |
5602 | int res1 = 0 ; | |
5603 | PyObject *swig_obj[1] ; | |
5604 | ||
5605 | if (!args) SWIG_fail; | |
5606 | swig_obj[0] = args; | |
5607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5608 | if (!SWIG_IsOK(res1)) { | |
5609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetType" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5610 | } | |
5611 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5612 | { | |
5613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5614 | result = (wxXmlNodeType)((wxXmlNode const *)arg1)->GetType(); | |
5615 | wxPyEndAllowThreads(__tstate); | |
5616 | if (PyErr_Occurred()) SWIG_fail; | |
5617 | } | |
5618 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5619 | return resultobj; | |
5620 | fail: | |
5621 | return NULL; | |
2ef75293 RD |
5622 | } |
5623 | ||
5624 | ||
0085ce49 RD |
5625 | SWIGINTERN PyObject *_wrap_XmlNode_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5626 | PyObject *resultobj = 0; | |
5627 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5628 | wxString result; | |
5629 | void *argp1 = 0 ; | |
5630 | int res1 = 0 ; | |
5631 | PyObject *swig_obj[1] ; | |
5632 | ||
5633 | if (!args) SWIG_fail; | |
5634 | swig_obj[0] = args; | |
5635 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5636 | if (!SWIG_IsOK(res1)) { | |
5637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetName" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5638 | } | |
5639 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5640 | { | |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5642 | result = ((wxXmlNode const *)arg1)->GetName(); | |
5643 | wxPyEndAllowThreads(__tstate); | |
5644 | if (PyErr_Occurred()) SWIG_fail; | |
5645 | } | |
5646 | { | |
2ef75293 | 5647 | #if wxUSE_UNICODE |
0085ce49 | 5648 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 5649 | #else |
0085ce49 | 5650 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 5651 | #endif |
0085ce49 RD |
5652 | } |
5653 | return resultobj; | |
5654 | fail: | |
5655 | return NULL; | |
2ef75293 RD |
5656 | } |
5657 | ||
5658 | ||
0085ce49 RD |
5659 | SWIGINTERN PyObject *_wrap_XmlNode_GetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5660 | PyObject *resultobj = 0; | |
5661 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5662 | wxString result; | |
5663 | void *argp1 = 0 ; | |
5664 | int res1 = 0 ; | |
5665 | PyObject *swig_obj[1] ; | |
5666 | ||
5667 | if (!args) SWIG_fail; | |
5668 | swig_obj[0] = args; | |
5669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5670 | if (!SWIG_IsOK(res1)) { | |
5671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5672 | } | |
5673 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5674 | { | |
5675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5676 | result = ((wxXmlNode const *)arg1)->GetContent(); | |
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
5680 | { | |
2ef75293 | 5681 | #if wxUSE_UNICODE |
0085ce49 | 5682 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 5683 | #else |
0085ce49 | 5684 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 5685 | #endif |
0085ce49 RD |
5686 | } |
5687 | return resultobj; | |
5688 | fail: | |
5689 | return NULL; | |
2ef75293 RD |
5690 | } |
5691 | ||
5692 | ||
33d6fd3b RD |
5693 | SWIGINTERN PyObject *_wrap_XmlNode_IsWhitespaceOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5694 | PyObject *resultobj = 0; | |
5695 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5696 | bool result; | |
5697 | void *argp1 = 0 ; | |
5698 | int res1 = 0 ; | |
5699 | PyObject *swig_obj[1] ; | |
5700 | ||
5701 | if (!args) SWIG_fail; | |
5702 | swig_obj[0] = args; | |
5703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5704 | if (!SWIG_IsOK(res1)) { | |
5705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_IsWhitespaceOnly" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5706 | } | |
5707 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5708 | { | |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5710 | result = (bool)((wxXmlNode const *)arg1)->IsWhitespaceOnly(); | |
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | { | |
5715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5716 | } | |
5717 | return resultobj; | |
5718 | fail: | |
5719 | return NULL; | |
5720 | } | |
5721 | ||
5722 | ||
5723 | SWIGINTERN PyObject *_wrap_XmlNode_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5724 | PyObject *resultobj = 0; | |
5725 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5726 | wxXmlNode *arg2 = (wxXmlNode *) NULL ; | |
5727 | int result; | |
5728 | void *argp1 = 0 ; | |
5729 | int res1 = 0 ; | |
5730 | void *argp2 = 0 ; | |
5731 | int res2 = 0 ; | |
5732 | PyObject * obj0 = 0 ; | |
5733 | PyObject * obj1 = 0 ; | |
5734 | char * kwnames[] = { | |
5735 | (char *) "self",(char *) "grandparent", NULL | |
5736 | }; | |
5737 | ||
5738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlNode_GetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5740 | if (!SWIG_IsOK(res1)) { | |
5741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetDepth" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5742 | } | |
5743 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5744 | if (obj1) { | |
5745 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5746 | if (!SWIG_IsOK(res2)) { | |
5747 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_GetDepth" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5748 | } | |
5749 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5750 | } | |
5751 | { | |
5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5753 | result = (int)((wxXmlNode const *)arg1)->GetDepth(arg2); | |
5754 | wxPyEndAllowThreads(__tstate); | |
5755 | if (PyErr_Occurred()) SWIG_fail; | |
5756 | } | |
5757 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5758 | return resultobj; | |
5759 | fail: | |
5760 | return NULL; | |
5761 | } | |
5762 | ||
5763 | ||
5764 | SWIGINTERN PyObject *_wrap_XmlNode_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5765 | PyObject *resultobj = 0; | |
5766 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5767 | wxString result; | |
5768 | void *argp1 = 0 ; | |
5769 | int res1 = 0 ; | |
5770 | PyObject *swig_obj[1] ; | |
5771 | ||
5772 | if (!args) SWIG_fail; | |
5773 | swig_obj[0] = args; | |
5774 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5775 | if (!SWIG_IsOK(res1)) { | |
5776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNodeContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5777 | } | |
5778 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5779 | { | |
5780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5781 | result = ((wxXmlNode const *)arg1)->GetNodeContent(); | |
5782 | wxPyEndAllowThreads(__tstate); | |
5783 | if (PyErr_Occurred()) SWIG_fail; | |
5784 | } | |
5785 | { | |
5786 | #if wxUSE_UNICODE | |
5787 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5788 | #else | |
5789 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5790 | #endif | |
5791 | } | |
5792 | return resultobj; | |
5793 | fail: | |
5794 | return NULL; | |
5795 | } | |
5796 | ||
5797 | ||
0085ce49 RD |
5798 | SWIGINTERN PyObject *_wrap_XmlNode_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5799 | PyObject *resultobj = 0; | |
5800 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5801 | wxXmlNode *result = 0 ; | |
5802 | void *argp1 = 0 ; | |
5803 | int res1 = 0 ; | |
5804 | PyObject *swig_obj[1] ; | |
5805 | ||
5806 | if (!args) SWIG_fail; | |
5807 | swig_obj[0] = args; | |
5808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5809 | if (!SWIG_IsOK(res1)) { | |
5810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetParent" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5811 | } | |
5812 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5813 | { | |
5814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5815 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetParent(); | |
5816 | wxPyEndAllowThreads(__tstate); | |
5817 | if (PyErr_Occurred()) SWIG_fail; | |
5818 | } | |
5819 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5820 | return resultobj; | |
5821 | fail: | |
5822 | return NULL; | |
2ef75293 RD |
5823 | } |
5824 | ||
5825 | ||
0085ce49 RD |
5826 | SWIGINTERN PyObject *_wrap_XmlNode_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5827 | PyObject *resultobj = 0; | |
5828 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5829 | wxXmlNode *result = 0 ; | |
5830 | void *argp1 = 0 ; | |
5831 | int res1 = 0 ; | |
5832 | PyObject *swig_obj[1] ; | |
5833 | ||
5834 | if (!args) SWIG_fail; | |
5835 | swig_obj[0] = args; | |
5836 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5837 | if (!SWIG_IsOK(res1)) { | |
5838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNext" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5839 | } | |
5840 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5841 | { | |
5842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5843 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetNext(); | |
5844 | wxPyEndAllowThreads(__tstate); | |
5845 | if (PyErr_Occurred()) SWIG_fail; | |
5846 | } | |
5847 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5848 | return resultobj; | |
5849 | fail: | |
5850 | return NULL; | |
2ef75293 RD |
5851 | } |
5852 | ||
5853 | ||
0085ce49 RD |
5854 | SWIGINTERN PyObject *_wrap_XmlNode_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5855 | PyObject *resultobj = 0; | |
5856 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5857 | wxXmlNode *result = 0 ; | |
5858 | void *argp1 = 0 ; | |
5859 | int res1 = 0 ; | |
5860 | PyObject *swig_obj[1] ; | |
5861 | ||
5862 | if (!args) SWIG_fail; | |
5863 | swig_obj[0] = args; | |
5864 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5865 | if (!SWIG_IsOK(res1)) { | |
5866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetChildren" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5867 | } | |
5868 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5869 | { | |
5870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5871 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetChildren(); | |
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | } | |
5875 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5876 | return resultobj; | |
5877 | fail: | |
5878 | return NULL; | |
2ef75293 RD |
5879 | } |
5880 | ||
5881 | ||
0085ce49 RD |
5882 | SWIGINTERN PyObject *_wrap_XmlNode_GetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5883 | PyObject *resultobj = 0; | |
5884 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5885 | wxXmlProperty *result = 0 ; | |
5886 | void *argp1 = 0 ; | |
5887 | int res1 = 0 ; | |
5888 | PyObject *swig_obj[1] ; | |
5889 | ||
5890 | if (!args) SWIG_fail; | |
5891 | swig_obj[0] = args; | |
5892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5893 | if (!SWIG_IsOK(res1)) { | |
5894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetProperties" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5895 | } | |
5896 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5897 | { | |
5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5899 | result = (wxXmlProperty *)((wxXmlNode const *)arg1)->GetProperties(); | |
5900 | wxPyEndAllowThreads(__tstate); | |
5901 | if (PyErr_Occurred()) SWIG_fail; | |
5902 | } | |
5903 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5904 | return resultobj; | |
5905 | fail: | |
5906 | return NULL; | |
5907 | } | |
5908 | ||
5909 | ||
5910 | SWIGINTERN PyObject *_wrap_XmlNode_GetPropVal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5911 | PyObject *resultobj = 0; | |
5912 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5913 | wxString *arg2 = 0 ; | |
5914 | wxString *arg3 = 0 ; | |
5915 | wxString result; | |
5916 | void *argp1 = 0 ; | |
5917 | int res1 = 0 ; | |
5918 | bool temp2 = false ; | |
5919 | bool temp3 = false ; | |
5920 | PyObject * obj0 = 0 ; | |
5921 | PyObject * obj1 = 0 ; | |
5922 | PyObject * obj2 = 0 ; | |
5923 | char * kwnames[] = { | |
5924 | (char *) "self",(char *) "propName",(char *) "defaultVal", NULL | |
5925 | }; | |
5926 | ||
5927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_GetPropVal",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5929 | if (!SWIG_IsOK(res1)) { | |
5930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetPropVal" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5931 | } | |
5932 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5933 | { | |
5934 | arg2 = wxString_in_helper(obj1); | |
5935 | if (arg2 == NULL) SWIG_fail; | |
5936 | temp2 = true; | |
5937 | } | |
5938 | { | |
5939 | arg3 = wxString_in_helper(obj2); | |
5940 | if (arg3 == NULL) SWIG_fail; | |
5941 | temp3 = true; | |
5942 | } | |
5943 | { | |
5944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5945 | result = ((wxXmlNode const *)arg1)->GetPropVal((wxString const &)*arg2,(wxString const &)*arg3); | |
5946 | wxPyEndAllowThreads(__tstate); | |
5947 | if (PyErr_Occurred()) SWIG_fail; | |
5948 | } | |
5949 | { | |
5950 | #if wxUSE_UNICODE | |
5951 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5952 | #else | |
5953 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5954 | #endif | |
5955 | } | |
5956 | { | |
5957 | if (temp2) | |
5958 | delete arg2; | |
5959 | } | |
5960 | { | |
5961 | if (temp3) | |
5962 | delete arg3; | |
5963 | } | |
5964 | return resultobj; | |
5965 | fail: | |
5966 | { | |
5967 | if (temp2) | |
5968 | delete arg2; | |
5969 | } | |
5970 | { | |
5971 | if (temp3) | |
5972 | delete arg3; | |
5973 | } | |
5974 | return NULL; | |
5975 | } | |
5976 | ||
5977 | ||
5978 | SWIGINTERN PyObject *_wrap_XmlNode_HasProp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5979 | PyObject *resultobj = 0; | |
5980 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5981 | wxString *arg2 = 0 ; | |
5982 | bool result; | |
5983 | void *argp1 = 0 ; | |
5984 | int res1 = 0 ; | |
5985 | bool temp2 = false ; | |
5986 | PyObject * obj0 = 0 ; | |
5987 | PyObject * obj1 = 0 ; | |
5988 | char * kwnames[] = { | |
5989 | (char *) "self",(char *) "propName", NULL | |
5990 | }; | |
5991 | ||
5992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_HasProp",kwnames,&obj0,&obj1)) SWIG_fail; | |
5993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5994 | if (!SWIG_IsOK(res1)) { | |
5995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_HasProp" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5996 | } | |
5997 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5998 | { | |
5999 | arg2 = wxString_in_helper(obj1); | |
6000 | if (arg2 == NULL) SWIG_fail; | |
6001 | temp2 = true; | |
6002 | } | |
6003 | { | |
6004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6005 | result = (bool)((wxXmlNode const *)arg1)->HasProp((wxString const &)*arg2); | |
6006 | wxPyEndAllowThreads(__tstate); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | } | |
6009 | { | |
6010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6011 | } | |
6012 | { | |
6013 | if (temp2) | |
6014 | delete arg2; | |
6015 | } | |
6016 | return resultobj; | |
6017 | fail: | |
6018 | { | |
6019 | if (temp2) | |
6020 | delete arg2; | |
6021 | } | |
6022 | return NULL; | |
6023 | } | |
6024 | ||
6025 | ||
6026 | SWIGINTERN PyObject *_wrap_XmlNode_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6027 | PyObject *resultobj = 0; | |
6028 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6029 | wxXmlNodeType arg2 ; | |
6030 | void *argp1 = 0 ; | |
6031 | int res1 = 0 ; | |
6032 | int val2 ; | |
6033 | int ecode2 = 0 ; | |
6034 | PyObject * obj0 = 0 ; | |
6035 | PyObject * obj1 = 0 ; | |
6036 | char * kwnames[] = { | |
6037 | (char *) "self",(char *) "type", NULL | |
6038 | }; | |
6039 | ||
6040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetType",kwnames,&obj0,&obj1)) SWIG_fail; | |
6041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6042 | if (!SWIG_IsOK(res1)) { | |
6043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetType" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6044 | } | |
6045 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6046 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6047 | if (!SWIG_IsOK(ecode2)) { | |
6048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlNode_SetType" "', expected argument " "2"" of type '" "wxXmlNodeType""'"); | |
6049 | } | |
6050 | arg2 = static_cast< wxXmlNodeType >(val2); | |
6051 | { | |
6052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6053 | (arg1)->SetType(arg2); | |
6054 | wxPyEndAllowThreads(__tstate); | |
6055 | if (PyErr_Occurred()) SWIG_fail; | |
6056 | } | |
6057 | resultobj = SWIG_Py_Void(); | |
6058 | return resultobj; | |
6059 | fail: | |
6060 | return NULL; | |
6061 | } | |
6062 | ||
6063 | ||
6064 | SWIGINTERN PyObject *_wrap_XmlNode_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6065 | PyObject *resultobj = 0; | |
6066 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6067 | wxString *arg2 = 0 ; | |
6068 | void *argp1 = 0 ; | |
6069 | int res1 = 0 ; | |
6070 | bool temp2 = false ; | |
6071 | PyObject * obj0 = 0 ; | |
6072 | PyObject * obj1 = 0 ; | |
6073 | char * kwnames[] = { | |
6074 | (char *) "self",(char *) "name", NULL | |
6075 | }; | |
6076 | ||
6077 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetName",kwnames,&obj0,&obj1)) SWIG_fail; | |
6078 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6079 | if (!SWIG_IsOK(res1)) { | |
6080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetName" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6081 | } | |
6082 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6083 | { | |
6084 | arg2 = wxString_in_helper(obj1); | |
6085 | if (arg2 == NULL) SWIG_fail; | |
6086 | temp2 = true; | |
6087 | } | |
6088 | { | |
6089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6090 | (arg1)->SetName((wxString const &)*arg2); | |
6091 | wxPyEndAllowThreads(__tstate); | |
6092 | if (PyErr_Occurred()) SWIG_fail; | |
6093 | } | |
6094 | resultobj = SWIG_Py_Void(); | |
6095 | { | |
6096 | if (temp2) | |
6097 | delete arg2; | |
6098 | } | |
6099 | return resultobj; | |
6100 | fail: | |
6101 | { | |
6102 | if (temp2) | |
6103 | delete arg2; | |
6104 | } | |
6105 | return NULL; | |
2ef75293 RD |
6106 | } |
6107 | ||
6108 | ||
0085ce49 RD |
6109 | SWIGINTERN PyObject *_wrap_XmlNode_SetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6110 | PyObject *resultobj = 0; | |
6111 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6112 | wxString *arg2 = 0 ; | |
6113 | void *argp1 = 0 ; | |
6114 | int res1 = 0 ; | |
6115 | bool temp2 = false ; | |
6116 | PyObject * obj0 = 0 ; | |
6117 | PyObject * obj1 = 0 ; | |
6118 | char * kwnames[] = { | |
6119 | (char *) "self",(char *) "con", NULL | |
6120 | }; | |
6121 | ||
6122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
6123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6124 | if (!SWIG_IsOK(res1)) { | |
6125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetContent" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6126 | } | |
6127 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6128 | { | |
6129 | arg2 = wxString_in_helper(obj1); | |
6130 | if (arg2 == NULL) SWIG_fail; | |
6131 | temp2 = true; | |
6132 | } | |
6133 | { | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | (arg1)->SetContent((wxString const &)*arg2); | |
6136 | wxPyEndAllowThreads(__tstate); | |
6137 | if (PyErr_Occurred()) SWIG_fail; | |
6138 | } | |
6139 | resultobj = SWIG_Py_Void(); | |
6140 | { | |
6141 | if (temp2) | |
6142 | delete arg2; | |
6143 | } | |
6144 | return resultobj; | |
6145 | fail: | |
6146 | { | |
6147 | if (temp2) | |
6148 | delete arg2; | |
6149 | } | |
6150 | return NULL; | |
6151 | } | |
6152 | ||
6153 | ||
6154 | SWIGINTERN PyObject *_wrap_XmlNode_SetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6155 | PyObject *resultobj = 0; | |
6156 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6157 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6158 | void *argp1 = 0 ; | |
6159 | int res1 = 0 ; | |
6160 | void *argp2 = 0 ; | |
6161 | int res2 = 0 ; | |
6162 | PyObject * obj0 = 0 ; | |
6163 | PyObject * obj1 = 0 ; | |
6164 | char * kwnames[] = { | |
6165 | (char *) "self",(char *) "parent", NULL | |
6166 | }; | |
6167 | ||
6168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
6169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6170 | if (!SWIG_IsOK(res1)) { | |
6171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetParent" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6172 | } | |
6173 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6174 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6175 | if (!SWIG_IsOK(res2)) { | |
6176 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetParent" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6177 | } | |
6178 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6179 | { | |
6180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6181 | (arg1)->SetParent(arg2); | |
6182 | wxPyEndAllowThreads(__tstate); | |
6183 | if (PyErr_Occurred()) SWIG_fail; | |
6184 | } | |
6185 | resultobj = SWIG_Py_Void(); | |
6186 | return resultobj; | |
6187 | fail: | |
6188 | return NULL; | |
6189 | } | |
6190 | ||
6191 | ||
6192 | SWIGINTERN PyObject *_wrap_XmlNode_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6193 | PyObject *resultobj = 0; | |
6194 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6195 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6196 | void *argp1 = 0 ; | |
6197 | int res1 = 0 ; | |
6198 | void *argp2 = 0 ; | |
6199 | int res2 = 0 ; | |
6200 | PyObject * obj0 = 0 ; | |
6201 | PyObject * obj1 = 0 ; | |
6202 | char * kwnames[] = { | |
6203 | (char *) "self",(char *) "next", NULL | |
6204 | }; | |
6205 | ||
6206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetNext",kwnames,&obj0,&obj1)) SWIG_fail; | |
6207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6208 | if (!SWIG_IsOK(res1)) { | |
6209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetNext" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6210 | } | |
6211 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6212 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6213 | if (!SWIG_IsOK(res2)) { | |
6214 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetNext" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6215 | } | |
6216 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6217 | { | |
6218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6219 | (arg1)->SetNext(arg2); | |
6220 | wxPyEndAllowThreads(__tstate); | |
6221 | if (PyErr_Occurred()) SWIG_fail; | |
6222 | } | |
6223 | resultobj = SWIG_Py_Void(); | |
6224 | return resultobj; | |
6225 | fail: | |
6226 | return NULL; | |
6227 | } | |
6228 | ||
6229 | ||
6230 | SWIGINTERN PyObject *_wrap_XmlNode_SetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6231 | PyObject *resultobj = 0; | |
6232 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6233 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6234 | void *argp1 = 0 ; | |
6235 | int res1 = 0 ; | |
6236 | void *argp2 = 0 ; | |
6237 | int res2 = 0 ; | |
6238 | PyObject * obj0 = 0 ; | |
6239 | PyObject * obj1 = 0 ; | |
6240 | char * kwnames[] = { | |
6241 | (char *) "self",(char *) "child", NULL | |
6242 | }; | |
6243 | ||
6244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
6245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6246 | if (!SWIG_IsOK(res1)) { | |
6247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetChildren" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6248 | } | |
6249 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6250 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6251 | if (!SWIG_IsOK(res2)) { | |
6252 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetChildren" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6253 | } | |
6254 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6255 | { | |
6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6257 | (arg1)->SetChildren(arg2); | |
6258 | wxPyEndAllowThreads(__tstate); | |
6259 | if (PyErr_Occurred()) SWIG_fail; | |
6260 | } | |
6261 | resultobj = SWIG_Py_Void(); | |
6262 | return resultobj; | |
6263 | fail: | |
6264 | return NULL; | |
6265 | } | |
6266 | ||
6267 | ||
6268 | SWIGINTERN PyObject *_wrap_XmlNode_SetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6269 | PyObject *resultobj = 0; | |
6270 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6271 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
6272 | void *argp1 = 0 ; | |
6273 | int res1 = 0 ; | |
6274 | void *argp2 = 0 ; | |
6275 | int res2 = 0 ; | |
6276 | PyObject * obj0 = 0 ; | |
6277 | PyObject * obj1 = 0 ; | |
6278 | char * kwnames[] = { | |
6279 | (char *) "self",(char *) "prop", NULL | |
6280 | }; | |
6281 | ||
6282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetProperties",kwnames,&obj0,&obj1)) SWIG_fail; | |
6283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6284 | if (!SWIG_IsOK(res1)) { | |
6285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetProperties" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6286 | } | |
6287 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6288 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
6289 | if (!SWIG_IsOK(res2)) { | |
6290 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetProperties" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
6291 | } | |
6292 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
6293 | { | |
6294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6295 | (arg1)->SetProperties(arg2); | |
6296 | wxPyEndAllowThreads(__tstate); | |
6297 | if (PyErr_Occurred()) SWIG_fail; | |
6298 | } | |
6299 | resultobj = SWIG_Py_Void(); | |
6300 | return resultobj; | |
6301 | fail: | |
6302 | return NULL; | |
2ef75293 RD |
6303 | } |
6304 | ||
6305 | ||
0085ce49 RD |
6306 | SWIGINTERN PyObject *XmlNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6307 | PyObject *obj; | |
6308 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6309 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlNode, SWIG_NewClientData(obj)); | |
6310 | return SWIG_Py_Void(); | |
2ef75293 RD |
6311 | } |
6312 | ||
0085ce49 RD |
6313 | SWIGINTERN PyObject *XmlNode_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6314 | return SWIG_Python_InitShadowInstance(args); | |
2ef75293 RD |
6315 | } |
6316 | ||
0085ce49 RD |
6317 | SWIGINTERN PyObject *_wrap_new_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6318 | PyObject *resultobj = 0; | |
6319 | wxString *arg1 = 0 ; | |
6320 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
6321 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6322 | wxXmlDocument *result = 0 ; | |
6323 | bool temp1 = false ; | |
6324 | bool temp2 = false ; | |
6325 | PyObject * obj0 = 0 ; | |
6326 | PyObject * obj1 = 0 ; | |
6327 | char * kwnames[] = { | |
6328 | (char *) "filename",(char *) "encoding", NULL | |
6329 | }; | |
6330 | ||
6331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocument",kwnames,&obj0,&obj1)) SWIG_fail; | |
6332 | { | |
6333 | arg1 = wxString_in_helper(obj0); | |
6334 | if (arg1 == NULL) SWIG_fail; | |
6335 | temp1 = true; | |
6336 | } | |
6337 | if (obj1) { | |
2ef75293 | 6338 | { |
0085ce49 RD |
6339 | arg2 = wxString_in_helper(obj1); |
6340 | if (arg2 == NULL) SWIG_fail; | |
6341 | temp2 = true; | |
2ef75293 | 6342 | } |
0085ce49 RD |
6343 | } |
6344 | { | |
6345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6346 | result = (wxXmlDocument *)new wxXmlDocument((wxString const &)*arg1,(wxString const &)*arg2); | |
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_NEW | 0 ); | |
6351 | { | |
6352 | if (temp1) | |
6353 | delete arg1; | |
6354 | } | |
6355 | { | |
6356 | if (temp2) | |
6357 | delete arg2; | |
6358 | } | |
6359 | return resultobj; | |
6360 | fail: | |
6361 | { | |
6362 | if (temp1) | |
6363 | delete arg1; | |
6364 | } | |
6365 | { | |
6366 | if (temp2) | |
6367 | delete arg2; | |
6368 | } | |
6369 | return NULL; | |
6370 | } | |
6371 | ||
6372 | ||
6373 | SWIGINTERN PyObject *_wrap_new_XmlDocumentFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6374 | PyObject *resultobj = 0; | |
6375 | wxInputStream *arg1 = 0 ; | |
6376 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
6377 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6378 | wxXmlDocument *result = 0 ; | |
6379 | wxPyInputStream *temp1 ; | |
6380 | bool created1 ; | |
6381 | bool temp2 = false ; | |
6382 | PyObject * obj0 = 0 ; | |
6383 | PyObject * obj1 = 0 ; | |
6384 | char * kwnames[] = { | |
6385 | (char *) "stream",(char *) "encoding", NULL | |
6386 | }; | |
6387 | ||
6388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocumentFromStream",kwnames,&obj0,&obj1)) SWIG_fail; | |
6389 | { | |
6390 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6391 | arg1 = temp1->m_wxis; | |
6392 | created1 = false; | |
6393 | } else { | |
6394 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6395 | arg1 = wxPyCBInputStream_create(obj0, false); | |
6396 | if (arg1 == NULL) { | |
6397 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); | |
6398 | SWIG_fail; | |
6399 | } | |
6400 | created1 = true; | |
2ef75293 | 6401 | } |
0085ce49 RD |
6402 | } |
6403 | if (obj1) { | |
2ef75293 | 6404 | { |
0085ce49 RD |
6405 | arg2 = wxString_in_helper(obj1); |
6406 | if (arg2 == NULL) SWIG_fail; | |
6407 | temp2 = true; | |
2ef75293 | 6408 | } |
0085ce49 RD |
6409 | } |
6410 | { | |
6411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6412 | result = (wxXmlDocument *)new wxXmlDocument(*arg1,(wxString const &)*arg2); | |
6413 | wxPyEndAllowThreads(__tstate); | |
6414 | if (PyErr_Occurred()) SWIG_fail; | |
6415 | } | |
6416 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 ); | |
6417 | { | |
6418 | if (created1) delete arg1; | |
6419 | } | |
6420 | { | |
6421 | if (temp2) | |
6422 | delete arg2; | |
6423 | } | |
6424 | return resultobj; | |
6425 | fail: | |
6426 | { | |
6427 | if (created1) delete arg1; | |
6428 | } | |
6429 | { | |
6430 | if (temp2) | |
6431 | delete arg2; | |
6432 | } | |
6433 | return NULL; | |
2ef75293 RD |
6434 | } |
6435 | ||
6436 | ||
0085ce49 RD |
6437 | SWIGINTERN PyObject *_wrap_new_EmptyXmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6438 | PyObject *resultobj = 0; | |
6439 | wxXmlDocument *result = 0 ; | |
6440 | ||
6441 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyXmlDocument",0,0,0)) SWIG_fail; | |
6442 | { | |
6443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6444 | result = (wxXmlDocument *)new wxXmlDocument(); | |
6445 | wxPyEndAllowThreads(__tstate); | |
6446 | if (PyErr_Occurred()) SWIG_fail; | |
6447 | } | |
6448 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 ); | |
6449 | return resultobj; | |
6450 | fail: | |
6451 | return NULL; | |
2ef75293 RD |
6452 | } |
6453 | ||
6454 | ||
0085ce49 RD |
6455 | SWIGINTERN PyObject *_wrap_delete_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6456 | PyObject *resultobj = 0; | |
6457 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6458 | void *argp1 = 0 ; | |
6459 | int res1 = 0 ; | |
6460 | PyObject *swig_obj[1] ; | |
6461 | ||
6462 | if (!args) SWIG_fail; | |
6463 | swig_obj[0] = args; | |
6464 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_DISOWN | 0 ); | |
6465 | if (!SWIG_IsOK(res1)) { | |
6466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlDocument" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6467 | } | |
6468 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6469 | { | |
6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6471 | delete arg1; | |
2ef75293 | 6472 | |
0085ce49 RD |
6473 | wxPyEndAllowThreads(__tstate); |
6474 | if (PyErr_Occurred()) SWIG_fail; | |
6475 | } | |
6476 | resultobj = SWIG_Py_Void(); | |
6477 | return resultobj; | |
6478 | fail: | |
6479 | return NULL; | |
6480 | } | |
6481 | ||
6482 | ||
6483 | SWIGINTERN PyObject *_wrap_XmlDocument_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6484 | PyObject *resultobj = 0; | |
6485 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6486 | wxString *arg2 = 0 ; | |
6487 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
6488 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
33d6fd3b | 6489 | int arg4 = (int) wxXMLDOC_NONE ; |
0085ce49 RD |
6490 | bool result; |
6491 | void *argp1 = 0 ; | |
6492 | int res1 = 0 ; | |
6493 | bool temp2 = false ; | |
6494 | bool temp3 = false ; | |
33d6fd3b RD |
6495 | int val4 ; |
6496 | int ecode4 = 0 ; | |
0085ce49 RD |
6497 | PyObject * obj0 = 0 ; |
6498 | PyObject * obj1 = 0 ; | |
6499 | PyObject * obj2 = 0 ; | |
33d6fd3b | 6500 | PyObject * obj3 = 0 ; |
0085ce49 | 6501 | char * kwnames[] = { |
33d6fd3b | 6502 | (char *) "self",(char *) "filename",(char *) "encoding",(char *) "flags", NULL |
0085ce49 RD |
6503 | }; |
6504 | ||
33d6fd3b | 6505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
6506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); |
6507 | if (!SWIG_IsOK(res1)) { | |
6508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Load" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6509 | } | |
6510 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6511 | { | |
6512 | arg2 = wxString_in_helper(obj1); | |
6513 | if (arg2 == NULL) SWIG_fail; | |
6514 | temp2 = true; | |
6515 | } | |
6516 | if (obj2) { | |
2ef75293 | 6517 | { |
0085ce49 RD |
6518 | arg3 = wxString_in_helper(obj2); |
6519 | if (arg3 == NULL) SWIG_fail; | |
6520 | temp3 = true; | |
6521 | } | |
6522 | } | |
33d6fd3b RD |
6523 | if (obj3) { |
6524 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6525 | if (!SWIG_IsOK(ecode4)) { | |
6526 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_Load" "', expected argument " "4"" of type '" "int""'"); | |
6527 | } | |
6528 | arg4 = static_cast< int >(val4); | |
6529 | } | |
0085ce49 RD |
6530 | { |
6531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 6532 | result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3,arg4); |
0085ce49 RD |
6533 | wxPyEndAllowThreads(__tstate); |
6534 | if (PyErr_Occurred()) SWIG_fail; | |
6535 | } | |
6536 | { | |
6537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6538 | } | |
6539 | { | |
6540 | if (temp2) | |
6541 | delete arg2; | |
6542 | } | |
6543 | { | |
6544 | if (temp3) | |
6545 | delete arg3; | |
6546 | } | |
6547 | return resultobj; | |
6548 | fail: | |
6549 | { | |
6550 | if (temp2) | |
6551 | delete arg2; | |
6552 | } | |
6553 | { | |
6554 | if (temp3) | |
6555 | delete arg3; | |
6556 | } | |
6557 | return NULL; | |
6558 | } | |
6559 | ||
6560 | ||
6561 | SWIGINTERN PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6562 | PyObject *resultobj = 0; | |
6563 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6564 | wxInputStream *arg2 = 0 ; | |
6565 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
6566 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
33d6fd3b | 6567 | int arg4 = (int) wxXMLDOC_NONE ; |
0085ce49 RD |
6568 | bool result; |
6569 | void *argp1 = 0 ; | |
6570 | int res1 = 0 ; | |
6571 | wxPyInputStream *temp2 ; | |
6572 | bool created2 ; | |
6573 | bool temp3 = false ; | |
33d6fd3b RD |
6574 | int val4 ; |
6575 | int ecode4 = 0 ; | |
0085ce49 RD |
6576 | PyObject * obj0 = 0 ; |
6577 | PyObject * obj1 = 0 ; | |
6578 | PyObject * obj2 = 0 ; | |
33d6fd3b | 6579 | PyObject * obj3 = 0 ; |
0085ce49 | 6580 | char * kwnames[] = { |
33d6fd3b | 6581 | (char *) "self",(char *) "stream",(char *) "encoding",(char *) "flags", NULL |
0085ce49 RD |
6582 | }; |
6583 | ||
33d6fd3b | 6584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
6585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); |
6586 | if (!SWIG_IsOK(res1)) { | |
6587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6588 | } | |
6589 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6590 | { | |
6591 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
6592 | arg2 = temp2->m_wxis; | |
6593 | created2 = false; | |
6594 | } else { | |
6595 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6596 | arg2 = wxPyCBInputStream_create(obj1, false); | |
6597 | if (arg2 == NULL) { | |
6598 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); | |
6599 | SWIG_fail; | |
6600 | } | |
6601 | created2 = true; | |
2ef75293 | 6602 | } |
0085ce49 RD |
6603 | } |
6604 | if (obj2) { | |
2ef75293 | 6605 | { |
0085ce49 RD |
6606 | arg3 = wxString_in_helper(obj2); |
6607 | if (arg3 == NULL) SWIG_fail; | |
6608 | temp3 = true; | |
2ef75293 | 6609 | } |
0085ce49 | 6610 | } |
33d6fd3b RD |
6611 | if (obj3) { |
6612 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6613 | if (!SWIG_IsOK(ecode4)) { | |
6614 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "4"" of type '" "int""'"); | |
6615 | } | |
6616 | arg4 = static_cast< int >(val4); | |
6617 | } | |
0085ce49 RD |
6618 | { |
6619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 6620 | result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3,arg4); |
0085ce49 RD |
6621 | wxPyEndAllowThreads(__tstate); |
6622 | if (PyErr_Occurred()) SWIG_fail; | |
6623 | } | |
6624 | { | |
6625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6626 | } | |
6627 | { | |
6628 | if (created2) delete arg2; | |
6629 | } | |
6630 | { | |
6631 | if (temp3) | |
6632 | delete arg3; | |
6633 | } | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | { | |
6637 | if (created2) delete arg2; | |
6638 | } | |
6639 | { | |
6640 | if (temp3) | |
6641 | delete arg3; | |
6642 | } | |
6643 | return NULL; | |
6644 | } | |
6645 | ||
6646 | ||
6647 | SWIGINTERN PyObject *_wrap_XmlDocument_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6648 | PyObject *resultobj = 0; | |
6649 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6650 | wxString *arg2 = 0 ; | |
33d6fd3b | 6651 | int arg3 = (int) 1 ; |
0085ce49 RD |
6652 | bool result; |
6653 | void *argp1 = 0 ; | |
6654 | int res1 = 0 ; | |
6655 | bool temp2 = false ; | |
33d6fd3b RD |
6656 | int val3 ; |
6657 | int ecode3 = 0 ; | |
0085ce49 RD |
6658 | PyObject * obj0 = 0 ; |
6659 | PyObject * obj1 = 0 ; | |
33d6fd3b | 6660 | PyObject * obj2 = 0 ; |
0085ce49 | 6661 | char * kwnames[] = { |
33d6fd3b | 6662 | (char *) "self",(char *) "filename",(char *) "indentstep", NULL |
0085ce49 RD |
6663 | }; |
6664 | ||
33d6fd3b | 6665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Save",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
0085ce49 RD |
6666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); |
6667 | if (!SWIG_IsOK(res1)) { | |
6668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Save" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6669 | } | |
6670 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6671 | { | |
6672 | arg2 = wxString_in_helper(obj1); | |
6673 | if (arg2 == NULL) SWIG_fail; | |
6674 | temp2 = true; | |
6675 | } | |
33d6fd3b RD |
6676 | if (obj2) { |
6677 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6678 | if (!SWIG_IsOK(ecode3)) { | |
6679 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_Save" "', expected argument " "3"" of type '" "int""'"); | |
6680 | } | |
6681 | arg3 = static_cast< int >(val3); | |
6682 | } | |
0085ce49 RD |
6683 | { |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 6685 | result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2,arg3); |
0085ce49 RD |
6686 | wxPyEndAllowThreads(__tstate); |
6687 | if (PyErr_Occurred()) SWIG_fail; | |
6688 | } | |
6689 | { | |
6690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6691 | } | |
6692 | { | |
6693 | if (temp2) | |
6694 | delete arg2; | |
6695 | } | |
6696 | return resultobj; | |
6697 | fail: | |
6698 | { | |
6699 | if (temp2) | |
6700 | delete arg2; | |
6701 | } | |
6702 | return NULL; | |
6703 | } | |
6704 | ||
6705 | ||
6706 | SWIGINTERN PyObject *_wrap_XmlDocument_SaveToStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6707 | PyObject *resultobj = 0; | |
6708 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6709 | wxOutputStream *arg2 = 0 ; | |
33d6fd3b | 6710 | int arg3 = (int) 1 ; |
0085ce49 RD |
6711 | bool result; |
6712 | void *argp1 = 0 ; | |
6713 | int res1 = 0 ; | |
6714 | void *argp2 = 0 ; | |
6715 | int res2 = 0 ; | |
33d6fd3b RD |
6716 | int val3 ; |
6717 | int ecode3 = 0 ; | |
0085ce49 RD |
6718 | PyObject * obj0 = 0 ; |
6719 | PyObject * obj1 = 0 ; | |
33d6fd3b | 6720 | PyObject * obj2 = 0 ; |
0085ce49 | 6721 | char * kwnames[] = { |
33d6fd3b | 6722 | (char *) "self",(char *) "stream",(char *) "indentstep", NULL |
0085ce49 RD |
6723 | }; |
6724 | ||
33d6fd3b | 6725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_SaveToStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
0085ce49 RD |
6726 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); |
6727 | if (!SWIG_IsOK(res1)) { | |
6728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SaveToStream" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6729 | } | |
6730 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6731 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxOutputStream, 0 ); | |
6732 | if (!SWIG_IsOK(res2)) { | |
6733 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'"); | |
6734 | } | |
6735 | if (!argp2) { | |
6736 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'"); | |
6737 | } | |
6738 | arg2 = reinterpret_cast< wxOutputStream * >(argp2); | |
33d6fd3b RD |
6739 | if (obj2) { |
6740 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6741 | if (!SWIG_IsOK(ecode3)) { | |
6742 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_SaveToStream" "', expected argument " "3"" of type '" "int""'"); | |
6743 | } | |
6744 | arg3 = static_cast< int >(val3); | |
6745 | } | |
0085ce49 RD |
6746 | { |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 6748 | result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2,arg3); |
0085ce49 RD |
6749 | wxPyEndAllowThreads(__tstate); |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | { | |
6753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6754 | } | |
6755 | return resultobj; | |
6756 | fail: | |
6757 | return NULL; | |
2ef75293 RD |
6758 | } |
6759 | ||
6760 | ||
0085ce49 RD |
6761 | SWIGINTERN PyObject *_wrap_XmlDocument_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6762 | PyObject *resultobj = 0; | |
6763 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6764 | bool result; | |
6765 | void *argp1 = 0 ; | |
6766 | int res1 = 0 ; | |
6767 | PyObject *swig_obj[1] ; | |
6768 | ||
6769 | if (!args) SWIG_fail; | |
6770 | swig_obj[0] = args; | |
6771 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6772 | if (!SWIG_IsOK(res1)) { | |
6773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_IsOk" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6774 | } | |
6775 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6776 | { | |
6777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6778 | result = (bool)((wxXmlDocument const *)arg1)->IsOk(); | |
6779 | wxPyEndAllowThreads(__tstate); | |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
6781 | } | |
6782 | { | |
6783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6784 | } | |
6785 | return resultobj; | |
6786 | fail: | |
6787 | return NULL; | |
2ef75293 RD |
6788 | } |
6789 | ||
6790 | ||
0085ce49 RD |
6791 | SWIGINTERN PyObject *_wrap_XmlDocument_GetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6792 | PyObject *resultobj = 0; | |
6793 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6794 | wxXmlNode *result = 0 ; | |
6795 | void *argp1 = 0 ; | |
6796 | int res1 = 0 ; | |
6797 | PyObject *swig_obj[1] ; | |
6798 | ||
6799 | if (!args) SWIG_fail; | |
6800 | swig_obj[0] = args; | |
6801 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6802 | if (!SWIG_IsOK(res1)) { | |
6803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetRoot" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6804 | } | |
6805 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6806 | { | |
6807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6808 | result = (wxXmlNode *)((wxXmlDocument const *)arg1)->GetRoot(); | |
6809 | wxPyEndAllowThreads(__tstate); | |
6810 | if (PyErr_Occurred()) SWIG_fail; | |
6811 | } | |
6812 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6813 | return resultobj; | |
6814 | fail: | |
6815 | return NULL; | |
2ef75293 RD |
6816 | } |
6817 | ||
6818 | ||
0085ce49 RD |
6819 | SWIGINTERN PyObject *_wrap_XmlDocument_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6820 | PyObject *resultobj = 0; | |
6821 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6822 | wxString result; | |
6823 | void *argp1 = 0 ; | |
6824 | int res1 = 0 ; | |
6825 | PyObject *swig_obj[1] ; | |
6826 | ||
6827 | if (!args) SWIG_fail; | |
6828 | swig_obj[0] = args; | |
6829 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6830 | if (!SWIG_IsOK(res1)) { | |
6831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetVersion" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6832 | } | |
6833 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6834 | { | |
6835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6836 | result = ((wxXmlDocument const *)arg1)->GetVersion(); | |
6837 | wxPyEndAllowThreads(__tstate); | |
6838 | if (PyErr_Occurred()) SWIG_fail; | |
6839 | } | |
6840 | { | |
2ef75293 | 6841 | #if wxUSE_UNICODE |
0085ce49 | 6842 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6843 | #else |
0085ce49 | 6844 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6845 | #endif |
0085ce49 RD |
6846 | } |
6847 | return resultobj; | |
6848 | fail: | |
6849 | return NULL; | |
2ef75293 RD |
6850 | } |
6851 | ||
6852 | ||
0085ce49 RD |
6853 | SWIGINTERN PyObject *_wrap_XmlDocument_GetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6854 | PyObject *resultobj = 0; | |
6855 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6856 | wxString result; | |
6857 | void *argp1 = 0 ; | |
6858 | int res1 = 0 ; | |
6859 | PyObject *swig_obj[1] ; | |
6860 | ||
6861 | if (!args) SWIG_fail; | |
6862 | swig_obj[0] = args; | |
6863 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6864 | if (!SWIG_IsOK(res1)) { | |
6865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6866 | } | |
6867 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6868 | { | |
6869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6870 | result = ((wxXmlDocument const *)arg1)->GetFileEncoding(); | |
6871 | wxPyEndAllowThreads(__tstate); | |
6872 | if (PyErr_Occurred()) SWIG_fail; | |
6873 | } | |
6874 | { | |
2ef75293 | 6875 | #if wxUSE_UNICODE |
0085ce49 | 6876 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6877 | #else |
0085ce49 | 6878 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 6879 | #endif |
0085ce49 RD |
6880 | } |
6881 | return resultobj; | |
6882 | fail: | |
6883 | return NULL; | |
6884 | } | |
6885 | ||
6886 | ||
57332a5a RD |
6887 | SWIGINTERN PyObject *_wrap_XmlDocument_DetachRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6888 | PyObject *resultobj = 0; | |
6889 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6890 | wxXmlNode *result = 0 ; | |
6891 | void *argp1 = 0 ; | |
6892 | int res1 = 0 ; | |
6893 | PyObject *swig_obj[1] ; | |
6894 | ||
6895 | if (!args) SWIG_fail; | |
6896 | swig_obj[0] = args; | |
6897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6898 | if (!SWIG_IsOK(res1)) { | |
6899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_DetachRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6900 | } | |
6901 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6902 | { | |
6903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6904 | result = (wxXmlNode *)(arg1)->DetachRoot(); | |
6905 | wxPyEndAllowThreads(__tstate); | |
6906 | if (PyErr_Occurred()) SWIG_fail; | |
6907 | } | |
6908 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6909 | return resultobj; | |
6910 | fail: | |
6911 | return NULL; | |
6912 | } | |
6913 | ||
6914 | ||
0085ce49 RD |
6915 | SWIGINTERN PyObject *_wrap_XmlDocument_SetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6916 | PyObject *resultobj = 0; | |
6917 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6918 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6919 | void *argp1 = 0 ; | |
6920 | int res1 = 0 ; | |
6921 | void *argp2 = 0 ; | |
6922 | int res2 = 0 ; | |
6923 | PyObject * obj0 = 0 ; | |
6924 | PyObject * obj1 = 0 ; | |
6925 | char * kwnames[] = { | |
6926 | (char *) "self",(char *) "node", NULL | |
6927 | }; | |
6928 | ||
6929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetRoot",kwnames,&obj0,&obj1)) SWIG_fail; | |
6930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6931 | if (!SWIG_IsOK(res1)) { | |
6932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6933 | } | |
6934 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6935 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6936 | if (!SWIG_IsOK(res2)) { | |
6937 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SetRoot" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6938 | } | |
6939 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6940 | { | |
6941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6942 | (arg1)->SetRoot(arg2); | |
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
6946 | resultobj = SWIG_Py_Void(); | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | return NULL; | |
6950 | } | |
6951 | ||
6952 | ||
6953 | SWIGINTERN PyObject *_wrap_XmlDocument_SetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6954 | PyObject *resultobj = 0; | |
6955 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6956 | wxString *arg2 = 0 ; | |
6957 | void *argp1 = 0 ; | |
6958 | int res1 = 0 ; | |
6959 | bool temp2 = false ; | |
6960 | PyObject * obj0 = 0 ; | |
6961 | PyObject * obj1 = 0 ; | |
6962 | char * kwnames[] = { | |
6963 | (char *) "self",(char *) "version", NULL | |
6964 | }; | |
6965 | ||
6966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
6967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6968 | if (!SWIG_IsOK(res1)) { | |
6969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetVersion" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6970 | } | |
6971 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6972 | { | |
6973 | arg2 = wxString_in_helper(obj1); | |
6974 | if (arg2 == NULL) SWIG_fail; | |
6975 | temp2 = true; | |
6976 | } | |
6977 | { | |
6978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6979 | (arg1)->SetVersion((wxString const &)*arg2); | |
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
6983 | resultobj = SWIG_Py_Void(); | |
6984 | { | |
6985 | if (temp2) | |
6986 | delete arg2; | |
6987 | } | |
6988 | return resultobj; | |
6989 | fail: | |
6990 | { | |
6991 | if (temp2) | |
6992 | delete arg2; | |
6993 | } | |
6994 | return NULL; | |
2ef75293 RD |
6995 | } |
6996 | ||
6997 | ||
0085ce49 RD |
6998 | SWIGINTERN PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6999 | PyObject *resultobj = 0; | |
7000 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
7001 | wxString *arg2 = 0 ; | |
7002 | void *argp1 = 0 ; | |
7003 | int res1 = 0 ; | |
7004 | bool temp2 = false ; | |
7005 | PyObject * obj0 = 0 ; | |
7006 | PyObject * obj1 = 0 ; | |
7007 | char * kwnames[] = { | |
7008 | (char *) "self",(char *) "encoding", NULL | |
7009 | }; | |
7010 | ||
7011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetFileEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
7012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
7013 | if (!SWIG_IsOK(res1)) { | |
7014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
7015 | } | |
7016 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
7017 | { | |
7018 | arg2 = wxString_in_helper(obj1); | |
7019 | if (arg2 == NULL) SWIG_fail; | |
7020 | temp2 = true; | |
7021 | } | |
7022 | { | |
7023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7024 | (arg1)->SetFileEncoding((wxString const &)*arg2); | |
7025 | wxPyEndAllowThreads(__tstate); | |
7026 | if (PyErr_Occurred()) SWIG_fail; | |
7027 | } | |
7028 | resultobj = SWIG_Py_Void(); | |
7029 | { | |
7030 | if (temp2) | |
7031 | delete arg2; | |
7032 | } | |
7033 | return resultobj; | |
7034 | fail: | |
7035 | { | |
7036 | if (temp2) | |
7037 | delete arg2; | |
7038 | } | |
7039 | return NULL; | |
2ef75293 RD |
7040 | } |
7041 | ||
7042 | ||
0085ce49 RD |
7043 | SWIGINTERN PyObject *XmlDocument_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7044 | PyObject *obj; | |
7045 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7046 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlDocument, SWIG_NewClientData(obj)); | |
7047 | return SWIG_Py_Void(); | |
2ef75293 RD |
7048 | } |
7049 | ||
0085ce49 RD |
7050 | SWIGINTERN PyObject *XmlDocument_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7051 | return SWIG_Python_InitShadowInstance(args); | |
7052 | } | |
2ef75293 | 7053 | |
0085ce49 RD |
7054 | SWIGINTERN PyObject *_wrap_new_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7055 | PyObject *resultobj = 0; | |
7056 | wxPyXmlResourceHandler *result = 0 ; | |
7057 | ||
7058 | if (!SWIG_Python_UnpackTuple(args,"new_XmlResourceHandler",0,0,0)) SWIG_fail; | |
7059 | { | |
7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7061 | result = (wxPyXmlResourceHandler *)new wxPyXmlResourceHandler(); | |
7062 | wxPyEndAllowThreads(__tstate); | |
7063 | if (PyErr_Occurred()) SWIG_fail; | |
7064 | } | |
7065 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_NEW | 0 ); | |
7066 | return resultobj; | |
7067 | fail: | |
7068 | return NULL; | |
7069 | } | |
7070 | ||
7071 | ||
a08f21ce RD |
7072 | SWIGINTERN PyObject *_wrap_delete_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7073 | PyObject *resultobj = 0; | |
7074 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7075 | void *argp1 = 0 ; | |
7076 | int res1 = 0 ; | |
7077 | PyObject *swig_obj[1] ; | |
7078 | ||
7079 | if (!args) SWIG_fail; | |
7080 | swig_obj[0] = args; | |
7081 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 ); | |
7082 | if (!SWIG_IsOK(res1)) { | |
7083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResourceHandler" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7084 | } | |
7085 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7086 | { | |
7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7088 | delete arg1; | |
7089 | ||
7090 | wxPyEndAllowThreads(__tstate); | |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
7092 | } | |
7093 | resultobj = SWIG_Py_Void(); | |
7094 | return resultobj; | |
7095 | fail: | |
7096 | return NULL; | |
7097 | } | |
7098 | ||
7099 | ||
0085ce49 RD |
7100 | SWIGINTERN PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7101 | PyObject *resultobj = 0; | |
7102 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7103 | PyObject *arg2 = (PyObject *) 0 ; | |
7104 | PyObject *arg3 = (PyObject *) 0 ; | |
7105 | void *argp1 = 0 ; | |
7106 | int res1 = 0 ; | |
7107 | PyObject * obj0 = 0 ; | |
7108 | PyObject * obj1 = 0 ; | |
7109 | PyObject * obj2 = 0 ; | |
7110 | char * kwnames[] = { | |
7111 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
7112 | }; | |
7113 | ||
7114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7116 | if (!SWIG_IsOK(res1)) { | |
7117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7118 | } | |
7119 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7120 | arg2 = obj1; | |
7121 | arg3 = obj2; | |
7122 | { | |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7124 | (arg1)->_setCallbackInfo(arg2,arg3); | |
7125 | wxPyEndAllowThreads(__tstate); | |
7126 | if (PyErr_Occurred()) SWIG_fail; | |
7127 | } | |
7128 | resultobj = SWIG_Py_Void(); | |
7129 | return resultobj; | |
7130 | fail: | |
7131 | return NULL; | |
7132 | } | |
7133 | ||
7134 | ||
7135 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7136 | PyObject *resultobj = 0; | |
7137 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7138 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
7139 | wxObject *arg3 = (wxObject *) 0 ; | |
7140 | wxObject *arg4 = (wxObject *) 0 ; | |
7141 | wxObject *result = 0 ; | |
7142 | void *argp1 = 0 ; | |
7143 | int res1 = 0 ; | |
7144 | void *argp2 = 0 ; | |
7145 | int res2 = 0 ; | |
7146 | void *argp3 = 0 ; | |
7147 | int res3 = 0 ; | |
7148 | void *argp4 = 0 ; | |
7149 | int res4 = 0 ; | |
7150 | PyObject * obj0 = 0 ; | |
7151 | PyObject * obj1 = 0 ; | |
7152 | PyObject * obj2 = 0 ; | |
7153 | PyObject * obj3 = 0 ; | |
7154 | char * kwnames[] = { | |
7155 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
7156 | }; | |
7157 | ||
7158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7160 | if (!SWIG_IsOK(res1)) { | |
7161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7162 | } | |
7163 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7164 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7165 | if (!SWIG_IsOK(res2)) { | |
7166 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
7167 | } | |
7168 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
7169 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 ); | |
7170 | if (!SWIG_IsOK(res3)) { | |
7171 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "3"" of type '" "wxObject *""'"); | |
7172 | } | |
7173 | arg3 = reinterpret_cast< wxObject * >(argp3); | |
7174 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 ); | |
7175 | if (!SWIG_IsOK(res4)) { | |
7176 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "4"" of type '" "wxObject *""'"); | |
7177 | } | |
7178 | arg4 = reinterpret_cast< wxObject * >(argp4); | |
7179 | { | |
7180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7181 | result = (wxObject *)(arg1)->CreateResource(arg2,arg3,arg4); | |
7182 | wxPyEndAllowThreads(__tstate); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | } | |
7185 | { | |
7186 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7187 | } | |
7188 | return resultobj; | |
7189 | fail: | |
7190 | return NULL; | |
7191 | } | |
7192 | ||
7193 | ||
7194 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetParentResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7195 | PyObject *resultobj = 0; | |
7196 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7197 | wxXmlResource *arg2 = (wxXmlResource *) 0 ; | |
7198 | void *argp1 = 0 ; | |
7199 | int res1 = 0 ; | |
7200 | void *argp2 = 0 ; | |
7201 | int res2 = 0 ; | |
7202 | PyObject * obj0 = 0 ; | |
7203 | PyObject * obj1 = 0 ; | |
7204 | char * kwnames[] = { | |
7205 | (char *) "self",(char *) "res", NULL | |
7206 | }; | |
7207 | ||
7208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames,&obj0,&obj1)) SWIG_fail; | |
7209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7210 | if (!SWIG_IsOK(res1)) { | |
7211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7212 | } | |
7213 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7214 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
7215 | if (!SWIG_IsOK(res2)) { | |
7216 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "2"" of type '" "wxXmlResource *""'"); | |
7217 | } | |
7218 | arg2 = reinterpret_cast< wxXmlResource * >(argp2); | |
7219 | { | |
7220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7221 | (arg1)->SetParentResource(arg2); | |
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | resultobj = SWIG_Py_Void(); | |
7226 | return resultobj; | |
7227 | fail: | |
7228 | return NULL; | |
2ef75293 RD |
7229 | } |
7230 | ||
7231 | ||
0085ce49 RD |
7232 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7233 | PyObject *resultobj = 0; | |
7234 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7235 | wxXmlResource *result = 0 ; | |
7236 | void *argp1 = 0 ; | |
7237 | int res1 = 0 ; | |
7238 | PyObject *swig_obj[1] ; | |
7239 | ||
7240 | if (!args) SWIG_fail; | |
7241 | swig_obj[0] = args; | |
7242 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7243 | if (!SWIG_IsOK(res1)) { | |
7244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7245 | } | |
7246 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7247 | { | |
7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7249 | result = (wxXmlResource *)(arg1)->GetResource(); | |
7250 | wxPyEndAllowThreads(__tstate); | |
7251 | if (PyErr_Occurred()) SWIG_fail; | |
7252 | } | |
7253 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
7254 | return resultobj; | |
7255 | fail: | |
7256 | return NULL; | |
2ef75293 RD |
7257 | } |
7258 | ||
7259 | ||
0085ce49 RD |
7260 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7261 | PyObject *resultobj = 0; | |
7262 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7263 | wxXmlNode *result = 0 ; | |
7264 | void *argp1 = 0 ; | |
7265 | int res1 = 0 ; | |
7266 | PyObject *swig_obj[1] ; | |
7267 | ||
7268 | if (!args) SWIG_fail; | |
7269 | swig_obj[0] = args; | |
7270 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7271 | if (!SWIG_IsOK(res1)) { | |
7272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7273 | } | |
7274 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7275 | { | |
7276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7277 | result = (wxXmlNode *)(arg1)->GetNode(); | |
7278 | wxPyEndAllowThreads(__tstate); | |
7279 | if (PyErr_Occurred()) SWIG_fail; | |
7280 | } | |
7281 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7282 | return resultobj; | |
7283 | fail: | |
7284 | return NULL; | |
2ef75293 RD |
7285 | } |
7286 | ||
7287 | ||
0085ce49 RD |
7288 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7289 | PyObject *resultobj = 0; | |
7290 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7291 | wxString result; | |
7292 | void *argp1 = 0 ; | |
7293 | int res1 = 0 ; | |
7294 | PyObject *swig_obj[1] ; | |
7295 | ||
7296 | if (!args) SWIG_fail; | |
7297 | swig_obj[0] = args; | |
7298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7299 | if (!SWIG_IsOK(res1)) { | |
7300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7301 | } | |
7302 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7303 | { | |
7304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7305 | result = (arg1)->GetClass(); | |
7306 | wxPyEndAllowThreads(__tstate); | |
7307 | if (PyErr_Occurred()) SWIG_fail; | |
7308 | } | |
7309 | { | |
2ef75293 | 7310 | #if wxUSE_UNICODE |
0085ce49 | 7311 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
2ef75293 | 7312 | #else |
0085ce49 | 7313 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
2ef75293 | 7314 | #endif |
0085ce49 RD |
7315 | } |
7316 | return resultobj; | |
7317 | fail: | |
7318 | return NULL; | |
2ef75293 RD |
7319 | } |
7320 | ||
7321 | ||
0085ce49 RD |
7322 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7323 | PyObject *resultobj = 0; | |
7324 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7325 | wxObject *result = 0 ; | |
7326 | void *argp1 = 0 ; | |
7327 | int res1 = 0 ; | |
7328 | PyObject *swig_obj[1] ; | |
7329 | ||
7330 | if (!args) SWIG_fail; | |
7331 | swig_obj[0] = args; | |
7332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7333 | if (!SWIG_IsOK(res1)) { | |
7334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7335 | } | |
7336 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7337 | { | |
7338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7339 | result = (wxObject *)(arg1)->GetParent(); | |
7340 | wxPyEndAllowThreads(__tstate); | |
7341 | if (PyErr_Occurred()) SWIG_fail; | |
7342 | } | |
7343 | { | |
7344 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7345 | } | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | return NULL; | |
2ef75293 RD |
7349 | } |
7350 | ||
7351 | ||
0085ce49 RD |
7352 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7353 | PyObject *resultobj = 0; | |
7354 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7355 | wxObject *result = 0 ; | |
7356 | void *argp1 = 0 ; | |
7357 | int res1 = 0 ; | |
7358 | PyObject *swig_obj[1] ; | |
7359 | ||
7360 | if (!args) SWIG_fail; | |
7361 | swig_obj[0] = args; | |
7362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7363 | if (!SWIG_IsOK(res1)) { | |
7364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetInstance" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7365 | } | |
7366 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7367 | { | |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | result = (wxObject *)(arg1)->GetInstance(); | |
7370 | wxPyEndAllowThreads(__tstate); | |
7371 | if (PyErr_Occurred()) SWIG_fail; | |
7372 | } | |
7373 | { | |
7374 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7375 | } | |
7376 | return resultobj; | |
7377 | fail: | |
7378 | return NULL; | |
2ef75293 RD |
7379 | } |
7380 | ||
7381 | ||
0085ce49 RD |
7382 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7383 | PyObject *resultobj = 0; | |
7384 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7385 | wxWindow *result = 0 ; | |
7386 | void *argp1 = 0 ; | |
7387 | int res1 = 0 ; | |
7388 | PyObject *swig_obj[1] ; | |
7389 | ||
7390 | if (!args) SWIG_fail; | |
7391 | swig_obj[0] = args; | |
7392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7393 | if (!SWIG_IsOK(res1)) { | |
7394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParentAsWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7395 | } | |
7396 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7397 | { | |
7398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7399 | result = (wxWindow *)(arg1)->GetParentAsWindow(); | |
7400 | wxPyEndAllowThreads(__tstate); | |
7401 | if (PyErr_Occurred()) SWIG_fail; | |
7402 | } | |
7403 | { | |
7404 | resultobj = wxPyMake_wxObject(result, 0); | |
7405 | } | |
7406 | return resultobj; | |
7407 | fail: | |
7408 | return NULL; | |
7409 | } | |
7410 | ||
7411 | ||
7412 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7413 | PyObject *resultobj = 0; | |
7414 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7415 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
7416 | wxString *arg3 = 0 ; | |
7417 | bool result; | |
7418 | void *argp1 = 0 ; | |
7419 | int res1 = 0 ; | |
7420 | void *argp2 = 0 ; | |
7421 | int res2 = 0 ; | |
7422 | bool temp3 = false ; | |
7423 | PyObject * obj0 = 0 ; | |
7424 | PyObject * obj1 = 0 ; | |
7425 | PyObject * obj2 = 0 ; | |
7426 | char * kwnames[] = { | |
7427 | (char *) "self",(char *) "node",(char *) "classname", NULL | |
7428 | }; | |
7429 | ||
7430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7432 | if (!SWIG_IsOK(res1)) { | |
7433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7434 | } | |
7435 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7436 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7437 | if (!SWIG_IsOK(res2)) { | |
7438 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
7439 | } | |
7440 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
7441 | { | |
7442 | arg3 = wxString_in_helper(obj2); | |
7443 | if (arg3 == NULL) SWIG_fail; | |
7444 | temp3 = true; | |
7445 | } | |
7446 | { | |
7447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7448 | result = (bool)(arg1)->IsOfClass(arg2,(wxString const &)*arg3); | |
7449 | wxPyEndAllowThreads(__tstate); | |
7450 | if (PyErr_Occurred()) SWIG_fail; | |
7451 | } | |
7452 | { | |
7453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7454 | } | |
7455 | { | |
7456 | if (temp3) | |
7457 | delete arg3; | |
7458 | } | |
7459 | return resultobj; | |
7460 | fail: | |
7461 | { | |
7462 | if (temp3) | |
7463 | delete arg3; | |
7464 | } | |
7465 | return NULL; | |
7466 | } | |
7467 | ||
7468 | ||
7469 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7470 | PyObject *resultobj = 0; | |
7471 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7472 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
7473 | wxString result; | |
7474 | void *argp1 = 0 ; | |
7475 | int res1 = 0 ; | |
7476 | void *argp2 = 0 ; | |
7477 | int res2 = 0 ; | |
7478 | PyObject * obj0 = 0 ; | |
7479 | PyObject * obj1 = 0 ; | |
7480 | char * kwnames[] = { | |
7481 | (char *) "self",(char *) "node", NULL | |
7482 | }; | |
7483 | ||
7484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
7485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7486 | if (!SWIG_IsOK(res1)) { | |
7487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7488 | } | |
7489 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7490 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7491 | if (!SWIG_IsOK(res2)) { | |
7492 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
7493 | } | |
7494 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
7495 | { | |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | result = (arg1)->GetNodeContent(arg2); | |
7498 | wxPyEndAllowThreads(__tstate); | |
7499 | if (PyErr_Occurred()) SWIG_fail; | |
7500 | } | |
7501 | { | |
7502 | #if wxUSE_UNICODE | |
7503 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7504 | #else | |
7505 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7506 | #endif | |
7507 | } | |
7508 | return resultobj; | |
7509 | fail: | |
7510 | return NULL; | |
7511 | } | |
7512 | ||
7513 | ||
7514 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7515 | PyObject *resultobj = 0; | |
7516 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7517 | wxString *arg2 = 0 ; | |
7518 | bool result; | |
7519 | void *argp1 = 0 ; | |
7520 | int res1 = 0 ; | |
7521 | bool temp2 = false ; | |
7522 | PyObject * obj0 = 0 ; | |
7523 | PyObject * obj1 = 0 ; | |
7524 | char * kwnames[] = { | |
7525 | (char *) "self",(char *) "param", NULL | |
7526 | }; | |
7527 | ||
7528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_HasParam",kwnames,&obj0,&obj1)) SWIG_fail; | |
7529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7530 | if (!SWIG_IsOK(res1)) { | |
7531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_HasParam" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7532 | } | |
7533 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7534 | { | |
7535 | arg2 = wxString_in_helper(obj1); | |
7536 | if (arg2 == NULL) SWIG_fail; | |
7537 | temp2 = true; | |
7538 | } | |
7539 | { | |
7540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7541 | result = (bool)(arg1)->HasParam((wxString const &)*arg2); | |
7542 | wxPyEndAllowThreads(__tstate); | |
7543 | if (PyErr_Occurred()) SWIG_fail; | |
7544 | } | |
7545 | { | |
7546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7547 | } | |
7548 | { | |
7549 | if (temp2) | |
7550 | delete arg2; | |
7551 | } | |
7552 | return resultobj; | |
7553 | fail: | |
7554 | { | |
7555 | if (temp2) | |
7556 | delete arg2; | |
7557 | } | |
7558 | return NULL; | |
7559 | } | |
7560 | ||
7561 | ||
7562 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7563 | PyObject *resultobj = 0; | |
7564 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7565 | wxString *arg2 = 0 ; | |
7566 | wxXmlNode *result = 0 ; | |
7567 | void *argp1 = 0 ; | |
7568 | int res1 = 0 ; | |
7569 | bool temp2 = false ; | |
7570 | PyObject * obj0 = 0 ; | |
7571 | PyObject * obj1 = 0 ; | |
7572 | char * kwnames[] = { | |
7573 | (char *) "self",(char *) "param", NULL | |
7574 | }; | |
7575 | ||
7576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7578 | if (!SWIG_IsOK(res1)) { | |
7579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7580 | } | |
7581 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7582 | { | |
7583 | arg2 = wxString_in_helper(obj1); | |
7584 | if (arg2 == NULL) SWIG_fail; | |
7585 | temp2 = true; | |
7586 | } | |
7587 | { | |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | result = (wxXmlNode *)(arg1)->GetParamNode((wxString const &)*arg2); | |
7590 | wxPyEndAllowThreads(__tstate); | |
7591 | if (PyErr_Occurred()) SWIG_fail; | |
7592 | } | |
7593 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7594 | { | |
7595 | if (temp2) | |
7596 | delete arg2; | |
7597 | } | |
7598 | return resultobj; | |
7599 | fail: | |
7600 | { | |
7601 | if (temp2) | |
7602 | delete arg2; | |
7603 | } | |
7604 | return NULL; | |
7605 | } | |
7606 | ||
7607 | ||
7608 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7609 | PyObject *resultobj = 0; | |
7610 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7611 | wxString *arg2 = 0 ; | |
7612 | wxString result; | |
7613 | void *argp1 = 0 ; | |
7614 | int res1 = 0 ; | |
7615 | bool temp2 = false ; | |
7616 | PyObject * obj0 = 0 ; | |
7617 | PyObject * obj1 = 0 ; | |
7618 | char * kwnames[] = { | |
7619 | (char *) "self",(char *) "param", NULL | |
7620 | }; | |
7621 | ||
7622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
7623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7624 | if (!SWIG_IsOK(res1)) { | |
7625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamValue" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7626 | } | |
7627 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7628 | { | |
7629 | arg2 = wxString_in_helper(obj1); | |
7630 | if (arg2 == NULL) SWIG_fail; | |
7631 | temp2 = true; | |
7632 | } | |
7633 | { | |
7634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7635 | result = (arg1)->GetParamValue((wxString const &)*arg2); | |
7636 | wxPyEndAllowThreads(__tstate); | |
7637 | if (PyErr_Occurred()) SWIG_fail; | |
7638 | } | |
7639 | { | |
7640 | #if wxUSE_UNICODE | |
7641 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7642 | #else | |
7643 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7644 | #endif | |
7645 | } | |
7646 | { | |
7647 | if (temp2) | |
7648 | delete arg2; | |
7649 | } | |
7650 | return resultobj; | |
7651 | fail: | |
7652 | { | |
7653 | if (temp2) | |
7654 | delete arg2; | |
7655 | } | |
7656 | return NULL; | |
7657 | } | |
7658 | ||
7659 | ||
7660 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7661 | PyObject *resultobj = 0; | |
7662 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7663 | wxString *arg2 = 0 ; | |
7664 | int arg3 ; | |
7665 | void *argp1 = 0 ; | |
7666 | int res1 = 0 ; | |
7667 | bool temp2 = false ; | |
7668 | int val3 ; | |
7669 | int ecode3 = 0 ; | |
7670 | PyObject * obj0 = 0 ; | |
7671 | PyObject * obj1 = 0 ; | |
7672 | PyObject * obj2 = 0 ; | |
7673 | char * kwnames[] = { | |
7674 | (char *) "self",(char *) "name",(char *) "value", NULL | |
7675 | }; | |
7676 | ||
7677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7679 | if (!SWIG_IsOK(res1)) { | |
7680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7681 | } | |
7682 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7683 | { | |
7684 | arg2 = wxString_in_helper(obj1); | |
7685 | if (arg2 == NULL) SWIG_fail; | |
7686 | temp2 = true; | |
7687 | } | |
7688 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7689 | if (!SWIG_IsOK(ecode3)) { | |
7690 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "3"" of type '" "int""'"); | |
7691 | } | |
7692 | arg3 = static_cast< int >(val3); | |
7693 | { | |
7694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7695 | (arg1)->AddStyle((wxString const &)*arg2,arg3); | |
7696 | wxPyEndAllowThreads(__tstate); | |
7697 | if (PyErr_Occurred()) SWIG_fail; | |
7698 | } | |
7699 | resultobj = SWIG_Py_Void(); | |
7700 | { | |
7701 | if (temp2) | |
7702 | delete arg2; | |
7703 | } | |
7704 | return resultobj; | |
7705 | fail: | |
7706 | { | |
7707 | if (temp2) | |
7708 | delete arg2; | |
7709 | } | |
7710 | return NULL; | |
2ef75293 RD |
7711 | } |
7712 | ||
7713 | ||
0085ce49 RD |
7714 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddWindowStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7715 | PyObject *resultobj = 0; | |
7716 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7717 | void *argp1 = 0 ; | |
7718 | int res1 = 0 ; | |
7719 | PyObject *swig_obj[1] ; | |
7720 | ||
7721 | if (!args) SWIG_fail; | |
7722 | swig_obj[0] = args; | |
7723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7724 | if (!SWIG_IsOK(res1)) { | |
7725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddWindowStyles" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7726 | } | |
7727 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7728 | { | |
7729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7730 | (arg1)->AddWindowStyles(); | |
7731 | wxPyEndAllowThreads(__tstate); | |
7732 | if (PyErr_Occurred()) SWIG_fail; | |
7733 | } | |
7734 | resultobj = SWIG_Py_Void(); | |
7735 | return resultobj; | |
7736 | fail: | |
7737 | return NULL; | |
7738 | } | |
7739 | ||
7740 | ||
7741 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7742 | PyObject *resultobj = 0; | |
7743 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7744 | wxString const &arg2_defvalue = wxPyStyleString ; | |
7745 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7746 | int arg3 = (int) 0 ; | |
7747 | int result; | |
7748 | void *argp1 = 0 ; | |
7749 | int res1 = 0 ; | |
7750 | bool temp2 = false ; | |
7751 | int val3 ; | |
7752 | int ecode3 = 0 ; | |
7753 | PyObject * obj0 = 0 ; | |
7754 | PyObject * obj1 = 0 ; | |
7755 | PyObject * obj2 = 0 ; | |
7756 | char * kwnames[] = { | |
7757 | (char *) "self",(char *) "param",(char *) "defaults", NULL | |
7758 | }; | |
7759 | ||
7760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7762 | if (!SWIG_IsOK(res1)) { | |
7763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7764 | } | |
7765 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7766 | if (obj1) { | |
2ef75293 | 7767 | { |
0085ce49 RD |
7768 | arg2 = wxString_in_helper(obj1); |
7769 | if (arg2 == NULL) SWIG_fail; | |
7770 | temp2 = true; | |
2ef75293 | 7771 | } |
0085ce49 RD |
7772 | } |
7773 | if (obj2) { | |
7774 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7775 | if (!SWIG_IsOK(ecode3)) { | |
7776 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "3"" of type '" "int""'"); | |
7777 | } | |
7778 | arg3 = static_cast< int >(val3); | |
7779 | } | |
7780 | { | |
7781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7782 | result = (int)(arg1)->GetStyle((wxString const &)*arg2,arg3); | |
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) SWIG_fail; | |
7785 | } | |
7786 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7787 | { | |
7788 | if (temp2) | |
7789 | delete arg2; | |
7790 | } | |
7791 | return resultobj; | |
7792 | fail: | |
7793 | { | |
7794 | if (temp2) | |
7795 | delete arg2; | |
7796 | } | |
7797 | return NULL; | |
7798 | } | |
7799 | ||
7800 | ||
7801 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7802 | PyObject *resultobj = 0; | |
7803 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7804 | wxString *arg2 = 0 ; | |
7805 | bool arg3 = (bool) true ; | |
7806 | wxString result; | |
7807 | void *argp1 = 0 ; | |
7808 | int res1 = 0 ; | |
7809 | bool temp2 = false ; | |
7810 | bool val3 ; | |
7811 | int ecode3 = 0 ; | |
7812 | PyObject * obj0 = 0 ; | |
7813 | PyObject * obj1 = 0 ; | |
7814 | PyObject * obj2 = 0 ; | |
7815 | char * kwnames[] = { | |
7816 | (char *) "self",(char *) "param",(char *) "translate", NULL | |
7817 | }; | |
7818 | ||
7819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7821 | if (!SWIG_IsOK(res1)) { | |
7822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetText" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7823 | } | |
7824 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7825 | { | |
7826 | arg2 = wxString_in_helper(obj1); | |
7827 | if (arg2 == NULL) SWIG_fail; | |
7828 | temp2 = true; | |
7829 | } | |
7830 | if (obj2) { | |
7831 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7832 | if (!SWIG_IsOK(ecode3)) { | |
7833 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetText" "', expected argument " "3"" of type '" "bool""'"); | |
7834 | } | |
7835 | arg3 = static_cast< bool >(val3); | |
7836 | } | |
7837 | { | |
7838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7839 | result = (arg1)->GetText((wxString const &)*arg2,arg3); | |
7840 | wxPyEndAllowThreads(__tstate); | |
7841 | if (PyErr_Occurred()) SWIG_fail; | |
7842 | } | |
7843 | { | |
7844 | #if wxUSE_UNICODE | |
7845 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7846 | #else | |
7847 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7848 | #endif | |
7849 | } | |
7850 | { | |
7851 | if (temp2) | |
7852 | delete arg2; | |
7853 | } | |
7854 | return resultobj; | |
7855 | fail: | |
7856 | { | |
7857 | if (temp2) | |
7858 | delete arg2; | |
7859 | } | |
7860 | return NULL; | |
2ef75293 RD |
7861 | } |
7862 | ||
7863 | ||
0085ce49 RD |
7864 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7865 | PyObject *resultobj = 0; | |
7866 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7867 | int result; | |
7868 | void *argp1 = 0 ; | |
7869 | int res1 = 0 ; | |
7870 | PyObject *swig_obj[1] ; | |
7871 | ||
7872 | if (!args) SWIG_fail; | |
7873 | swig_obj[0] = args; | |
7874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7875 | if (!SWIG_IsOK(res1)) { | |
7876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetID" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7877 | } | |
7878 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7879 | { | |
7880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7881 | result = (int)(arg1)->GetID(); | |
7882 | wxPyEndAllowThreads(__tstate); | |
7883 | if (PyErr_Occurred()) SWIG_fail; | |
7884 | } | |
7885 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7886 | return resultobj; | |
7887 | fail: | |
7888 | return NULL; | |
2ef75293 RD |
7889 | } |
7890 | ||
7891 | ||
0085ce49 RD |
7892 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7893 | PyObject *resultobj = 0; | |
7894 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7895 | wxString result; | |
7896 | void *argp1 = 0 ; | |
7897 | int res1 = 0 ; | |
7898 | PyObject *swig_obj[1] ; | |
7899 | ||
7900 | if (!args) SWIG_fail; | |
7901 | swig_obj[0] = args; | |
7902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7903 | if (!SWIG_IsOK(res1)) { | |
7904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetName" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7905 | } | |
7906 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7907 | { | |
7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7909 | result = (arg1)->GetName(); | |
7910 | wxPyEndAllowThreads(__tstate); | |
7911 | if (PyErr_Occurred()) SWIG_fail; | |
7912 | } | |
7913 | { | |
7914 | #if wxUSE_UNICODE | |
7915 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7916 | #else | |
7917 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7918 | #endif | |
7919 | } | |
7920 | return resultobj; | |
7921 | fail: | |
7922 | return NULL; | |
7923 | } | |
7924 | ||
7925 | ||
7926 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7927 | PyObject *resultobj = 0; | |
7928 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7929 | wxString *arg2 = 0 ; | |
7930 | bool arg3 = (bool) false ; | |
7931 | bool result; | |
7932 | void *argp1 = 0 ; | |
7933 | int res1 = 0 ; | |
7934 | bool temp2 = false ; | |
7935 | bool val3 ; | |
7936 | int ecode3 = 0 ; | |
7937 | PyObject * obj0 = 0 ; | |
7938 | PyObject * obj1 = 0 ; | |
7939 | PyObject * obj2 = 0 ; | |
7940 | char * kwnames[] = { | |
7941 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
7942 | }; | |
7943 | ||
7944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7946 | if (!SWIG_IsOK(res1)) { | |
7947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7948 | } | |
7949 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7950 | { | |
7951 | arg2 = wxString_in_helper(obj1); | |
7952 | if (arg2 == NULL) SWIG_fail; | |
7953 | temp2 = true; | |
7954 | } | |
7955 | if (obj2) { | |
7956 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7957 | if (!SWIG_IsOK(ecode3)) { | |
7958 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "3"" of type '" "bool""'"); | |
7959 | } | |
7960 | arg3 = static_cast< bool >(val3); | |
7961 | } | |
7962 | { | |
7963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7964 | result = (bool)(arg1)->GetBool((wxString const &)*arg2,arg3); | |
7965 | wxPyEndAllowThreads(__tstate); | |
7966 | if (PyErr_Occurred()) SWIG_fail; | |
7967 | } | |
7968 | { | |
7969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7970 | } | |
7971 | { | |
7972 | if (temp2) | |
7973 | delete arg2; | |
7974 | } | |
7975 | return resultobj; | |
7976 | fail: | |
7977 | { | |
7978 | if (temp2) | |
7979 | delete arg2; | |
7980 | } | |
7981 | return NULL; | |
7982 | } | |
7983 | ||
7984 | ||
7985 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7986 | PyObject *resultobj = 0; | |
7987 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7988 | wxString *arg2 = 0 ; | |
7989 | long arg3 = (long) 0 ; | |
7990 | long result; | |
7991 | void *argp1 = 0 ; | |
7992 | int res1 = 0 ; | |
7993 | bool temp2 = false ; | |
7994 | long val3 ; | |
7995 | int ecode3 = 0 ; | |
7996 | PyObject * obj0 = 0 ; | |
7997 | PyObject * obj1 = 0 ; | |
7998 | PyObject * obj2 = 0 ; | |
7999 | char * kwnames[] = { | |
8000 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
8001 | }; | |
8002 | ||
8003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8005 | if (!SWIG_IsOK(res1)) { | |
8006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8007 | } | |
8008 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8009 | { | |
8010 | arg2 = wxString_in_helper(obj1); | |
8011 | if (arg2 == NULL) SWIG_fail; | |
8012 | temp2 = true; | |
8013 | } | |
8014 | if (obj2) { | |
8015 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8016 | if (!SWIG_IsOK(ecode3)) { | |
8017 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "3"" of type '" "long""'"); | |
8018 | } | |
8019 | arg3 = static_cast< long >(val3); | |
8020 | } | |
8021 | { | |
8022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8023 | result = (long)(arg1)->GetLong((wxString const &)*arg2,arg3); | |
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
8027 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8028 | { | |
8029 | if (temp2) | |
8030 | delete arg2; | |
8031 | } | |
8032 | return resultobj; | |
8033 | fail: | |
8034 | { | |
8035 | if (temp2) | |
8036 | delete arg2; | |
8037 | } | |
8038 | return NULL; | |
8039 | } | |
8040 | ||
8041 | ||
8042 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8043 | PyObject *resultobj = 0; | |
8044 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8045 | wxString *arg2 = 0 ; | |
8046 | wxColour result; | |
8047 | void *argp1 = 0 ; | |
8048 | int res1 = 0 ; | |
8049 | bool temp2 = false ; | |
8050 | PyObject * obj0 = 0 ; | |
8051 | PyObject * obj1 = 0 ; | |
8052 | char * kwnames[] = { | |
8053 | (char *) "self",(char *) "param", NULL | |
8054 | }; | |
8055 | ||
8056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
8057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8058 | if (!SWIG_IsOK(res1)) { | |
8059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetColour" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8060 | } | |
8061 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8062 | { | |
8063 | arg2 = wxString_in_helper(obj1); | |
8064 | if (arg2 == NULL) SWIG_fail; | |
8065 | temp2 = true; | |
8066 | } | |
8067 | { | |
8068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8069 | result = (arg1)->GetColour((wxString const &)*arg2); | |
8070 | wxPyEndAllowThreads(__tstate); | |
8071 | if (PyErr_Occurred()) SWIG_fail; | |
8072 | } | |
8073 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
8074 | { | |
8075 | if (temp2) | |
8076 | delete arg2; | |
8077 | } | |
8078 | return resultobj; | |
8079 | fail: | |
8080 | { | |
8081 | if (temp2) | |
8082 | delete arg2; | |
8083 | } | |
8084 | return NULL; | |
8085 | } | |
8086 | ||
8087 | ||
8088 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8089 | PyObject *resultobj = 0; | |
8090 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8091 | wxString const &arg2_defvalue = wxPySizeString ; | |
8092 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8093 | wxSize result; | |
8094 | void *argp1 = 0 ; | |
8095 | int res1 = 0 ; | |
8096 | bool temp2 = false ; | |
8097 | PyObject * obj0 = 0 ; | |
8098 | PyObject * obj1 = 0 ; | |
8099 | char * kwnames[] = { | |
8100 | (char *) "self",(char *) "param", NULL | |
8101 | }; | |
8102 | ||
8103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
8104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8105 | if (!SWIG_IsOK(res1)) { | |
8106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetSize" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8107 | } | |
8108 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8109 | if (obj1) { | |
2ef75293 | 8110 | { |
0085ce49 RD |
8111 | arg2 = wxString_in_helper(obj1); |
8112 | if (arg2 == NULL) SWIG_fail; | |
8113 | temp2 = true; | |
2ef75293 | 8114 | } |
0085ce49 RD |
8115 | } |
8116 | { | |
8117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8118 | result = (arg1)->GetSize((wxString const &)*arg2); | |
8119 | wxPyEndAllowThreads(__tstate); | |
8120 | if (PyErr_Occurred()) SWIG_fail; | |
8121 | } | |
8122 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
8123 | { | |
8124 | if (temp2) | |
8125 | delete arg2; | |
8126 | } | |
8127 | return resultobj; | |
8128 | fail: | |
8129 | { | |
8130 | if (temp2) | |
8131 | delete arg2; | |
8132 | } | |
8133 | return NULL; | |
8134 | } | |
8135 | ||
8136 | ||
8137 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8138 | PyObject *resultobj = 0; | |
8139 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8140 | wxString const &arg2_defvalue = wxPyPosString ; | |
8141 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8142 | wxPoint result; | |
8143 | void *argp1 = 0 ; | |
8144 | int res1 = 0 ; | |
8145 | bool temp2 = false ; | |
8146 | PyObject * obj0 = 0 ; | |
8147 | PyObject * obj1 = 0 ; | |
8148 | char * kwnames[] = { | |
8149 | (char *) "self",(char *) "param", NULL | |
8150 | }; | |
8151 | ||
8152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
8153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8154 | if (!SWIG_IsOK(res1)) { | |
8155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetPosition" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8156 | } | |
8157 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8158 | if (obj1) { | |
2ef75293 | 8159 | { |
0085ce49 RD |
8160 | arg2 = wxString_in_helper(obj1); |
8161 | if (arg2 == NULL) SWIG_fail; | |
8162 | temp2 = true; | |
2ef75293 | 8163 | } |
0085ce49 RD |
8164 | } |
8165 | { | |
8166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8167 | result = (arg1)->GetPosition((wxString const &)*arg2); | |
8168 | wxPyEndAllowThreads(__tstate); | |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
8170 | } | |
8171 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
8172 | { | |
8173 | if (temp2) | |
8174 | delete arg2; | |
8175 | } | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | { | |
8179 | if (temp2) | |
8180 | delete arg2; | |
8181 | } | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
8186 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8187 | PyObject *resultobj = 0; | |
8188 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8189 | wxString *arg2 = 0 ; | |
8190 | int arg3 = (int) 0 ; | |
8191 | int result; | |
8192 | void *argp1 = 0 ; | |
8193 | int res1 = 0 ; | |
8194 | bool temp2 = false ; | |
8195 | int val3 ; | |
8196 | int ecode3 = 0 ; | |
8197 | PyObject * obj0 = 0 ; | |
8198 | PyObject * obj1 = 0 ; | |
8199 | PyObject * obj2 = 0 ; | |
8200 | char * kwnames[] = { | |
8201 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
8202 | }; | |
8203 | ||
8204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetDimension",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_GetDimension" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8208 | } | |
8209 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8210 | { | |
8211 | arg2 = wxString_in_helper(obj1); | |
8212 | if (arg2 == NULL) SWIG_fail; | |
8213 | temp2 = true; | |
8214 | } | |
8215 | if (obj2) { | |
8216 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8217 | if (!SWIG_IsOK(ecode3)) { | |
8218 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "3"" of type '" "int""'"); | |
8219 | } | |
8220 | arg3 = static_cast< int >(val3); | |
8221 | } | |
8222 | { | |
8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8224 | result = (int)(arg1)->GetDimension((wxString const &)*arg2,arg3); | |
8225 | wxPyEndAllowThreads(__tstate); | |
8226 | if (PyErr_Occurred()) SWIG_fail; | |
8227 | } | |
8228 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8229 | { | |
8230 | if (temp2) | |
8231 | delete arg2; | |
8232 | } | |
8233 | return resultobj; | |
8234 | fail: | |
8235 | { | |
8236 | if (temp2) | |
8237 | delete arg2; | |
8238 | } | |
8239 | return NULL; | |
8240 | } | |
8241 | ||
8242 | ||
8243 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8244 | PyObject *resultobj = 0; | |
8245 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8246 | wxString const &arg2_defvalue = wxPyBitmapString ; | |
8247 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8248 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
8249 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
8250 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
8251 | wxBitmap result; | |
8252 | void *argp1 = 0 ; | |
8253 | int res1 = 0 ; | |
8254 | bool temp2 = false ; | |
8255 | void *argp3 = 0 ; | |
8256 | int res3 = 0 ; | |
8257 | void *argp4 ; | |
8258 | int res4 = 0 ; | |
8259 | PyObject * obj0 = 0 ; | |
8260 | PyObject * obj1 = 0 ; | |
8261 | PyObject * obj2 = 0 ; | |
8262 | PyObject * obj3 = 0 ; | |
8263 | char * kwnames[] = { | |
8264 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
8265 | }; | |
8266 | ||
8267 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8268 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8269 | if (!SWIG_IsOK(res1)) { | |
8270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8271 | } | |
8272 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8273 | if (obj1) { | |
2ef75293 | 8274 | { |
0085ce49 RD |
8275 | arg2 = wxString_in_helper(obj1); |
8276 | if (arg2 == NULL) SWIG_fail; | |
8277 | temp2 = true; | |
2ef75293 | 8278 | } |
0085ce49 RD |
8279 | } |
8280 | if (obj2) { | |
8281 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0); | |
8282 | if (!SWIG_IsOK(res3)) { | |
8283 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
2ef75293 | 8284 | } |
0085ce49 RD |
8285 | if (!argp3) { |
8286 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
2ef75293 | 8287 | } |
0085ce49 RD |
8288 | arg3 = reinterpret_cast< wxArtClient * >(argp3); |
8289 | } | |
8290 | if (obj3) { | |
8291 | { | |
8292 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0); | |
8293 | if (!SWIG_IsOK(res4)) { | |
8294 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'"); | |
8295 | } | |
8296 | if (!argp4) { | |
8297 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'"); | |
8298 | } else { | |
8299 | wxSize * temp = reinterpret_cast< wxSize * >(argp4); | |
8300 | arg4 = *temp; | |
8301 | if (SWIG_IsNewObj(res4)) delete temp; | |
8302 | } | |
2ef75293 | 8303 | } |
0085ce49 RD |
8304 | } |
8305 | { | |
8306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8307 | result = (arg1)->GetBitmap((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
8308 | wxPyEndAllowThreads(__tstate); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | } | |
8311 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8312 | { | |
8313 | if (temp2) | |
8314 | delete arg2; | |
8315 | } | |
8316 | return resultobj; | |
8317 | fail: | |
8318 | { | |
8319 | if (temp2) | |
8320 | delete arg2; | |
8321 | } | |
8322 | return NULL; | |
8323 | } | |
8324 | ||
8325 | ||
8326 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8327 | PyObject *resultobj = 0; | |
8328 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8329 | wxString const &arg2_defvalue = wxPyIconString ; | |
8330 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8331 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
8332 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
8333 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
8334 | wxIcon result; | |
8335 | void *argp1 = 0 ; | |
8336 | int res1 = 0 ; | |
8337 | bool temp2 = false ; | |
8338 | void *argp3 = 0 ; | |
8339 | int res3 = 0 ; | |
8340 | void *argp4 ; | |
8341 | int res4 = 0 ; | |
8342 | PyObject * obj0 = 0 ; | |
8343 | PyObject * obj1 = 0 ; | |
8344 | PyObject * obj2 = 0 ; | |
8345 | PyObject * obj3 = 0 ; | |
8346 | char * kwnames[] = { | |
8347 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
8348 | }; | |
8349 | ||
8350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8352 | if (!SWIG_IsOK(res1)) { | |
8353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8354 | } | |
8355 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8356 | if (obj1) { | |
2ef75293 | 8357 | { |
0085ce49 RD |
8358 | arg2 = wxString_in_helper(obj1); |
8359 | if (arg2 == NULL) SWIG_fail; | |
8360 | temp2 = true; | |
2ef75293 | 8361 | } |
0085ce49 RD |
8362 | } |
8363 | if (obj2) { | |
8364 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0); | |
8365 | if (!SWIG_IsOK(res3)) { | |
8366 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
2ef75293 | 8367 | } |
0085ce49 RD |
8368 | if (!argp3) { |
8369 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
2ef75293 | 8370 | } |
0085ce49 RD |
8371 | arg3 = reinterpret_cast< wxArtClient * >(argp3); |
8372 | } | |
8373 | if (obj3) { | |
8374 | { | |
8375 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0); | |
8376 | if (!SWIG_IsOK(res4)) { | |
8377 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'"); | |
8378 | } | |
8379 | if (!argp4) { | |
8380 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'"); | |
8381 | } else { | |
8382 | wxSize * temp = reinterpret_cast< wxSize * >(argp4); | |
8383 | arg4 = *temp; | |
8384 | if (SWIG_IsNewObj(res4)) delete temp; | |
8385 | } | |
2ef75293 | 8386 | } |
0085ce49 RD |
8387 | } |
8388 | { | |
8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8390 | result = (arg1)->GetIcon((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
8391 | wxPyEndAllowThreads(__tstate); | |
8392 | if (PyErr_Occurred()) SWIG_fail; | |
8393 | } | |
8394 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
8395 | { | |
8396 | if (temp2) | |
8397 | delete arg2; | |
8398 | } | |
8399 | return resultobj; | |
8400 | fail: | |
8401 | { | |
8402 | if (temp2) | |
8403 | delete arg2; | |
8404 | } | |
8405 | return NULL; | |
8406 | } | |
8407 | ||
8408 | ||
8409 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8410 | PyObject *resultobj = 0; | |
8411 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8412 | wxString const &arg2_defvalue = wxPyFontString ; | |
8413 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8414 | wxFont result; | |
8415 | void *argp1 = 0 ; | |
8416 | int res1 = 0 ; | |
8417 | bool temp2 = false ; | |
8418 | PyObject * obj0 = 0 ; | |
8419 | PyObject * obj1 = 0 ; | |
8420 | char * kwnames[] = { | |
8421 | (char *) "self",(char *) "param", NULL | |
8422 | }; | |
8423 | ||
8424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
8425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8426 | if (!SWIG_IsOK(res1)) { | |
8427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetFont" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8428 | } | |
8429 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8430 | if (obj1) { | |
2ef75293 | 8431 | { |
0085ce49 RD |
8432 | arg2 = wxString_in_helper(obj1); |
8433 | if (arg2 == NULL) SWIG_fail; | |
8434 | temp2 = true; | |
2ef75293 | 8435 | } |
0085ce49 RD |
8436 | } |
8437 | { | |
8438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8439 | result = (arg1)->GetFont((wxString const &)*arg2); | |
8440 | wxPyEndAllowThreads(__tstate); | |
8441 | if (PyErr_Occurred()) SWIG_fail; | |
8442 | } | |
8443 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
8444 | { | |
8445 | if (temp2) | |
8446 | delete arg2; | |
8447 | } | |
8448 | return resultobj; | |
8449 | fail: | |
8450 | { | |
8451 | if (temp2) | |
8452 | delete arg2; | |
8453 | } | |
8454 | return NULL; | |
8455 | } | |
8456 | ||
8457 | ||
0a27f394 RD |
8458 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetAnimation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8459 | PyObject *resultobj = 0; | |
8460 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8461 | wxString const &arg2_defvalue = wxPyAnimationString ; | |
8462 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8463 | wxAnimation result; | |
8464 | void *argp1 = 0 ; | |
8465 | int res1 = 0 ; | |
8466 | bool temp2 = false ; | |
8467 | PyObject * obj0 = 0 ; | |
8468 | PyObject * obj1 = 0 ; | |
8469 | char * kwnames[] = { | |
8470 | (char *) "self",(char *) "param", NULL | |
8471 | }; | |
8472 | ||
8473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetAnimation",kwnames,&obj0,&obj1)) SWIG_fail; | |
8474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8475 | if (!SWIG_IsOK(res1)) { | |
8476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetAnimation" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8477 | } | |
8478 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8479 | if (obj1) { | |
8480 | { | |
8481 | arg2 = wxString_in_helper(obj1); | |
8482 | if (arg2 == NULL) SWIG_fail; | |
8483 | temp2 = true; | |
8484 | } | |
8485 | } | |
8486 | { | |
8487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8488 | result = (arg1)->GetAnimation((wxString const &)*arg2); | |
8489 | wxPyEndAllowThreads(__tstate); | |
8490 | if (PyErr_Occurred()) SWIG_fail; | |
8491 | } | |
8492 | resultobj = SWIG_NewPointerObj((new wxAnimation(static_cast< const wxAnimation& >(result))), SWIGTYPE_p_wxAnimation, SWIG_POINTER_OWN | 0 ); | |
8493 | { | |
8494 | if (temp2) | |
8495 | delete arg2; | |
8496 | } | |
8497 | return resultobj; | |
8498 | fail: | |
8499 | { | |
8500 | if (temp2) | |
8501 | delete arg2; | |
8502 | } | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
0085ce49 RD |
8507 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8508 | PyObject *resultobj = 0; | |
8509 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8510 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8511 | void *argp1 = 0 ; | |
8512 | int res1 = 0 ; | |
8513 | void *argp2 = 0 ; | |
8514 | int res2 = 0 ; | |
8515 | PyObject * obj0 = 0 ; | |
8516 | PyObject * obj1 = 0 ; | |
8517 | char * kwnames[] = { | |
8518 | (char *) "self",(char *) "wnd", NULL | |
8519 | }; | |
8520 | ||
8521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
8522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8523 | if (!SWIG_IsOK(res1)) { | |
8524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8525 | } | |
8526 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8527 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8528 | if (!SWIG_IsOK(res2)) { | |
8529 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8530 | } | |
8531 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8532 | { | |
8533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8534 | (arg1)->SetupWindow(arg2); | |
8535 | wxPyEndAllowThreads(__tstate); | |
8536 | if (PyErr_Occurred()) SWIG_fail; | |
8537 | } | |
8538 | resultobj = SWIG_Py_Void(); | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
8545 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8546 | PyObject *resultobj = 0; | |
8547 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8548 | wxObject *arg2 = (wxObject *) 0 ; | |
8549 | bool arg3 = (bool) false ; | |
8550 | void *argp1 = 0 ; | |
8551 | int res1 = 0 ; | |
8552 | void *argp2 = 0 ; | |
8553 | int res2 = 0 ; | |
8554 | bool val3 ; | |
8555 | int ecode3 = 0 ; | |
8556 | PyObject * obj0 = 0 ; | |
8557 | PyObject * obj1 = 0 ; | |
8558 | PyObject * obj2 = 0 ; | |
8559 | char * kwnames[] = { | |
8560 | (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL | |
8561 | }; | |
8562 | ||
8563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8565 | if (!SWIG_IsOK(res1)) { | |
8566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8567 | } | |
8568 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8569 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8570 | if (!SWIG_IsOK(res2)) { | |
8571 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "2"" of type '" "wxObject *""'"); | |
8572 | } | |
8573 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
8574 | if (obj2) { | |
8575 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
8576 | if (!SWIG_IsOK(ecode3)) { | |
8577 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "3"" of type '" "bool""'"); | |
8578 | } | |
8579 | arg3 = static_cast< bool >(val3); | |
8580 | } | |
8581 | { | |
8582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8583 | (arg1)->CreateChildren(arg2,arg3); | |
8584 | wxPyEndAllowThreads(__tstate); | |
8585 | if (PyErr_Occurred()) SWIG_fail; | |
8586 | } | |
8587 | resultobj = SWIG_Py_Void(); | |
8588 | return resultobj; | |
8589 | fail: | |
8590 | return NULL; | |
8591 | } | |
8592 | ||
8593 | ||
8594 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8595 | PyObject *resultobj = 0; | |
8596 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8597 | wxObject *arg2 = (wxObject *) 0 ; | |
8598 | wxXmlNode *arg3 = (wxXmlNode *) NULL ; | |
8599 | void *argp1 = 0 ; | |
8600 | int res1 = 0 ; | |
8601 | void *argp2 = 0 ; | |
8602 | int res2 = 0 ; | |
8603 | void *argp3 = 0 ; | |
8604 | int res3 = 0 ; | |
8605 | PyObject * obj0 = 0 ; | |
8606 | PyObject * obj1 = 0 ; | |
8607 | PyObject * obj2 = 0 ; | |
8608 | char * kwnames[] = { | |
8609 | (char *) "self",(char *) "parent",(char *) "rootnode", NULL | |
8610 | }; | |
8611 | ||
8612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8614 | if (!SWIG_IsOK(res1)) { | |
8615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8616 | } | |
8617 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8618 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8619 | if (!SWIG_IsOK(res2)) { | |
8620 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "2"" of type '" "wxObject *""'"); | |
8621 | } | |
8622 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
8623 | if (obj2) { | |
8624 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
8625 | if (!SWIG_IsOK(res3)) { | |
8626 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "3"" of type '" "wxXmlNode *""'"); | |
2ef75293 | 8627 | } |
0085ce49 RD |
8628 | arg3 = reinterpret_cast< wxXmlNode * >(argp3); |
8629 | } | |
8630 | { | |
8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8632 | (arg1)->CreateChildrenPrivately(arg2,arg3); | |
8633 | wxPyEndAllowThreads(__tstate); | |
8634 | if (PyErr_Occurred()) SWIG_fail; | |
8635 | } | |
8636 | resultobj = SWIG_Py_Void(); | |
8637 | return resultobj; | |
8638 | fail: | |
8639 | return NULL; | |
8640 | } | |
8641 | ||
8642 | ||
8643 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8644 | PyObject *resultobj = 0; | |
8645 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8646 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
8647 | wxObject *arg3 = (wxObject *) 0 ; | |
8648 | wxObject *arg4 = (wxObject *) NULL ; | |
8649 | wxObject *result = 0 ; | |
8650 | void *argp1 = 0 ; | |
8651 | int res1 = 0 ; | |
8652 | void *argp2 = 0 ; | |
8653 | int res2 = 0 ; | |
8654 | void *argp3 = 0 ; | |
8655 | int res3 = 0 ; | |
8656 | void *argp4 = 0 ; | |
8657 | int res4 = 0 ; | |
8658 | PyObject * obj0 = 0 ; | |
8659 | PyObject * obj1 = 0 ; | |
8660 | PyObject * obj2 = 0 ; | |
8661 | PyObject * obj3 = 0 ; | |
8662 | char * kwnames[] = { | |
8663 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
8664 | }; | |
8665 | ||
8666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8668 | if (!SWIG_IsOK(res1)) { | |
8669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8670 | } | |
8671 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8672 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
8673 | if (!SWIG_IsOK(res2)) { | |
8674 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
8675 | } | |
8676 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
8677 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8678 | if (!SWIG_IsOK(res3)) { | |
8679 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "3"" of type '" "wxObject *""'"); | |
8680 | } | |
8681 | arg3 = reinterpret_cast< wxObject * >(argp3); | |
8682 | if (obj3) { | |
8683 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8684 | if (!SWIG_IsOK(res4)) { | |
8685 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "4"" of type '" "wxObject *""'"); | |
2ef75293 | 8686 | } |
0085ce49 RD |
8687 | arg4 = reinterpret_cast< wxObject * >(argp4); |
8688 | } | |
8689 | { | |
8690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8691 | result = (wxObject *)(arg1)->CreateResFromNode(arg2,arg3,arg4); | |
8692 | wxPyEndAllowThreads(__tstate); | |
8693 | if (PyErr_Occurred()) SWIG_fail; | |
8694 | } | |
8695 | { | |
8696 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
8697 | } | |
8698 | return resultobj; | |
8699 | fail: | |
8700 | return NULL; | |
2ef75293 RD |
8701 | } |
8702 | ||
8703 | ||
0085ce49 RD |
8704 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetCurFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8705 | PyObject *resultobj = 0; | |
8706 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8707 | wxFileSystem *result = 0 ; | |
8708 | void *argp1 = 0 ; | |
8709 | int res1 = 0 ; | |
8710 | PyObject *swig_obj[1] ; | |
8711 | ||
8712 | if (!args) SWIG_fail; | |
8713 | swig_obj[0] = args; | |
8714 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8715 | if (!SWIG_IsOK(res1)) { | |
8716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetCurFileSystem" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8717 | } | |
8718 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8719 | { | |
8720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2ef75293 | 8721 | { |
0085ce49 RD |
8722 | wxFileSystem &_result_ref = (arg1)->GetCurFileSystem(); |
8723 | result = (wxFileSystem *) &_result_ref; | |
2ef75293 | 8724 | } |
0085ce49 RD |
8725 | wxPyEndAllowThreads(__tstate); |
8726 | if (PyErr_Occurred()) SWIG_fail; | |
8727 | } | |
8728 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
8729 | return resultobj; | |
8730 | fail: | |
8731 | return NULL; | |
2ef75293 RD |
8732 | } |
8733 | ||
8734 | ||
0085ce49 RD |
8735 | SWIGINTERN PyObject *XmlResourceHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8736 | PyObject *obj; | |
8737 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8738 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_NewClientData(obj)); | |
8739 | return SWIG_Py_Void(); | |
2ef75293 RD |
8740 | } |
8741 | ||
0085ce49 RD |
8742 | SWIGINTERN PyObject *XmlResourceHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8743 | return SWIG_Python_InitShadowInstance(args); | |
2ef75293 RD |
8744 | } |
8745 | ||
2ef75293 | 8746 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
8747 | { (char *)"new_XmlResource", (PyCFunction) _wrap_new_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL}, |
8748 | { (char *)"new_EmptyXmlResource", (PyCFunction) _wrap_new_EmptyXmlResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8749 | { (char *)"delete_XmlResource", (PyCFunction)_wrap_delete_XmlResource, METH_O, NULL}, |
093d3ff1 RD |
8750 | { (char *)"XmlResource_Load", (PyCFunction) _wrap_XmlResource_Load, METH_VARARGS | METH_KEYWORDS, NULL}, |
8751 | { (char *)"XmlResource_LoadFromString", (PyCFunction) _wrap_XmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 8752 | { (char *)"XmlResource_Unload", (PyCFunction) _wrap_XmlResource_Unload, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 8753 | { (char *)"XmlResource_InitAllHandlers", (PyCFunction)_wrap_XmlResource_InitAllHandlers, METH_O, NULL}, |
093d3ff1 RD |
8754 | { (char *)"XmlResource_AddHandler", (PyCFunction) _wrap_XmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, |
8755 | { (char *)"XmlResource_InsertHandler", (PyCFunction) _wrap_XmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8756 | { (char *)"XmlResource_ClearHandlers", (PyCFunction)_wrap_XmlResource_ClearHandlers, METH_O, NULL}, |
093d3ff1 RD |
8757 | { (char *)"XmlResource_AddSubclassFactory", (PyCFunction) _wrap_XmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
8758 | { (char *)"XmlResource_LoadMenu", (PyCFunction) _wrap_XmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8759 | { (char *)"XmlResource_LoadMenuBar", (PyCFunction) _wrap_XmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8760 | { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_XmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8761 | { (char *)"XmlResource_LoadToolBar", (PyCFunction) _wrap_XmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8762 | { (char *)"XmlResource_LoadDialog", (PyCFunction) _wrap_XmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8763 | { (char *)"XmlResource_LoadOnDialog", (PyCFunction) _wrap_XmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8764 | { (char *)"XmlResource_LoadPanel", (PyCFunction) _wrap_XmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8765 | { (char *)"XmlResource_LoadOnPanel", (PyCFunction) _wrap_XmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8766 | { (char *)"XmlResource_LoadFrame", (PyCFunction) _wrap_XmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8767 | { (char *)"XmlResource_LoadOnFrame", (PyCFunction) _wrap_XmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8768 | { (char *)"XmlResource_LoadObject", (PyCFunction) _wrap_XmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8769 | { (char *)"XmlResource_LoadOnObject", (PyCFunction) _wrap_XmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8770 | { (char *)"XmlResource_LoadBitmap", (PyCFunction) _wrap_XmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8771 | { (char *)"XmlResource_LoadIcon", (PyCFunction) _wrap_XmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8772 | { (char *)"XmlResource_AttachUnknownControl", (PyCFunction) _wrap_XmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8773 | { (char *)"XmlResource_GetXRCID", (PyCFunction) _wrap_XmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8774 | { (char *)"XmlResource_GetVersion", (PyCFunction)_wrap_XmlResource_GetVersion, METH_O, NULL}, |
093d3ff1 | 8775 | { (char *)"XmlResource_CompareVersion", (PyCFunction) _wrap_XmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 8776 | { (char *)"XmlResource_Get", (PyCFunction)_wrap_XmlResource_Get, METH_NOARGS, NULL}, |
093d3ff1 | 8777 | { (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 8778 | { (char *)"XmlResource_GetFlags", (PyCFunction)_wrap_XmlResource_GetFlags, METH_O, NULL}, |
093d3ff1 | 8779 | { (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
fc46b7f3 RD |
8780 | { (char *)"XmlResource_GetDomain", (PyCFunction)_wrap_XmlResource_GetDomain, METH_O, NULL}, |
8781 | { (char *)"XmlResource_SetDomain", (PyCFunction) _wrap_XmlResource_SetDomain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 8782 | { (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS, NULL}, |
0085ce49 RD |
8783 | { (char *)"XmlResource_swiginit", XmlResource_swiginit, METH_VARARGS, NULL}, |
8784 | { (char *)"new_XmlSubclassFactory", (PyCFunction)_wrap_new_XmlSubclassFactory, METH_NOARGS, NULL}, | |
093d3ff1 RD |
8785 | { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_XmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
8786 | { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 8787 | { (char *)"XmlSubclassFactory_swiginit", XmlSubclassFactory_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 8788 | { (char *)"new_XmlProperty", (PyCFunction) _wrap_new_XmlProperty, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
8789 | { (char *)"XmlProperty_GetName", (PyCFunction)_wrap_XmlProperty_GetName, METH_O, NULL}, |
8790 | { (char *)"XmlProperty_GetValue", (PyCFunction)_wrap_XmlProperty_GetValue, METH_O, NULL}, | |
8791 | { (char *)"XmlProperty_GetNext", (PyCFunction)_wrap_XmlProperty_GetNext, METH_O, NULL}, | |
093d3ff1 RD |
8792 | { (char *)"XmlProperty_SetName", (PyCFunction) _wrap_XmlProperty_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, |
8793 | { (char *)"XmlProperty_SetValue", (PyCFunction) _wrap_XmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8794 | { (char *)"XmlProperty_SetNext", (PyCFunction) _wrap_XmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8795 | { (char *)"XmlProperty_swigregister", XmlProperty_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 8796 | { (char *)"XmlProperty_swiginit", XmlProperty_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 8797 | { (char *)"new_XmlNode", (PyCFunction) _wrap_new_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 8798 | { (char *)"delete_XmlNode", (PyCFunction)_wrap_delete_XmlNode, METH_O, NULL}, |
093d3ff1 RD |
8799 | { (char *)"new_XmlNodeEasy", (PyCFunction) _wrap_new_XmlNodeEasy, METH_VARARGS | METH_KEYWORDS, NULL}, |
8800 | { (char *)"XmlNode_AddChild", (PyCFunction) _wrap_XmlNode_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8801 | { (char *)"XmlNode_InsertChild", (PyCFunction) _wrap_XmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8802 | { (char *)"XmlNode_RemoveChild", (PyCFunction) _wrap_XmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8803 | { (char *)"XmlNode_AddProperty", (PyCFunction) _wrap_XmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8804 | { (char *)"XmlNode_AddPropertyName", (PyCFunction) _wrap_XmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8805 | { (char *)"XmlNode_DeleteProperty", (PyCFunction) _wrap_XmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8806 | { (char *)"XmlNode_GetType", (PyCFunction)_wrap_XmlNode_GetType, METH_O, NULL}, |
8807 | { (char *)"XmlNode_GetName", (PyCFunction)_wrap_XmlNode_GetName, METH_O, NULL}, | |
8808 | { (char *)"XmlNode_GetContent", (PyCFunction)_wrap_XmlNode_GetContent, METH_O, NULL}, | |
33d6fd3b RD |
8809 | { (char *)"XmlNode_IsWhitespaceOnly", (PyCFunction)_wrap_XmlNode_IsWhitespaceOnly, METH_O, NULL}, |
8810 | { (char *)"XmlNode_GetDepth", (PyCFunction) _wrap_XmlNode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8811 | { (char *)"XmlNode_GetNodeContent", (PyCFunction)_wrap_XmlNode_GetNodeContent, METH_O, NULL}, | |
0085ce49 RD |
8812 | { (char *)"XmlNode_GetParent", (PyCFunction)_wrap_XmlNode_GetParent, METH_O, NULL}, |
8813 | { (char *)"XmlNode_GetNext", (PyCFunction)_wrap_XmlNode_GetNext, METH_O, NULL}, | |
8814 | { (char *)"XmlNode_GetChildren", (PyCFunction)_wrap_XmlNode_GetChildren, METH_O, NULL}, | |
8815 | { (char *)"XmlNode_GetProperties", (PyCFunction)_wrap_XmlNode_GetProperties, METH_O, NULL}, | |
093d3ff1 RD |
8816 | { (char *)"XmlNode_GetPropVal", (PyCFunction) _wrap_XmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS, NULL}, |
8817 | { (char *)"XmlNode_HasProp", (PyCFunction) _wrap_XmlNode_HasProp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8818 | { (char *)"XmlNode_SetType", (PyCFunction) _wrap_XmlNode_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8819 | { (char *)"XmlNode_SetName", (PyCFunction) _wrap_XmlNode_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8820 | { (char *)"XmlNode_SetContent", (PyCFunction) _wrap_XmlNode_SetContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8821 | { (char *)"XmlNode_SetParent", (PyCFunction) _wrap_XmlNode_SetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8822 | { (char *)"XmlNode_SetNext", (PyCFunction) _wrap_XmlNode_SetNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8823 | { (char *)"XmlNode_SetChildren", (PyCFunction) _wrap_XmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8824 | { (char *)"XmlNode_SetProperties", (PyCFunction) _wrap_XmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8825 | { (char *)"XmlNode_swigregister", XmlNode_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 8826 | { (char *)"XmlNode_swiginit", XmlNode_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
8827 | { (char *)"new_XmlDocument", (PyCFunction) _wrap_new_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
8828 | { (char *)"new_XmlDocumentFromStream", (PyCFunction) _wrap_new_XmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8829 | { (char *)"new_EmptyXmlDocument", (PyCFunction)_wrap_new_EmptyXmlDocument, METH_NOARGS, NULL}, |
8830 | { (char *)"delete_XmlDocument", (PyCFunction)_wrap_delete_XmlDocument, METH_O, NULL}, | |
093d3ff1 RD |
8831 | { (char *)"XmlDocument_Load", (PyCFunction) _wrap_XmlDocument_Load, METH_VARARGS | METH_KEYWORDS, NULL}, |
8832 | { (char *)"XmlDocument_LoadFromStream", (PyCFunction) _wrap_XmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8833 | { (char *)"XmlDocument_Save", (PyCFunction) _wrap_XmlDocument_Save, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8834 | { (char *)"XmlDocument_SaveToStream", (PyCFunction) _wrap_XmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8835 | { (char *)"XmlDocument_IsOk", (PyCFunction)_wrap_XmlDocument_IsOk, METH_O, NULL}, |
8836 | { (char *)"XmlDocument_GetRoot", (PyCFunction)_wrap_XmlDocument_GetRoot, METH_O, NULL}, | |
8837 | { (char *)"XmlDocument_GetVersion", (PyCFunction)_wrap_XmlDocument_GetVersion, METH_O, NULL}, | |
8838 | { (char *)"XmlDocument_GetFileEncoding", (PyCFunction)_wrap_XmlDocument_GetFileEncoding, METH_O, NULL}, | |
57332a5a | 8839 | { (char *)"XmlDocument_DetachRoot", (PyCFunction)_wrap_XmlDocument_DetachRoot, METH_O, NULL}, |
093d3ff1 RD |
8840 | { (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS, NULL}, |
8841 | { (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8842 | { (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8843 | { (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
8844 | { (char *)"XmlDocument_swiginit", XmlDocument_swiginit, METH_VARARGS, NULL}, |
8845 | { (char *)"new_XmlResourceHandler", (PyCFunction)_wrap_new_XmlResourceHandler, METH_NOARGS, NULL}, | |
a08f21ce | 8846 | { (char *)"delete_XmlResourceHandler", (PyCFunction)_wrap_delete_XmlResourceHandler, METH_O, NULL}, |
093d3ff1 RD |
8847 | { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
8848 | { (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8849 | { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8850 | { (char *)"XmlResourceHandler_GetResource", (PyCFunction)_wrap_XmlResourceHandler_GetResource, METH_O, NULL}, |
8851 | { (char *)"XmlResourceHandler_GetNode", (PyCFunction)_wrap_XmlResourceHandler_GetNode, METH_O, NULL}, | |
8852 | { (char *)"XmlResourceHandler_GetClass", (PyCFunction)_wrap_XmlResourceHandler_GetClass, METH_O, NULL}, | |
8853 | { (char *)"XmlResourceHandler_GetParent", (PyCFunction)_wrap_XmlResourceHandler_GetParent, METH_O, NULL}, | |
8854 | { (char *)"XmlResourceHandler_GetInstance", (PyCFunction)_wrap_XmlResourceHandler_GetInstance, METH_O, NULL}, | |
8855 | { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction)_wrap_XmlResourceHandler_GetParentAsWindow, METH_O, NULL}, | |
093d3ff1 RD |
8856 | { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS, NULL}, |
8857 | { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8858 | { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8859 | { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction) _wrap_XmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8860 | { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction) _wrap_XmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8861 | { (char *)"XmlResourceHandler_AddStyle", (PyCFunction) _wrap_XmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8862 | { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction)_wrap_XmlResourceHandler_AddWindowStyles, METH_O, NULL}, |
093d3ff1 RD |
8863 | { (char *)"XmlResourceHandler_GetStyle", (PyCFunction) _wrap_XmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
8864 | { (char *)"XmlResourceHandler_GetText", (PyCFunction) _wrap_XmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
8865 | { (char *)"XmlResourceHandler_GetID", (PyCFunction)_wrap_XmlResourceHandler_GetID, METH_O, NULL}, |
8866 | { (char *)"XmlResourceHandler_GetName", (PyCFunction)_wrap_XmlResourceHandler_GetName, METH_O, NULL}, | |
093d3ff1 RD |
8867 | { (char *)"XmlResourceHandler_GetBool", (PyCFunction) _wrap_XmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS, NULL}, |
8868 | { (char *)"XmlResourceHandler_GetLong", (PyCFunction) _wrap_XmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8869 | { (char *)"XmlResourceHandler_GetColour", (PyCFunction) _wrap_XmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8870 | { (char *)"XmlResourceHandler_GetSize", (PyCFunction) _wrap_XmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8871 | { (char *)"XmlResourceHandler_GetPosition", (PyCFunction) _wrap_XmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8872 | { (char *)"XmlResourceHandler_GetDimension", (PyCFunction) _wrap_XmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8873 | { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction) _wrap_XmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8874 | { (char *)"XmlResourceHandler_GetIcon", (PyCFunction) _wrap_XmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8875 | { (char *)"XmlResourceHandler_GetFont", (PyCFunction) _wrap_XmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0a27f394 | 8876 | { (char *)"XmlResourceHandler_GetAnimation", (PyCFunction) _wrap_XmlResourceHandler_GetAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
8877 | { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction) _wrap_XmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
8878 | { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction) _wrap_XmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8879 | { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_XmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8880 | { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_XmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 8881 | { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction)_wrap_XmlResourceHandler_GetCurFileSystem, METH_O, NULL}, |
093d3ff1 | 8882 | { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 8883 | { (char *)"XmlResourceHandler_swiginit", XmlResourceHandler_swiginit, METH_VARARGS, NULL}, |
2ef75293 RD |
8884 | { NULL, NULL, 0, NULL } |
8885 | }; | |
8886 | ||
8887 | ||
8888 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
8889 | ||
0a27f394 RD |
8890 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
8891 | return (void *)((wxWindow *) ((wxControl *) x)); | |
8892 | } | |
8893 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
8894 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
8895 | } | |
8896 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
8897 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
8898 | } | |
2ef75293 RD |
8899 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
8900 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
8901 | } | |
8902 | static void *_p_wxXmlDocumentTo_p_wxObject(void *x) { | |
8903 | return (void *)((wxObject *) ((wxXmlDocument *) x)); | |
8904 | } | |
2ef75293 RD |
8905 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
8906 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
8907 | } | |
34e0a3bb RD |
8908 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
8909 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
8910 | } | |
2ef75293 RD |
8911 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
8912 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
8913 | } | |
8914 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
8915 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
8916 | } | |
8917 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
8918 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
8919 | } | |
8920 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
8921 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
8922 | } | |
8923 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
8924 | return (void *)((wxObject *) ((wxSizer *) x)); | |
8925 | } | |
8926 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
8927 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
8928 | } | |
8929 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
8930 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
8931 | } | |
8932 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
8933 | return (void *)((wxObject *) ((wxEvent *) x)); | |
8934 | } | |
8935 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
8936 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
8937 | } | |
8938 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
8939 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
8940 | } | |
8941 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
8942 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
8943 | } | |
2131d850 RD |
8944 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
8945 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
8946 | } | |
2ef75293 RD |
8947 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
8948 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
8949 | } | |
8950 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
8951 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
8952 | } | |
8953 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
8954 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
8955 | } | |
8956 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
8957 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
8958 | } | |
8959 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
8960 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
8961 | } | |
8962 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
8963 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
8964 | } | |
8965 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
8966 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
8967 | } | |
8968 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
8969 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
8970 | } | |
8971 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
8972 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
8973 | } | |
8974 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
8975 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
8976 | } | |
8977 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
8978 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
8979 | } | |
8980 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
8981 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
8982 | } | |
8983 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
8984 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
8985 | } | |
8986 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
8987 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
8988 | } | |
53aa7709 RD |
8989 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
8990 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
8991 | } | |
2ef75293 RD |
8992 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
8993 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
8994 | } | |
8995 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
8996 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
8997 | } | |
8998 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
8999 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
9000 | } | |
9001 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
9002 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
9003 | } | |
9004 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
9005 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
9006 | } | |
9007 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
9008 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
9009 | } | |
9010 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
9011 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
9012 | } | |
9013 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
9014 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
9015 | } | |
2ef75293 RD |
9016 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
9017 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
9018 | } | |
9019 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
9020 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
9021 | } | |
9022 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
9023 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
9024 | } | |
9025 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
9026 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
9027 | } | |
9028 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
9029 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
9030 | } | |
9031 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
9032 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
9033 | } | |
9034 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
9035 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
9036 | } | |
9037 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
9038 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
9039 | } | |
9040 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
9041 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
9042 | } | |
943e8dfd RD |
9043 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
9044 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
9045 | } | |
2ef75293 RD |
9046 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
9047 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
9048 | } | |
943e8dfd RD |
9049 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
9050 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
9051 | } | |
2ef75293 RD |
9052 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
9053 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
9054 | } | |
580080c5 RD |
9055 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
9056 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
9057 | } | |
2ef75293 RD |
9058 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
9059 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
9060 | } | |
34e0a3bb RD |
9061 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
9062 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
9063 | } | |
2ef75293 RD |
9064 | static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x) { |
9065 | return (void *)((wxObject *) ((wxPyXmlResourceHandler *) x)); | |
9066 | } | |
9067 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
9068 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
9069 | } | |
580080c5 RD |
9070 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
9071 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
9072 | } | |
2ef75293 RD |
9073 | static void *_p_wxImageTo_p_wxObject(void *x) { |
9074 | return (void *)((wxObject *) ((wxImage *) x)); | |
9075 | } | |
9076 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
9077 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
9078 | } | |
9079 | static void *_p_wxXmlResourceTo_p_wxObject(void *x) { | |
9080 | return (void *)((wxObject *) ((wxXmlResource *) x)); | |
9081 | } | |
9082 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
9083 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
9084 | } | |
9085 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
9086 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
9087 | } | |
9088 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
9089 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
9090 | } | |
9091 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
9092 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
9093 | } | |
9094 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
9095 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
9096 | } | |
9097 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
9098 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
9099 | } | |
9100 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
9101 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
9102 | } | |
9103 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
9104 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
9105 | } | |
9106 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
9107 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
9108 | } | |
9109 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
9110 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
9111 | } | |
9112 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
9113 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
9114 | } | |
9115 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
9116 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
9117 | } | |
9118 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
9119 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
9120 | } | |
9121 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
9122 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
9123 | } | |
9124 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
9125 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
9126 | } | |
9127 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
9128 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
9129 | } | |
9130 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
9131 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
9132 | } | |
9133 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
9134 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
9135 | } | |
9136 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
9137 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
9138 | } | |
9139 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
9140 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
9141 | } | |
9142 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
9143 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
9144 | } | |
0085ce49 RD |
9145 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
9146 | 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}; | |
9147 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0}; | |
9148 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
9149 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
9150 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 9151 | static swig_type_info _swigt__p_wxAnimation = {"_p_wxAnimation", "wxAnimation *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
9152 | static swig_type_info _swigt__p_wxArtClient = {"_p_wxArtClient", "wxArtClient *", 0, 0, (void*)0, 0}; |
9153 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
9154 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
9155 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
9156 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
9157 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
9158 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
9159 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
9160 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
9161 | static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0}; | |
9162 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
9163 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 9164 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 9165 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
9166 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
9167 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
9168 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
9169 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
9170 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
9171 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
9172 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
9173 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
9174 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
9175 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
9176 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
9177 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 9178 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
9179 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
9180 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
9181 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
9182 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
9183 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
9184 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
9185 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
9186 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
9187 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
9188 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
9189 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
9190 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
9191 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
9192 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
9193 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; |
9194 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
9195 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 9196 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
9197 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; |
9198 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 9199 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
9200 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; |
9201 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
9202 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; |
9203 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
9204 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
9205 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
9206 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
9207 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
9208 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
9209 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
9210 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
9211 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
9212 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
9213 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
9214 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
580080c5 | 9215 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
0085ce49 | 9216 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
34e0a3bb | 9217 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
9218 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
9219 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
9220 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
9221 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
9222 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
9223 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
9224 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
9225 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
9226 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
9227 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
9228 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
0085ce49 | 9229 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; |
34e0a3bb | 9230 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; |
580080c5 | 9231 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; |
0085ce49 | 9232 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; |
2131d850 | 9233 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
9234 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; |
9235 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
9236 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
9237 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
9238 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
9239 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
9240 | static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0}; | |
9241 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
9242 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
9243 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
9244 | static swig_type_info _swigt__p_wxPyXmlResourceHandler = {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, (void*)0, 0}; | |
9245 | static swig_type_info _swigt__p_wxPyXmlSubclassFactory = {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, (void*)0, 0}; | |
9246 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
9247 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
9248 | static swig_type_info _swigt__p_wxXmlDocument = {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, (void*)0, 0}; | |
9249 | static swig_type_info _swigt__p_wxXmlNode = {"_p_wxXmlNode", "wxXmlNode *", 0, 0, (void*)0, 0}; | |
9250 | static swig_type_info _swigt__p_wxXmlProperty = {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, (void*)0, 0}; | |
9251 | static swig_type_info _swigt__p_wxXmlResource = {"_p_wxXmlResource", "wxXmlResource *", 0, 0, (void*)0, 0}; | |
32fe5131 RD |
9252 | |
9253 | static swig_type_info *swig_type_initial[] = { | |
9254 | &_swigt__p_char, | |
9255 | &_swigt__p_form_ops_t, | |
9256 | &_swigt__p_int, | |
9257 | &_swigt__p_unsigned_char, | |
9258 | &_swigt__p_unsigned_int, | |
9259 | &_swigt__p_unsigned_long, | |
9260 | &_swigt__p_wxANIHandler, | |
9261 | &_swigt__p_wxAcceleratorTable, | |
9262 | &_swigt__p_wxActivateEvent, | |
0a27f394 | 9263 | &_swigt__p_wxAnimation, |
32fe5131 RD |
9264 | &_swigt__p_wxArtClient, |
9265 | &_swigt__p_wxBMPHandler, | |
9266 | &_swigt__p_wxBitmap, | |
9267 | &_swigt__p_wxBoxSizer, | |
9268 | &_swigt__p_wxCURHandler, | |
9269 | &_swigt__p_wxChildFocusEvent, | |
2131d850 | 9270 | &_swigt__p_wxClipboardTextEvent, |
32fe5131 RD |
9271 | &_swigt__p_wxCloseEvent, |
9272 | &_swigt__p_wxColour, | |
9273 | &_swigt__p_wxCommandEvent, | |
9274 | &_swigt__p_wxContextMenuEvent, | |
9275 | &_swigt__p_wxControl, | |
9276 | &_swigt__p_wxControlWithItems, | |
9277 | &_swigt__p_wxDateEvent, | |
9278 | &_swigt__p_wxDialog, | |
9279 | &_swigt__p_wxDisplayChangedEvent, | |
9280 | &_swigt__p_wxDropFilesEvent, | |
9281 | &_swigt__p_wxDuplexMode, | |
9282 | &_swigt__p_wxEraseEvent, | |
9283 | &_swigt__p_wxEvent, | |
9284 | &_swigt__p_wxEvtHandler, | |
9285 | &_swigt__p_wxFSFile, | |
9286 | &_swigt__p_wxFileSystem, | |
9287 | &_swigt__p_wxFlexGridSizer, | |
9288 | &_swigt__p_wxFocusEvent, | |
9289 | &_swigt__p_wxFont, | |
9290 | &_swigt__p_wxFrame, | |
9291 | &_swigt__p_wxGBSizerItem, | |
9292 | &_swigt__p_wxGIFHandler, | |
9293 | &_swigt__p_wxGridBagSizer, | |
9294 | &_swigt__p_wxGridSizer, | |
9295 | &_swigt__p_wxICOHandler, | |
9296 | &_swigt__p_wxIcon, | |
9297 | &_swigt__p_wxIconizeEvent, | |
9298 | &_swigt__p_wxIdleEvent, | |
9299 | &_swigt__p_wxImage, | |
9300 | &_swigt__p_wxImageHandler, | |
9301 | &_swigt__p_wxIndividualLayoutConstraint, | |
9302 | &_swigt__p_wxInitDialogEvent, | |
9303 | &_swigt__p_wxInputStream, | |
9304 | &_swigt__p_wxJPEGHandler, | |
9305 | &_swigt__p_wxKeyEvent, | |
9306 | &_swigt__p_wxLayoutConstraints, | |
9307 | &_swigt__p_wxMaximizeEvent, | |
9308 | &_swigt__p_wxMenu, | |
9309 | &_swigt__p_wxMenuBar, | |
9310 | &_swigt__p_wxMenuEvent, | |
9311 | &_swigt__p_wxMenuItem, | |
9312 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 9313 | &_swigt__p_wxMouseCaptureLostEvent, |
32fe5131 RD |
9314 | &_swigt__p_wxMouseEvent, |
9315 | &_swigt__p_wxMoveEvent, | |
9316 | &_swigt__p_wxNavigationKeyEvent, | |
9317 | &_swigt__p_wxNcPaintEvent, | |
9318 | &_swigt__p_wxNotifyEvent, | |
9319 | &_swigt__p_wxObject, | |
9320 | &_swigt__p_wxOutputStream, | |
9321 | &_swigt__p_wxPCXHandler, | |
9322 | &_swigt__p_wxPNGHandler, | |
9323 | &_swigt__p_wxPNMHandler, | |
9324 | &_swigt__p_wxPaintEvent, | |
9325 | &_swigt__p_wxPaletteChangedEvent, | |
9326 | &_swigt__p_wxPanel, | |
9327 | &_swigt__p_wxPaperSize, | |
9328 | &_swigt__p_wxPoint, | |
9329 | &_swigt__p_wxPyApp, | |
9330 | &_swigt__p_wxPyCommandEvent, | |
9331 | &_swigt__p_wxPyEvent, | |
9332 | &_swigt__p_wxPyImageHandler, | |
9333 | &_swigt__p_wxPySizer, | |
9334 | &_swigt__p_wxPyValidator, | |
9335 | &_swigt__p_wxPyXmlResourceHandler, | |
9336 | &_swigt__p_wxPyXmlSubclassFactory, | |
9337 | &_swigt__p_wxQueryNewPaletteEvent, | |
9338 | &_swigt__p_wxScrollEvent, | |
9339 | &_swigt__p_wxScrollWinEvent, | |
9340 | &_swigt__p_wxSetCursorEvent, | |
9341 | &_swigt__p_wxShowEvent, | |
9342 | &_swigt__p_wxSize, | |
9343 | &_swigt__p_wxSizeEvent, | |
9344 | &_swigt__p_wxSizer, | |
9345 | &_swigt__p_wxSizerItem, | |
9346 | &_swigt__p_wxStaticBoxSizer, | |
9347 | &_swigt__p_wxStdDialogButtonSizer, | |
9348 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 9349 | &_swigt__p_wxTGAHandler, |
32fe5131 RD |
9350 | &_swigt__p_wxTIFFHandler, |
9351 | &_swigt__p_wxUpdateUIEvent, | |
9352 | &_swigt__p_wxValidator, | |
9353 | &_swigt__p_wxWindow, | |
9354 | &_swigt__p_wxWindowCreateEvent, | |
9355 | &_swigt__p_wxWindowDestroyEvent, | |
9356 | &_swigt__p_wxXPMHandler, | |
9357 | &_swigt__p_wxXmlDocument, | |
9358 | &_swigt__p_wxXmlNode, | |
9359 | &_swigt__p_wxXmlProperty, | |
9360 | &_swigt__p_wxXmlResource, | |
32fe5131 RD |
9361 | }; |
9362 | ||
9363 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
9364 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
9365 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
9366 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
9367 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
9368 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 9369 | static swig_cast_info _swigc__p_wxAnimation[] = { {&_swigt__p_wxAnimation, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
9370 | static swig_cast_info _swigc__p_wxArtClient[] = { {&_swigt__p_wxArtClient, 0, 0, 0},{0, 0, 0, 0}}; |
9371 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
9372 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
9373 | static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
9374 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
9375 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
9376 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
9377 | static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
9378 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
9379 | static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}}; | |
9380 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 | 9381 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 9382 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
9383 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9384 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
9385 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9386 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9387 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9388 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9389 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9390 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
9391 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9392 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9393 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9394 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 9395 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
9396 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9397 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9398 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9399 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9400 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9401 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9402 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
9403 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9404 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
9405 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9406 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9407 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9408 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9409 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
9410 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9411 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9412 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 9413 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
9414 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9415 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 9416 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
9417 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9418 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
9419 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
9420 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9421 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9422 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9423 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9424 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9425 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9426 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9427 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9428 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9429 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9430 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9431 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 9432 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 9433 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 9434 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
9435 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
9436 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
9437 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
9438 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9439 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9440 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9441 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9442 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
9443 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9444 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9445 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 | 9446 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 9447 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 9448 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 9449 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 9450 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
9451 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9452 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9453 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9454 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
9455 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
9456 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 9457 | 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_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_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_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_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_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyXmlResourceHandler, _p_wxPyXmlResourceHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_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_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_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}}; |
32fe5131 RD |
9458 | static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}}; |
9459 | static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
9460 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
9461 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
9462 | static swig_cast_info _swigc__p_wxPyXmlResourceHandler[] = { {&_swigt__p_wxPyXmlResourceHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9463 | static swig_cast_info _swigc__p_wxPyXmlSubclassFactory[] = { {&_swigt__p_wxPyXmlSubclassFactory, 0, 0, 0},{0, 0, 0, 0}}; | |
9464 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
9465 | 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}}; | |
9466 | static swig_cast_info _swigc__p_wxXmlDocument[] = { {&_swigt__p_wxXmlDocument, 0, 0, 0},{0, 0, 0, 0}}; | |
9467 | static swig_cast_info _swigc__p_wxXmlNode[] = { {&_swigt__p_wxXmlNode, 0, 0, 0},{0, 0, 0, 0}}; | |
9468 | static swig_cast_info _swigc__p_wxXmlProperty[] = { {&_swigt__p_wxXmlProperty, 0, 0, 0},{0, 0, 0, 0}}; | |
9469 | static swig_cast_info _swigc__p_wxXmlResource[] = { {&_swigt__p_wxXmlResource, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
9470 | |
9471 | static swig_cast_info *swig_cast_initial[] = { | |
9472 | _swigc__p_char, | |
9473 | _swigc__p_form_ops_t, | |
9474 | _swigc__p_int, | |
9475 | _swigc__p_unsigned_char, | |
9476 | _swigc__p_unsigned_int, | |
9477 | _swigc__p_unsigned_long, | |
9478 | _swigc__p_wxANIHandler, | |
9479 | _swigc__p_wxAcceleratorTable, | |
9480 | _swigc__p_wxActivateEvent, | |
0a27f394 | 9481 | _swigc__p_wxAnimation, |
32fe5131 RD |
9482 | _swigc__p_wxArtClient, |
9483 | _swigc__p_wxBMPHandler, | |
9484 | _swigc__p_wxBitmap, | |
9485 | _swigc__p_wxBoxSizer, | |
9486 | _swigc__p_wxCURHandler, | |
9487 | _swigc__p_wxChildFocusEvent, | |
2131d850 | 9488 | _swigc__p_wxClipboardTextEvent, |
32fe5131 RD |
9489 | _swigc__p_wxCloseEvent, |
9490 | _swigc__p_wxColour, | |
9491 | _swigc__p_wxCommandEvent, | |
9492 | _swigc__p_wxContextMenuEvent, | |
9493 | _swigc__p_wxControl, | |
9494 | _swigc__p_wxControlWithItems, | |
9495 | _swigc__p_wxDateEvent, | |
9496 | _swigc__p_wxDialog, | |
9497 | _swigc__p_wxDisplayChangedEvent, | |
9498 | _swigc__p_wxDropFilesEvent, | |
9499 | _swigc__p_wxDuplexMode, | |
9500 | _swigc__p_wxEraseEvent, | |
9501 | _swigc__p_wxEvent, | |
9502 | _swigc__p_wxEvtHandler, | |
9503 | _swigc__p_wxFSFile, | |
9504 | _swigc__p_wxFileSystem, | |
9505 | _swigc__p_wxFlexGridSizer, | |
9506 | _swigc__p_wxFocusEvent, | |
9507 | _swigc__p_wxFont, | |
9508 | _swigc__p_wxFrame, | |
9509 | _swigc__p_wxGBSizerItem, | |
9510 | _swigc__p_wxGIFHandler, | |
9511 | _swigc__p_wxGridBagSizer, | |
9512 | _swigc__p_wxGridSizer, | |
9513 | _swigc__p_wxICOHandler, | |
9514 | _swigc__p_wxIcon, | |
9515 | _swigc__p_wxIconizeEvent, | |
9516 | _swigc__p_wxIdleEvent, | |
9517 | _swigc__p_wxImage, | |
9518 | _swigc__p_wxImageHandler, | |
9519 | _swigc__p_wxIndividualLayoutConstraint, | |
9520 | _swigc__p_wxInitDialogEvent, | |
9521 | _swigc__p_wxInputStream, | |
9522 | _swigc__p_wxJPEGHandler, | |
9523 | _swigc__p_wxKeyEvent, | |
9524 | _swigc__p_wxLayoutConstraints, | |
9525 | _swigc__p_wxMaximizeEvent, | |
9526 | _swigc__p_wxMenu, | |
9527 | _swigc__p_wxMenuBar, | |
9528 | _swigc__p_wxMenuEvent, | |
9529 | _swigc__p_wxMenuItem, | |
9530 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 9531 | _swigc__p_wxMouseCaptureLostEvent, |
32fe5131 RD |
9532 | _swigc__p_wxMouseEvent, |
9533 | _swigc__p_wxMoveEvent, | |
9534 | _swigc__p_wxNavigationKeyEvent, | |
9535 | _swigc__p_wxNcPaintEvent, | |
9536 | _swigc__p_wxNotifyEvent, | |
9537 | _swigc__p_wxObject, | |
9538 | _swigc__p_wxOutputStream, | |
9539 | _swigc__p_wxPCXHandler, | |
9540 | _swigc__p_wxPNGHandler, | |
9541 | _swigc__p_wxPNMHandler, | |
9542 | _swigc__p_wxPaintEvent, | |
9543 | _swigc__p_wxPaletteChangedEvent, | |
9544 | _swigc__p_wxPanel, | |
9545 | _swigc__p_wxPaperSize, | |
9546 | _swigc__p_wxPoint, | |
9547 | _swigc__p_wxPyApp, | |
9548 | _swigc__p_wxPyCommandEvent, | |
9549 | _swigc__p_wxPyEvent, | |
9550 | _swigc__p_wxPyImageHandler, | |
9551 | _swigc__p_wxPySizer, | |
9552 | _swigc__p_wxPyValidator, | |
9553 | _swigc__p_wxPyXmlResourceHandler, | |
9554 | _swigc__p_wxPyXmlSubclassFactory, | |
9555 | _swigc__p_wxQueryNewPaletteEvent, | |
9556 | _swigc__p_wxScrollEvent, | |
9557 | _swigc__p_wxScrollWinEvent, | |
9558 | _swigc__p_wxSetCursorEvent, | |
9559 | _swigc__p_wxShowEvent, | |
9560 | _swigc__p_wxSize, | |
9561 | _swigc__p_wxSizeEvent, | |
9562 | _swigc__p_wxSizer, | |
9563 | _swigc__p_wxSizerItem, | |
9564 | _swigc__p_wxStaticBoxSizer, | |
9565 | _swigc__p_wxStdDialogButtonSizer, | |
9566 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 9567 | _swigc__p_wxTGAHandler, |
32fe5131 RD |
9568 | _swigc__p_wxTIFFHandler, |
9569 | _swigc__p_wxUpdateUIEvent, | |
9570 | _swigc__p_wxValidator, | |
9571 | _swigc__p_wxWindow, | |
9572 | _swigc__p_wxWindowCreateEvent, | |
9573 | _swigc__p_wxWindowDestroyEvent, | |
9574 | _swigc__p_wxXPMHandler, | |
9575 | _swigc__p_wxXmlDocument, | |
9576 | _swigc__p_wxXmlNode, | |
9577 | _swigc__p_wxXmlProperty, | |
9578 | _swigc__p_wxXmlResource, | |
2ef75293 RD |
9579 | }; |
9580 | ||
9581 | ||
9582 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
9583 | ||
9584 | static swig_const_info swig_const_table[] = { | |
9585 | {0, 0, 0, 0.0, 0, 0}}; | |
9586 | ||
9587 | #ifdef __cplusplus | |
9588 | } | |
9589 | #endif | |
0085ce49 | 9590 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
9591 | * Type initialization: |
9592 | * This problem is tough by the requirement that no dynamic | |
9593 | * memory is used. Also, since swig_type_info structures store pointers to | |
9594 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
9595 | * to swig_type_info structures, we need some lookup code at initialization. | |
9596 | * The idea is that swig generates all the structures that are needed. | |
9597 | * The runtime then collects these partially filled structures. | |
9598 | * The SWIG_InitializeModule function takes these initial arrays out of | |
9599 | * swig_module, and does all the lookup, filling in the swig_module.types | |
9600 | * array with the correct data and linking the correct swig_cast_info | |
9601 | * structures together. | |
0085ce49 | 9602 | * |
32fe5131 RD |
9603 | * The generated swig_type_info structures are assigned staticly to an initial |
9604 | * array. We just loop though that array, and handle each type individually. | |
9605 | * First we lookup if this type has been already loaded, and if so, use the | |
9606 | * loaded structure instead of the generated one. Then we have to fill in the | |
9607 | * cast linked list. The cast data is initially stored in something like a | |
9608 | * two-dimensional array. Each row corresponds to a type (there are the same | |
9609 | * number of rows as there are in the swig_type_initial array). Each entry in | |
9610 | * a column is one of the swig_cast_info structures for that type. | |
9611 | * The cast_initial array is actually an array of arrays, because each row has | |
9612 | * a variable number of columns. So to actually build the cast linked list, | |
9613 | * we find the array of casts associated with the type, and loop through it | |
9614 | * adding the casts to the list. The one last trick we need to do is making | |
9615 | * sure the type pointer in the swig_cast_info struct is correct. | |
0085ce49 | 9616 | * |
32fe5131 RD |
9617 | * First off, we lookup the cast->type name to see if it is already loaded. |
9618 | * There are three cases to handle: | |
9619 | * 1) If the cast->type has already been loaded AND the type we are adding | |
9620 | * casting info to has not been loaded (it is in this module), THEN we | |
9621 | * replace the cast->type pointer with the type pointer that has already | |
9622 | * been loaded. | |
9623 | * 2) If BOTH types (the one we are adding casting info to, and the | |
9624 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
9625 | * the previous module so we just ignore it. | |
9626 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
9627 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
9628 | * be correct. | |
0085ce49 | 9629 | * ----------------------------------------------------------------------------- */ |
32fe5131 RD |
9630 | |
9631 | #ifdef __cplusplus | |
9632 | extern "C" { | |
9633 | #if 0 | |
9634 | } /* c-mode */ | |
9635 | #endif | |
9636 | #endif | |
9637 | ||
9638 | #if 0 | |
9639 | #define SWIGRUNTIME_DEBUG | |
9640 | #endif | |
9641 | ||
9642 | SWIGRUNTIME void | |
9643 | SWIG_InitializeModule(void *clientdata) { | |
0085ce49 RD |
9644 | size_t i; |
9645 | swig_module_info *module_head; | |
9646 | static int init_run = 0; | |
9647 | ||
9648 | clientdata = clientdata; | |
9649 | ||
9650 | if (init_run) return; | |
9651 | init_run = 1; | |
9652 | ||
9653 | /* Initialize the swig_module */ | |
9654 | swig_module.type_initial = swig_type_initial; | |
9655 | swig_module.cast_initial = swig_cast_initial; | |
9656 | ||
9657 | /* Try and load any already created modules */ | |
9658 | module_head = SWIG_GetModule(clientdata); | |
9659 | if (module_head) { | |
9660 | swig_module.next = module_head->next; | |
9661 | module_head->next = &swig_module; | |
9662 | } else { | |
9663 | /* This is the first module loaded */ | |
9664 | swig_module.next = &swig_module; | |
9665 | SWIG_SetModule(clientdata, &swig_module); | |
9666 | } | |
9667 | ||
9668 | /* Now work on filling in swig_module.types */ | |
32fe5131 | 9669 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9670 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
32fe5131 | 9671 | #endif |
0085ce49 RD |
9672 | for (i = 0; i < swig_module.size; ++i) { |
9673 | swig_type_info *type = 0; | |
9674 | swig_type_info *ret; | |
9675 | swig_cast_info *cast; | |
9676 | ||
32fe5131 | 9677 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9678 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
32fe5131 | 9679 | #endif |
0085ce49 RD |
9680 | |
9681 | /* if there is another module already loaded */ | |
9682 | if (swig_module.next != &swig_module) { | |
9683 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
9684 | } | |
9685 | if (type) { | |
9686 | /* Overwrite clientdata field */ | |
32fe5131 | 9687 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9688 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
32fe5131 | 9689 | #endif |
0085ce49 RD |
9690 | if (swig_module.type_initial[i]->clientdata) { |
9691 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
32fe5131 | 9692 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9693 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
32fe5131 | 9694 | #endif |
0085ce49 RD |
9695 | } |
9696 | } else { | |
9697 | type = swig_module.type_initial[i]; | |
9698 | } | |
9699 | ||
9700 | /* Insert casting types */ | |
9701 | cast = swig_module.cast_initial[i]; | |
9702 | while (cast->type) { | |
9703 | /* Don't need to add information already in the list */ | |
9704 | ret = 0; | |
32fe5131 | 9705 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9706 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
32fe5131 | 9707 | #endif |
0085ce49 RD |
9708 | if (swig_module.next != &swig_module) { |
9709 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
32fe5131 | 9710 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9711 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
32fe5131 | 9712 | #endif |
0085ce49 RD |
9713 | } |
9714 | if (ret) { | |
9715 | if (type == swig_module.type_initial[i]) { | |
32fe5131 | 9716 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9717 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
32fe5131 | 9718 | #endif |
0085ce49 RD |
9719 | cast->type = ret; |
9720 | ret = 0; | |
9721 | } else { | |
9722 | /* Check for casting already in the list */ | |
9723 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
32fe5131 | 9724 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9725 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
32fe5131 | 9726 | #endif |
0085ce49 RD |
9727 | if (!ocast) ret = 0; |
9728 | } | |
9729 | } | |
9730 | ||
9731 | if (!ret) { | |
32fe5131 | 9732 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 | 9733 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
32fe5131 | 9734 | #endif |
0085ce49 RD |
9735 | if (type->cast) { |
9736 | type->cast->prev = cast; | |
9737 | cast->next = type->cast; | |
32fe5131 | 9738 | } |
0085ce49 RD |
9739 | type->cast = cast; |
9740 | } | |
9741 | cast++; | |
32fe5131 | 9742 | } |
0085ce49 RD |
9743 | /* Set entry in modules->types array equal to the type */ |
9744 | swig_module.types[i] = type; | |
9745 | } | |
9746 | swig_module.types[i] = 0; | |
9747 | ||
32fe5131 | 9748 | #ifdef SWIGRUNTIME_DEBUG |
0085ce49 RD |
9749 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
9750 | for (i = 0; i < swig_module.size; ++i) { | |
9751 | int j = 0; | |
9752 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
9753 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
9754 | while (cast->type) { | |
9755 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
9756 | cast++; | |
9757 | ++j; | |
9758 | } | |
9759 | printf("---- Total casts: %d\n",j); | |
9760 | } | |
9761 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
32fe5131 RD |
9762 | #endif |
9763 | } | |
9764 | ||
9765 | /* This function will propagate the clientdata field of type to | |
9766 | * any new swig_type_info structures that have been added into the list | |
9767 | * of equivalent types. It is like calling | |
9768 | * SWIG_TypeClientData(type, clientdata) a second time. | |
9769 | */ | |
9770 | SWIGRUNTIME void | |
9771 | SWIG_PropagateClientData(void) { | |
0085ce49 RD |
9772 | size_t i; |
9773 | swig_cast_info *equiv; | |
9774 | static int init_run = 0; | |
9775 | ||
9776 | if (init_run) return; | |
9777 | init_run = 1; | |
9778 | ||
9779 | for (i = 0; i < swig_module.size; i++) { | |
9780 | if (swig_module.types[i]->clientdata) { | |
9781 | equiv = swig_module.types[i]->cast; | |
9782 | while (equiv) { | |
9783 | if (!equiv->converter) { | |
9784 | if (equiv->type && !equiv->type->clientdata) | |
9785 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
32fe5131 | 9786 | } |
0085ce49 RD |
9787 | equiv = equiv->next; |
9788 | } | |
32fe5131 | 9789 | } |
0085ce49 | 9790 | } |
32fe5131 RD |
9791 | } |
9792 | ||
9793 | #ifdef __cplusplus | |
9794 | #if 0 | |
9795 | { | |
0085ce49 | 9796 | /* c-mode */ |
32fe5131 RD |
9797 | #endif |
9798 | } | |
9799 | #endif | |
9800 | ||
2ef75293 | 9801 | |
093d3ff1 RD |
9802 | |
9803 | #ifdef __cplusplus | |
9804 | extern "C" { | |
9805 | #endif | |
0085ce49 RD |
9806 | |
9807 | /* Python-specific SWIG API */ | |
093d3ff1 RD |
9808 | #define SWIG_newvarlink() SWIG_Python_newvarlink() |
9809 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
9810 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
0085ce49 RD |
9811 | |
9812 | /* ----------------------------------------------------------------------------- | |
9813 | * global variable support code. | |
9814 | * ----------------------------------------------------------------------------- */ | |
9815 | ||
9816 | typedef struct swig_globalvar { | |
9817 | char *name; /* Name of global variable */ | |
9818 | PyObject *(*get_attr)(void); /* Return the current value */ | |
9819 | int (*set_attr)(PyObject *); /* Set the value */ | |
9820 | struct swig_globalvar *next; | |
9821 | } swig_globalvar; | |
9822 | ||
9823 | typedef struct swig_varlinkobject { | |
9824 | PyObject_HEAD | |
9825 | swig_globalvar *vars; | |
9826 | } swig_varlinkobject; | |
9827 | ||
9828 | SWIGINTERN PyObject * | |
9829 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
9830 | return PyString_FromString("<Swig global variables>"); | |
9831 | } | |
9832 | ||
9833 | SWIGINTERN PyObject * | |
9834 | swig_varlink_str(swig_varlinkobject *v) { | |
9835 | PyObject *str = PyString_FromString("("); | |
9836 | swig_globalvar *var; | |
9837 | for (var = v->vars; var; var=var->next) { | |
9838 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
9839 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
9840 | } | |
9841 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
9842 | return str; | |
9843 | } | |
9844 | ||
9845 | SWIGINTERN int | |
9846 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
9847 | PyObject *str = swig_varlink_str(v); | |
9848 | fprintf(fp,"Swig global variables "); | |
9849 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
9850 | Py_DECREF(str); | |
9851 | return 0; | |
9852 | } | |
9853 | ||
9854 | SWIGINTERN void | |
9855 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
9856 | swig_globalvar *var = v->vars; | |
9857 | while (var) { | |
9858 | swig_globalvar *n = var->next; | |
9859 | free(var->name); | |
9860 | free(var); | |
9861 | var = n; | |
093d3ff1 | 9862 | } |
0085ce49 RD |
9863 | } |
9864 | ||
9865 | SWIGINTERN PyObject * | |
9866 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
9867 | PyObject *res = NULL; | |
9868 | swig_globalvar *var = v->vars; | |
9869 | while (var) { | |
9870 | if (strcmp(var->name,n) == 0) { | |
9871 | res = (*var->get_attr)(); | |
9872 | break; | |
9873 | } | |
9874 | var = var->next; | |
093d3ff1 | 9875 | } |
0085ce49 RD |
9876 | if (res == NULL && !PyErr_Occurred()) { |
9877 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 9878 | } |
0085ce49 RD |
9879 | return res; |
9880 | } | |
9881 | ||
9882 | SWIGINTERN int | |
9883 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
9884 | int res = 1; | |
9885 | swig_globalvar *var = v->vars; | |
9886 | while (var) { | |
9887 | if (strcmp(var->name,n) == 0) { | |
9888 | res = (*var->set_attr)(p); | |
9889 | break; | |
9890 | } | |
9891 | var = var->next; | |
093d3ff1 | 9892 | } |
0085ce49 RD |
9893 | if (res == 1 && !PyErr_Occurred()) { |
9894 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
9895 | } | |
9896 | return res; | |
9897 | } | |
9898 | ||
9899 | SWIGINTERN PyTypeObject* | |
9900 | swig_varlink_type(void) { | |
9901 | static char varlink__doc__[] = "Swig var link object"; | |
9902 | static PyTypeObject varlink_type; | |
9903 | static int type_init = 0; | |
9904 | if (!type_init) { | |
9905 | const PyTypeObject tmp | |
9906 | = { | |
9907 | PyObject_HEAD_INIT(NULL) | |
9908 | 0, /* Number of items in variable part (ob_size) */ | |
9909 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
9910 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
9911 | 0, /* Itemsize (tp_itemsize) */ | |
9912 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
9913 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
9914 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
9915 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
9916 | 0, /* tp_compare */ | |
9917 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
9918 | 0, /* tp_as_number */ | |
9919 | 0, /* tp_as_sequence */ | |
9920 | 0, /* tp_as_mapping */ | |
9921 | 0, /* tp_hash */ | |
9922 | 0, /* tp_call */ | |
9923 | (reprfunc)swig_varlink_str, /* tp_str */ | |
9924 | 0, /* tp_getattro */ | |
9925 | 0, /* tp_setattro */ | |
9926 | 0, /* tp_as_buffer */ | |
9927 | 0, /* tp_flags */ | |
9928 | varlink__doc__, /* tp_doc */ | |
9929 | 0, /* tp_traverse */ | |
9930 | 0, /* tp_clear */ | |
9931 | 0, /* tp_richcompare */ | |
9932 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 9933 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 | 9934 | 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 |
9935 | #endif |
9936 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 9937 | 0, /* tp_del */ |
093d3ff1 RD |
9938 | #endif |
9939 | #ifdef COUNT_ALLOCS | |
0085ce49 | 9940 | 0,0,0,0 /* tp_alloc -> tp_next */ |
32fe5131 | 9941 | #endif |
0085ce49 RD |
9942 | }; |
9943 | varlink_type = tmp; | |
9944 | varlink_type.ob_type = &PyType_Type; | |
9945 | type_init = 1; | |
093d3ff1 | 9946 | } |
0085ce49 RD |
9947 | return &varlink_type; |
9948 | } | |
9949 | ||
9950 | /* Create a variable linking object for use later */ | |
9951 | SWIGINTERN PyObject * | |
9952 | SWIG_Python_newvarlink(void) { | |
9953 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
9954 | if (result) { | |
9955 | result->vars = 0; | |
9956 | } | |
9957 | return ((PyObject*) result); | |
9958 | } | |
9959 | ||
9960 | SWIGINTERN void | |
9961 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
9962 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
9963 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
9964 | if (gv) { | |
9965 | size_t size = strlen(name)+1; | |
9966 | gv->name = (char *)malloc(size); | |
9967 | if (gv->name) { | |
9968 | strncpy(gv->name,name,size); | |
9969 | gv->get_attr = get_attr; | |
9970 | gv->set_attr = set_attr; | |
9971 | gv->next = v->vars; | |
9972 | } | |
093d3ff1 | 9973 | } |
0085ce49 RD |
9974 | v->vars = gv; |
9975 | } | |
9976 | ||
9977 | SWIGINTERN PyObject * | |
9978 | SWIG_globals() { | |
9979 | static PyObject *_SWIG_globals = 0; | |
9980 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
9981 | return _SWIG_globals; | |
9982 | } | |
9983 | ||
9984 | /* ----------------------------------------------------------------------------- | |
9985 | * constants/methods manipulation | |
9986 | * ----------------------------------------------------------------------------- */ | |
9987 | ||
9988 | /* Install Constants */ | |
9989 | SWIGINTERN void | |
9990 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
9991 | PyObject *obj = 0; | |
9992 | size_t i; | |
9993 | for (i = 0; constants[i].type; ++i) { | |
9994 | switch(constants[i].type) { | |
9995 | case SWIG_PY_POINTER: | |
9996 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
9997 | break; | |
9998 | case SWIG_PY_BINARY: | |
9999 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
10000 | break; | |
10001 | default: | |
10002 | obj = 0; | |
10003 | break; | |
10004 | } | |
10005 | if (obj) { | |
10006 | PyDict_SetItemString(d, constants[i].name, obj); | |
10007 | Py_DECREF(obj); | |
10008 | } | |
093d3ff1 | 10009 | } |
0085ce49 RD |
10010 | } |
10011 | ||
10012 | /* -----------------------------------------------------------------------------*/ | |
10013 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
10014 | /* -----------------------------------------------------------------------------*/ | |
10015 | ||
10016 | SWIGINTERN void | |
10017 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
093d3ff1 RD |
10018 | swig_const_info *const_table, |
10019 | swig_type_info **types, | |
10020 | swig_type_info **types_initial) { | |
0085ce49 RD |
10021 | size_t i; |
10022 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 10023 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
10024 | if (c && (c = strstr(c, "swig_ptr: "))) { |
10025 | int j; | |
10026 | swig_const_info *ci = 0; | |
453fb36b | 10027 | const char *name = c + 10; |
0085ce49 RD |
10028 | for (j = 0; const_table[j].type; ++j) { |
10029 | if (strncmp(const_table[j].name, name, | |
10030 | strlen(const_table[j].name)) == 0) { | |
10031 | ci = &(const_table[j]); | |
10032 | break; | |
10033 | } | |
10034 | } | |
10035 | if (ci) { | |
10036 | size_t shift = (ci->ptype) - types; | |
10037 | swig_type_info *ty = types_initial[shift]; | |
10038 | size_t ldoc = (c - methods[i].ml_doc); | |
10039 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
10040 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
10041 | if (ndoc) { | |
10042 | char *buff = ndoc; | |
10043 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
10044 | if (ptr) { | |
10045 | strncpy(buff, methods[i].ml_doc, ldoc); | |
10046 | buff += ldoc; | |
10047 | strncpy(buff, "swig_ptr: ", 10); | |
10048 | buff += 10; | |
10049 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
10050 | methods[i].ml_doc = ndoc; | |
093d3ff1 | 10051 | } |
0085ce49 | 10052 | } |
093d3ff1 | 10053 | } |
0085ce49 | 10054 | } |
093d3ff1 | 10055 | } |
0085ce49 RD |
10056 | } |
10057 | ||
093d3ff1 RD |
10058 | #ifdef __cplusplus |
10059 | } | |
10060 | #endif | |
10061 | ||
10062 | /* -----------------------------------------------------------------------------* | |
10063 | * Partial Init method | |
10064 | * -----------------------------------------------------------------------------*/ | |
10065 | ||
2ef75293 RD |
10066 | #ifdef __cplusplus |
10067 | extern "C" | |
10068 | #endif | |
32fe5131 | 10069 | SWIGEXPORT void SWIG_init(void) { |
0085ce49 RD |
10070 | PyObject *m, *d; |
10071 | ||
10072 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
10073 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
10074 | ||
10075 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
10076 | d = PyModule_GetDict(m); | |
10077 | ||
10078 | SWIG_InitializeModule(0); | |
10079 | SWIG_InstallConstants(d,swig_const_table); | |
10080 | ||
10081 | ||
10082 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
10083 | SWIG_addvarlink(SWIG_globals(),(char*)"UTF8String",UTF8String_get, UTF8String_set); | |
10084 | SWIG_addvarlink(SWIG_globals(),(char*)"StyleString",StyleString_get, StyleString_set); | |
10085 | SWIG_addvarlink(SWIG_globals(),(char*)"SizeString",SizeString_get, SizeString_set); | |
10086 | SWIG_addvarlink(SWIG_globals(),(char*)"PosString",PosString_get, PosString_set); | |
10087 | SWIG_addvarlink(SWIG_globals(),(char*)"BitmapString",BitmapString_get, BitmapString_set); | |
10088 | SWIG_addvarlink(SWIG_globals(),(char*)"IconString",IconString_get, IconString_set); | |
10089 | SWIG_addvarlink(SWIG_globals(),(char*)"FontString",FontString_get, FontString_set); | |
0a27f394 | 10090 | SWIG_addvarlink(SWIG_globals(),(char*)"AnimationString",AnimationString_get, AnimationString_set); |
0085ce49 RD |
10091 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MAJOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MAJOR))); |
10092 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MINOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MINOR))); | |
10093 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_RELEASE",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_RELEASE))); | |
10094 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_REVISION",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_REVISION))); | |
10095 | SWIG_Python_SetConstant(d, "XRC_USE_LOCALE",SWIG_From_int(static_cast< int >(wxXRC_USE_LOCALE))); | |
10096 | SWIG_Python_SetConstant(d, "XRC_NO_SUBCLASSING",SWIG_From_int(static_cast< int >(wxXRC_NO_SUBCLASSING))); | |
10097 | SWIG_Python_SetConstant(d, "XRC_NO_RELOADING",SWIG_From_int(static_cast< int >(wxXRC_NO_RELOADING))); | |
10098 | SWIG_Python_SetConstant(d, "XML_ELEMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_ELEMENT_NODE))); | |
10099 | SWIG_Python_SetConstant(d, "XML_ATTRIBUTE_NODE",SWIG_From_int(static_cast< int >(wxXML_ATTRIBUTE_NODE))); | |
10100 | SWIG_Python_SetConstant(d, "XML_TEXT_NODE",SWIG_From_int(static_cast< int >(wxXML_TEXT_NODE))); | |
10101 | SWIG_Python_SetConstant(d, "XML_CDATA_SECTION_NODE",SWIG_From_int(static_cast< int >(wxXML_CDATA_SECTION_NODE))); | |
10102 | SWIG_Python_SetConstant(d, "XML_ENTITY_REF_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_REF_NODE))); | |
10103 | SWIG_Python_SetConstant(d, "XML_ENTITY_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_NODE))); | |
10104 | SWIG_Python_SetConstant(d, "XML_PI_NODE",SWIG_From_int(static_cast< int >(wxXML_PI_NODE))); | |
10105 | SWIG_Python_SetConstant(d, "XML_COMMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_COMMENT_NODE))); | |
10106 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_NODE))); | |
10107 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_TYPE_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_TYPE_NODE))); | |
10108 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_FRAG_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_FRAG_NODE))); | |
10109 | SWIG_Python_SetConstant(d, "XML_NOTATION_NODE",SWIG_From_int(static_cast< int >(wxXML_NOTATION_NODE))); | |
10110 | SWIG_Python_SetConstant(d, "XML_HTML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_HTML_DOCUMENT_NODE))); | |
33d6fd3b RD |
10111 | SWIG_Python_SetConstant(d, "XML_NO_INDENTATION",SWIG_From_int(static_cast< int >(wxXML_NO_INDENTATION))); |
10112 | SWIG_Python_SetConstant(d, "XMLDOC_NONE",SWIG_From_int(static_cast< int >(wxXMLDOC_NONE))); | |
10113 | SWIG_Python_SetConstant(d, "XMLDOC_KEEP_WHITESPACE_NODES",SWIG_From_int(static_cast< int >(wxXMLDOC_KEEP_WHITESPACE_NODES))); | |
0085ce49 RD |
10114 | |
10115 | ||
10116 | wxXmlInitResourceModule(); | |
10117 | wxXmlResource::Get()->InitAllHandlers(); | |
10118 | ||
10119 | ||
2ef75293 RD |
10120 | } |
10121 |