]>
Commit | Line | Data |
---|---|---|
ae8162c8 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
554f62e9 | 3 | * Version 1.3.29 |
ae8162c8 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 | |
554f62e9 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
ae8162c8 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 | }; |
ae8162c8 RD |
28 | #endif |
29 | ||
554f62e9 | 30 | /* ----------------------------------------------------------------------------- |
7449af73 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
554f62e9 | 33 | * ----------------------------------------------------------------------------- */ |
ae8162c8 | 34 | |
7449af73 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
554f62e9 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 |
ae8162c8 | 47 | |
7449af73 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 | |
554f62e9 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__)) | |
7449af73 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
554f62e9 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
7449af73 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 | ||
554f62e9 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 | ||
7449af73 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 | |
554f62e9 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
7449af73 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 | ||
554f62e9 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 | |
7449af73 | 126 | |
ae8162c8 | 127 | |
554f62e9 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
ae8162c8 | 130 | |
554f62e9 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
ae8162c8 | 133 | * |
554f62e9 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
ae8162c8 | 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 */ | |
7449af73 | 140 | #define SWIG_RUNTIME_VERSION "2" |
ae8162c8 | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
7449af73 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) | |
ae8162c8 | 147 | #else |
7449af73 | 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 | */ | |
7449af73 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
7449af73 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
7449af73 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
7449af73 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
ae8162c8 RD |
166 | #endif |
167 | ||
554f62e9 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 | ||
7449af73 RD |
309 | #include <string.h> |
310 | ||
ae8162c8 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 | ||
7449af73 | 318 | /* Structure to store inforomation on one type */ |
ae8162c8 | 319 | typedef struct swig_type_info { |
7449af73 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 */ | |
554f62e9 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
ae8162c8 RD |
326 | } swig_type_info; |
327 | ||
7449af73 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; | |
554f62e9 | 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>|... | |
7449af73 | 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 | } | |
7449af73 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
7449af73 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 | */ |
7449af73 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 | } |
7449af73 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
7449af73 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
7449af73 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 | */ | |
7449af73 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
7449af73 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 * | |
7449af73 | 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. */ | |
554f62e9 | 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 | |
7449af73 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; | |
7449af73 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 | } |
7449af73 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
554f62e9 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
7449af73 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 | } |
7449af73 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 | } |
7449af73 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 | 595 | } |
ae8162c8 | 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) { | |
7449af73 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) { |
7449af73 | 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; | |
7449af73 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
7449af73 | 621 | register char d = *(c++); |
554f62e9 | 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 | } | |
ae8162c8 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
554f62e9 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 | |
554f62e9 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 |
554f62e9 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 | /* ----------------------------------------------------------------------------- | |
554f62e9 | 801 | * error manipulation |
093d3ff1 RD |
802 | * ----------------------------------------------------------------------------- */ |
803 | ||
554f62e9 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 | |
554f62e9 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 | ||
554f62e9 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
554f62e9 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 */ | |
ae8162c8 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
ae8162c8 RD |
956 | /* Constant information structure */ |
957 | typedef struct swig_const_info { | |
554f62e9 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
ae8162c8 RD |
964 | } swig_const_info; |
965 | ||
093d3ff1 | 966 | #ifdef __cplusplus |
554f62e9 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
972 | ||
973 | ||
554f62e9 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 | * | |
554f62e9 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 | * |
554f62e9 | 984 | * ----------------------------------------------------------------------------- */ |
093d3ff1 RD |
985 | |
986 | /* Common SWIG API */ | |
093d3ff1 | 987 | |
96221a45 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
554f62e9 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 | |
554f62e9 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 | |
554f62e9 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 | |
554f62e9 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 | |
554f62e9 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) | |
7449af73 | 1016 | |
093d3ff1 | 1017 | |
554f62e9 | 1018 | /* Runtime API */ |
093d3ff1 | 1019 | |
554f62e9 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) | |
7449af73 | 1023 | |
554f62e9 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 | |
7449af73 | 1029 | |
093d3ff1 | 1030 | |
554f62e9 | 1031 | /* Runtime API implementation */ |
093d3ff1 | 1032 | |
554f62e9 | 1033 | /* Error manipulation */ |
093d3ff1 | 1034 | |
554f62e9 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 | ||
554f62e9 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 | ||
554f62e9 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
7449af73 | 1051 | |
554f62e9 | 1052 | /* Set a constant value */ |
093d3ff1 | 1053 | |
554f62e9 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 | ||
554f62e9 | 1060 | /* Append a value to the result obj */ |
093d3ff1 | 1061 | |
554f62e9 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 { |
554f62e9 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 | } |
554f62e9 RD |
1101 | return result; |
1102 | #endif | |
093d3ff1 RD |
1103 | } |
1104 | ||
554f62e9 | 1105 | /* Unpack the argument tuple */ |
093d3ff1 | 1106 | |
554f62e9 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*/ | |
7449af73 | 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 */ |
7449af73 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 | ||
554f62e9 | 1616 | static PyTypeObject pyswigobject_type; |
7449af73 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
554f62e9 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 |
554f62e9 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 |
554f62e9 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 | |
554f62e9 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
554f62e9 | 1679 | }; |
7449af73 | 1680 | pyswigobject_type = tmp; |
554f62e9 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1682 | type_init = 1; |
1683 | } | |
7449af73 | 1684 | return &pyswigobject_type; |
093d3ff1 RD |
1685 | } |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
554f62e9 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
554f62e9 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; | |
7449af73 | 1696 | } |
554f62e9 | 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; | |
554f62e9 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
554f62e9 | 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 | } | |
554f62e9 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
9d7dfdff | 1724 | |
093d3ff1 RD |
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))) { | |
554f62e9 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
554f62e9 | 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))){ | |
554f62e9 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
554f62e9 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
1746 | ||
1747 | SWIGRUNTIME int | |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1749 | { | |
554f62e9 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 | ||
554f62e9 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1757 | |
1758 | SWIGRUNTIME PyTypeObject* | |
7449af73 | 1759 | PySwigPacked_type(void) { |
554f62e9 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 | |
554f62e9 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
554f62e9 | 1842 | }; |
7449af73 | 1843 | pyswigpacked_type = tmp; |
554f62e9 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
7449af73 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
554f62e9 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1852 | { |
554f62e9 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
7449af73 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
554f62e9 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
7449af73 | 1864 | } |
093d3ff1 | 1865 | } |
554f62e9 | 1866 | return (PyObject *) sobj; |
093d3ff1 RD |
1867 | } |
1868 | ||
554f62e9 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
554f62e9 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 | /* ----------------------------------------------------------------------------- |
554f62e9 | 1883 | * pointers/data manipulation |
093d3ff1 RD |
1884 | * ----------------------------------------------------------------------------- */ |
1885 | ||
554f62e9 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
093d3ff1 | 1891 | |
554f62e9 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 | |
554f62e9 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1900 | |
554f62e9 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1903 | { |
554f62e9 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 { |
554f62e9 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
554f62e9 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 | ||
554f62e9 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 | } |
554f62e9 | 1962 | return 0; |
093d3ff1 RD |
1963 | } |
1964 | ||
554f62e9 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
554f62e9 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 { |
554f62e9 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
554f62e9 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 | ||
554f62e9 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
554f62e9 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 { |
554f62e9 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
96221a45 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
554f62e9 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 | ||
554f62e9 | 2072 | /* Convert a packed value value */ |
093d3ff1 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
554f62e9 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 | } |
554f62e9 RD |
2085 | return SWIG_OK; |
2086 | } | |
093d3ff1 | 2087 | |
554f62e9 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 2091 | |
554f62e9 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
093d3ff1 | 2096 | |
554f62e9 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 | } |
554f62e9 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
554f62e9 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 | } |
554f62e9 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 | } |
554f62e9 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 | } |
554f62e9 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 | ||
554f62e9 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 |
554f62e9 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
093d3ff1 | 2180 | |
554f62e9 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 { |
554f62e9 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
554f62e9 | 2194 | return SWIG_Py_Void(); |
093d3ff1 | 2195 | } |
554f62e9 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
554f62e9 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
554f62e9 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 | } |
554f62e9 | 2215 | return robj; |
093d3ff1 | 2216 | } |
093d3ff1 RD |
2217 | } |
2218 | ||
554f62e9 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) { |
554f62e9 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2224 | } |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
ae8162c8 | 2229 | |
093d3ff1 RD |
2230 | #ifdef SWIG_LINK_RUNTIME |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
ae8162c8 | 2233 | |
7449af73 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 |
7449af73 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2251 | } |
ae8162c8 | 2252 | |
7449af73 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
554f62e9 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
7449af73 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"); | |
554f62e9 | 2263 | return SWIG_ERROR; |
7449af73 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
554f62e9 | 2268 | return SWIG_ERROR; |
7449af73 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)); | |
554f62e9 | 2276 | return SWIG_ERROR; |
7449af73 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
554f62e9 | 2279 | return SWIG_ERROR; |
7449af73 | 2280 | Py_DECREF(o); |
554f62e9 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
7449af73 | 2283 | #endif |
ae8162c8 | 2284 | |
554f62e9 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 | ||
7449af73 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); | |
554f62e9 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
7449af73 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
554f62e9 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
7449af73 RD |
2312 | } |
2313 | } | |
ae8162c8 | 2314 | |
554f62e9 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; | |
ae8162c8 | 2320 | } |
ae8162c8 | 2321 | |
554f62e9 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] | |
7449af73 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] | |
2561 | #define SWIGTYPE_p_wxTIFFHandler swig_types[95] | |
2562 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[96] | |
2563 | #define SWIGTYPE_p_wxValidator swig_types[97] | |
2564 | #define SWIGTYPE_p_wxWindow swig_types[98] | |
2565 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[99] | |
2566 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[100] | |
2567 | #define SWIGTYPE_p_wxXPMHandler swig_types[101] | |
2568 | #define SWIGTYPE_p_wxXmlDocument swig_types[102] | |
2569 | #define SWIGTYPE_p_wxXmlNode swig_types[103] | |
2570 | #define SWIGTYPE_p_wxXmlProperty swig_types[104] | |
2571 | #define SWIGTYPE_p_wxXmlResource swig_types[105] | |
2572 | static swig_type_info *swig_types[107]; | |
2573 | static swig_module_info swig_module = {swig_types, 106, 0, 0, 0, 0}; | |
7449af73 RD |
2574 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2575 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
ae8162c8 RD |
2576 | |
2577 | /* -------- TYPES TABLE (END) -------- */ | |
2578 | ||
554f62e9 RD |
2579 | #if (PY_VERSION_HEX <= 0x02000000) |
2580 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2581 | # error "This python version requires to use swig with the '-classic' option" | |
2582 | # endif | |
2583 | #endif | |
2584 | #if (PY_VERSION_HEX <= 0x02020000) | |
2585 | # error "This python version requires to use swig with the '-nomodern' option" | |
2586 | #endif | |
2587 | #if (PY_VERSION_HEX <= 0x02020000) | |
2588 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2589 | #endif | |
2590 | #ifndef METH_O | |
2591 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2592 | #endif | |
ae8162c8 RD |
2593 | |
2594 | /*----------------------------------------------- | |
2595 | @(target):= _xrc.so | |
2596 | ------------------------------------------------*/ | |
2597 | #define SWIG_init init_xrc | |
2598 | ||
2599 | #define SWIG_name "_xrc" | |
2600 | ||
554f62e9 RD |
2601 | #define SWIGVERSION 0x010329 |
2602 | ||
2603 | ||
2604 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2605 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2606 | ||
2607 | ||
2608 | #include <stdexcept> | |
2609 | ||
2610 | ||
2611 | namespace swig { | |
2612 | class PyObject_ptr { | |
2613 | protected: | |
2614 | PyObject *_obj; | |
2615 | ||
2616 | public: | |
2617 | PyObject_ptr() :_obj(0) | |
2618 | { | |
2619 | } | |
2620 | ||
2621 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2622 | { | |
2623 | Py_XINCREF(_obj); | |
2624 | } | |
2625 | ||
2626 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2627 | { | |
2628 | if (initial_ref) Py_XINCREF(_obj); | |
2629 | } | |
2630 | ||
2631 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2632 | { | |
2633 | Py_XINCREF(item._obj); | |
2634 | Py_XDECREF(_obj); | |
2635 | _obj = item._obj; | |
2636 | return *this; | |
2637 | } | |
2638 | ||
2639 | ~PyObject_ptr() | |
2640 | { | |
2641 | Py_XDECREF(_obj); | |
2642 | } | |
2643 | ||
2644 | operator PyObject *() const | |
2645 | { | |
2646 | return _obj; | |
2647 | } | |
2648 | ||
2649 | PyObject *operator->() const | |
2650 | { | |
2651 | return _obj; | |
2652 | } | |
2653 | }; | |
2654 | } | |
2655 | ||
2656 | ||
2657 | namespace swig { | |
2658 | struct PyObject_var : PyObject_ptr { | |
2659 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2660 | ||
2661 | PyObject_var & operator = (PyObject* obj) | |
2662 | { | |
2663 | Py_XDECREF(_obj); | |
2664 | _obj = obj; | |
2665 | return *this; | |
2666 | } | |
2667 | }; | |
2668 | } | |
2669 | ||
2670 | ||
ae8162c8 RD |
2671 | #include "wx/wxPython/wxPython.h" |
2672 | #include "wx/wxPython/pyclasses.h" | |
2673 | #include "wx/wxPython/pyistream.h" | |
2674 | ||
2675 | #include <wx/xml/xml.h> | |
2676 | #include <wx/xrc/xmlres.h> | |
2677 | ||
2678 | static const wxString wxPyEmptyString(wxEmptyString); | |
2679 | static const wxString wxPyUTF8String(wxT("UTF-8")); | |
2680 | static const wxString wxPyStyleString(wxT("style")); | |
2681 | static const wxString wxPySizeString(wxT("size")); | |
2682 | static const wxString wxPyPosString(wxT("pos")); | |
2683 | static const wxString wxPyBitmapString(wxT("bitmap")); | |
2684 | static const wxString wxPyIconString(wxT("icon")); | |
2685 | static const wxString wxPyFontString(wxT("font")); | |
0a27f394 | 2686 | static const wxString wxPyAnimationString(wxT("animation")); |
ae8162c8 | 2687 | |
554f62e9 | 2688 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2689 | |
2690 | ||
554f62e9 RD |
2691 | SWIGINTERNINLINE PyObject * |
2692 | SWIG_From_int (int value) | |
2693 | { | |
2694 | return SWIG_From_long (value); | |
2695 | } | |
ae8162c8 RD |
2696 | |
2697 | ||
554f62e9 RD |
2698 | #include <limits.h> |
2699 | #ifndef LLONG_MIN | |
2700 | # define LLONG_MIN LONG_LONG_MIN | |
2701 | #endif | |
2702 | #ifndef LLONG_MAX | |
2703 | # define LLONG_MAX LONG_LONG_MAX | |
2704 | #endif | |
2705 | #ifndef ULLONG_MAX | |
2706 | # define ULLONG_MAX ULONG_LONG_MAX | |
2707 | #endif | |
ae8162c8 RD |
2708 | |
2709 | ||
093d3ff1 | 2710 | SWIGINTERN int |
554f62e9 | 2711 | SWIG_AsVal_long (PyObject* obj, long* val) |
ae8162c8 RD |
2712 | { |
2713 | if (PyNumber_Check(obj)) { | |
2714 | if (val) *val = PyInt_AsLong(obj); | |
554f62e9 | 2715 | return SWIG_OK; |
ae8162c8 | 2716 | } |
554f62e9 | 2717 | return SWIG_TypeError; |
ae8162c8 RD |
2718 | } |
2719 | ||
2720 | ||
093d3ff1 | 2721 | SWIGINTERN int |
554f62e9 RD |
2722 | SWIG_AsVal_int (PyObject * obj, int *val) |
2723 | { | |
ae8162c8 | 2724 | long v; |
554f62e9 RD |
2725 | int res = SWIG_AsVal_long (obj, &v); |
2726 | if (SWIG_IsOK(res)) { | |
2727 | if ((v < INT_MIN || v > INT_MAX)) { | |
2728 | return SWIG_OverflowError; | |
ae8162c8 | 2729 | } else { |
554f62e9 | 2730 | if (val) *val = static_cast< int >(v); |
ae8162c8 | 2731 | } |
554f62e9 RD |
2732 | } |
2733 | return res; | |
ae8162c8 RD |
2734 | } |
2735 | ||
554f62e9 | 2736 | SWIGINTERN bool wxXmlResource_LoadFromString(wxXmlResource *self,wxString const &data){ |
ae8162c8 RD |
2737 | static int s_memFileIdx = 0; |
2738 | ||
2739 | // Check for memory FS. If not present, load the handler: | |
2740 | wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), | |
2741 | wxT("dummy data")); | |
2742 | wxFileSystem fsys; | |
2743 | wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file")); | |
2744 | wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file")); | |
2745 | if (f) | |
2746 | delete f; | |
2747 | else | |
2748 | wxFileSystem::AddHandler(new wxMemoryFSHandler); | |
2749 | ||
2750 | // Now put the resource data into the memory FS | |
2751 | wxString filename(wxT("XRC_resource/data_string_")); | |
2752 | filename << s_memFileIdx; | |
2753 | s_memFileIdx += 1; | |
2754 | wxMemoryFSHandler::AddFile(filename, data); | |
2755 | ||
2756 | // Load the "file" into the resource object | |
2757 | bool retval = self->Load(wxT("memory:") + filename ); | |
2758 | ||
2759 | return retval; | |
2760 | } | |
2761 | ||
2762 | class wxPyXmlSubclassFactory : public wxXmlSubclassFactory | |
2763 | { | |
2764 | public: | |
2765 | wxPyXmlSubclassFactory() {} | |
2766 | DEC_PYCALLBACK_OBJECT_STRING_pure(Create); | |
2767 | PYPRIVATE; | |
2768 | }; | |
2769 | ||
2770 | IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create); | |
2771 | ||
2772 | // C++ version of Python aware wxXmlResourceHandler, for the pure virtual | |
2773 | // callbacks, as well as to make some protected things public so they can | |
2774 | // be wrapped. | |
2775 | class wxPyXmlResourceHandler : public wxXmlResourceHandler { | |
2776 | public: | |
2777 | wxPyXmlResourceHandler() : wxXmlResourceHandler() {} | |
2778 | //~wxPyXmlResourceHandler(); | |
2779 | ||
2780 | // Base class virtuals | |
2781 | ||
2782 | DEC_PYCALLBACK_OBJECT__pure(DoCreateResource); | |
2783 | DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle); | |
2784 | ||
2785 | ||
2786 | // accessors for protected members | |
2787 | ||
2788 | wxXmlResource* GetResource() { return m_resource; } | |
2789 | wxXmlNode* GetNode() { return m_node; } | |
2790 | wxString GetClass() { return m_class; } | |
2791 | wxObject* GetParent() { return m_parent; } | |
2792 | wxObject* GetInstance() { return m_instance; } | |
2793 | wxWindow* GetParentAsWindow() { return m_parentAsWindow; } | |
ae8162c8 RD |
2794 | |
2795 | ||
2796 | // turn some protected methods into public via delegation | |
2797 | ||
2798 | bool IsOfClass(wxXmlNode *node, const wxString& classname) | |
2799 | { return wxXmlResourceHandler::IsOfClass(node, classname); } | |
2800 | ||
2801 | wxString GetNodeContent(wxXmlNode *node) | |
2802 | { return wxXmlResourceHandler::GetNodeContent(node); } | |
2803 | ||
2804 | bool HasParam(const wxString& param) | |
2805 | { return wxXmlResourceHandler::HasParam(param); } | |
2806 | ||
2807 | wxXmlNode *GetParamNode(const wxString& param) | |
2808 | { return wxXmlResourceHandler::GetParamNode(param); } | |
2809 | ||
2810 | wxString GetParamValue(const wxString& param) | |
2811 | { return wxXmlResourceHandler::GetParamValue(param); } | |
2812 | ||
2813 | void AddStyle(const wxString& name, int value) | |
2814 | { wxXmlResourceHandler::AddStyle(name, value); } | |
2815 | ||
2816 | void AddWindowStyles() | |
2817 | { wxXmlResourceHandler::AddWindowStyles(); } | |
2818 | ||
2819 | int GetStyle(const wxString& param = wxT("style"), int defaults = 0) | |
2820 | { return wxXmlResourceHandler::GetStyle(param, defaults); } | |
2821 | ||
2822 | wxString GetText(const wxString& param, bool translate = true) | |
2823 | { return wxXmlResourceHandler::GetText(param, translate); } | |
2824 | ||
2825 | int GetID() | |
2826 | { return wxXmlResourceHandler::GetID(); } | |
2827 | ||
2828 | wxString GetName() | |
2829 | { return wxXmlResourceHandler::GetName(); } | |
2830 | ||
2831 | bool GetBool(const wxString& param, bool defaultv = false) | |
2832 | { return wxXmlResourceHandler::GetBool(param, defaultv); } | |
2833 | ||
2834 | long GetLong( const wxString& param, long defaultv = 0 ) | |
2835 | { return wxXmlResourceHandler::GetLong(param, defaultv); } | |
2836 | ||
2837 | wxColour GetColour(const wxString& param) | |
2838 | { return wxXmlResourceHandler::GetColour(param); } | |
2839 | ||
2840 | wxSize GetSize(const wxString& param = wxT("size")) | |
2841 | { return wxXmlResourceHandler::GetSize(param); } | |
2842 | ||
2843 | wxPoint GetPosition(const wxString& param = wxT("pos")) | |
2844 | { return wxXmlResourceHandler::GetPosition(param); } | |
2845 | ||
2846 | wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0) | |
2847 | { return wxXmlResourceHandler::GetDimension(param, defaultv); } | |
2848 | ||
2849 | wxBitmap GetBitmap(const wxString& param = wxT("bitmap"), | |
2850 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
2851 | wxSize size = wxDefaultSize) | |
2852 | { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); } | |
2853 | ||
2854 | wxIcon GetIcon(const wxString& param = wxT("icon"), | |
2855 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
2856 | wxSize size = wxDefaultSize) | |
2857 | { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); } | |
2858 | ||
0a27f394 RD |
2859 | wxAnimation GetAnimation(const wxString& param = wxT("animation")) |
2860 | { return wxXmlResourceHandler::GetAnimation(param); } | |
2861 | ||
ae8162c8 RD |
2862 | wxFont GetFont(const wxString& param = wxT("font")) |
2863 | { return wxXmlResourceHandler::GetFont(param); } | |
2864 | ||
2865 | void SetupWindow(wxWindow *wnd) | |
2866 | { wxXmlResourceHandler::SetupWindow(wnd); } | |
2867 | ||
2868 | void CreateChildren(wxObject *parent, bool this_hnd_only = false) | |
2869 | { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); } | |
2870 | ||
2871 | void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL) | |
2872 | { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); } | |
2873 | ||
2874 | wxObject *CreateResFromNode(wxXmlNode *node, | |
2875 | wxObject *parent, wxObject *instance = NULL) | |
2876 | { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); } | |
2877 | ||
2878 | wxFileSystem& GetCurFileSystem() | |
2879 | { return wxXmlResourceHandler::GetCurFileSystem(); } | |
2880 | ||
2881 | ||
2882 | PYPRIVATE; | |
2883 | }; | |
2884 | ||
2885 | IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource); | |
2886 | IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle); | |
2887 | ||
2888 | ||
2889 | ||
093d3ff1 | 2890 | SWIGINTERN int |
554f62e9 | 2891 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
ae8162c8 | 2892 | { |
ae8162c8 RD |
2893 | if (obj == Py_True) { |
2894 | if (val) *val = true; | |
554f62e9 RD |
2895 | return SWIG_OK; |
2896 | } else if (obj == Py_False) { | |
ae8162c8 | 2897 | if (val) *val = false; |
554f62e9 | 2898 | return SWIG_OK; |
093d3ff1 | 2899 | } else { |
554f62e9 RD |
2900 | long v = 0; |
2901 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2902 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2903 | return res; | |
ae8162c8 | 2904 | } |
ae8162c8 RD |
2905 | } |
2906 | ||
2907 | #ifdef __cplusplus | |
2908 | extern "C" { | |
2909 | #endif | |
554f62e9 RD |
2910 | SWIGINTERN int UTF8String_set(PyObject *) { |
2911 | SWIG_Error(SWIG_AttributeError,"Variable UTF8String is read-only."); | |
2912 | return 1; | |
ae8162c8 RD |
2913 | } |
2914 | ||
2915 | ||
554f62e9 RD |
2916 | SWIGINTERN PyObject *UTF8String_get(void) { |
2917 | PyObject *pyobj = 0; | |
2918 | ||
2919 | { | |
ae8162c8 | 2920 | #if wxUSE_UNICODE |
554f62e9 | 2921 | pyobj = PyUnicode_FromWideChar((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); |
ae8162c8 | 2922 | #else |
554f62e9 | 2923 | pyobj = PyString_FromStringAndSize((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); |
ae8162c8 | 2924 | #endif |
554f62e9 RD |
2925 | } |
2926 | return pyobj; | |
ae8162c8 RD |
2927 | } |
2928 | ||
2929 | ||
554f62e9 RD |
2930 | SWIGINTERN int StyleString_set(PyObject *) { |
2931 | SWIG_Error(SWIG_AttributeError,"Variable StyleString is read-only."); | |
2932 | return 1; | |
ae8162c8 RD |
2933 | } |
2934 | ||
2935 | ||
554f62e9 RD |
2936 | SWIGINTERN PyObject *StyleString_get(void) { |
2937 | PyObject *pyobj = 0; | |
2938 | ||
2939 | { | |
ae8162c8 | 2940 | #if wxUSE_UNICODE |
554f62e9 | 2941 | pyobj = PyUnicode_FromWideChar((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); |
ae8162c8 | 2942 | #else |
554f62e9 | 2943 | pyobj = PyString_FromStringAndSize((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); |
ae8162c8 | 2944 | #endif |
554f62e9 RD |
2945 | } |
2946 | return pyobj; | |
ae8162c8 RD |
2947 | } |
2948 | ||
2949 | ||
554f62e9 RD |
2950 | SWIGINTERN int SizeString_set(PyObject *) { |
2951 | SWIG_Error(SWIG_AttributeError,"Variable SizeString is read-only."); | |
2952 | return 1; | |
ae8162c8 RD |
2953 | } |
2954 | ||
2955 | ||
554f62e9 RD |
2956 | SWIGINTERN PyObject *SizeString_get(void) { |
2957 | PyObject *pyobj = 0; | |
2958 | ||
2959 | { | |
ae8162c8 | 2960 | #if wxUSE_UNICODE |
554f62e9 | 2961 | pyobj = PyUnicode_FromWideChar((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); |
ae8162c8 | 2962 | #else |
554f62e9 | 2963 | pyobj = PyString_FromStringAndSize((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); |
ae8162c8 | 2964 | #endif |
554f62e9 RD |
2965 | } |
2966 | return pyobj; | |
ae8162c8 RD |
2967 | } |
2968 | ||
2969 | ||
554f62e9 RD |
2970 | SWIGINTERN int PosString_set(PyObject *) { |
2971 | SWIG_Error(SWIG_AttributeError,"Variable PosString is read-only."); | |
2972 | return 1; | |
ae8162c8 RD |
2973 | } |
2974 | ||
2975 | ||
554f62e9 RD |
2976 | SWIGINTERN PyObject *PosString_get(void) { |
2977 | PyObject *pyobj = 0; | |
2978 | ||
2979 | { | |
ae8162c8 | 2980 | #if wxUSE_UNICODE |
554f62e9 | 2981 | pyobj = PyUnicode_FromWideChar((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); |
ae8162c8 | 2982 | #else |
554f62e9 | 2983 | pyobj = PyString_FromStringAndSize((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); |
ae8162c8 | 2984 | #endif |
554f62e9 RD |
2985 | } |
2986 | return pyobj; | |
ae8162c8 RD |
2987 | } |
2988 | ||
2989 | ||
554f62e9 RD |
2990 | SWIGINTERN int BitmapString_set(PyObject *) { |
2991 | SWIG_Error(SWIG_AttributeError,"Variable BitmapString is read-only."); | |
2992 | return 1; | |
ae8162c8 RD |
2993 | } |
2994 | ||
2995 | ||
554f62e9 RD |
2996 | SWIGINTERN PyObject *BitmapString_get(void) { |
2997 | PyObject *pyobj = 0; | |
2998 | ||
2999 | { | |
ae8162c8 | 3000 | #if wxUSE_UNICODE |
554f62e9 | 3001 | pyobj = PyUnicode_FromWideChar((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); |
ae8162c8 | 3002 | #else |
554f62e9 | 3003 | pyobj = PyString_FromStringAndSize((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); |
ae8162c8 | 3004 | #endif |
554f62e9 RD |
3005 | } |
3006 | return pyobj; | |
ae8162c8 RD |
3007 | } |
3008 | ||
3009 | ||
554f62e9 RD |
3010 | SWIGINTERN int IconString_set(PyObject *) { |
3011 | SWIG_Error(SWIG_AttributeError,"Variable IconString is read-only."); | |
3012 | return 1; | |
ae8162c8 RD |
3013 | } |
3014 | ||
3015 | ||
554f62e9 RD |
3016 | SWIGINTERN PyObject *IconString_get(void) { |
3017 | PyObject *pyobj = 0; | |
3018 | ||
3019 | { | |
ae8162c8 | 3020 | #if wxUSE_UNICODE |
554f62e9 | 3021 | pyobj = PyUnicode_FromWideChar((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); |
ae8162c8 | 3022 | #else |
554f62e9 | 3023 | pyobj = PyString_FromStringAndSize((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); |
ae8162c8 | 3024 | #endif |
554f62e9 RD |
3025 | } |
3026 | return pyobj; | |
ae8162c8 RD |
3027 | } |
3028 | ||
3029 | ||
554f62e9 RD |
3030 | SWIGINTERN int FontString_set(PyObject *) { |
3031 | SWIG_Error(SWIG_AttributeError,"Variable FontString is read-only."); | |
3032 | return 1; | |
ae8162c8 RD |
3033 | } |
3034 | ||
3035 | ||
554f62e9 RD |
3036 | SWIGINTERN PyObject *FontString_get(void) { |
3037 | PyObject *pyobj = 0; | |
3038 | ||
3039 | { | |
ae8162c8 | 3040 | #if wxUSE_UNICODE |
554f62e9 | 3041 | pyobj = PyUnicode_FromWideChar((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); |
ae8162c8 | 3042 | #else |
554f62e9 | 3043 | pyobj = PyString_FromStringAndSize((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); |
ae8162c8 | 3044 | #endif |
554f62e9 RD |
3045 | } |
3046 | return pyobj; | |
3047 | } | |
3048 | ||
3049 | ||
0a27f394 RD |
3050 | SWIGINTERN int AnimationString_set(PyObject *) { |
3051 | SWIG_Error(SWIG_AttributeError,"Variable AnimationString is read-only."); | |
3052 | return 1; | |
3053 | } | |
3054 | ||
3055 | ||
3056 | SWIGINTERN PyObject *AnimationString_get(void) { | |
3057 | PyObject *pyobj = 0; | |
3058 | ||
3059 | { | |
3060 | #if wxUSE_UNICODE | |
3061 | pyobj = PyUnicode_FromWideChar((&wxPyAnimationString)->c_str(), (&wxPyAnimationString)->Len()); | |
3062 | #else | |
3063 | pyobj = PyString_FromStringAndSize((&wxPyAnimationString)->c_str(), (&wxPyAnimationString)->Len()); | |
3064 | #endif | |
3065 | } | |
3066 | return pyobj; | |
3067 | } | |
3068 | ||
3069 | ||
554f62e9 RD |
3070 | SWIGINTERN PyObject *_wrap_new_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3071 | PyObject *resultobj = 0; | |
3072 | wxString *arg1 = 0 ; | |
3073 | int arg2 = (int) wxXRC_USE_LOCALE ; | |
fc46b7f3 RD |
3074 | wxString const &arg3_defvalue = wxEmptyString ; |
3075 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
554f62e9 RD |
3076 | wxXmlResource *result = 0 ; |
3077 | bool temp1 = false ; | |
3078 | int val2 ; | |
3079 | int ecode2 = 0 ; | |
fc46b7f3 | 3080 | bool temp3 = false ; |
554f62e9 RD |
3081 | PyObject * obj0 = 0 ; |
3082 | PyObject * obj1 = 0 ; | |
fc46b7f3 | 3083 | PyObject * obj2 = 0 ; |
554f62e9 | 3084 | char * kwnames[] = { |
fc46b7f3 | 3085 | (char *) "filemask",(char *) "flags",(char *) "domain", NULL |
554f62e9 RD |
3086 | }; |
3087 | ||
fc46b7f3 | 3088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_XmlResource",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
554f62e9 RD |
3089 | { |
3090 | arg1 = wxString_in_helper(obj0); | |
3091 | if (arg1 == NULL) SWIG_fail; | |
3092 | temp1 = true; | |
3093 | } | |
3094 | if (obj1) { | |
3095 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3096 | if (!SWIG_IsOK(ecode2)) { | |
3097 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlResource" "', expected argument " "2"" of type '" "int""'"); | |
3098 | } | |
3099 | arg2 = static_cast< int >(val2); | |
3100 | } | |
fc46b7f3 RD |
3101 | if (obj2) { |
3102 | { | |
3103 | arg3 = wxString_in_helper(obj2); | |
3104 | if (arg3 == NULL) SWIG_fail; | |
3105 | temp3 = true; | |
3106 | } | |
3107 | } | |
554f62e9 RD |
3108 | { |
3109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 3110 | result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2,(wxString const &)*arg3); |
554f62e9 RD |
3111 | wxPyEndAllowThreads(__tstate); |
3112 | if (PyErr_Occurred()) SWIG_fail; | |
3113 | } | |
3114 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_NEW | 0 ); | |
3115 | { | |
3116 | if (temp1) | |
3117 | delete arg1; | |
3118 | } | |
fc46b7f3 RD |
3119 | { |
3120 | if (temp3) | |
3121 | delete arg3; | |
3122 | } | |
554f62e9 RD |
3123 | return resultobj; |
3124 | fail: | |
3125 | { | |
3126 | if (temp1) | |
3127 | delete arg1; | |
3128 | } | |
fc46b7f3 RD |
3129 | { |
3130 | if (temp3) | |
3131 | delete arg3; | |
3132 | } | |
554f62e9 | 3133 | return NULL; |
ae8162c8 RD |
3134 | } |
3135 | ||
3136 | ||
554f62e9 RD |
3137 | SWIGINTERN PyObject *_wrap_new_EmptyXmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3138 | PyObject *resultobj = 0; | |
3139 | int arg1 = (int) wxXRC_USE_LOCALE ; | |
fc46b7f3 RD |
3140 | wxString const &arg2_defvalue = wxEmptyString ; |
3141 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
554f62e9 RD |
3142 | wxXmlResource *result = 0 ; |
3143 | int val1 ; | |
3144 | int ecode1 = 0 ; | |
fc46b7f3 | 3145 | bool temp2 = false ; |
554f62e9 | 3146 | PyObject * obj0 = 0 ; |
fc46b7f3 | 3147 | PyObject * obj1 = 0 ; |
554f62e9 | 3148 | char * kwnames[] = { |
fc46b7f3 | 3149 | (char *) "flags",(char *) "domain", NULL |
554f62e9 RD |
3150 | }; |
3151 | ||
fc46b7f3 | 3152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EmptyXmlResource",kwnames,&obj0,&obj1)) SWIG_fail; |
554f62e9 RD |
3153 | if (obj0) { |
3154 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3155 | if (!SWIG_IsOK(ecode1)) { | |
3156 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyXmlResource" "', expected argument " "1"" of type '" "int""'"); | |
3157 | } | |
3158 | arg1 = static_cast< int >(val1); | |
3159 | } | |
fc46b7f3 RD |
3160 | if (obj1) { |
3161 | { | |
3162 | arg2 = wxString_in_helper(obj1); | |
3163 | if (arg2 == NULL) SWIG_fail; | |
3164 | temp2 = true; | |
3165 | } | |
3166 | } | |
554f62e9 RD |
3167 | { |
3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 3169 | result = (wxXmlResource *)new wxXmlResource(arg1,(wxString const &)*arg2); |
554f62e9 RD |
3170 | wxPyEndAllowThreads(__tstate); |
3171 | if (PyErr_Occurred()) SWIG_fail; | |
3172 | } | |
3173 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_OWN | 0 ); | |
fc46b7f3 RD |
3174 | { |
3175 | if (temp2) | |
3176 | delete arg2; | |
3177 | } | |
554f62e9 RD |
3178 | return resultobj; |
3179 | fail: | |
fc46b7f3 RD |
3180 | { |
3181 | if (temp2) | |
3182 | delete arg2; | |
3183 | } | |
554f62e9 | 3184 | return NULL; |
ae8162c8 RD |
3185 | } |
3186 | ||
3187 | ||
554f62e9 RD |
3188 | SWIGINTERN PyObject *_wrap_delete_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3189 | PyObject *resultobj = 0; | |
3190 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3191 | void *argp1 = 0 ; | |
3192 | int res1 = 0 ; | |
3193 | PyObject *swig_obj[1] ; | |
3194 | ||
3195 | if (!args) SWIG_fail; | |
3196 | swig_obj[0] = args; | |
3197 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, SWIG_POINTER_DISOWN | 0 ); | |
3198 | if (!SWIG_IsOK(res1)) { | |
3199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResource" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3200 | } | |
3201 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3202 | { | |
3203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3204 | delete arg1; | |
ae8162c8 | 3205 | |
554f62e9 RD |
3206 | wxPyEndAllowThreads(__tstate); |
3207 | if (PyErr_Occurred()) SWIG_fail; | |
3208 | } | |
3209 | resultobj = SWIG_Py_Void(); | |
3210 | return resultobj; | |
3211 | fail: | |
3212 | return NULL; | |
3213 | } | |
3214 | ||
3215 | ||
0a27f394 RD |
3216 | SWIGINTERN PyObject *_wrap_XmlResource_GetFirstRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3217 | PyObject *resultobj = 0; | |
3218 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3219 | wxXmlNode *result = 0 ; | |
3220 | void *argp1 = 0 ; | |
3221 | int res1 = 0 ; | |
3222 | PyObject *swig_obj[1] ; | |
3223 | ||
3224 | if (!args) SWIG_fail; | |
3225 | swig_obj[0] = args; | |
3226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3227 | if (!SWIG_IsOK(res1)) { | |
3228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetFirstRoot" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3229 | } | |
3230 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3231 | { | |
3232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3233 | result = (wxXmlNode *)(arg1)->GetFirstRoot(); | |
3234 | wxPyEndAllowThreads(__tstate); | |
3235 | if (PyErr_Occurred()) SWIG_fail; | |
3236 | } | |
3237 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
3238 | return resultobj; | |
3239 | fail: | |
3240 | return NULL; | |
3241 | } | |
3242 | ||
3243 | ||
554f62e9 RD |
3244 | SWIGINTERN PyObject *_wrap_XmlResource_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3245 | PyObject *resultobj = 0; | |
3246 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3247 | wxString *arg2 = 0 ; | |
3248 | bool result; | |
3249 | void *argp1 = 0 ; | |
3250 | int res1 = 0 ; | |
3251 | bool temp2 = false ; | |
3252 | PyObject * obj0 = 0 ; | |
3253 | PyObject * obj1 = 0 ; | |
3254 | char * kwnames[] = { | |
3255 | (char *) "self",(char *) "filemask", NULL | |
3256 | }; | |
3257 | ||
3258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Load",kwnames,&obj0,&obj1)) SWIG_fail; | |
3259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3260 | if (!SWIG_IsOK(res1)) { | |
3261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Load" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3262 | } | |
3263 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3264 | { | |
3265 | arg2 = wxString_in_helper(obj1); | |
3266 | if (arg2 == NULL) SWIG_fail; | |
3267 | temp2 = true; | |
3268 | } | |
3269 | { | |
3270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3271 | result = (bool)(arg1)->Load((wxString const &)*arg2); | |
3272 | wxPyEndAllowThreads(__tstate); | |
3273 | if (PyErr_Occurred()) SWIG_fail; | |
3274 | } | |
3275 | { | |
3276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3277 | } | |
3278 | { | |
3279 | if (temp2) | |
3280 | delete arg2; | |
3281 | } | |
3282 | return resultobj; | |
3283 | fail: | |
3284 | { | |
3285 | if (temp2) | |
3286 | delete arg2; | |
3287 | } | |
3288 | return NULL; | |
3289 | } | |
3290 | ||
3291 | ||
3292 | SWIGINTERN PyObject *_wrap_XmlResource_LoadFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3293 | PyObject *resultobj = 0; | |
3294 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3295 | wxString *arg2 = 0 ; | |
3296 | bool result; | |
3297 | void *argp1 = 0 ; | |
3298 | int res1 = 0 ; | |
3299 | bool temp2 = false ; | |
3300 | PyObject * obj0 = 0 ; | |
3301 | PyObject * obj1 = 0 ; | |
3302 | char * kwnames[] = { | |
3303 | (char *) "self",(char *) "data", NULL | |
3304 | }; | |
3305 | ||
3306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
3307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3308 | if (!SWIG_IsOK(res1)) { | |
3309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFromString" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3310 | } | |
3311 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3312 | { | |
3313 | arg2 = wxString_in_helper(obj1); | |
3314 | if (arg2 == NULL) SWIG_fail; | |
3315 | temp2 = true; | |
3316 | } | |
3317 | { | |
3318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3319 | result = (bool)wxXmlResource_LoadFromString(arg1,(wxString const &)*arg2); | |
3320 | wxPyEndAllowThreads(__tstate); | |
3321 | if (PyErr_Occurred()) SWIG_fail; | |
3322 | } | |
3323 | { | |
3324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3325 | } | |
3326 | { | |
3327 | if (temp2) | |
3328 | delete arg2; | |
3329 | } | |
3330 | return resultobj; | |
3331 | fail: | |
3332 | { | |
3333 | if (temp2) | |
3334 | delete arg2; | |
3335 | } | |
3336 | return NULL; | |
3337 | } | |
3338 | ||
3339 | ||
3340 | SWIGINTERN PyObject *_wrap_XmlResource_Unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3341 | PyObject *resultobj = 0; | |
3342 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3343 | wxString *arg2 = 0 ; | |
3344 | bool result; | |
3345 | void *argp1 = 0 ; | |
3346 | int res1 = 0 ; | |
3347 | bool temp2 = false ; | |
3348 | PyObject * obj0 = 0 ; | |
3349 | PyObject * obj1 = 0 ; | |
3350 | char * kwnames[] = { | |
3351 | (char *) "self",(char *) "filename", NULL | |
3352 | }; | |
3353 | ||
3354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Unload",kwnames,&obj0,&obj1)) SWIG_fail; | |
3355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3356 | if (!SWIG_IsOK(res1)) { | |
3357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Unload" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3358 | } | |
3359 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3360 | { | |
3361 | arg2 = wxString_in_helper(obj1); | |
3362 | if (arg2 == NULL) SWIG_fail; | |
3363 | temp2 = true; | |
3364 | } | |
3365 | { | |
3366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3367 | result = (bool)(arg1)->Unload((wxString const &)*arg2); | |
3368 | wxPyEndAllowThreads(__tstate); | |
3369 | if (PyErr_Occurred()) SWIG_fail; | |
3370 | } | |
3371 | { | |
3372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3373 | } | |
3374 | { | |
3375 | if (temp2) | |
3376 | delete arg2; | |
3377 | } | |
3378 | return resultobj; | |
3379 | fail: | |
3380 | { | |
3381 | if (temp2) | |
3382 | delete arg2; | |
3383 | } | |
3384 | return NULL; | |
ae8162c8 RD |
3385 | } |
3386 | ||
3387 | ||
554f62e9 RD |
3388 | SWIGINTERN PyObject *_wrap_XmlResource_InitAllHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3389 | PyObject *resultobj = 0; | |
3390 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3391 | void *argp1 = 0 ; | |
3392 | int res1 = 0 ; | |
3393 | PyObject *swig_obj[1] ; | |
3394 | ||
3395 | if (!args) SWIG_fail; | |
3396 | swig_obj[0] = args; | |
3397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3398 | if (!SWIG_IsOK(res1)) { | |
3399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InitAllHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3400 | } | |
3401 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3402 | { | |
3403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3404 | (arg1)->InitAllHandlers(); | |
3405 | wxPyEndAllowThreads(__tstate); | |
3406 | if (PyErr_Occurred()) SWIG_fail; | |
3407 | } | |
3408 | resultobj = SWIG_Py_Void(); | |
3409 | return resultobj; | |
3410 | fail: | |
3411 | return NULL; | |
3412 | } | |
3413 | ||
3414 | ||
3415 | SWIGINTERN PyObject *_wrap_XmlResource_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3416 | PyObject *resultobj = 0; | |
3417 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3418 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
3419 | void *argp1 = 0 ; | |
3420 | int res1 = 0 ; | |
554f62e9 RD |
3421 | int res2 = 0 ; |
3422 | PyObject * obj0 = 0 ; | |
3423 | PyObject * obj1 = 0 ; | |
3424 | char * kwnames[] = { | |
3425 | (char *) "self",(char *) "handler", NULL | |
3426 | }; | |
3427 | ||
3428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_AddHandler",kwnames,&obj0,&obj1)) SWIG_fail; | |
3429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3430 | if (!SWIG_IsOK(res1)) { | |
3431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3432 | } | |
3433 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
a08f21ce | 3434 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 ); |
554f62e9 | 3435 | if (!SWIG_IsOK(res2)) { |
a08f21ce | 3436 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_AddHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'"); |
554f62e9 | 3437 | } |
554f62e9 RD |
3438 | { |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | (arg1)->AddHandler(arg2); | |
3441 | wxPyEndAllowThreads(__tstate); | |
3442 | if (PyErr_Occurred()) SWIG_fail; | |
3443 | } | |
3444 | resultobj = SWIG_Py_Void(); | |
3445 | return resultobj; | |
3446 | fail: | |
3447 | return NULL; | |
3448 | } | |
3449 | ||
3450 | ||
3451 | SWIGINTERN PyObject *_wrap_XmlResource_InsertHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3452 | PyObject *resultobj = 0; | |
3453 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3454 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
3455 | void *argp1 = 0 ; | |
3456 | int res1 = 0 ; | |
554f62e9 RD |
3457 | int res2 = 0 ; |
3458 | PyObject * obj0 = 0 ; | |
3459 | PyObject * obj1 = 0 ; | |
3460 | char * kwnames[] = { | |
3461 | (char *) "self",(char *) "handler", NULL | |
3462 | }; | |
3463 | ||
3464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_InsertHandler",kwnames,&obj0,&obj1)) SWIG_fail; | |
3465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3466 | if (!SWIG_IsOK(res1)) { | |
3467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InsertHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3468 | } | |
3469 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
a08f21ce | 3470 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 ); |
554f62e9 | 3471 | if (!SWIG_IsOK(res2)) { |
a08f21ce | 3472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_InsertHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'"); |
554f62e9 | 3473 | } |
554f62e9 RD |
3474 | { |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3476 | (arg1)->InsertHandler(arg2); | |
3477 | wxPyEndAllowThreads(__tstate); | |
3478 | if (PyErr_Occurred()) SWIG_fail; | |
3479 | } | |
3480 | resultobj = SWIG_Py_Void(); | |
3481 | return resultobj; | |
3482 | fail: | |
3483 | return NULL; | |
ae8162c8 RD |
3484 | } |
3485 | ||
3486 | ||
554f62e9 RD |
3487 | SWIGINTERN PyObject *_wrap_XmlResource_ClearHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3488 | PyObject *resultobj = 0; | |
3489 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3490 | void *argp1 = 0 ; | |
3491 | int res1 = 0 ; | |
3492 | PyObject *swig_obj[1] ; | |
3493 | ||
3494 | if (!args) SWIG_fail; | |
3495 | swig_obj[0] = args; | |
3496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3497 | if (!SWIG_IsOK(res1)) { | |
3498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_ClearHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3499 | } | |
3500 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3501 | { | |
3502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3503 | (arg1)->ClearHandlers(); | |
3504 | wxPyEndAllowThreads(__tstate); | |
3505 | if (PyErr_Occurred()) SWIG_fail; | |
3506 | } | |
3507 | resultobj = SWIG_Py_Void(); | |
3508 | return resultobj; | |
3509 | fail: | |
3510 | return NULL; | |
ae8162c8 RD |
3511 | } |
3512 | ||
3513 | ||
554f62e9 RD |
3514 | SWIGINTERN PyObject *_wrap_XmlResource_AddSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3515 | PyObject *resultobj = 0; | |
3516 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
3517 | void *argp1 = 0 ; | |
3518 | int res1 = 0 ; | |
3519 | PyObject * obj0 = 0 ; | |
3520 | char * kwnames[] = { | |
3521 | (char *) "factory", NULL | |
3522 | }; | |
3523 | ||
3524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_AddSubclassFactory",kwnames,&obj0)) SWIG_fail; | |
3525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 ); | |
3526 | if (!SWIG_IsOK(res1)) { | |
3527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddSubclassFactory" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'"); | |
3528 | } | |
3529 | arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1); | |
3530 | { | |
3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3532 | wxXmlResource::AddSubclassFactory(arg1); | |
3533 | wxPyEndAllowThreads(__tstate); | |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
3535 | } | |
3536 | resultobj = SWIG_Py_Void(); | |
3537 | return resultobj; | |
3538 | fail: | |
3539 | return NULL; | |
3540 | } | |
3541 | ||
3542 | ||
3543 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3544 | PyObject *resultobj = 0; | |
3545 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3546 | wxString *arg2 = 0 ; | |
3547 | wxMenu *result = 0 ; | |
3548 | void *argp1 = 0 ; | |
3549 | int res1 = 0 ; | |
3550 | bool temp2 = false ; | |
3551 | PyObject * obj0 = 0 ; | |
3552 | PyObject * obj1 = 0 ; | |
3553 | char * kwnames[] = { | |
3554 | (char *) "self",(char *) "name", NULL | |
3555 | }; | |
3556 | ||
3557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
3558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3559 | if (!SWIG_IsOK(res1)) { | |
3560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenu" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3561 | } | |
3562 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3563 | { | |
3564 | arg2 = wxString_in_helper(obj1); | |
3565 | if (arg2 == NULL) SWIG_fail; | |
3566 | temp2 = true; | |
3567 | } | |
3568 | { | |
3569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3570 | result = (wxMenu *)(arg1)->LoadMenu((wxString const &)*arg2); | |
3571 | wxPyEndAllowThreads(__tstate); | |
3572 | if (PyErr_Occurred()) SWIG_fail; | |
3573 | } | |
3574 | { | |
3575 | resultobj = wxPyMake_wxObject(result, 0); | |
3576 | } | |
3577 | { | |
3578 | if (temp2) | |
3579 | delete arg2; | |
3580 | } | |
3581 | return resultobj; | |
3582 | fail: | |
3583 | { | |
3584 | if (temp2) | |
3585 | delete arg2; | |
3586 | } | |
3587 | return NULL; | |
3588 | } | |
3589 | ||
3590 | ||
3591 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3592 | PyObject *resultobj = 0; | |
3593 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3594 | wxString *arg2 = 0 ; | |
3595 | wxMenuBar *result = 0 ; | |
3596 | void *argp1 = 0 ; | |
3597 | int res1 = 0 ; | |
3598 | bool temp2 = false ; | |
3599 | PyObject * obj0 = 0 ; | |
3600 | PyObject * obj1 = 0 ; | |
3601 | char * kwnames[] = { | |
3602 | (char *) "self",(char *) "name", NULL | |
3603 | }; | |
3604 | ||
3605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
3606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3607 | if (!SWIG_IsOK(res1)) { | |
3608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBar" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3609 | } | |
3610 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3611 | { | |
3612 | arg2 = wxString_in_helper(obj1); | |
3613 | if (arg2 == NULL) SWIG_fail; | |
3614 | temp2 = true; | |
3615 | } | |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | result = (wxMenuBar *)(arg1)->LoadMenuBar((wxString const &)*arg2); | |
3619 | wxPyEndAllowThreads(__tstate); | |
3620 | if (PyErr_Occurred()) SWIG_fail; | |
3621 | } | |
3622 | { | |
3623 | resultobj = wxPyMake_wxObject(result, 0); | |
3624 | } | |
3625 | { | |
3626 | if (temp2) | |
3627 | delete arg2; | |
3628 | } | |
3629 | return resultobj; | |
3630 | fail: | |
3631 | { | |
3632 | if (temp2) | |
3633 | delete arg2; | |
3634 | } | |
3635 | return NULL; | |
3636 | } | |
3637 | ||
3638 | ||
3639 | SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3640 | PyObject *resultobj = 0; | |
3641 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3642 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3643 | wxString *arg3 = 0 ; | |
3644 | wxMenuBar *result = 0 ; | |
3645 | void *argp1 = 0 ; | |
3646 | int res1 = 0 ; | |
3647 | void *argp2 = 0 ; | |
3648 | int res2 = 0 ; | |
3649 | bool temp3 = false ; | |
3650 | PyObject * obj0 = 0 ; | |
3651 | PyObject * obj1 = 0 ; | |
3652 | PyObject * obj2 = 0 ; | |
3653 | char * kwnames[] = { | |
3654 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3655 | }; | |
3656 | ||
3657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3659 | if (!SWIG_IsOK(res1)) { | |
3660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3661 | } | |
3662 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3663 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3664 | if (!SWIG_IsOK(res2)) { | |
3665 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3666 | } | |
3667 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3668 | { | |
3669 | arg3 = wxString_in_helper(obj2); | |
3670 | if (arg3 == NULL) SWIG_fail; | |
3671 | temp3 = true; | |
3672 | } | |
3673 | { | |
3674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3675 | result = (wxMenuBar *)(arg1)->LoadMenuBar(arg2,(wxString const &)*arg3); | |
3676 | wxPyEndAllowThreads(__tstate); | |
3677 | if (PyErr_Occurred()) SWIG_fail; | |
3678 | } | |
3679 | { | |
3680 | resultobj = wxPyMake_wxObject(result, 0); | |
3681 | } | |
3682 | { | |
3683 | if (temp3) | |
3684 | delete arg3; | |
3685 | } | |
3686 | return resultobj; | |
3687 | fail: | |
3688 | { | |
3689 | if (temp3) | |
3690 | delete arg3; | |
3691 | } | |
3692 | return NULL; | |
3693 | } | |
3694 | ||
3695 | ||
3696 | SWIGINTERN PyObject *_wrap_XmlResource_LoadToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3697 | PyObject *resultobj = 0; | |
3698 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3699 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3700 | wxString *arg3 = 0 ; | |
3701 | wxToolBar *result = 0 ; | |
3702 | void *argp1 = 0 ; | |
3703 | int res1 = 0 ; | |
3704 | void *argp2 = 0 ; | |
3705 | int res2 = 0 ; | |
3706 | bool temp3 = false ; | |
3707 | PyObject * obj0 = 0 ; | |
3708 | PyObject * obj1 = 0 ; | |
3709 | PyObject * obj2 = 0 ; | |
3710 | char * kwnames[] = { | |
3711 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3712 | }; | |
3713 | ||
3714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadToolBar",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3716 | if (!SWIG_IsOK(res1)) { | |
3717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadToolBar" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3718 | } | |
3719 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3720 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3721 | if (!SWIG_IsOK(res2)) { | |
3722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadToolBar" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3723 | } | |
3724 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3725 | { | |
3726 | arg3 = wxString_in_helper(obj2); | |
3727 | if (arg3 == NULL) SWIG_fail; | |
3728 | temp3 = true; | |
3729 | } | |
3730 | { | |
3731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3732 | result = (wxToolBar *)(arg1)->LoadToolBar(arg2,(wxString const &)*arg3); | |
3733 | wxPyEndAllowThreads(__tstate); | |
3734 | if (PyErr_Occurred()) SWIG_fail; | |
3735 | } | |
3736 | { | |
3737 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3738 | } | |
3739 | { | |
3740 | if (temp3) | |
3741 | delete arg3; | |
3742 | } | |
3743 | return resultobj; | |
3744 | fail: | |
3745 | { | |
3746 | if (temp3) | |
3747 | delete arg3; | |
3748 | } | |
3749 | return NULL; | |
3750 | } | |
3751 | ||
3752 | ||
3753 | SWIGINTERN PyObject *_wrap_XmlResource_LoadDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3754 | PyObject *resultobj = 0; | |
3755 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3756 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3757 | wxString *arg3 = 0 ; | |
3758 | wxDialog *result = 0 ; | |
3759 | void *argp1 = 0 ; | |
3760 | int res1 = 0 ; | |
3761 | void *argp2 = 0 ; | |
3762 | int res2 = 0 ; | |
3763 | bool temp3 = false ; | |
3764 | PyObject * obj0 = 0 ; | |
3765 | PyObject * obj1 = 0 ; | |
3766 | PyObject * obj2 = 0 ; | |
3767 | char * kwnames[] = { | |
3768 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3769 | }; | |
3770 | ||
3771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadDialog",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3773 | if (!SWIG_IsOK(res1)) { | |
3774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3775 | } | |
3776 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3777 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3778 | if (!SWIG_IsOK(res2)) { | |
3779 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3780 | } | |
3781 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3782 | { | |
3783 | arg3 = wxString_in_helper(obj2); | |
3784 | if (arg3 == NULL) SWIG_fail; | |
3785 | temp3 = true; | |
3786 | } | |
3787 | { | |
3788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3789 | result = (wxDialog *)(arg1)->LoadDialog(arg2,(wxString const &)*arg3); | |
3790 | wxPyEndAllowThreads(__tstate); | |
3791 | if (PyErr_Occurred()) SWIG_fail; | |
3792 | } | |
3793 | { | |
3794 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3795 | } | |
3796 | { | |
3797 | if (temp3) | |
3798 | delete arg3; | |
3799 | } | |
3800 | return resultobj; | |
3801 | fail: | |
3802 | { | |
3803 | if (temp3) | |
3804 | delete arg3; | |
3805 | } | |
3806 | return NULL; | |
3807 | } | |
3808 | ||
3809 | ||
3810 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3811 | PyObject *resultobj = 0; | |
3812 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3813 | wxDialog *arg2 = (wxDialog *) 0 ; | |
3814 | wxWindow *arg3 = (wxWindow *) 0 ; | |
3815 | wxString *arg4 = 0 ; | |
3816 | bool result; | |
3817 | void *argp1 = 0 ; | |
3818 | int res1 = 0 ; | |
3819 | void *argp2 = 0 ; | |
3820 | int res2 = 0 ; | |
3821 | void *argp3 = 0 ; | |
3822 | int res3 = 0 ; | |
3823 | bool temp4 = false ; | |
3824 | PyObject * obj0 = 0 ; | |
3825 | PyObject * obj1 = 0 ; | |
3826 | PyObject * obj2 = 0 ; | |
3827 | PyObject * obj3 = 0 ; | |
3828 | char * kwnames[] = { | |
3829 | (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL | |
3830 | }; | |
3831 | ||
3832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3834 | if (!SWIG_IsOK(res1)) { | |
3835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3836 | } | |
3837 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3838 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
3839 | if (!SWIG_IsOK(res2)) { | |
3840 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "2"" of type '" "wxDialog *""'"); | |
3841 | } | |
3842 | arg2 = reinterpret_cast< wxDialog * >(argp2); | |
3843 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3844 | if (!SWIG_IsOK(res3)) { | |
3845 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
3846 | } | |
3847 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
3848 | { | |
3849 | arg4 = wxString_in_helper(obj3); | |
3850 | if (arg4 == NULL) SWIG_fail; | |
3851 | temp4 = true; | |
3852 | } | |
3853 | { | |
3854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3855 | result = (bool)(arg1)->LoadDialog(arg2,arg3,(wxString const &)*arg4); | |
3856 | wxPyEndAllowThreads(__tstate); | |
3857 | if (PyErr_Occurred()) SWIG_fail; | |
3858 | } | |
3859 | { | |
3860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3861 | } | |
3862 | { | |
3863 | if (temp4) | |
3864 | delete arg4; | |
3865 | } | |
3866 | return resultobj; | |
3867 | fail: | |
3868 | { | |
3869 | if (temp4) | |
3870 | delete arg4; | |
3871 | } | |
3872 | return NULL; | |
3873 | } | |
3874 | ||
3875 | ||
3876 | SWIGINTERN PyObject *_wrap_XmlResource_LoadPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3877 | PyObject *resultobj = 0; | |
3878 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3879 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3880 | wxString *arg3 = 0 ; | |
3881 | wxPanel *result = 0 ; | |
3882 | void *argp1 = 0 ; | |
3883 | int res1 = 0 ; | |
3884 | void *argp2 = 0 ; | |
3885 | int res2 = 0 ; | |
3886 | bool temp3 = false ; | |
3887 | PyObject * obj0 = 0 ; | |
3888 | PyObject * obj1 = 0 ; | |
3889 | PyObject * obj2 = 0 ; | |
3890 | char * kwnames[] = { | |
3891 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
3892 | }; | |
3893 | ||
3894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadPanel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3896 | if (!SWIG_IsOK(res1)) { | |
3897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3898 | } | |
3899 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3900 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3901 | if (!SWIG_IsOK(res2)) { | |
3902 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadPanel" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3903 | } | |
3904 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3905 | { | |
3906 | arg3 = wxString_in_helper(obj2); | |
3907 | if (arg3 == NULL) SWIG_fail; | |
3908 | temp3 = true; | |
3909 | } | |
3910 | { | |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3912 | result = (wxPanel *)(arg1)->LoadPanel(arg2,(wxString const &)*arg3); | |
3913 | wxPyEndAllowThreads(__tstate); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
3915 | } | |
3916 | { | |
3917 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
3918 | } | |
3919 | { | |
3920 | if (temp3) | |
3921 | delete arg3; | |
3922 | } | |
3923 | return resultobj; | |
3924 | fail: | |
3925 | { | |
3926 | if (temp3) | |
3927 | delete arg3; | |
3928 | } | |
3929 | return NULL; | |
3930 | } | |
3931 | ||
3932 | ||
3933 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3934 | PyObject *resultobj = 0; | |
3935 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
3936 | wxPanel *arg2 = (wxPanel *) 0 ; | |
3937 | wxWindow *arg3 = (wxWindow *) 0 ; | |
3938 | wxString *arg4 = 0 ; | |
3939 | bool result; | |
3940 | void *argp1 = 0 ; | |
3941 | int res1 = 0 ; | |
3942 | void *argp2 = 0 ; | |
3943 | int res2 = 0 ; | |
3944 | void *argp3 = 0 ; | |
3945 | int res3 = 0 ; | |
3946 | bool temp4 = false ; | |
3947 | PyObject * obj0 = 0 ; | |
3948 | PyObject * obj1 = 0 ; | |
3949 | PyObject * obj2 = 0 ; | |
3950 | PyObject * obj3 = 0 ; | |
3951 | char * kwnames[] = { | |
3952 | (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL | |
3953 | }; | |
3954 | ||
3955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
3957 | if (!SWIG_IsOK(res1)) { | |
3958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
3959 | } | |
3960 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
3961 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3962 | if (!SWIG_IsOK(res2)) { | |
3963 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "2"" of type '" "wxPanel *""'"); | |
3964 | } | |
3965 | arg2 = reinterpret_cast< wxPanel * >(argp2); | |
3966 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3967 | if (!SWIG_IsOK(res3)) { | |
3968 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
3969 | } | |
3970 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
3971 | { | |
3972 | arg4 = wxString_in_helper(obj3); | |
3973 | if (arg4 == NULL) SWIG_fail; | |
3974 | temp4 = true; | |
3975 | } | |
3976 | { | |
3977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3978 | result = (bool)(arg1)->LoadPanel(arg2,arg3,(wxString const &)*arg4); | |
3979 | wxPyEndAllowThreads(__tstate); | |
3980 | if (PyErr_Occurred()) SWIG_fail; | |
3981 | } | |
3982 | { | |
3983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3984 | } | |
3985 | { | |
3986 | if (temp4) | |
3987 | delete arg4; | |
3988 | } | |
3989 | return resultobj; | |
3990 | fail: | |
3991 | { | |
3992 | if (temp4) | |
3993 | delete arg4; | |
3994 | } | |
3995 | return NULL; | |
3996 | } | |
3997 | ||
3998 | ||
3999 | SWIGINTERN PyObject *_wrap_XmlResource_LoadFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4000 | PyObject *resultobj = 0; | |
4001 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4002 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4003 | wxString *arg3 = 0 ; | |
4004 | wxFrame *result = 0 ; | |
4005 | void *argp1 = 0 ; | |
4006 | int res1 = 0 ; | |
4007 | void *argp2 = 0 ; | |
4008 | int res2 = 0 ; | |
4009 | bool temp3 = false ; | |
4010 | PyObject * obj0 = 0 ; | |
4011 | PyObject * obj1 = 0 ; | |
4012 | PyObject * obj2 = 0 ; | |
4013 | char * kwnames[] = { | |
4014 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
4015 | }; | |
4016 | ||
4017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4019 | if (!SWIG_IsOK(res1)) { | |
4020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4021 | } | |
4022 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4023 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4024 | if (!SWIG_IsOK(res2)) { | |
4025 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadFrame" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4026 | } | |
4027 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4028 | { | |
4029 | arg3 = wxString_in_helper(obj2); | |
4030 | if (arg3 == NULL) SWIG_fail; | |
4031 | temp3 = true; | |
4032 | } | |
4033 | { | |
4034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4035 | result = (wxFrame *)(arg1)->LoadFrame(arg2,(wxString const &)*arg3); | |
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | { | |
4040 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
4041 | } | |
4042 | { | |
4043 | if (temp3) | |
4044 | delete arg3; | |
4045 | } | |
4046 | return resultobj; | |
4047 | fail: | |
4048 | { | |
4049 | if (temp3) | |
4050 | delete arg3; | |
4051 | } | |
4052 | return NULL; | |
4053 | } | |
4054 | ||
4055 | ||
4056 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4057 | PyObject *resultobj = 0; | |
4058 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4059 | wxFrame *arg2 = (wxFrame *) 0 ; | |
4060 | wxWindow *arg3 = (wxWindow *) 0 ; | |
4061 | wxString *arg4 = 0 ; | |
4062 | bool result; | |
4063 | void *argp1 = 0 ; | |
4064 | int res1 = 0 ; | |
4065 | void *argp2 = 0 ; | |
4066 | int res2 = 0 ; | |
4067 | void *argp3 = 0 ; | |
4068 | int res3 = 0 ; | |
4069 | bool temp4 = false ; | |
4070 | PyObject * obj0 = 0 ; | |
4071 | PyObject * obj1 = 0 ; | |
4072 | PyObject * obj2 = 0 ; | |
4073 | PyObject * obj3 = 0 ; | |
4074 | char * kwnames[] = { | |
4075 | (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL | |
4076 | }; | |
4077 | ||
4078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4080 | if (!SWIG_IsOK(res1)) { | |
4081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4082 | } | |
4083 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4084 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
4085 | if (!SWIG_IsOK(res2)) { | |
4086 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
4087 | } | |
4088 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
4089 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4090 | if (!SWIG_IsOK(res3)) { | |
4091 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4092 | } | |
4093 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4094 | { | |
4095 | arg4 = wxString_in_helper(obj3); | |
4096 | if (arg4 == NULL) SWIG_fail; | |
4097 | temp4 = true; | |
4098 | } | |
4099 | { | |
4100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4101 | result = (bool)(arg1)->LoadFrame(arg2,arg3,(wxString const &)*arg4); | |
4102 | wxPyEndAllowThreads(__tstate); | |
4103 | if (PyErr_Occurred()) SWIG_fail; | |
4104 | } | |
4105 | { | |
4106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4107 | } | |
4108 | { | |
4109 | if (temp4) | |
4110 | delete arg4; | |
4111 | } | |
4112 | return resultobj; | |
4113 | fail: | |
4114 | { | |
4115 | if (temp4) | |
4116 | delete arg4; | |
4117 | } | |
4118 | return NULL; | |
4119 | } | |
4120 | ||
4121 | ||
4122 | SWIGINTERN PyObject *_wrap_XmlResource_LoadObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4123 | PyObject *resultobj = 0; | |
4124 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4125 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4126 | wxString *arg3 = 0 ; | |
4127 | wxString *arg4 = 0 ; | |
4128 | wxObject *result = 0 ; | |
4129 | void *argp1 = 0 ; | |
4130 | int res1 = 0 ; | |
4131 | void *argp2 = 0 ; | |
4132 | int res2 = 0 ; | |
4133 | bool temp3 = false ; | |
4134 | bool temp4 = false ; | |
4135 | PyObject * obj0 = 0 ; | |
4136 | PyObject * obj1 = 0 ; | |
4137 | PyObject * obj2 = 0 ; | |
4138 | PyObject * obj3 = 0 ; | |
4139 | char * kwnames[] = { | |
4140 | (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
4141 | }; | |
4142 | ||
4143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadObject",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4145 | if (!SWIG_IsOK(res1)) { | |
4146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadObject" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4147 | } | |
4148 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4149 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4150 | if (!SWIG_IsOK(res2)) { | |
4151 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadObject" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4152 | } | |
4153 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4154 | { | |
4155 | arg3 = wxString_in_helper(obj2); | |
4156 | if (arg3 == NULL) SWIG_fail; | |
4157 | temp3 = true; | |
4158 | } | |
4159 | { | |
4160 | arg4 = wxString_in_helper(obj3); | |
4161 | if (arg4 == NULL) SWIG_fail; | |
4162 | temp4 = true; | |
4163 | } | |
4164 | { | |
4165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4166 | result = (wxObject *)(arg1)->LoadObject(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
4167 | wxPyEndAllowThreads(__tstate); | |
4168 | if (PyErr_Occurred()) SWIG_fail; | |
4169 | } | |
4170 | { | |
4171 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
4172 | } | |
4173 | { | |
4174 | if (temp3) | |
4175 | delete arg3; | |
4176 | } | |
4177 | { | |
4178 | if (temp4) | |
4179 | delete arg4; | |
4180 | } | |
4181 | return resultobj; | |
4182 | fail: | |
4183 | { | |
4184 | if (temp3) | |
4185 | delete arg3; | |
4186 | } | |
4187 | { | |
4188 | if (temp4) | |
4189 | delete arg4; | |
4190 | } | |
4191 | return NULL; | |
4192 | } | |
4193 | ||
4194 | ||
4195 | SWIGINTERN PyObject *_wrap_XmlResource_LoadOnObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4196 | PyObject *resultobj = 0; | |
4197 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4198 | wxObject *arg2 = (wxObject *) 0 ; | |
4199 | wxWindow *arg3 = (wxWindow *) 0 ; | |
4200 | wxString *arg4 = 0 ; | |
4201 | wxString *arg5 = 0 ; | |
4202 | bool result; | |
4203 | void *argp1 = 0 ; | |
4204 | int res1 = 0 ; | |
4205 | void *argp2 = 0 ; | |
4206 | int res2 = 0 ; | |
4207 | void *argp3 = 0 ; | |
4208 | int res3 = 0 ; | |
4209 | bool temp4 = false ; | |
4210 | bool temp5 = false ; | |
4211 | PyObject * obj0 = 0 ; | |
4212 | PyObject * obj1 = 0 ; | |
4213 | PyObject * obj2 = 0 ; | |
4214 | PyObject * obj3 = 0 ; | |
4215 | PyObject * obj4 = 0 ; | |
4216 | char * kwnames[] = { | |
4217 | (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
4218 | }; | |
4219 | ||
4220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
4221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4222 | if (!SWIG_IsOK(res1)) { | |
4223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnObject" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4224 | } | |
4225 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4226 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
4227 | if (!SWIG_IsOK(res2)) { | |
4228 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnObject" "', expected argument " "2"" of type '" "wxObject *""'"); | |
4229 | } | |
4230 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
4231 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4232 | if (!SWIG_IsOK(res3)) { | |
4233 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnObject" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4234 | } | |
4235 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4236 | { | |
4237 | arg4 = wxString_in_helper(obj3); | |
4238 | if (arg4 == NULL) SWIG_fail; | |
4239 | temp4 = true; | |
4240 | } | |
4241 | { | |
4242 | arg5 = wxString_in_helper(obj4); | |
4243 | if (arg5 == NULL) SWIG_fail; | |
4244 | temp5 = true; | |
4245 | } | |
4246 | { | |
4247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4248 | result = (bool)(arg1)->LoadObject(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
4249 | wxPyEndAllowThreads(__tstate); | |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
4251 | } | |
4252 | { | |
4253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4254 | } | |
4255 | { | |
4256 | if (temp4) | |
4257 | delete arg4; | |
4258 | } | |
4259 | { | |
4260 | if (temp5) | |
4261 | delete arg5; | |
4262 | } | |
4263 | return resultobj; | |
4264 | fail: | |
4265 | { | |
4266 | if (temp4) | |
4267 | delete arg4; | |
4268 | } | |
4269 | { | |
4270 | if (temp5) | |
4271 | delete arg5; | |
4272 | } | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
4277 | SWIGINTERN PyObject *_wrap_XmlResource_LoadBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4278 | PyObject *resultobj = 0; | |
4279 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4280 | wxString *arg2 = 0 ; | |
4281 | wxBitmap result; | |
4282 | void *argp1 = 0 ; | |
4283 | int res1 = 0 ; | |
4284 | bool temp2 = false ; | |
4285 | PyObject * obj0 = 0 ; | |
4286 | PyObject * obj1 = 0 ; | |
4287 | char * kwnames[] = { | |
4288 | (char *) "self",(char *) "name", NULL | |
4289 | }; | |
4290 | ||
4291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
4292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4293 | if (!SWIG_IsOK(res1)) { | |
4294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadBitmap" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4295 | } | |
4296 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4297 | { | |
4298 | arg2 = wxString_in_helper(obj1); | |
4299 | if (arg2 == NULL) SWIG_fail; | |
4300 | temp2 = true; | |
4301 | } | |
4302 | { | |
4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4304 | result = (arg1)->LoadBitmap((wxString const &)*arg2); | |
4305 | wxPyEndAllowThreads(__tstate); | |
4306 | if (PyErr_Occurred()) SWIG_fail; | |
4307 | } | |
4308 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
4309 | { | |
4310 | if (temp2) | |
4311 | delete arg2; | |
4312 | } | |
4313 | return resultobj; | |
4314 | fail: | |
4315 | { | |
4316 | if (temp2) | |
4317 | delete arg2; | |
4318 | } | |
4319 | return NULL; | |
4320 | } | |
4321 | ||
4322 | ||
4323 | SWIGINTERN PyObject *_wrap_XmlResource_LoadIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4324 | PyObject *resultobj = 0; | |
4325 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4326 | wxString *arg2 = 0 ; | |
4327 | wxIcon result; | |
4328 | void *argp1 = 0 ; | |
4329 | int res1 = 0 ; | |
4330 | bool temp2 = false ; | |
4331 | PyObject * obj0 = 0 ; | |
4332 | PyObject * obj1 = 0 ; | |
4333 | char * kwnames[] = { | |
4334 | (char *) "self",(char *) "name", NULL | |
4335 | }; | |
4336 | ||
4337 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
4338 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4339 | if (!SWIG_IsOK(res1)) { | |
4340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadIcon" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4341 | } | |
4342 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4343 | { | |
4344 | arg2 = wxString_in_helper(obj1); | |
4345 | if (arg2 == NULL) SWIG_fail; | |
4346 | temp2 = true; | |
4347 | } | |
4348 | { | |
4349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4350 | result = (arg1)->LoadIcon((wxString const &)*arg2); | |
4351 | wxPyEndAllowThreads(__tstate); | |
4352 | if (PyErr_Occurred()) SWIG_fail; | |
4353 | } | |
4354 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
4355 | { | |
4356 | if (temp2) | |
4357 | delete arg2; | |
4358 | } | |
4359 | return resultobj; | |
4360 | fail: | |
4361 | { | |
4362 | if (temp2) | |
4363 | delete arg2; | |
4364 | } | |
4365 | return NULL; | |
4366 | } | |
4367 | ||
4368 | ||
4369 | SWIGINTERN PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4370 | PyObject *resultobj = 0; | |
4371 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4372 | wxString *arg2 = 0 ; | |
4373 | wxWindow *arg3 = (wxWindow *) 0 ; | |
4374 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4375 | bool result; | |
4376 | void *argp1 = 0 ; | |
4377 | int res1 = 0 ; | |
4378 | bool temp2 = false ; | |
4379 | void *argp3 = 0 ; | |
4380 | int res3 = 0 ; | |
4381 | void *argp4 = 0 ; | |
4382 | int res4 = 0 ; | |
4383 | PyObject * obj0 = 0 ; | |
4384 | PyObject * obj1 = 0 ; | |
4385 | PyObject * obj2 = 0 ; | |
4386 | PyObject * obj3 = 0 ; | |
4387 | char * kwnames[] = { | |
4388 | (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL | |
4389 | }; | |
4390 | ||
4391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4393 | if (!SWIG_IsOK(res1)) { | |
4394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4395 | } | |
4396 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4397 | { | |
4398 | arg2 = wxString_in_helper(obj1); | |
4399 | if (arg2 == NULL) SWIG_fail; | |
4400 | temp2 = true; | |
4401 | } | |
4402 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4403 | if (!SWIG_IsOK(res3)) { | |
4404 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
4405 | } | |
4406 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
4407 | if (obj3) { | |
4408 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4409 | if (!SWIG_IsOK(res4)) { | |
4410 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
ae8162c8 | 4411 | } |
554f62e9 RD |
4412 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
4413 | } | |
4414 | { | |
4415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4416 | result = (bool)(arg1)->AttachUnknownControl((wxString const &)*arg2,arg3,arg4); | |
4417 | wxPyEndAllowThreads(__tstate); | |
4418 | if (PyErr_Occurred()) SWIG_fail; | |
4419 | } | |
4420 | { | |
4421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4422 | } | |
4423 | { | |
4424 | if (temp2) | |
4425 | delete arg2; | |
4426 | } | |
4427 | return resultobj; | |
4428 | fail: | |
4429 | { | |
4430 | if (temp2) | |
4431 | delete arg2; | |
4432 | } | |
4433 | return NULL; | |
ae8162c8 RD |
4434 | } |
4435 | ||
4436 | ||
554f62e9 RD |
4437 | SWIGINTERN PyObject *_wrap_XmlResource_GetXRCID(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4438 | PyObject *resultobj = 0; | |
2131d850 | 4439 | wxString *arg1 = 0 ; |
f460c29d | 4440 | int arg2 = (int) wxID_NONE ; |
554f62e9 | 4441 | int result; |
2131d850 | 4442 | bool temp1 = false ; |
f460c29d RD |
4443 | int val2 ; |
4444 | int ecode2 = 0 ; | |
554f62e9 | 4445 | PyObject * obj0 = 0 ; |
f460c29d | 4446 | PyObject * obj1 = 0 ; |
554f62e9 | 4447 | char * kwnames[] = { |
f460c29d | 4448 | (char *) "str_id",(char *) "value_if_not_found", NULL |
554f62e9 RD |
4449 | }; |
4450 | ||
f460c29d | 4451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResource_GetXRCID",kwnames,&obj0,&obj1)) SWIG_fail; |
2131d850 RD |
4452 | { |
4453 | arg1 = wxString_in_helper(obj0); | |
4454 | if (arg1 == NULL) SWIG_fail; | |
4455 | temp1 = true; | |
f460c29d | 4456 | } |
f460c29d RD |
4457 | if (obj1) { |
4458 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4459 | if (!SWIG_IsOK(ecode2)) { | |
4460 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_GetXRCID" "', expected argument " "2"" of type '" "int""'"); | |
4461 | } | |
4462 | arg2 = static_cast< int >(val2); | |
554f62e9 RD |
4463 | } |
4464 | { | |
4465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131d850 | 4466 | result = (int)wxXmlResource::GetXRCID((wxString const &)*arg1,arg2); |
554f62e9 RD |
4467 | wxPyEndAllowThreads(__tstate); |
4468 | if (PyErr_Occurred()) SWIG_fail; | |
4469 | } | |
4470 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
2131d850 RD |
4471 | { |
4472 | if (temp1) | |
4473 | delete arg1; | |
4474 | } | |
554f62e9 RD |
4475 | return resultobj; |
4476 | fail: | |
2131d850 RD |
4477 | { |
4478 | if (temp1) | |
4479 | delete arg1; | |
4480 | } | |
554f62e9 | 4481 | return NULL; |
ae8162c8 RD |
4482 | } |
4483 | ||
4484 | ||
554f62e9 RD |
4485 | SWIGINTERN PyObject *_wrap_XmlResource_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4486 | PyObject *resultobj = 0; | |
4487 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4488 | long result; | |
4489 | void *argp1 = 0 ; | |
4490 | int res1 = 0 ; | |
4491 | PyObject *swig_obj[1] ; | |
4492 | ||
4493 | if (!args) SWIG_fail; | |
4494 | swig_obj[0] = args; | |
4495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4496 | if (!SWIG_IsOK(res1)) { | |
4497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'"); | |
4498 | } | |
4499 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4500 | { | |
4501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4502 | result = (long)((wxXmlResource const *)arg1)->GetVersion(); | |
4503 | wxPyEndAllowThreads(__tstate); | |
4504 | if (PyErr_Occurred()) SWIG_fail; | |
4505 | } | |
4506 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4507 | return resultobj; | |
4508 | fail: | |
4509 | return NULL; | |
4510 | } | |
4511 | ||
4512 | ||
4513 | SWIGINTERN PyObject *_wrap_XmlResource_CompareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4514 | PyObject *resultobj = 0; | |
4515 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4516 | int arg2 ; | |
4517 | int arg3 ; | |
4518 | int arg4 ; | |
4519 | int arg5 ; | |
4520 | int result; | |
4521 | void *argp1 = 0 ; | |
4522 | int res1 = 0 ; | |
4523 | int val2 ; | |
4524 | int ecode2 = 0 ; | |
4525 | int val3 ; | |
4526 | int ecode3 = 0 ; | |
4527 | int val4 ; | |
4528 | int ecode4 = 0 ; | |
4529 | int val5 ; | |
4530 | int ecode5 = 0 ; | |
4531 | PyObject * obj0 = 0 ; | |
4532 | PyObject * obj1 = 0 ; | |
4533 | PyObject * obj2 = 0 ; | |
4534 | PyObject * obj3 = 0 ; | |
4535 | PyObject * obj4 = 0 ; | |
4536 | char * kwnames[] = { | |
4537 | (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL | |
4538 | }; | |
4539 | ||
4540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_CompareVersion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
4541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4542 | if (!SWIG_IsOK(res1)) { | |
4543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_CompareVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'"); | |
4544 | } | |
4545 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4546 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4547 | if (!SWIG_IsOK(ecode2)) { | |
4548 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_CompareVersion" "', expected argument " "2"" of type '" "int""'"); | |
4549 | } | |
4550 | arg2 = static_cast< int >(val2); | |
4551 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4552 | if (!SWIG_IsOK(ecode3)) { | |
4553 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResource_CompareVersion" "', expected argument " "3"" of type '" "int""'"); | |
4554 | } | |
4555 | arg3 = static_cast< int >(val3); | |
4556 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4557 | if (!SWIG_IsOK(ecode4)) { | |
4558 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlResource_CompareVersion" "', expected argument " "4"" of type '" "int""'"); | |
4559 | } | |
4560 | arg4 = static_cast< int >(val4); | |
4561 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4562 | if (!SWIG_IsOK(ecode5)) { | |
4563 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "XmlResource_CompareVersion" "', expected argument " "5"" of type '" "int""'"); | |
4564 | } | |
4565 | arg5 = static_cast< int >(val5); | |
4566 | { | |
4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4568 | result = (int)((wxXmlResource const *)arg1)->CompareVersion(arg2,arg3,arg4,arg5); | |
4569 | wxPyEndAllowThreads(__tstate); | |
4570 | if (PyErr_Occurred()) SWIG_fail; | |
4571 | } | |
4572 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4573 | return resultobj; | |
4574 | fail: | |
4575 | return NULL; | |
ae8162c8 RD |
4576 | } |
4577 | ||
4578 | ||
554f62e9 RD |
4579 | SWIGINTERN PyObject *_wrap_XmlResource_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4580 | PyObject *resultobj = 0; | |
4581 | wxXmlResource *result = 0 ; | |
4582 | ||
4583 | if (!SWIG_Python_UnpackTuple(args,"XmlResource_Get",0,0,0)) SWIG_fail; | |
4584 | { | |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4586 | result = (wxXmlResource *)wxXmlResource::Get(); | |
4587 | wxPyEndAllowThreads(__tstate); | |
4588 | if (PyErr_Occurred()) SWIG_fail; | |
4589 | } | |
4590 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4591 | return resultobj; | |
4592 | fail: | |
4593 | return NULL; | |
4594 | } | |
4595 | ||
4596 | ||
4597 | SWIGINTERN PyObject *_wrap_XmlResource_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4598 | PyObject *resultobj = 0; | |
4599 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4600 | wxXmlResource *result = 0 ; | |
4601 | void *argp1 = 0 ; | |
4602 | int res1 = 0 ; | |
4603 | PyObject * obj0 = 0 ; | |
4604 | char * kwnames[] = { | |
4605 | (char *) "res", NULL | |
4606 | }; | |
4607 | ||
4608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_Set",kwnames,&obj0)) SWIG_fail; | |
4609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4610 | if (!SWIG_IsOK(res1)) { | |
4611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Set" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4612 | } | |
4613 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4614 | { | |
4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4616 | result = (wxXmlResource *)wxXmlResource::Set(arg1); | |
4617 | wxPyEndAllowThreads(__tstate); | |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
4619 | } | |
4620 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4621 | return resultobj; | |
4622 | fail: | |
4623 | return NULL; | |
ae8162c8 RD |
4624 | } |
4625 | ||
4626 | ||
554f62e9 RD |
4627 | SWIGINTERN PyObject *_wrap_XmlResource_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4628 | PyObject *resultobj = 0; | |
4629 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4630 | int result; | |
4631 | void *argp1 = 0 ; | |
4632 | int res1 = 0 ; | |
4633 | PyObject *swig_obj[1] ; | |
4634 | ||
4635 | if (!args) SWIG_fail; | |
4636 | swig_obj[0] = args; | |
4637 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4638 | if (!SWIG_IsOK(res1)) { | |
4639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4640 | } | |
4641 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4642 | { | |
4643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4644 | result = (int)(arg1)->GetFlags(); | |
4645 | wxPyEndAllowThreads(__tstate); | |
4646 | if (PyErr_Occurred()) SWIG_fail; | |
4647 | } | |
4648 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4649 | return resultobj; | |
4650 | fail: | |
4651 | return NULL; | |
4652 | } | |
4653 | ||
4654 | ||
4655 | SWIGINTERN PyObject *_wrap_XmlResource_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4656 | PyObject *resultobj = 0; | |
4657 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4658 | int arg2 ; | |
4659 | void *argp1 = 0 ; | |
4660 | int res1 = 0 ; | |
4661 | int val2 ; | |
4662 | int ecode2 = 0 ; | |
4663 | PyObject * obj0 = 0 ; | |
4664 | PyObject * obj1 = 0 ; | |
4665 | char * kwnames[] = { | |
4666 | (char *) "self",(char *) "flags", NULL | |
4667 | }; | |
4668 | ||
4669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
4670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4671 | if (!SWIG_IsOK(res1)) { | |
4672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4673 | } | |
4674 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4675 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4676 | if (!SWIG_IsOK(ecode2)) { | |
4677 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
4678 | } | |
4679 | arg2 = static_cast< int >(val2); | |
4680 | { | |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4682 | (arg1)->SetFlags(arg2); | |
4683 | wxPyEndAllowThreads(__tstate); | |
4684 | if (PyErr_Occurred()) SWIG_fail; | |
4685 | } | |
4686 | resultobj = SWIG_Py_Void(); | |
4687 | return resultobj; | |
4688 | fail: | |
4689 | return NULL; | |
ae8162c8 RD |
4690 | } |
4691 | ||
4692 | ||
fc46b7f3 RD |
4693 | SWIGINTERN PyObject *_wrap_XmlResource_GetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4694 | PyObject *resultobj = 0; | |
4695 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4696 | wxString result; | |
4697 | void *argp1 = 0 ; | |
4698 | int res1 = 0 ; | |
4699 | PyObject *swig_obj[1] ; | |
4700 | ||
4701 | if (!args) SWIG_fail; | |
4702 | swig_obj[0] = args; | |
4703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4704 | if (!SWIG_IsOK(res1)) { | |
4705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetDomain" "', expected argument " "1"" of type '" "wxXmlResource const *""'"); | |
4706 | } | |
4707 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4708 | { | |
4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4710 | result = ((wxXmlResource const *)arg1)->GetDomain(); | |
4711 | wxPyEndAllowThreads(__tstate); | |
4712 | if (PyErr_Occurred()) SWIG_fail; | |
4713 | } | |
4714 | { | |
4715 | #if wxUSE_UNICODE | |
4716 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4717 | #else | |
4718 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4719 | #endif | |
4720 | } | |
4721 | return resultobj; | |
4722 | fail: | |
4723 | return NULL; | |
4724 | } | |
4725 | ||
4726 | ||
4727 | SWIGINTERN PyObject *_wrap_XmlResource_SetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4728 | PyObject *resultobj = 0; | |
4729 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
4730 | wxString *arg2 = 0 ; | |
4731 | void *argp1 = 0 ; | |
4732 | int res1 = 0 ; | |
4733 | bool temp2 = false ; | |
4734 | PyObject * obj0 = 0 ; | |
4735 | PyObject * obj1 = 0 ; | |
4736 | char * kwnames[] = { | |
4737 | (char *) "self",(char *) "domain", NULL | |
4738 | }; | |
4739 | ||
4740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetDomain",kwnames,&obj0,&obj1)) SWIG_fail; | |
4741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
4742 | if (!SWIG_IsOK(res1)) { | |
4743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetDomain" "', expected argument " "1"" of type '" "wxXmlResource *""'"); | |
4744 | } | |
4745 | arg1 = reinterpret_cast< wxXmlResource * >(argp1); | |
4746 | { | |
4747 | arg2 = wxString_in_helper(obj1); | |
4748 | if (arg2 == NULL) SWIG_fail; | |
4749 | temp2 = true; | |
4750 | } | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | (arg1)->SetDomain((wxString const &)*arg2); | |
4754 | wxPyEndAllowThreads(__tstate); | |
4755 | if (PyErr_Occurred()) SWIG_fail; | |
4756 | } | |
4757 | resultobj = SWIG_Py_Void(); | |
4758 | { | |
4759 | if (temp2) | |
4760 | delete arg2; | |
4761 | } | |
4762 | return resultobj; | |
4763 | fail: | |
4764 | { | |
4765 | if (temp2) | |
4766 | delete arg2; | |
4767 | } | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
554f62e9 RD |
4772 | SWIGINTERN PyObject *XmlResource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4773 | PyObject *obj; | |
4774 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4775 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlResource, SWIG_NewClientData(obj)); | |
4776 | return SWIG_Py_Void(); | |
ae8162c8 RD |
4777 | } |
4778 | ||
554f62e9 RD |
4779 | SWIGINTERN PyObject *XmlResource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4780 | return SWIG_Python_InitShadowInstance(args); | |
ae8162c8 RD |
4781 | } |
4782 | ||
554f62e9 RD |
4783 | SWIGINTERN PyObject *_wrap_new_XmlSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4784 | PyObject *resultobj = 0; | |
4785 | wxPyXmlSubclassFactory *result = 0 ; | |
4786 | ||
4787 | if (!SWIG_Python_UnpackTuple(args,"new_XmlSubclassFactory",0,0,0)) SWIG_fail; | |
4788 | { | |
4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4790 | result = (wxPyXmlSubclassFactory *)new wxPyXmlSubclassFactory(); | |
4791 | wxPyEndAllowThreads(__tstate); | |
4792 | if (PyErr_Occurred()) SWIG_fail; | |
4793 | } | |
4794 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_POINTER_NEW | 0 ); | |
4795 | return resultobj; | |
4796 | fail: | |
4797 | return NULL; | |
4798 | } | |
4799 | ||
4800 | ||
4801 | SWIGINTERN PyObject *_wrap_XmlSubclassFactory__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4802 | PyObject *resultobj = 0; | |
4803 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
4804 | PyObject *arg2 = (PyObject *) 0 ; | |
4805 | PyObject *arg3 = (PyObject *) 0 ; | |
4806 | void *argp1 = 0 ; | |
4807 | int res1 = 0 ; | |
4808 | PyObject * obj0 = 0 ; | |
4809 | PyObject * obj1 = 0 ; | |
4810 | PyObject * obj2 = 0 ; | |
4811 | char * kwnames[] = { | |
4812 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
4813 | }; | |
4814 | ||
4815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 ); | |
4817 | if (!SWIG_IsOK(res1)) { | |
4818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlSubclassFactory__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'"); | |
4819 | } | |
4820 | arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1); | |
4821 | arg2 = obj1; | |
4822 | arg3 = obj2; | |
4823 | { | |
4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4825 | (arg1)->_setCallbackInfo(arg2,arg3); | |
4826 | wxPyEndAllowThreads(__tstate); | |
4827 | if (PyErr_Occurred()) SWIG_fail; | |
4828 | } | |
4829 | resultobj = SWIG_Py_Void(); | |
4830 | return resultobj; | |
4831 | fail: | |
4832 | return NULL; | |
4833 | } | |
4834 | ||
4835 | ||
4836 | SWIGINTERN PyObject *XmlSubclassFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4837 | PyObject *obj; | |
4838 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4839 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_NewClientData(obj)); | |
4840 | return SWIG_Py_Void(); | |
4841 | } | |
4842 | ||
4843 | SWIGINTERN PyObject *XmlSubclassFactory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4844 | return SWIG_Python_InitShadowInstance(args); | |
4845 | } | |
4846 | ||
4847 | SWIGINTERN PyObject *_wrap_new_XmlProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4848 | PyObject *resultobj = 0; | |
4849 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
4850 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4851 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4852 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4853 | wxXmlProperty *arg3 = (wxXmlProperty *) NULL ; | |
4854 | wxXmlProperty *result = 0 ; | |
4855 | bool temp1 = false ; | |
4856 | bool temp2 = false ; | |
4857 | void *argp3 = 0 ; | |
4858 | int res3 = 0 ; | |
4859 | PyObject * obj0 = 0 ; | |
4860 | PyObject * obj1 = 0 ; | |
4861 | PyObject * obj2 = 0 ; | |
4862 | char * kwnames[] = { | |
4863 | (char *) "name",(char *) "value",(char *) "next", NULL | |
4864 | }; | |
4865 | ||
4866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_XmlProperty",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4867 | if (obj0) { | |
ae8162c8 | 4868 | { |
554f62e9 RD |
4869 | arg1 = wxString_in_helper(obj0); |
4870 | if (arg1 == NULL) SWIG_fail; | |
4871 | temp1 = true; | |
ae8162c8 | 4872 | } |
554f62e9 RD |
4873 | } |
4874 | if (obj1) { | |
ae8162c8 | 4875 | { |
554f62e9 RD |
4876 | arg2 = wxString_in_helper(obj1); |
4877 | if (arg2 == NULL) SWIG_fail; | |
4878 | temp2 = true; | |
ae8162c8 | 4879 | } |
554f62e9 RD |
4880 | } |
4881 | if (obj2) { | |
4882 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4883 | if (!SWIG_IsOK(res3)) { | |
4884 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_XmlProperty" "', expected argument " "3"" of type '" "wxXmlProperty *""'"); | |
ae8162c8 | 4885 | } |
554f62e9 RD |
4886 | arg3 = reinterpret_cast< wxXmlProperty * >(argp3); |
4887 | } | |
4888 | { | |
4889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4890 | result = (wxXmlProperty *)new wxXmlProperty((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
4891 | wxPyEndAllowThreads(__tstate); | |
4892 | if (PyErr_Occurred()) SWIG_fail; | |
4893 | } | |
4894 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_NEW | 0 ); | |
4895 | { | |
4896 | if (temp1) | |
4897 | delete arg1; | |
4898 | } | |
4899 | { | |
4900 | if (temp2) | |
4901 | delete arg2; | |
4902 | } | |
4903 | return resultobj; | |
4904 | fail: | |
4905 | { | |
4906 | if (temp1) | |
4907 | delete arg1; | |
4908 | } | |
4909 | { | |
4910 | if (temp2) | |
4911 | delete arg2; | |
4912 | } | |
4913 | return NULL; | |
ae8162c8 RD |
4914 | } |
4915 | ||
4916 | ||
554f62e9 RD |
4917 | SWIGINTERN PyObject *_wrap_XmlProperty_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4918 | PyObject *resultobj = 0; | |
4919 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4920 | wxString result; | |
4921 | void *argp1 = 0 ; | |
4922 | int res1 = 0 ; | |
4923 | PyObject *swig_obj[1] ; | |
4924 | ||
4925 | if (!args) SWIG_fail; | |
4926 | swig_obj[0] = args; | |
4927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4928 | if (!SWIG_IsOK(res1)) { | |
4929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetName" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4930 | } | |
4931 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4932 | { | |
4933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4934 | result = ((wxXmlProperty const *)arg1)->GetName(); | |
4935 | wxPyEndAllowThreads(__tstate); | |
4936 | if (PyErr_Occurred()) SWIG_fail; | |
4937 | } | |
4938 | { | |
4939 | #if wxUSE_UNICODE | |
4940 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4941 | #else | |
4942 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4943 | #endif | |
4944 | } | |
4945 | return resultobj; | |
4946 | fail: | |
4947 | return NULL; | |
ae8162c8 RD |
4948 | } |
4949 | ||
4950 | ||
554f62e9 RD |
4951 | SWIGINTERN PyObject *_wrap_XmlProperty_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4952 | PyObject *resultobj = 0; | |
4953 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4954 | wxString result; | |
4955 | void *argp1 = 0 ; | |
4956 | int res1 = 0 ; | |
4957 | PyObject *swig_obj[1] ; | |
4958 | ||
4959 | if (!args) SWIG_fail; | |
4960 | swig_obj[0] = args; | |
4961 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4962 | if (!SWIG_IsOK(res1)) { | |
4963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetValue" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4964 | } | |
4965 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
4966 | { | |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | result = ((wxXmlProperty const *)arg1)->GetValue(); | |
4969 | wxPyEndAllowThreads(__tstate); | |
4970 | if (PyErr_Occurred()) SWIG_fail; | |
4971 | } | |
4972 | { | |
4973 | #if wxUSE_UNICODE | |
4974 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4975 | #else | |
4976 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4977 | #endif | |
4978 | } | |
4979 | return resultobj; | |
4980 | fail: | |
4981 | return NULL; | |
ae8162c8 RD |
4982 | } |
4983 | ||
4984 | ||
554f62e9 RD |
4985 | SWIGINTERN PyObject *_wrap_XmlProperty_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4986 | PyObject *resultobj = 0; | |
4987 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
4988 | wxXmlProperty *result = 0 ; | |
4989 | void *argp1 = 0 ; | |
4990 | int res1 = 0 ; | |
4991 | PyObject *swig_obj[1] ; | |
4992 | ||
4993 | if (!args) SWIG_fail; | |
4994 | swig_obj[0] = args; | |
4995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
4996 | if (!SWIG_IsOK(res1)) { | |
4997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetNext" "', expected argument " "1"" of type '" "wxXmlProperty const *""'"); | |
4998 | } | |
4999 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
5000 | { | |
5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5002 | result = (wxXmlProperty *)((wxXmlProperty const *)arg1)->GetNext(); | |
5003 | wxPyEndAllowThreads(__tstate); | |
5004 | if (PyErr_Occurred()) SWIG_fail; | |
5005 | } | |
5006 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5007 | return resultobj; | |
5008 | fail: | |
5009 | return NULL; | |
5010 | } | |
5011 | ||
5012 | ||
5013 | SWIGINTERN PyObject *_wrap_XmlProperty_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5014 | PyObject *resultobj = 0; | |
5015 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
5016 | wxString *arg2 = 0 ; | |
5017 | void *argp1 = 0 ; | |
5018 | int res1 = 0 ; | |
5019 | bool temp2 = false ; | |
5020 | PyObject * obj0 = 0 ; | |
5021 | PyObject * obj1 = 0 ; | |
5022 | char * kwnames[] = { | |
5023 | (char *) "self",(char *) "name", NULL | |
5024 | }; | |
5025 | ||
5026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetName",kwnames,&obj0,&obj1)) SWIG_fail; | |
5027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5028 | if (!SWIG_IsOK(res1)) { | |
5029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetName" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
5030 | } | |
5031 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
5032 | { | |
5033 | arg2 = wxString_in_helper(obj1); | |
5034 | if (arg2 == NULL) SWIG_fail; | |
5035 | temp2 = true; | |
5036 | } | |
5037 | { | |
5038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5039 | (arg1)->SetName((wxString const &)*arg2); | |
5040 | wxPyEndAllowThreads(__tstate); | |
5041 | if (PyErr_Occurred()) SWIG_fail; | |
5042 | } | |
5043 | resultobj = SWIG_Py_Void(); | |
5044 | { | |
5045 | if (temp2) | |
5046 | delete arg2; | |
5047 | } | |
5048 | return resultobj; | |
5049 | fail: | |
5050 | { | |
5051 | if (temp2) | |
5052 | delete arg2; | |
5053 | } | |
5054 | return NULL; | |
ae8162c8 RD |
5055 | } |
5056 | ||
5057 | ||
554f62e9 RD |
5058 | SWIGINTERN PyObject *_wrap_XmlProperty_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5059 | PyObject *resultobj = 0; | |
5060 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
5061 | wxString *arg2 = 0 ; | |
5062 | void *argp1 = 0 ; | |
5063 | int res1 = 0 ; | |
5064 | bool temp2 = false ; | |
5065 | PyObject * obj0 = 0 ; | |
5066 | PyObject * obj1 = 0 ; | |
5067 | char * kwnames[] = { | |
5068 | (char *) "self",(char *) "value", NULL | |
5069 | }; | |
5070 | ||
5071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
5072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5073 | if (!SWIG_IsOK(res1)) { | |
5074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetValue" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
5075 | } | |
5076 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
5077 | { | |
5078 | arg2 = wxString_in_helper(obj1); | |
5079 | if (arg2 == NULL) SWIG_fail; | |
5080 | temp2 = true; | |
5081 | } | |
5082 | { | |
5083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5084 | (arg1)->SetValue((wxString const &)*arg2); | |
5085 | wxPyEndAllowThreads(__tstate); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
5088 | resultobj = SWIG_Py_Void(); | |
5089 | { | |
5090 | if (temp2) | |
5091 | delete arg2; | |
5092 | } | |
5093 | return resultobj; | |
5094 | fail: | |
5095 | { | |
5096 | if (temp2) | |
5097 | delete arg2; | |
5098 | } | |
5099 | return NULL; | |
5100 | } | |
5101 | ||
5102 | ||
5103 | SWIGINTERN PyObject *_wrap_XmlProperty_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5104 | PyObject *resultobj = 0; | |
5105 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
5106 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
5107 | void *argp1 = 0 ; | |
5108 | int res1 = 0 ; | |
5109 | void *argp2 = 0 ; | |
5110 | int res2 = 0 ; | |
5111 | PyObject * obj0 = 0 ; | |
5112 | PyObject * obj1 = 0 ; | |
5113 | char * kwnames[] = { | |
5114 | (char *) "self",(char *) "next", NULL | |
5115 | }; | |
5116 | ||
5117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetNext",kwnames,&obj0,&obj1)) SWIG_fail; | |
5118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5119 | if (!SWIG_IsOK(res1)) { | |
5120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetNext" "', expected argument " "1"" of type '" "wxXmlProperty *""'"); | |
5121 | } | |
5122 | arg1 = reinterpret_cast< wxXmlProperty * >(argp1); | |
5123 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5124 | if (!SWIG_IsOK(res2)) { | |
5125 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlProperty_SetNext" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
5126 | } | |
5127 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
5128 | { | |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5130 | (arg1)->SetNext(arg2); | |
5131 | wxPyEndAllowThreads(__tstate); | |
5132 | if (PyErr_Occurred()) SWIG_fail; | |
5133 | } | |
5134 | resultobj = SWIG_Py_Void(); | |
5135 | return resultobj; | |
5136 | fail: | |
5137 | return NULL; | |
5138 | } | |
5139 | ||
5140 | ||
5141 | SWIGINTERN PyObject *XmlProperty_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5142 | PyObject *obj; | |
5143 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5144 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlProperty, SWIG_NewClientData(obj)); | |
5145 | return SWIG_Py_Void(); | |
5146 | } | |
5147 | ||
5148 | SWIGINTERN PyObject *XmlProperty_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5149 | return SWIG_Python_InitShadowInstance(args); | |
5150 | } | |
5151 | ||
5152 | SWIGINTERN PyObject *_wrap_new_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5153 | PyObject *resultobj = 0; | |
5154 | wxXmlNode *arg1 = (wxXmlNode *) NULL ; | |
5155 | wxXmlNodeType arg2 = (wxXmlNodeType) 0 ; | |
5156 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5157 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5158 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5159 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5160 | wxXmlProperty *arg5 = (wxXmlProperty *) NULL ; | |
5161 | wxXmlNode *arg6 = (wxXmlNode *) NULL ; | |
5162 | wxXmlNode *result = 0 ; | |
5163 | void *argp1 = 0 ; | |
5164 | int res1 = 0 ; | |
5165 | int val2 ; | |
5166 | int ecode2 = 0 ; | |
5167 | bool temp3 = false ; | |
5168 | bool temp4 = false ; | |
5169 | void *argp5 = 0 ; | |
5170 | int res5 = 0 ; | |
5171 | void *argp6 = 0 ; | |
5172 | int res6 = 0 ; | |
5173 | PyObject * obj0 = 0 ; | |
5174 | PyObject * obj1 = 0 ; | |
5175 | PyObject * obj2 = 0 ; | |
5176 | PyObject * obj3 = 0 ; | |
5177 | PyObject * obj4 = 0 ; | |
5178 | PyObject * obj5 = 0 ; | |
5179 | char * kwnames[] = { | |
5180 | (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL | |
5181 | }; | |
5182 | ||
5183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_XmlNode",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
5184 | if (obj0) { | |
5185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5186 | if (!SWIG_IsOK(res1)) { | |
5187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
ae8162c8 | 5188 | } |
554f62e9 RD |
5189 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); |
5190 | } | |
5191 | if (obj1) { | |
5192 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5193 | if (!SWIG_IsOK(ecode2)) { | |
5194 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlNode" "', expected argument " "2"" of type '" "wxXmlNodeType""'"); | |
5195 | } | |
5196 | arg2 = static_cast< wxXmlNodeType >(val2); | |
5197 | } | |
5198 | if (obj2) { | |
ae8162c8 | 5199 | { |
554f62e9 RD |
5200 | arg3 = wxString_in_helper(obj2); |
5201 | if (arg3 == NULL) SWIG_fail; | |
5202 | temp3 = true; | |
ae8162c8 | 5203 | } |
554f62e9 RD |
5204 | } |
5205 | if (obj3) { | |
ae8162c8 | 5206 | { |
554f62e9 RD |
5207 | arg4 = wxString_in_helper(obj3); |
5208 | if (arg4 == NULL) SWIG_fail; | |
5209 | temp4 = true; | |
ae8162c8 | 5210 | } |
554f62e9 RD |
5211 | } |
5212 | if (obj4) { | |
5213 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5214 | if (!SWIG_IsOK(res5)) { | |
5215 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_XmlNode" "', expected argument " "5"" of type '" "wxXmlProperty *""'"); | |
5216 | } | |
5217 | arg5 = reinterpret_cast< wxXmlProperty * >(argp5); | |
5218 | } | |
5219 | if (obj5) { | |
5220 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5221 | if (!SWIG_IsOK(res6)) { | |
5222 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_XmlNode" "', expected argument " "6"" of type '" "wxXmlNode *""'"); | |
5223 | } | |
5224 | arg6 = reinterpret_cast< wxXmlNode * >(argp6); | |
5225 | } | |
5226 | { | |
5227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5228 | result = (wxXmlNode *)new wxXmlNode(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
5229 | wxPyEndAllowThreads(__tstate); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
5232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_NEW | 0 ); | |
5233 | { | |
5234 | if (temp3) | |
5235 | delete arg3; | |
5236 | } | |
5237 | { | |
5238 | if (temp4) | |
5239 | delete arg4; | |
5240 | } | |
5241 | return resultobj; | |
5242 | fail: | |
5243 | { | |
5244 | if (temp3) | |
5245 | delete arg3; | |
5246 | } | |
5247 | { | |
5248 | if (temp4) | |
5249 | delete arg4; | |
5250 | } | |
5251 | return NULL; | |
ae8162c8 RD |
5252 | } |
5253 | ||
5254 | ||
554f62e9 RD |
5255 | SWIGINTERN PyObject *_wrap_delete_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5256 | PyObject *resultobj = 0; | |
5257 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5258 | void *argp1 = 0 ; | |
5259 | int res1 = 0 ; | |
5260 | PyObject *swig_obj[1] ; | |
5261 | ||
5262 | if (!args) SWIG_fail; | |
5263 | swig_obj[0] = args; | |
5264 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, SWIG_POINTER_DISOWN | 0 ); | |
5265 | if (!SWIG_IsOK(res1)) { | |
5266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5267 | } | |
5268 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5269 | { | |
5270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5271 | delete arg1; | |
ae8162c8 | 5272 | |
554f62e9 RD |
5273 | wxPyEndAllowThreads(__tstate); |
5274 | if (PyErr_Occurred()) SWIG_fail; | |
5275 | } | |
5276 | resultobj = SWIG_Py_Void(); | |
5277 | return resultobj; | |
5278 | fail: | |
5279 | return NULL; | |
5280 | } | |
5281 | ||
5282 | ||
5283 | SWIGINTERN PyObject *_wrap_new_XmlNodeEasy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5284 | PyObject *resultobj = 0; | |
5285 | wxXmlNodeType arg1 ; | |
5286 | wxString *arg2 = 0 ; | |
5287 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5288 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5289 | wxXmlNode *result = 0 ; | |
5290 | int val1 ; | |
5291 | int ecode1 = 0 ; | |
5292 | bool temp2 = false ; | |
5293 | bool temp3 = false ; | |
5294 | PyObject * obj0 = 0 ; | |
5295 | PyObject * obj1 = 0 ; | |
5296 | PyObject * obj2 = 0 ; | |
5297 | char * kwnames[] = { | |
5298 | (char *) "type",(char *) "name",(char *) "content", NULL | |
5299 | }; | |
5300 | ||
5301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_XmlNodeEasy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5302 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5303 | if (!SWIG_IsOK(ecode1)) { | |
5304 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_XmlNodeEasy" "', expected argument " "1"" of type '" "wxXmlNodeType""'"); | |
5305 | } | |
5306 | arg1 = static_cast< wxXmlNodeType >(val1); | |
5307 | { | |
5308 | arg2 = wxString_in_helper(obj1); | |
5309 | if (arg2 == NULL) SWIG_fail; | |
5310 | temp2 = true; | |
5311 | } | |
5312 | if (obj2) { | |
ae8162c8 | 5313 | { |
554f62e9 RD |
5314 | arg3 = wxString_in_helper(obj2); |
5315 | if (arg3 == NULL) SWIG_fail; | |
5316 | temp3 = true; | |
ae8162c8 | 5317 | } |
554f62e9 RD |
5318 | } |
5319 | { | |
5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5321 | result = (wxXmlNode *)new wxXmlNode(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
5322 | wxPyEndAllowThreads(__tstate); | |
5323 | if (PyErr_Occurred()) SWIG_fail; | |
5324 | } | |
5325 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_OWN | 0 ); | |
5326 | { | |
5327 | if (temp2) | |
5328 | delete arg2; | |
5329 | } | |
5330 | { | |
5331 | if (temp3) | |
5332 | delete arg3; | |
5333 | } | |
5334 | return resultobj; | |
5335 | fail: | |
5336 | { | |
5337 | if (temp2) | |
5338 | delete arg2; | |
5339 | } | |
5340 | { | |
5341 | if (temp3) | |
5342 | delete arg3; | |
5343 | } | |
5344 | return NULL; | |
5345 | } | |
5346 | ||
5347 | ||
5348 | SWIGINTERN PyObject *_wrap_XmlNode_AddChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5349 | PyObject *resultobj = 0; | |
5350 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5351 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5352 | void *argp1 = 0 ; | |
5353 | int res1 = 0 ; | |
5354 | void *argp2 = 0 ; | |
5355 | int res2 = 0 ; | |
5356 | PyObject * obj0 = 0 ; | |
5357 | PyObject * obj1 = 0 ; | |
5358 | char * kwnames[] = { | |
5359 | (char *) "self",(char *) "child", NULL | |
5360 | }; | |
5361 | ||
5362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
5363 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5364 | if (!SWIG_IsOK(res1)) { | |
5365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5366 | } | |
5367 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5368 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5369 | if (!SWIG_IsOK(res2)) { | |
5370 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5371 | } | |
5372 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5373 | { | |
5374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5375 | (arg1)->AddChild(arg2); | |
5376 | wxPyEndAllowThreads(__tstate); | |
5377 | if (PyErr_Occurred()) SWIG_fail; | |
5378 | } | |
5379 | resultobj = SWIG_Py_Void(); | |
5380 | return resultobj; | |
5381 | fail: | |
5382 | return NULL; | |
5383 | } | |
5384 | ||
5385 | ||
5386 | SWIGINTERN PyObject *_wrap_XmlNode_InsertChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5387 | PyObject *resultobj = 0; | |
5388 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5389 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5390 | wxXmlNode *arg3 = (wxXmlNode *) 0 ; | |
0d2c9713 | 5391 | bool result; |
554f62e9 RD |
5392 | void *argp1 = 0 ; |
5393 | int res1 = 0 ; | |
5394 | void *argp2 = 0 ; | |
5395 | int res2 = 0 ; | |
5396 | void *argp3 = 0 ; | |
5397 | int res3 = 0 ; | |
5398 | PyObject * obj0 = 0 ; | |
5399 | PyObject * obj1 = 0 ; | |
5400 | PyObject * obj2 = 0 ; | |
5401 | char * kwnames[] = { | |
5402 | (char *) "self",(char *) "child",(char *) "before_node", NULL | |
5403 | }; | |
5404 | ||
5405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_InsertChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5407 | if (!SWIG_IsOK(res1)) { | |
5408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_InsertChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5409 | } | |
5410 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5411 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5412 | if (!SWIG_IsOK(res2)) { | |
5413 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_InsertChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5414 | } | |
5415 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5416 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5417 | if (!SWIG_IsOK(res3)) { | |
5418 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlNode_InsertChild" "', expected argument " "3"" of type '" "wxXmlNode *""'"); | |
5419 | } | |
5420 | arg3 = reinterpret_cast< wxXmlNode * >(argp3); | |
5421 | { | |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0d2c9713 | 5423 | result = (bool)(arg1)->InsertChild(arg2,arg3); |
554f62e9 RD |
5424 | wxPyEndAllowThreads(__tstate); |
5425 | if (PyErr_Occurred()) SWIG_fail; | |
5426 | } | |
0d2c9713 RD |
5427 | { |
5428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5429 | } | |
554f62e9 RD |
5430 | return resultobj; |
5431 | fail: | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
5436 | SWIGINTERN PyObject *_wrap_XmlNode_RemoveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj = 0; | |
5438 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5439 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5440 | bool result; | |
5441 | void *argp1 = 0 ; | |
5442 | int res1 = 0 ; | |
5443 | void *argp2 = 0 ; | |
5444 | int res2 = 0 ; | |
5445 | PyObject * obj0 = 0 ; | |
5446 | PyObject * obj1 = 0 ; | |
5447 | char * kwnames[] = { | |
5448 | (char *) "self",(char *) "child", NULL | |
5449 | }; | |
5450 | ||
5451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_RemoveChild",kwnames,&obj0,&obj1)) SWIG_fail; | |
5452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5453 | if (!SWIG_IsOK(res1)) { | |
5454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_RemoveChild" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5455 | } | |
5456 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5457 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5458 | if (!SWIG_IsOK(res2)) { | |
5459 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_RemoveChild" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5460 | } | |
5461 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5462 | { | |
5463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5464 | result = (bool)(arg1)->RemoveChild(arg2); | |
5465 | wxPyEndAllowThreads(__tstate); | |
5466 | if (PyErr_Occurred()) SWIG_fail; | |
5467 | } | |
5468 | { | |
5469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5470 | } | |
5471 | return resultobj; | |
5472 | fail: | |
5473 | return NULL; | |
5474 | } | |
5475 | ||
5476 | ||
5477 | SWIGINTERN PyObject *_wrap_XmlNode_AddProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5478 | PyObject *resultobj = 0; | |
5479 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5480 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
5481 | void *argp1 = 0 ; | |
5482 | int res1 = 0 ; | |
5483 | void *argp2 = 0 ; | |
5484 | int res2 = 0 ; | |
5485 | PyObject * obj0 = 0 ; | |
5486 | PyObject * obj1 = 0 ; | |
5487 | char * kwnames[] = { | |
5488 | (char *) "self",(char *) "prop", NULL | |
5489 | }; | |
5490 | ||
5491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddProperty",kwnames,&obj0,&obj1)) SWIG_fail; | |
5492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5493 | if (!SWIG_IsOK(res1)) { | |
5494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5495 | } | |
5496 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5497 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5498 | if (!SWIG_IsOK(res2)) { | |
5499 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddProperty" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
5500 | } | |
5501 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
5502 | { | |
5503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5504 | (arg1)->AddProperty(arg2); | |
5505 | wxPyEndAllowThreads(__tstate); | |
5506 | if (PyErr_Occurred()) SWIG_fail; | |
5507 | } | |
5508 | resultobj = SWIG_Py_Void(); | |
5509 | return resultobj; | |
5510 | fail: | |
5511 | return NULL; | |
5512 | } | |
5513 | ||
5514 | ||
5515 | SWIGINTERN PyObject *_wrap_XmlNode_AddPropertyName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5516 | PyObject *resultobj = 0; | |
5517 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5518 | wxString *arg2 = 0 ; | |
5519 | wxString *arg3 = 0 ; | |
5520 | void *argp1 = 0 ; | |
5521 | int res1 = 0 ; | |
5522 | bool temp2 = false ; | |
5523 | bool temp3 = false ; | |
5524 | PyObject * obj0 = 0 ; | |
5525 | PyObject * obj1 = 0 ; | |
5526 | PyObject * obj2 = 0 ; | |
5527 | char * kwnames[] = { | |
5528 | (char *) "self",(char *) "name",(char *) "value", NULL | |
5529 | }; | |
5530 | ||
5531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_AddPropertyName",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5533 | if (!SWIG_IsOK(res1)) { | |
5534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddPropertyName" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5535 | } | |
5536 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5537 | { | |
5538 | arg2 = wxString_in_helper(obj1); | |
5539 | if (arg2 == NULL) SWIG_fail; | |
5540 | temp2 = true; | |
5541 | } | |
5542 | { | |
5543 | arg3 = wxString_in_helper(obj2); | |
5544 | if (arg3 == NULL) SWIG_fail; | |
5545 | temp3 = true; | |
5546 | } | |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | (arg1)->AddProperty((wxString const &)*arg2,(wxString const &)*arg3); | |
5550 | wxPyEndAllowThreads(__tstate); | |
5551 | if (PyErr_Occurred()) SWIG_fail; | |
5552 | } | |
5553 | resultobj = SWIG_Py_Void(); | |
5554 | { | |
5555 | if (temp2) | |
5556 | delete arg2; | |
5557 | } | |
5558 | { | |
5559 | if (temp3) | |
5560 | delete arg3; | |
5561 | } | |
5562 | return resultobj; | |
5563 | fail: | |
5564 | { | |
5565 | if (temp2) | |
5566 | delete arg2; | |
5567 | } | |
5568 | { | |
5569 | if (temp3) | |
5570 | delete arg3; | |
5571 | } | |
5572 | return NULL; | |
5573 | } | |
5574 | ||
5575 | ||
5576 | SWIGINTERN PyObject *_wrap_XmlNode_DeleteProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5577 | PyObject *resultobj = 0; | |
5578 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5579 | wxString *arg2 = 0 ; | |
5580 | bool result; | |
5581 | void *argp1 = 0 ; | |
5582 | int res1 = 0 ; | |
5583 | bool temp2 = false ; | |
5584 | PyObject * obj0 = 0 ; | |
5585 | PyObject * obj1 = 0 ; | |
5586 | char * kwnames[] = { | |
5587 | (char *) "self",(char *) "name", NULL | |
5588 | }; | |
5589 | ||
5590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_DeleteProperty",kwnames,&obj0,&obj1)) SWIG_fail; | |
5591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5592 | if (!SWIG_IsOK(res1)) { | |
5593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_DeleteProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
5594 | } | |
5595 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5596 | { | |
5597 | arg2 = wxString_in_helper(obj1); | |
5598 | if (arg2 == NULL) SWIG_fail; | |
5599 | temp2 = true; | |
5600 | } | |
5601 | { | |
5602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5603 | result = (bool)(arg1)->DeleteProperty((wxString const &)*arg2); | |
5604 | wxPyEndAllowThreads(__tstate); | |
5605 | if (PyErr_Occurred()) SWIG_fail; | |
5606 | } | |
5607 | { | |
5608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5609 | } | |
5610 | { | |
5611 | if (temp2) | |
5612 | delete arg2; | |
5613 | } | |
5614 | return resultobj; | |
5615 | fail: | |
5616 | { | |
5617 | if (temp2) | |
5618 | delete arg2; | |
5619 | } | |
5620 | return NULL; | |
ae8162c8 RD |
5621 | } |
5622 | ||
5623 | ||
554f62e9 RD |
5624 | SWIGINTERN PyObject *_wrap_XmlNode_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5625 | PyObject *resultobj = 0; | |
5626 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5627 | wxXmlNodeType result; | |
5628 | void *argp1 = 0 ; | |
5629 | int res1 = 0 ; | |
5630 | PyObject *swig_obj[1] ; | |
5631 | ||
5632 | if (!args) SWIG_fail; | |
5633 | swig_obj[0] = args; | |
5634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5635 | if (!SWIG_IsOK(res1)) { | |
5636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetType" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5637 | } | |
5638 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5639 | { | |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5641 | result = (wxXmlNodeType)((wxXmlNode const *)arg1)->GetType(); | |
5642 | wxPyEndAllowThreads(__tstate); | |
5643 | if (PyErr_Occurred()) SWIG_fail; | |
5644 | } | |
5645 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5646 | return resultobj; | |
5647 | fail: | |
5648 | return NULL; | |
ae8162c8 RD |
5649 | } |
5650 | ||
5651 | ||
554f62e9 RD |
5652 | SWIGINTERN PyObject *_wrap_XmlNode_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5653 | PyObject *resultobj = 0; | |
5654 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5655 | wxString result; | |
5656 | void *argp1 = 0 ; | |
5657 | int res1 = 0 ; | |
5658 | PyObject *swig_obj[1] ; | |
5659 | ||
5660 | if (!args) SWIG_fail; | |
5661 | swig_obj[0] = args; | |
5662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5663 | if (!SWIG_IsOK(res1)) { | |
5664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetName" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5665 | } | |
5666 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5667 | { | |
5668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5669 | result = ((wxXmlNode const *)arg1)->GetName(); | |
5670 | wxPyEndAllowThreads(__tstate); | |
5671 | if (PyErr_Occurred()) SWIG_fail; | |
5672 | } | |
5673 | { | |
ae8162c8 | 5674 | #if wxUSE_UNICODE |
554f62e9 | 5675 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 5676 | #else |
554f62e9 | 5677 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 5678 | #endif |
554f62e9 RD |
5679 | } |
5680 | return resultobj; | |
5681 | fail: | |
5682 | return NULL; | |
ae8162c8 RD |
5683 | } |
5684 | ||
5685 | ||
554f62e9 RD |
5686 | SWIGINTERN PyObject *_wrap_XmlNode_GetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5687 | PyObject *resultobj = 0; | |
5688 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5689 | wxString result; | |
5690 | void *argp1 = 0 ; | |
5691 | int res1 = 0 ; | |
5692 | PyObject *swig_obj[1] ; | |
5693 | ||
5694 | if (!args) SWIG_fail; | |
5695 | swig_obj[0] = args; | |
5696 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5697 | if (!SWIG_IsOK(res1)) { | |
5698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5699 | } | |
5700 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5701 | { | |
5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5703 | result = ((wxXmlNode const *)arg1)->GetContent(); | |
5704 | wxPyEndAllowThreads(__tstate); | |
5705 | if (PyErr_Occurred()) SWIG_fail; | |
5706 | } | |
5707 | { | |
ae8162c8 | 5708 | #if wxUSE_UNICODE |
554f62e9 | 5709 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 5710 | #else |
554f62e9 | 5711 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 5712 | #endif |
554f62e9 RD |
5713 | } |
5714 | return resultobj; | |
5715 | fail: | |
5716 | return NULL; | |
ae8162c8 RD |
5717 | } |
5718 | ||
5719 | ||
33d6fd3b RD |
5720 | SWIGINTERN PyObject *_wrap_XmlNode_IsWhitespaceOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5721 | PyObject *resultobj = 0; | |
5722 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5723 | bool result; | |
5724 | void *argp1 = 0 ; | |
5725 | int res1 = 0 ; | |
5726 | PyObject *swig_obj[1] ; | |
5727 | ||
5728 | if (!args) SWIG_fail; | |
5729 | swig_obj[0] = args; | |
5730 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5731 | if (!SWIG_IsOK(res1)) { | |
5732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_IsWhitespaceOnly" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5733 | } | |
5734 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5735 | { | |
5736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5737 | result = (bool)((wxXmlNode const *)arg1)->IsWhitespaceOnly(); | |
5738 | wxPyEndAllowThreads(__tstate); | |
5739 | if (PyErr_Occurred()) SWIG_fail; | |
5740 | } | |
5741 | { | |
5742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5743 | } | |
5744 | return resultobj; | |
5745 | fail: | |
5746 | return NULL; | |
5747 | } | |
5748 | ||
5749 | ||
5750 | SWIGINTERN PyObject *_wrap_XmlNode_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5751 | PyObject *resultobj = 0; | |
5752 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5753 | wxXmlNode *arg2 = (wxXmlNode *) NULL ; | |
5754 | int result; | |
5755 | void *argp1 = 0 ; | |
5756 | int res1 = 0 ; | |
5757 | void *argp2 = 0 ; | |
5758 | int res2 = 0 ; | |
5759 | PyObject * obj0 = 0 ; | |
5760 | PyObject * obj1 = 0 ; | |
5761 | char * kwnames[] = { | |
5762 | (char *) "self",(char *) "grandparent", NULL | |
5763 | }; | |
5764 | ||
5765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlNode_GetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5767 | if (!SWIG_IsOK(res1)) { | |
5768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetDepth" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5769 | } | |
5770 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5771 | if (obj1) { | |
5772 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5773 | if (!SWIG_IsOK(res2)) { | |
5774 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_GetDepth" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
5775 | } | |
5776 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
5777 | } | |
5778 | { | |
5779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5780 | result = (int)((wxXmlNode const *)arg1)->GetDepth(arg2); | |
5781 | wxPyEndAllowThreads(__tstate); | |
5782 | if (PyErr_Occurred()) SWIG_fail; | |
5783 | } | |
5784 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5785 | return resultobj; | |
5786 | fail: | |
5787 | return NULL; | |
5788 | } | |
5789 | ||
5790 | ||
5791 | SWIGINTERN PyObject *_wrap_XmlNode_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5792 | PyObject *resultobj = 0; | |
5793 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5794 | wxString result; | |
5795 | void *argp1 = 0 ; | |
5796 | int res1 = 0 ; | |
5797 | PyObject *swig_obj[1] ; | |
5798 | ||
5799 | if (!args) SWIG_fail; | |
5800 | swig_obj[0] = args; | |
5801 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5802 | if (!SWIG_IsOK(res1)) { | |
5803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNodeContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5804 | } | |
5805 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5806 | { | |
5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5808 | result = ((wxXmlNode const *)arg1)->GetNodeContent(); | |
5809 | wxPyEndAllowThreads(__tstate); | |
5810 | if (PyErr_Occurred()) SWIG_fail; | |
5811 | } | |
5812 | { | |
5813 | #if wxUSE_UNICODE | |
5814 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5815 | #else | |
5816 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5817 | #endif | |
5818 | } | |
5819 | return resultobj; | |
5820 | fail: | |
5821 | return NULL; | |
5822 | } | |
5823 | ||
5824 | ||
554f62e9 RD |
5825 | SWIGINTERN PyObject *_wrap_XmlNode_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5826 | PyObject *resultobj = 0; | |
5827 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5828 | wxXmlNode *result = 0 ; | |
5829 | void *argp1 = 0 ; | |
5830 | int res1 = 0 ; | |
5831 | PyObject *swig_obj[1] ; | |
5832 | ||
5833 | if (!args) SWIG_fail; | |
5834 | swig_obj[0] = args; | |
5835 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5836 | if (!SWIG_IsOK(res1)) { | |
5837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetParent" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5838 | } | |
5839 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5840 | { | |
5841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5842 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetParent(); | |
5843 | wxPyEndAllowThreads(__tstate); | |
5844 | if (PyErr_Occurred()) SWIG_fail; | |
5845 | } | |
5846 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5847 | return resultobj; | |
5848 | fail: | |
5849 | return NULL; | |
ae8162c8 RD |
5850 | } |
5851 | ||
5852 | ||
554f62e9 RD |
5853 | SWIGINTERN PyObject *_wrap_XmlNode_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5854 | PyObject *resultobj = 0; | |
5855 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5856 | wxXmlNode *result = 0 ; | |
5857 | void *argp1 = 0 ; | |
5858 | int res1 = 0 ; | |
5859 | PyObject *swig_obj[1] ; | |
5860 | ||
5861 | if (!args) SWIG_fail; | |
5862 | swig_obj[0] = args; | |
5863 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5864 | if (!SWIG_IsOK(res1)) { | |
5865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNext" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5866 | } | |
5867 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5868 | { | |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5870 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetNext(); | |
5871 | wxPyEndAllowThreads(__tstate); | |
5872 | if (PyErr_Occurred()) SWIG_fail; | |
5873 | } | |
5874 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5875 | return resultobj; | |
5876 | fail: | |
5877 | return NULL; | |
ae8162c8 RD |
5878 | } |
5879 | ||
5880 | ||
554f62e9 RD |
5881 | SWIGINTERN PyObject *_wrap_XmlNode_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5882 | PyObject *resultobj = 0; | |
5883 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5884 | wxXmlNode *result = 0 ; | |
5885 | void *argp1 = 0 ; | |
5886 | int res1 = 0 ; | |
5887 | PyObject *swig_obj[1] ; | |
5888 | ||
5889 | if (!args) SWIG_fail; | |
5890 | swig_obj[0] = args; | |
5891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5892 | if (!SWIG_IsOK(res1)) { | |
5893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetChildren" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5894 | } | |
5895 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5896 | { | |
5897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5898 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetChildren(); | |
5899 | wxPyEndAllowThreads(__tstate); | |
5900 | if (PyErr_Occurred()) SWIG_fail; | |
5901 | } | |
5902 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5903 | return resultobj; | |
5904 | fail: | |
5905 | return NULL; | |
ae8162c8 RD |
5906 | } |
5907 | ||
5908 | ||
554f62e9 RD |
5909 | SWIGINTERN PyObject *_wrap_XmlNode_GetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5910 | PyObject *resultobj = 0; | |
5911 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5912 | wxXmlProperty *result = 0 ; | |
5913 | void *argp1 = 0 ; | |
5914 | int res1 = 0 ; | |
5915 | PyObject *swig_obj[1] ; | |
5916 | ||
5917 | if (!args) SWIG_fail; | |
5918 | swig_obj[0] = args; | |
5919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5920 | if (!SWIG_IsOK(res1)) { | |
5921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetProperties" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5922 | } | |
5923 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5924 | { | |
5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5926 | result = (wxXmlProperty *)((wxXmlNode const *)arg1)->GetProperties(); | |
5927 | wxPyEndAllowThreads(__tstate); | |
5928 | if (PyErr_Occurred()) SWIG_fail; | |
5929 | } | |
5930 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
5931 | return resultobj; | |
5932 | fail: | |
5933 | return NULL; | |
5934 | } | |
5935 | ||
5936 | ||
5937 | SWIGINTERN PyObject *_wrap_XmlNode_GetPropVal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5938 | PyObject *resultobj = 0; | |
5939 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
5940 | wxString *arg2 = 0 ; | |
5941 | wxString *arg3 = 0 ; | |
5942 | wxString result; | |
5943 | void *argp1 = 0 ; | |
5944 | int res1 = 0 ; | |
5945 | bool temp2 = false ; | |
5946 | bool temp3 = false ; | |
5947 | PyObject * obj0 = 0 ; | |
5948 | PyObject * obj1 = 0 ; | |
5949 | PyObject * obj2 = 0 ; | |
5950 | char * kwnames[] = { | |
5951 | (char *) "self",(char *) "propName",(char *) "defaultVal", NULL | |
5952 | }; | |
5953 | ||
5954 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_GetPropVal",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
5956 | if (!SWIG_IsOK(res1)) { | |
5957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetPropVal" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
5958 | } | |
5959 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
5960 | { | |
5961 | arg2 = wxString_in_helper(obj1); | |
5962 | if (arg2 == NULL) SWIG_fail; | |
5963 | temp2 = true; | |
5964 | } | |
5965 | { | |
5966 | arg3 = wxString_in_helper(obj2); | |
5967 | if (arg3 == NULL) SWIG_fail; | |
5968 | temp3 = true; | |
5969 | } | |
5970 | { | |
5971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5972 | result = ((wxXmlNode const *)arg1)->GetPropVal((wxString const &)*arg2,(wxString const &)*arg3); | |
5973 | wxPyEndAllowThreads(__tstate); | |
5974 | if (PyErr_Occurred()) SWIG_fail; | |
5975 | } | |
5976 | { | |
5977 | #if wxUSE_UNICODE | |
5978 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5979 | #else | |
5980 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5981 | #endif | |
5982 | } | |
5983 | { | |
5984 | if (temp2) | |
5985 | delete arg2; | |
5986 | } | |
5987 | { | |
5988 | if (temp3) | |
5989 | delete arg3; | |
5990 | } | |
5991 | return resultobj; | |
5992 | fail: | |
5993 | { | |
5994 | if (temp2) | |
5995 | delete arg2; | |
5996 | } | |
5997 | { | |
5998 | if (temp3) | |
5999 | delete arg3; | |
6000 | } | |
6001 | return NULL; | |
6002 | } | |
6003 | ||
6004 | ||
6005 | SWIGINTERN PyObject *_wrap_XmlNode_HasProp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6006 | PyObject *resultobj = 0; | |
6007 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6008 | wxString *arg2 = 0 ; | |
6009 | bool result; | |
6010 | void *argp1 = 0 ; | |
6011 | int res1 = 0 ; | |
6012 | bool temp2 = false ; | |
6013 | PyObject * obj0 = 0 ; | |
6014 | PyObject * obj1 = 0 ; | |
6015 | char * kwnames[] = { | |
6016 | (char *) "self",(char *) "propName", NULL | |
6017 | }; | |
6018 | ||
6019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_HasProp",kwnames,&obj0,&obj1)) SWIG_fail; | |
6020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6021 | if (!SWIG_IsOK(res1)) { | |
6022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_HasProp" "', expected argument " "1"" of type '" "wxXmlNode const *""'"); | |
6023 | } | |
6024 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6025 | { | |
6026 | arg2 = wxString_in_helper(obj1); | |
6027 | if (arg2 == NULL) SWIG_fail; | |
6028 | temp2 = true; | |
6029 | } | |
6030 | { | |
6031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6032 | result = (bool)((wxXmlNode const *)arg1)->HasProp((wxString const &)*arg2); | |
6033 | wxPyEndAllowThreads(__tstate); | |
6034 | if (PyErr_Occurred()) SWIG_fail; | |
6035 | } | |
6036 | { | |
6037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6038 | } | |
6039 | { | |
6040 | if (temp2) | |
6041 | delete arg2; | |
6042 | } | |
6043 | return resultobj; | |
6044 | fail: | |
6045 | { | |
6046 | if (temp2) | |
6047 | delete arg2; | |
6048 | } | |
6049 | return NULL; | |
6050 | } | |
6051 | ||
6052 | ||
6053 | SWIGINTERN PyObject *_wrap_XmlNode_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6054 | PyObject *resultobj = 0; | |
6055 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6056 | wxXmlNodeType arg2 ; | |
6057 | void *argp1 = 0 ; | |
6058 | int res1 = 0 ; | |
6059 | int val2 ; | |
6060 | int ecode2 = 0 ; | |
6061 | PyObject * obj0 = 0 ; | |
6062 | PyObject * obj1 = 0 ; | |
6063 | char * kwnames[] = { | |
6064 | (char *) "self",(char *) "type", NULL | |
6065 | }; | |
6066 | ||
6067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetType",kwnames,&obj0,&obj1)) SWIG_fail; | |
6068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6069 | if (!SWIG_IsOK(res1)) { | |
6070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetType" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6071 | } | |
6072 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6073 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6074 | if (!SWIG_IsOK(ecode2)) { | |
6075 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlNode_SetType" "', expected argument " "2"" of type '" "wxXmlNodeType""'"); | |
6076 | } | |
6077 | arg2 = static_cast< wxXmlNodeType >(val2); | |
6078 | { | |
6079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6080 | (arg1)->SetType(arg2); | |
6081 | wxPyEndAllowThreads(__tstate); | |
6082 | if (PyErr_Occurred()) SWIG_fail; | |
6083 | } | |
6084 | resultobj = SWIG_Py_Void(); | |
6085 | return resultobj; | |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | SWIGINTERN PyObject *_wrap_XmlNode_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj = 0; | |
6093 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6094 | wxString *arg2 = 0 ; | |
6095 | void *argp1 = 0 ; | |
6096 | int res1 = 0 ; | |
6097 | bool temp2 = false ; | |
6098 | PyObject * obj0 = 0 ; | |
6099 | PyObject * obj1 = 0 ; | |
6100 | char * kwnames[] = { | |
6101 | (char *) "self",(char *) "name", NULL | |
6102 | }; | |
6103 | ||
6104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetName",kwnames,&obj0,&obj1)) SWIG_fail; | |
6105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6106 | if (!SWIG_IsOK(res1)) { | |
6107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetName" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6108 | } | |
6109 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6110 | { | |
6111 | arg2 = wxString_in_helper(obj1); | |
6112 | if (arg2 == NULL) SWIG_fail; | |
6113 | temp2 = true; | |
6114 | } | |
6115 | { | |
6116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6117 | (arg1)->SetName((wxString const &)*arg2); | |
6118 | wxPyEndAllowThreads(__tstate); | |
6119 | if (PyErr_Occurred()) SWIG_fail; | |
6120 | } | |
6121 | resultobj = SWIG_Py_Void(); | |
6122 | { | |
6123 | if (temp2) | |
6124 | delete arg2; | |
6125 | } | |
6126 | return resultobj; | |
6127 | fail: | |
6128 | { | |
6129 | if (temp2) | |
6130 | delete arg2; | |
6131 | } | |
6132 | return NULL; | |
ae8162c8 RD |
6133 | } |
6134 | ||
6135 | ||
554f62e9 RD |
6136 | SWIGINTERN PyObject *_wrap_XmlNode_SetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6137 | PyObject *resultobj = 0; | |
6138 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6139 | wxString *arg2 = 0 ; | |
6140 | void *argp1 = 0 ; | |
6141 | int res1 = 0 ; | |
6142 | bool temp2 = false ; | |
6143 | PyObject * obj0 = 0 ; | |
6144 | PyObject * obj1 = 0 ; | |
6145 | char * kwnames[] = { | |
6146 | (char *) "self",(char *) "con", NULL | |
6147 | }; | |
6148 | ||
6149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
6150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6151 | if (!SWIG_IsOK(res1)) { | |
6152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetContent" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6153 | } | |
6154 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6155 | { | |
6156 | arg2 = wxString_in_helper(obj1); | |
6157 | if (arg2 == NULL) SWIG_fail; | |
6158 | temp2 = true; | |
6159 | } | |
6160 | { | |
6161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6162 | (arg1)->SetContent((wxString const &)*arg2); | |
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
6166 | resultobj = SWIG_Py_Void(); | |
6167 | { | |
6168 | if (temp2) | |
6169 | delete arg2; | |
6170 | } | |
6171 | return resultobj; | |
6172 | fail: | |
6173 | { | |
6174 | if (temp2) | |
6175 | delete arg2; | |
6176 | } | |
6177 | return NULL; | |
6178 | } | |
6179 | ||
6180 | ||
6181 | SWIGINTERN PyObject *_wrap_XmlNode_SetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6182 | PyObject *resultobj = 0; | |
6183 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6184 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6185 | void *argp1 = 0 ; | |
6186 | int res1 = 0 ; | |
6187 | void *argp2 = 0 ; | |
6188 | int res2 = 0 ; | |
6189 | PyObject * obj0 = 0 ; | |
6190 | PyObject * obj1 = 0 ; | |
6191 | char * kwnames[] = { | |
6192 | (char *) "self",(char *) "parent", NULL | |
6193 | }; | |
6194 | ||
6195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
6196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6197 | if (!SWIG_IsOK(res1)) { | |
6198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetParent" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6199 | } | |
6200 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6201 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6202 | if (!SWIG_IsOK(res2)) { | |
6203 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetParent" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6204 | } | |
6205 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6206 | { | |
6207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6208 | (arg1)->SetParent(arg2); | |
6209 | wxPyEndAllowThreads(__tstate); | |
6210 | if (PyErr_Occurred()) SWIG_fail; | |
6211 | } | |
6212 | resultobj = SWIG_Py_Void(); | |
6213 | return resultobj; | |
6214 | fail: | |
6215 | return NULL; | |
6216 | } | |
6217 | ||
6218 | ||
6219 | SWIGINTERN PyObject *_wrap_XmlNode_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6220 | PyObject *resultobj = 0; | |
6221 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6222 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6223 | void *argp1 = 0 ; | |
6224 | int res1 = 0 ; | |
6225 | void *argp2 = 0 ; | |
6226 | int res2 = 0 ; | |
6227 | PyObject * obj0 = 0 ; | |
6228 | PyObject * obj1 = 0 ; | |
6229 | char * kwnames[] = { | |
6230 | (char *) "self",(char *) "next", NULL | |
6231 | }; | |
6232 | ||
6233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetNext",kwnames,&obj0,&obj1)) SWIG_fail; | |
6234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6235 | if (!SWIG_IsOK(res1)) { | |
6236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetNext" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6237 | } | |
6238 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6239 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6240 | if (!SWIG_IsOK(res2)) { | |
6241 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetNext" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6242 | } | |
6243 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6244 | { | |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6246 | (arg1)->SetNext(arg2); | |
6247 | wxPyEndAllowThreads(__tstate); | |
6248 | if (PyErr_Occurred()) SWIG_fail; | |
6249 | } | |
6250 | resultobj = SWIG_Py_Void(); | |
6251 | return resultobj; | |
6252 | fail: | |
6253 | return NULL; | |
6254 | } | |
6255 | ||
6256 | ||
6257 | SWIGINTERN PyObject *_wrap_XmlNode_SetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6258 | PyObject *resultobj = 0; | |
6259 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6260 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6261 | void *argp1 = 0 ; | |
6262 | int res1 = 0 ; | |
6263 | void *argp2 = 0 ; | |
6264 | int res2 = 0 ; | |
6265 | PyObject * obj0 = 0 ; | |
6266 | PyObject * obj1 = 0 ; | |
6267 | char * kwnames[] = { | |
6268 | (char *) "self",(char *) "child", NULL | |
6269 | }; | |
6270 | ||
6271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetChildren",kwnames,&obj0,&obj1)) SWIG_fail; | |
6272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6273 | if (!SWIG_IsOK(res1)) { | |
6274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetChildren" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6275 | } | |
6276 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6277 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6278 | if (!SWIG_IsOK(res2)) { | |
6279 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetChildren" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6280 | } | |
6281 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6282 | { | |
6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6284 | (arg1)->SetChildren(arg2); | |
6285 | wxPyEndAllowThreads(__tstate); | |
6286 | if (PyErr_Occurred()) SWIG_fail; | |
6287 | } | |
6288 | resultobj = SWIG_Py_Void(); | |
6289 | return resultobj; | |
6290 | fail: | |
6291 | return NULL; | |
6292 | } | |
6293 | ||
6294 | ||
6295 | SWIGINTERN PyObject *_wrap_XmlNode_SetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6296 | PyObject *resultobj = 0; | |
6297 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
6298 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
6299 | void *argp1 = 0 ; | |
6300 | int res1 = 0 ; | |
6301 | void *argp2 = 0 ; | |
6302 | int res2 = 0 ; | |
6303 | PyObject * obj0 = 0 ; | |
6304 | PyObject * obj1 = 0 ; | |
6305 | char * kwnames[] = { | |
6306 | (char *) "self",(char *) "prop", NULL | |
6307 | }; | |
6308 | ||
6309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetProperties",kwnames,&obj0,&obj1)) SWIG_fail; | |
6310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6311 | if (!SWIG_IsOK(res1)) { | |
6312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetProperties" "', expected argument " "1"" of type '" "wxXmlNode *""'"); | |
6313 | } | |
6314 | arg1 = reinterpret_cast< wxXmlNode * >(argp1); | |
6315 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 ); | |
6316 | if (!SWIG_IsOK(res2)) { | |
6317 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetProperties" "', expected argument " "2"" of type '" "wxXmlProperty *""'"); | |
6318 | } | |
6319 | arg2 = reinterpret_cast< wxXmlProperty * >(argp2); | |
6320 | { | |
6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6322 | (arg1)->SetProperties(arg2); | |
6323 | wxPyEndAllowThreads(__tstate); | |
6324 | if (PyErr_Occurred()) SWIG_fail; | |
6325 | } | |
6326 | resultobj = SWIG_Py_Void(); | |
6327 | return resultobj; | |
6328 | fail: | |
6329 | return NULL; | |
ae8162c8 RD |
6330 | } |
6331 | ||
6332 | ||
554f62e9 RD |
6333 | SWIGINTERN PyObject *XmlNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6334 | PyObject *obj; | |
6335 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6336 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlNode, SWIG_NewClientData(obj)); | |
6337 | return SWIG_Py_Void(); | |
ae8162c8 RD |
6338 | } |
6339 | ||
554f62e9 RD |
6340 | SWIGINTERN PyObject *XmlNode_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6341 | return SWIG_Python_InitShadowInstance(args); | |
ae8162c8 RD |
6342 | } |
6343 | ||
554f62e9 RD |
6344 | SWIGINTERN PyObject *_wrap_new_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6345 | PyObject *resultobj = 0; | |
6346 | wxString *arg1 = 0 ; | |
6347 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
6348 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6349 | wxXmlDocument *result = 0 ; | |
6350 | bool temp1 = false ; | |
6351 | bool temp2 = false ; | |
6352 | PyObject * obj0 = 0 ; | |
6353 | PyObject * obj1 = 0 ; | |
6354 | char * kwnames[] = { | |
6355 | (char *) "filename",(char *) "encoding", NULL | |
6356 | }; | |
6357 | ||
6358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocument",kwnames,&obj0,&obj1)) SWIG_fail; | |
6359 | { | |
6360 | arg1 = wxString_in_helper(obj0); | |
6361 | if (arg1 == NULL) SWIG_fail; | |
6362 | temp1 = true; | |
6363 | } | |
6364 | if (obj1) { | |
ae8162c8 | 6365 | { |
554f62e9 RD |
6366 | arg2 = wxString_in_helper(obj1); |
6367 | if (arg2 == NULL) SWIG_fail; | |
6368 | temp2 = true; | |
ae8162c8 | 6369 | } |
554f62e9 RD |
6370 | } |
6371 | { | |
6372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6373 | result = (wxXmlDocument *)new wxXmlDocument((wxString const &)*arg1,(wxString const &)*arg2); | |
6374 | wxPyEndAllowThreads(__tstate); | |
6375 | if (PyErr_Occurred()) SWIG_fail; | |
6376 | } | |
6377 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_NEW | 0 ); | |
6378 | { | |
6379 | if (temp1) | |
6380 | delete arg1; | |
6381 | } | |
6382 | { | |
6383 | if (temp2) | |
6384 | delete arg2; | |
6385 | } | |
6386 | return resultobj; | |
6387 | fail: | |
6388 | { | |
6389 | if (temp1) | |
6390 | delete arg1; | |
6391 | } | |
6392 | { | |
6393 | if (temp2) | |
6394 | delete arg2; | |
6395 | } | |
6396 | return NULL; | |
6397 | } | |
6398 | ||
6399 | ||
6400 | SWIGINTERN PyObject *_wrap_new_XmlDocumentFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6401 | PyObject *resultobj = 0; | |
6402 | wxInputStream *arg1 = 0 ; | |
6403 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
6404 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6405 | wxXmlDocument *result = 0 ; | |
6406 | wxPyInputStream *temp1 ; | |
6407 | bool created1 ; | |
6408 | bool temp2 = false ; | |
6409 | PyObject * obj0 = 0 ; | |
6410 | PyObject * obj1 = 0 ; | |
6411 | char * kwnames[] = { | |
6412 | (char *) "stream",(char *) "encoding", NULL | |
6413 | }; | |
6414 | ||
6415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocumentFromStream",kwnames,&obj0,&obj1)) SWIG_fail; | |
6416 | { | |
6417 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6418 | arg1 = temp1->m_wxis; | |
6419 | created1 = false; | |
6420 | } else { | |
6421 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6422 | arg1 = wxPyCBInputStream_create(obj0, false); | |
6423 | if (arg1 == NULL) { | |
6424 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); | |
6425 | SWIG_fail; | |
6426 | } | |
6427 | created1 = true; | |
ae8162c8 | 6428 | } |
554f62e9 RD |
6429 | } |
6430 | if (obj1) { | |
ae8162c8 | 6431 | { |
554f62e9 RD |
6432 | arg2 = wxString_in_helper(obj1); |
6433 | if (arg2 == NULL) SWIG_fail; | |
6434 | temp2 = true; | |
ae8162c8 | 6435 | } |
554f62e9 RD |
6436 | } |
6437 | { | |
6438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6439 | result = (wxXmlDocument *)new wxXmlDocument(*arg1,(wxString const &)*arg2); | |
6440 | wxPyEndAllowThreads(__tstate); | |
6441 | if (PyErr_Occurred()) SWIG_fail; | |
6442 | } | |
6443 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 ); | |
6444 | { | |
6445 | if (created1) delete arg1; | |
6446 | } | |
6447 | { | |
6448 | if (temp2) | |
6449 | delete arg2; | |
6450 | } | |
6451 | return resultobj; | |
6452 | fail: | |
6453 | { | |
6454 | if (created1) delete arg1; | |
6455 | } | |
6456 | { | |
6457 | if (temp2) | |
6458 | delete arg2; | |
6459 | } | |
6460 | return NULL; | |
ae8162c8 RD |
6461 | } |
6462 | ||
6463 | ||
554f62e9 RD |
6464 | SWIGINTERN PyObject *_wrap_new_EmptyXmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6465 | PyObject *resultobj = 0; | |
6466 | wxXmlDocument *result = 0 ; | |
6467 | ||
6468 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyXmlDocument",0,0,0)) SWIG_fail; | |
6469 | { | |
6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6471 | result = (wxXmlDocument *)new wxXmlDocument(); | |
6472 | wxPyEndAllowThreads(__tstate); | |
6473 | if (PyErr_Occurred()) SWIG_fail; | |
6474 | } | |
6475 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 ); | |
6476 | return resultobj; | |
6477 | fail: | |
6478 | return NULL; | |
ae8162c8 RD |
6479 | } |
6480 | ||
6481 | ||
554f62e9 RD |
6482 | SWIGINTERN PyObject *_wrap_delete_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6483 | PyObject *resultobj = 0; | |
6484 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6485 | void *argp1 = 0 ; | |
6486 | int res1 = 0 ; | |
6487 | PyObject *swig_obj[1] ; | |
6488 | ||
6489 | if (!args) SWIG_fail; | |
6490 | swig_obj[0] = args; | |
6491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_DISOWN | 0 ); | |
6492 | if (!SWIG_IsOK(res1)) { | |
6493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlDocument" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6494 | } | |
6495 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6496 | { | |
6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6498 | delete arg1; | |
ae8162c8 | 6499 | |
554f62e9 RD |
6500 | wxPyEndAllowThreads(__tstate); |
6501 | if (PyErr_Occurred()) SWIG_fail; | |
6502 | } | |
6503 | resultobj = SWIG_Py_Void(); | |
6504 | return resultobj; | |
6505 | fail: | |
6506 | return NULL; | |
6507 | } | |
6508 | ||
6509 | ||
6510 | SWIGINTERN PyObject *_wrap_XmlDocument_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6511 | PyObject *resultobj = 0; | |
6512 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6513 | wxString *arg2 = 0 ; | |
6514 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
6515 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
33d6fd3b | 6516 | int arg4 = (int) wxXMLDOC_NONE ; |
554f62e9 RD |
6517 | bool result; |
6518 | void *argp1 = 0 ; | |
6519 | int res1 = 0 ; | |
6520 | bool temp2 = false ; | |
6521 | bool temp3 = false ; | |
33d6fd3b RD |
6522 | int val4 ; |
6523 | int ecode4 = 0 ; | |
554f62e9 RD |
6524 | PyObject * obj0 = 0 ; |
6525 | PyObject * obj1 = 0 ; | |
6526 | PyObject * obj2 = 0 ; | |
33d6fd3b | 6527 | PyObject * obj3 = 0 ; |
554f62e9 | 6528 | char * kwnames[] = { |
33d6fd3b | 6529 | (char *) "self",(char *) "filename",(char *) "encoding",(char *) "flags", NULL |
554f62e9 RD |
6530 | }; |
6531 | ||
33d6fd3b | 6532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
554f62e9 RD |
6533 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); |
6534 | if (!SWIG_IsOK(res1)) { | |
6535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Load" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6536 | } | |
6537 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6538 | { | |
6539 | arg2 = wxString_in_helper(obj1); | |
6540 | if (arg2 == NULL) SWIG_fail; | |
6541 | temp2 = true; | |
6542 | } | |
6543 | if (obj2) { | |
ae8162c8 | 6544 | { |
554f62e9 RD |
6545 | arg3 = wxString_in_helper(obj2); |
6546 | if (arg3 == NULL) SWIG_fail; | |
6547 | temp3 = true; | |
6548 | } | |
6549 | } | |
33d6fd3b RD |
6550 | if (obj3) { |
6551 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6552 | if (!SWIG_IsOK(ecode4)) { | |
6553 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_Load" "', expected argument " "4"" of type '" "int""'"); | |
6554 | } | |
6555 | arg4 = static_cast< int >(val4); | |
6556 | } | |
554f62e9 RD |
6557 | { |
6558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 6559 | result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3,arg4); |
554f62e9 RD |
6560 | wxPyEndAllowThreads(__tstate); |
6561 | if (PyErr_Occurred()) SWIG_fail; | |
6562 | } | |
6563 | { | |
6564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6565 | } | |
6566 | { | |
6567 | if (temp2) | |
6568 | delete arg2; | |
6569 | } | |
6570 | { | |
6571 | if (temp3) | |
6572 | delete arg3; | |
6573 | } | |
6574 | return resultobj; | |
6575 | fail: | |
6576 | { | |
6577 | if (temp2) | |
6578 | delete arg2; | |
6579 | } | |
6580 | { | |
6581 | if (temp3) | |
6582 | delete arg3; | |
6583 | } | |
6584 | return NULL; | |
6585 | } | |
6586 | ||
6587 | ||
6588 | SWIGINTERN PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6589 | PyObject *resultobj = 0; | |
6590 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6591 | wxInputStream *arg2 = 0 ; | |
6592 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
6593 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
33d6fd3b | 6594 | int arg4 = (int) wxXMLDOC_NONE ; |
554f62e9 RD |
6595 | bool result; |
6596 | void *argp1 = 0 ; | |
6597 | int res1 = 0 ; | |
6598 | wxPyInputStream *temp2 ; | |
6599 | bool created2 ; | |
6600 | bool temp3 = false ; | |
33d6fd3b RD |
6601 | int val4 ; |
6602 | int ecode4 = 0 ; | |
554f62e9 RD |
6603 | PyObject * obj0 = 0 ; |
6604 | PyObject * obj1 = 0 ; | |
6605 | PyObject * obj2 = 0 ; | |
33d6fd3b | 6606 | PyObject * obj3 = 0 ; |
554f62e9 | 6607 | char * kwnames[] = { |
33d6fd3b | 6608 | (char *) "self",(char *) "stream",(char *) "encoding",(char *) "flags", NULL |
554f62e9 RD |
6609 | }; |
6610 | ||
33d6fd3b | 6611 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
554f62e9 RD |
6612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); |
6613 | if (!SWIG_IsOK(res1)) { | |
6614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6615 | } | |
6616 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6617 | { | |
6618 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
6619 | arg2 = temp2->m_wxis; | |
6620 | created2 = false; | |
6621 | } else { | |
6622 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6623 | arg2 = wxPyCBInputStream_create(obj1, false); | |
6624 | if (arg2 == NULL) { | |
6625 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); | |
6626 | SWIG_fail; | |
6627 | } | |
6628 | created2 = true; | |
ae8162c8 | 6629 | } |
554f62e9 RD |
6630 | } |
6631 | if (obj2) { | |
ae8162c8 | 6632 | { |
554f62e9 RD |
6633 | arg3 = wxString_in_helper(obj2); |
6634 | if (arg3 == NULL) SWIG_fail; | |
6635 | temp3 = true; | |
ae8162c8 | 6636 | } |
554f62e9 | 6637 | } |
33d6fd3b RD |
6638 | if (obj3) { |
6639 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6640 | if (!SWIG_IsOK(ecode4)) { | |
6641 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "4"" of type '" "int""'"); | |
6642 | } | |
6643 | arg4 = static_cast< int >(val4); | |
6644 | } | |
554f62e9 RD |
6645 | { |
6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 6647 | result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3,arg4); |
554f62e9 RD |
6648 | wxPyEndAllowThreads(__tstate); |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | } | |
6651 | { | |
6652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6653 | } | |
6654 | { | |
6655 | if (created2) delete arg2; | |
6656 | } | |
6657 | { | |
6658 | if (temp3) | |
6659 | delete arg3; | |
6660 | } | |
6661 | return resultobj; | |
6662 | fail: | |
6663 | { | |
6664 | if (created2) delete arg2; | |
6665 | } | |
6666 | { | |
6667 | if (temp3) | |
6668 | delete arg3; | |
6669 | } | |
6670 | return NULL; | |
6671 | } | |
6672 | ||
6673 | ||
6674 | SWIGINTERN PyObject *_wrap_XmlDocument_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6675 | PyObject *resultobj = 0; | |
6676 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6677 | wxString *arg2 = 0 ; | |
33d6fd3b | 6678 | int arg3 = (int) 1 ; |
554f62e9 RD |
6679 | bool result; |
6680 | void *argp1 = 0 ; | |
6681 | int res1 = 0 ; | |
6682 | bool temp2 = false ; | |
33d6fd3b RD |
6683 | int val3 ; |
6684 | int ecode3 = 0 ; | |
554f62e9 RD |
6685 | PyObject * obj0 = 0 ; |
6686 | PyObject * obj1 = 0 ; | |
33d6fd3b | 6687 | PyObject * obj2 = 0 ; |
554f62e9 | 6688 | char * kwnames[] = { |
33d6fd3b | 6689 | (char *) "self",(char *) "filename",(char *) "indentstep", NULL |
554f62e9 RD |
6690 | }; |
6691 | ||
33d6fd3b | 6692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Save",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
554f62e9 RD |
6693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); |
6694 | if (!SWIG_IsOK(res1)) { | |
6695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Save" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6696 | } | |
6697 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6698 | { | |
6699 | arg2 = wxString_in_helper(obj1); | |
6700 | if (arg2 == NULL) SWIG_fail; | |
6701 | temp2 = true; | |
6702 | } | |
33d6fd3b RD |
6703 | if (obj2) { |
6704 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6705 | if (!SWIG_IsOK(ecode3)) { | |
6706 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_Save" "', expected argument " "3"" of type '" "int""'"); | |
6707 | } | |
6708 | arg3 = static_cast< int >(val3); | |
6709 | } | |
554f62e9 RD |
6710 | { |
6711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 6712 | result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2,arg3); |
554f62e9 RD |
6713 | wxPyEndAllowThreads(__tstate); |
6714 | if (PyErr_Occurred()) SWIG_fail; | |
6715 | } | |
6716 | { | |
6717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6718 | } | |
6719 | { | |
6720 | if (temp2) | |
6721 | delete arg2; | |
6722 | } | |
6723 | return resultobj; | |
6724 | fail: | |
6725 | { | |
6726 | if (temp2) | |
6727 | delete arg2; | |
6728 | } | |
6729 | return NULL; | |
6730 | } | |
6731 | ||
6732 | ||
6733 | SWIGINTERN PyObject *_wrap_XmlDocument_SaveToStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6734 | PyObject *resultobj = 0; | |
6735 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6736 | wxOutputStream *arg2 = 0 ; | |
33d6fd3b | 6737 | int arg3 = (int) 1 ; |
554f62e9 RD |
6738 | bool result; |
6739 | void *argp1 = 0 ; | |
6740 | int res1 = 0 ; | |
6741 | void *argp2 = 0 ; | |
6742 | int res2 = 0 ; | |
33d6fd3b RD |
6743 | int val3 ; |
6744 | int ecode3 = 0 ; | |
554f62e9 RD |
6745 | PyObject * obj0 = 0 ; |
6746 | PyObject * obj1 = 0 ; | |
33d6fd3b | 6747 | PyObject * obj2 = 0 ; |
554f62e9 | 6748 | char * kwnames[] = { |
33d6fd3b | 6749 | (char *) "self",(char *) "stream",(char *) "indentstep", NULL |
554f62e9 RD |
6750 | }; |
6751 | ||
33d6fd3b | 6752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_SaveToStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
554f62e9 RD |
6753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); |
6754 | if (!SWIG_IsOK(res1)) { | |
6755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SaveToStream" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6756 | } | |
6757 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6758 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxOutputStream, 0 ); | |
6759 | if (!SWIG_IsOK(res2)) { | |
6760 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'"); | |
6761 | } | |
6762 | if (!argp2) { | |
6763 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'"); | |
6764 | } | |
6765 | arg2 = reinterpret_cast< wxOutputStream * >(argp2); | |
33d6fd3b RD |
6766 | if (obj2) { |
6767 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6768 | if (!SWIG_IsOK(ecode3)) { | |
6769 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_SaveToStream" "', expected argument " "3"" of type '" "int""'"); | |
6770 | } | |
6771 | arg3 = static_cast< int >(val3); | |
6772 | } | |
554f62e9 RD |
6773 | { |
6774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 6775 | result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2,arg3); |
554f62e9 RD |
6776 | wxPyEndAllowThreads(__tstate); |
6777 | if (PyErr_Occurred()) SWIG_fail; | |
6778 | } | |
6779 | { | |
6780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6781 | } | |
6782 | return resultobj; | |
6783 | fail: | |
6784 | return NULL; | |
ae8162c8 RD |
6785 | } |
6786 | ||
6787 | ||
554f62e9 RD |
6788 | SWIGINTERN PyObject *_wrap_XmlDocument_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6789 | PyObject *resultobj = 0; | |
6790 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6791 | bool result; | |
6792 | void *argp1 = 0 ; | |
6793 | int res1 = 0 ; | |
6794 | PyObject *swig_obj[1] ; | |
6795 | ||
6796 | if (!args) SWIG_fail; | |
6797 | swig_obj[0] = args; | |
6798 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6799 | if (!SWIG_IsOK(res1)) { | |
6800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_IsOk" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6801 | } | |
6802 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6803 | { | |
6804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6805 | result = (bool)((wxXmlDocument const *)arg1)->IsOk(); | |
6806 | wxPyEndAllowThreads(__tstate); | |
6807 | if (PyErr_Occurred()) SWIG_fail; | |
6808 | } | |
6809 | { | |
6810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6811 | } | |
6812 | return resultobj; | |
6813 | fail: | |
6814 | return NULL; | |
ae8162c8 RD |
6815 | } |
6816 | ||
6817 | ||
554f62e9 RD |
6818 | SWIGINTERN PyObject *_wrap_XmlDocument_GetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6819 | PyObject *resultobj = 0; | |
6820 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6821 | wxXmlNode *result = 0 ; | |
6822 | void *argp1 = 0 ; | |
6823 | int res1 = 0 ; | |
6824 | PyObject *swig_obj[1] ; | |
6825 | ||
6826 | if (!args) SWIG_fail; | |
6827 | swig_obj[0] = args; | |
6828 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6829 | if (!SWIG_IsOK(res1)) { | |
6830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetRoot" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6831 | } | |
6832 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6833 | { | |
6834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6835 | result = (wxXmlNode *)((wxXmlDocument const *)arg1)->GetRoot(); | |
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
6839 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6840 | return resultobj; | |
6841 | fail: | |
6842 | return NULL; | |
ae8162c8 RD |
6843 | } |
6844 | ||
6845 | ||
554f62e9 RD |
6846 | SWIGINTERN PyObject *_wrap_XmlDocument_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6847 | PyObject *resultobj = 0; | |
6848 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6849 | wxString result; | |
6850 | void *argp1 = 0 ; | |
6851 | int res1 = 0 ; | |
6852 | PyObject *swig_obj[1] ; | |
6853 | ||
6854 | if (!args) SWIG_fail; | |
6855 | swig_obj[0] = args; | |
6856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6857 | if (!SWIG_IsOK(res1)) { | |
6858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetVersion" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6859 | } | |
6860 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6861 | { | |
6862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6863 | result = ((wxXmlDocument const *)arg1)->GetVersion(); | |
6864 | wxPyEndAllowThreads(__tstate); | |
6865 | if (PyErr_Occurred()) SWIG_fail; | |
6866 | } | |
6867 | { | |
ae8162c8 | 6868 | #if wxUSE_UNICODE |
554f62e9 | 6869 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 6870 | #else |
554f62e9 | 6871 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 6872 | #endif |
554f62e9 RD |
6873 | } |
6874 | return resultobj; | |
6875 | fail: | |
6876 | return NULL; | |
ae8162c8 RD |
6877 | } |
6878 | ||
6879 | ||
554f62e9 RD |
6880 | SWIGINTERN PyObject *_wrap_XmlDocument_GetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6881 | PyObject *resultobj = 0; | |
6882 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6883 | wxString result; | |
6884 | void *argp1 = 0 ; | |
6885 | int res1 = 0 ; | |
6886 | PyObject *swig_obj[1] ; | |
6887 | ||
6888 | if (!args) SWIG_fail; | |
6889 | swig_obj[0] = args; | |
6890 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6891 | if (!SWIG_IsOK(res1)) { | |
6892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument const *""'"); | |
6893 | } | |
6894 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6895 | { | |
6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6897 | result = ((wxXmlDocument const *)arg1)->GetFileEncoding(); | |
6898 | wxPyEndAllowThreads(__tstate); | |
6899 | if (PyErr_Occurred()) SWIG_fail; | |
6900 | } | |
6901 | { | |
ae8162c8 | 6902 | #if wxUSE_UNICODE |
554f62e9 | 6903 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 6904 | #else |
554f62e9 | 6905 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 6906 | #endif |
554f62e9 RD |
6907 | } |
6908 | return resultobj; | |
6909 | fail: | |
6910 | return NULL; | |
6911 | } | |
6912 | ||
6913 | ||
0d2c9713 RD |
6914 | SWIGINTERN PyObject *_wrap_XmlDocument_DetachRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6915 | PyObject *resultobj = 0; | |
6916 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6917 | wxXmlNode *result = 0 ; | |
6918 | void *argp1 = 0 ; | |
6919 | int res1 = 0 ; | |
6920 | PyObject *swig_obj[1] ; | |
6921 | ||
6922 | if (!args) SWIG_fail; | |
6923 | swig_obj[0] = args; | |
6924 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6925 | if (!SWIG_IsOK(res1)) { | |
6926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_DetachRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6927 | } | |
6928 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6929 | { | |
6930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6931 | result = (wxXmlNode *)(arg1)->DetachRoot(); | |
6932 | wxPyEndAllowThreads(__tstate); | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
6935 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6936 | return resultobj; | |
6937 | fail: | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
554f62e9 RD |
6942 | SWIGINTERN PyObject *_wrap_XmlDocument_SetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6943 | PyObject *resultobj = 0; | |
6944 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6945 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
6946 | void *argp1 = 0 ; | |
6947 | int res1 = 0 ; | |
6948 | void *argp2 = 0 ; | |
6949 | int res2 = 0 ; | |
6950 | PyObject * obj0 = 0 ; | |
6951 | PyObject * obj1 = 0 ; | |
6952 | char * kwnames[] = { | |
6953 | (char *) "self",(char *) "node", NULL | |
6954 | }; | |
6955 | ||
6956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetRoot",kwnames,&obj0,&obj1)) SWIG_fail; | |
6957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6958 | if (!SWIG_IsOK(res1)) { | |
6959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6960 | } | |
6961 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6962 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
6963 | if (!SWIG_IsOK(res2)) { | |
6964 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SetRoot" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
6965 | } | |
6966 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
6967 | { | |
6968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6969 | (arg1)->SetRoot(arg2); | |
6970 | wxPyEndAllowThreads(__tstate); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | } | |
6973 | resultobj = SWIG_Py_Void(); | |
6974 | return resultobj; | |
6975 | fail: | |
6976 | return NULL; | |
6977 | } | |
6978 | ||
6979 | ||
6980 | SWIGINTERN PyObject *_wrap_XmlDocument_SetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6981 | PyObject *resultobj = 0; | |
6982 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
6983 | wxString *arg2 = 0 ; | |
6984 | void *argp1 = 0 ; | |
6985 | int res1 = 0 ; | |
6986 | bool temp2 = false ; | |
6987 | PyObject * obj0 = 0 ; | |
6988 | PyObject * obj1 = 0 ; | |
6989 | char * kwnames[] = { | |
6990 | (char *) "self",(char *) "version", NULL | |
6991 | }; | |
6992 | ||
6993 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
6994 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
6995 | if (!SWIG_IsOK(res1)) { | |
6996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetVersion" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
6997 | } | |
6998 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
6999 | { | |
7000 | arg2 = wxString_in_helper(obj1); | |
7001 | if (arg2 == NULL) SWIG_fail; | |
7002 | temp2 = true; | |
7003 | } | |
7004 | { | |
7005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7006 | (arg1)->SetVersion((wxString const &)*arg2); | |
7007 | wxPyEndAllowThreads(__tstate); | |
7008 | if (PyErr_Occurred()) SWIG_fail; | |
7009 | } | |
7010 | resultobj = SWIG_Py_Void(); | |
7011 | { | |
7012 | if (temp2) | |
7013 | delete arg2; | |
7014 | } | |
7015 | return resultobj; | |
7016 | fail: | |
7017 | { | |
7018 | if (temp2) | |
7019 | delete arg2; | |
7020 | } | |
7021 | return NULL; | |
ae8162c8 RD |
7022 | } |
7023 | ||
7024 | ||
554f62e9 RD |
7025 | SWIGINTERN PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7026 | PyObject *resultobj = 0; | |
7027 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
7028 | wxString *arg2 = 0 ; | |
7029 | void *argp1 = 0 ; | |
7030 | int res1 = 0 ; | |
7031 | bool temp2 = false ; | |
7032 | PyObject * obj0 = 0 ; | |
7033 | PyObject * obj1 = 0 ; | |
7034 | char * kwnames[] = { | |
7035 | (char *) "self",(char *) "encoding", NULL | |
7036 | }; | |
7037 | ||
7038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetFileEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
7039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 ); | |
7040 | if (!SWIG_IsOK(res1)) { | |
7041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument *""'"); | |
7042 | } | |
7043 | arg1 = reinterpret_cast< wxXmlDocument * >(argp1); | |
7044 | { | |
7045 | arg2 = wxString_in_helper(obj1); | |
7046 | if (arg2 == NULL) SWIG_fail; | |
7047 | temp2 = true; | |
7048 | } | |
7049 | { | |
7050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7051 | (arg1)->SetFileEncoding((wxString const &)*arg2); | |
7052 | wxPyEndAllowThreads(__tstate); | |
7053 | if (PyErr_Occurred()) SWIG_fail; | |
7054 | } | |
7055 | resultobj = SWIG_Py_Void(); | |
7056 | { | |
7057 | if (temp2) | |
7058 | delete arg2; | |
7059 | } | |
7060 | return resultobj; | |
7061 | fail: | |
7062 | { | |
7063 | if (temp2) | |
7064 | delete arg2; | |
7065 | } | |
7066 | return NULL; | |
ae8162c8 RD |
7067 | } |
7068 | ||
7069 | ||
554f62e9 RD |
7070 | SWIGINTERN PyObject *XmlDocument_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7071 | PyObject *obj; | |
7072 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7073 | SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlDocument, SWIG_NewClientData(obj)); | |
7074 | return SWIG_Py_Void(); | |
ae8162c8 RD |
7075 | } |
7076 | ||
554f62e9 RD |
7077 | SWIGINTERN PyObject *XmlDocument_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7078 | return SWIG_Python_InitShadowInstance(args); | |
7079 | } | |
ae8162c8 | 7080 | |
554f62e9 RD |
7081 | SWIGINTERN PyObject *_wrap_new_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7082 | PyObject *resultobj = 0; | |
7083 | wxPyXmlResourceHandler *result = 0 ; | |
7084 | ||
7085 | if (!SWIG_Python_UnpackTuple(args,"new_XmlResourceHandler",0,0,0)) SWIG_fail; | |
7086 | { | |
7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7088 | result = (wxPyXmlResourceHandler *)new wxPyXmlResourceHandler(); | |
7089 | wxPyEndAllowThreads(__tstate); | |
7090 | if (PyErr_Occurred()) SWIG_fail; | |
7091 | } | |
7092 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_NEW | 0 ); | |
7093 | return resultobj; | |
7094 | fail: | |
7095 | return NULL; | |
7096 | } | |
7097 | ||
7098 | ||
a08f21ce RD |
7099 | SWIGINTERN PyObject *_wrap_delete_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7100 | PyObject *resultobj = 0; | |
7101 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7102 | void *argp1 = 0 ; | |
7103 | int res1 = 0 ; | |
7104 | PyObject *swig_obj[1] ; | |
7105 | ||
7106 | if (!args) SWIG_fail; | |
7107 | swig_obj[0] = args; | |
7108 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 ); | |
7109 | if (!SWIG_IsOK(res1)) { | |
7110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResourceHandler" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7111 | } | |
7112 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7113 | { | |
7114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7115 | delete arg1; | |
7116 | ||
7117 | wxPyEndAllowThreads(__tstate); | |
7118 | if (PyErr_Occurred()) SWIG_fail; | |
7119 | } | |
7120 | resultobj = SWIG_Py_Void(); | |
7121 | return resultobj; | |
7122 | fail: | |
7123 | return NULL; | |
7124 | } | |
7125 | ||
7126 | ||
554f62e9 RD |
7127 | SWIGINTERN PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7128 | PyObject *resultobj = 0; | |
7129 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7130 | PyObject *arg2 = (PyObject *) 0 ; | |
7131 | PyObject *arg3 = (PyObject *) 0 ; | |
7132 | void *argp1 = 0 ; | |
7133 | int res1 = 0 ; | |
7134 | PyObject * obj0 = 0 ; | |
7135 | PyObject * obj1 = 0 ; | |
7136 | PyObject * obj2 = 0 ; | |
7137 | char * kwnames[] = { | |
7138 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
7139 | }; | |
7140 | ||
7141 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7142 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7143 | if (!SWIG_IsOK(res1)) { | |
7144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7145 | } | |
7146 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7147 | arg2 = obj1; | |
7148 | arg3 = obj2; | |
7149 | { | |
7150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7151 | (arg1)->_setCallbackInfo(arg2,arg3); | |
7152 | wxPyEndAllowThreads(__tstate); | |
7153 | if (PyErr_Occurred()) SWIG_fail; | |
7154 | } | |
7155 | resultobj = SWIG_Py_Void(); | |
7156 | return resultobj; | |
7157 | fail: | |
7158 | return NULL; | |
7159 | } | |
7160 | ||
7161 | ||
7162 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7163 | PyObject *resultobj = 0; | |
7164 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7165 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
7166 | wxObject *arg3 = (wxObject *) 0 ; | |
7167 | wxObject *arg4 = (wxObject *) 0 ; | |
7168 | wxObject *result = 0 ; | |
7169 | void *argp1 = 0 ; | |
7170 | int res1 = 0 ; | |
7171 | void *argp2 = 0 ; | |
7172 | int res2 = 0 ; | |
7173 | void *argp3 = 0 ; | |
7174 | int res3 = 0 ; | |
7175 | void *argp4 = 0 ; | |
7176 | int res4 = 0 ; | |
7177 | PyObject * obj0 = 0 ; | |
7178 | PyObject * obj1 = 0 ; | |
7179 | PyObject * obj2 = 0 ; | |
7180 | PyObject * obj3 = 0 ; | |
7181 | char * kwnames[] = { | |
7182 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
7183 | }; | |
7184 | ||
7185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7187 | if (!SWIG_IsOK(res1)) { | |
7188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7189 | } | |
7190 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7191 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7192 | if (!SWIG_IsOK(res2)) { | |
7193 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
7194 | } | |
7195 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
7196 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 ); | |
7197 | if (!SWIG_IsOK(res3)) { | |
7198 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "3"" of type '" "wxObject *""'"); | |
7199 | } | |
7200 | arg3 = reinterpret_cast< wxObject * >(argp3); | |
7201 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 ); | |
7202 | if (!SWIG_IsOK(res4)) { | |
7203 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "4"" of type '" "wxObject *""'"); | |
7204 | } | |
7205 | arg4 = reinterpret_cast< wxObject * >(argp4); | |
7206 | { | |
7207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7208 | result = (wxObject *)(arg1)->CreateResource(arg2,arg3,arg4); | |
7209 | wxPyEndAllowThreads(__tstate); | |
7210 | if (PyErr_Occurred()) SWIG_fail; | |
7211 | } | |
7212 | { | |
7213 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7214 | } | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetParentResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7222 | PyObject *resultobj = 0; | |
7223 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7224 | wxXmlResource *arg2 = (wxXmlResource *) 0 ; | |
7225 | void *argp1 = 0 ; | |
7226 | int res1 = 0 ; | |
7227 | void *argp2 = 0 ; | |
7228 | int res2 = 0 ; | |
7229 | PyObject * obj0 = 0 ; | |
7230 | PyObject * obj1 = 0 ; | |
7231 | char * kwnames[] = { | |
7232 | (char *) "self",(char *) "res", NULL | |
7233 | }; | |
7234 | ||
7235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames,&obj0,&obj1)) SWIG_fail; | |
7236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7237 | if (!SWIG_IsOK(res1)) { | |
7238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7239 | } | |
7240 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7241 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
7242 | if (!SWIG_IsOK(res2)) { | |
7243 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "2"" of type '" "wxXmlResource *""'"); | |
7244 | } | |
7245 | arg2 = reinterpret_cast< wxXmlResource * >(argp2); | |
7246 | { | |
7247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7248 | (arg1)->SetParentResource(arg2); | |
7249 | wxPyEndAllowThreads(__tstate); | |
7250 | if (PyErr_Occurred()) SWIG_fail; | |
7251 | } | |
7252 | resultobj = SWIG_Py_Void(); | |
7253 | return resultobj; | |
7254 | fail: | |
7255 | return NULL; | |
ae8162c8 RD |
7256 | } |
7257 | ||
7258 | ||
554f62e9 RD |
7259 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7260 | PyObject *resultobj = 0; | |
7261 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7262 | wxXmlResource *result = 0 ; | |
7263 | void *argp1 = 0 ; | |
7264 | int res1 = 0 ; | |
7265 | PyObject *swig_obj[1] ; | |
7266 | ||
7267 | if (!args) SWIG_fail; | |
7268 | swig_obj[0] = args; | |
7269 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7270 | if (!SWIG_IsOK(res1)) { | |
7271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7272 | } | |
7273 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7274 | { | |
7275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7276 | result = (wxXmlResource *)(arg1)->GetResource(); | |
7277 | wxPyEndAllowThreads(__tstate); | |
7278 | if (PyErr_Occurred()) SWIG_fail; | |
7279 | } | |
7280 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 ); | |
7281 | return resultobj; | |
7282 | fail: | |
7283 | return NULL; | |
ae8162c8 RD |
7284 | } |
7285 | ||
7286 | ||
554f62e9 RD |
7287 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7288 | PyObject *resultobj = 0; | |
7289 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7290 | wxXmlNode *result = 0 ; | |
7291 | void *argp1 = 0 ; | |
7292 | int res1 = 0 ; | |
7293 | PyObject *swig_obj[1] ; | |
7294 | ||
7295 | if (!args) SWIG_fail; | |
7296 | swig_obj[0] = args; | |
7297 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7298 | if (!SWIG_IsOK(res1)) { | |
7299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7300 | } | |
7301 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7302 | { | |
7303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7304 | result = (wxXmlNode *)(arg1)->GetNode(); | |
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
7308 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7309 | return resultobj; | |
7310 | fail: | |
7311 | return NULL; | |
ae8162c8 RD |
7312 | } |
7313 | ||
7314 | ||
554f62e9 RD |
7315 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7316 | PyObject *resultobj = 0; | |
7317 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7318 | wxString result; | |
7319 | void *argp1 = 0 ; | |
7320 | int res1 = 0 ; | |
7321 | PyObject *swig_obj[1] ; | |
7322 | ||
7323 | if (!args) SWIG_fail; | |
7324 | swig_obj[0] = args; | |
7325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7326 | if (!SWIG_IsOK(res1)) { | |
7327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7328 | } | |
7329 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7330 | { | |
7331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7332 | result = (arg1)->GetClass(); | |
7333 | wxPyEndAllowThreads(__tstate); | |
7334 | if (PyErr_Occurred()) SWIG_fail; | |
7335 | } | |
7336 | { | |
ae8162c8 | 7337 | #if wxUSE_UNICODE |
554f62e9 | 7338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 7339 | #else |
554f62e9 | 7340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
ae8162c8 | 7341 | #endif |
554f62e9 RD |
7342 | } |
7343 | return resultobj; | |
7344 | fail: | |
7345 | return NULL; | |
ae8162c8 RD |
7346 | } |
7347 | ||
7348 | ||
554f62e9 RD |
7349 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7350 | PyObject *resultobj = 0; | |
7351 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7352 | wxObject *result = 0 ; | |
7353 | void *argp1 = 0 ; | |
7354 | int res1 = 0 ; | |
7355 | PyObject *swig_obj[1] ; | |
7356 | ||
7357 | if (!args) SWIG_fail; | |
7358 | swig_obj[0] = args; | |
7359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7360 | if (!SWIG_IsOK(res1)) { | |
7361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7362 | } | |
7363 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (wxObject *)(arg1)->GetParent(); | |
7367 | wxPyEndAllowThreads(__tstate); | |
7368 | if (PyErr_Occurred()) SWIG_fail; | |
7369 | } | |
7370 | { | |
7371 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7372 | } | |
7373 | return resultobj; | |
7374 | fail: | |
7375 | return NULL; | |
ae8162c8 RD |
7376 | } |
7377 | ||
7378 | ||
554f62e9 RD |
7379 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7380 | PyObject *resultobj = 0; | |
7381 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7382 | wxObject *result = 0 ; | |
7383 | void *argp1 = 0 ; | |
7384 | int res1 = 0 ; | |
7385 | PyObject *swig_obj[1] ; | |
7386 | ||
7387 | if (!args) SWIG_fail; | |
7388 | swig_obj[0] = args; | |
7389 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7390 | if (!SWIG_IsOK(res1)) { | |
7391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetInstance" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7392 | } | |
7393 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7394 | { | |
7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7396 | result = (wxObject *)(arg1)->GetInstance(); | |
7397 | wxPyEndAllowThreads(__tstate); | |
7398 | if (PyErr_Occurred()) SWIG_fail; | |
7399 | } | |
7400 | { | |
7401 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7402 | } | |
7403 | return resultobj; | |
7404 | fail: | |
7405 | return NULL; | |
ae8162c8 RD |
7406 | } |
7407 | ||
7408 | ||
554f62e9 RD |
7409 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7410 | PyObject *resultobj = 0; | |
7411 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7412 | wxWindow *result = 0 ; | |
7413 | void *argp1 = 0 ; | |
7414 | int res1 = 0 ; | |
7415 | PyObject *swig_obj[1] ; | |
7416 | ||
7417 | if (!args) SWIG_fail; | |
7418 | swig_obj[0] = args; | |
7419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7420 | if (!SWIG_IsOK(res1)) { | |
7421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParentAsWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7422 | } | |
7423 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7424 | { | |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | result = (wxWindow *)(arg1)->GetParentAsWindow(); | |
7427 | wxPyEndAllowThreads(__tstate); | |
7428 | if (PyErr_Occurred()) SWIG_fail; | |
7429 | } | |
7430 | { | |
7431 | resultobj = wxPyMake_wxObject(result, 0); | |
7432 | } | |
7433 | return resultobj; | |
7434 | fail: | |
7435 | return NULL; | |
7436 | } | |
7437 | ||
7438 | ||
7439 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7440 | PyObject *resultobj = 0; | |
7441 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7442 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
7443 | wxString *arg3 = 0 ; | |
7444 | bool result; | |
7445 | void *argp1 = 0 ; | |
7446 | int res1 = 0 ; | |
7447 | void *argp2 = 0 ; | |
7448 | int res2 = 0 ; | |
7449 | bool temp3 = false ; | |
7450 | PyObject * obj0 = 0 ; | |
7451 | PyObject * obj1 = 0 ; | |
7452 | PyObject * obj2 = 0 ; | |
7453 | char * kwnames[] = { | |
7454 | (char *) "self",(char *) "node",(char *) "classname", NULL | |
7455 | }; | |
7456 | ||
7457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7459 | if (!SWIG_IsOK(res1)) { | |
7460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7461 | } | |
7462 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7463 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7464 | if (!SWIG_IsOK(res2)) { | |
7465 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
7466 | } | |
7467 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
7468 | { | |
7469 | arg3 = wxString_in_helper(obj2); | |
7470 | if (arg3 == NULL) SWIG_fail; | |
7471 | temp3 = true; | |
7472 | } | |
7473 | { | |
7474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7475 | result = (bool)(arg1)->IsOfClass(arg2,(wxString const &)*arg3); | |
7476 | wxPyEndAllowThreads(__tstate); | |
7477 | if (PyErr_Occurred()) SWIG_fail; | |
7478 | } | |
7479 | { | |
7480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7481 | } | |
7482 | { | |
7483 | if (temp3) | |
7484 | delete arg3; | |
7485 | } | |
7486 | return resultobj; | |
7487 | fail: | |
7488 | { | |
7489 | if (temp3) | |
7490 | delete arg3; | |
7491 | } | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
7496 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7497 | PyObject *resultobj = 0; | |
7498 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7499 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
7500 | wxString result; | |
7501 | void *argp1 = 0 ; | |
7502 | int res1 = 0 ; | |
7503 | void *argp2 = 0 ; | |
7504 | int res2 = 0 ; | |
7505 | PyObject * obj0 = 0 ; | |
7506 | PyObject * obj1 = 0 ; | |
7507 | char * kwnames[] = { | |
7508 | (char *) "self",(char *) "node", NULL | |
7509 | }; | |
7510 | ||
7511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
7512 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7513 | if (!SWIG_IsOK(res1)) { | |
7514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7515 | } | |
7516 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7517 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7518 | if (!SWIG_IsOK(res2)) { | |
7519 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
7520 | } | |
7521 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
7522 | { | |
7523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7524 | result = (arg1)->GetNodeContent(arg2); | |
7525 | wxPyEndAllowThreads(__tstate); | |
7526 | if (PyErr_Occurred()) SWIG_fail; | |
7527 | } | |
7528 | { | |
7529 | #if wxUSE_UNICODE | |
7530 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7531 | #else | |
7532 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7533 | #endif | |
7534 | } | |
7535 | return resultobj; | |
7536 | fail: | |
7537 | return NULL; | |
7538 | } | |
7539 | ||
7540 | ||
7541 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7542 | PyObject *resultobj = 0; | |
7543 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7544 | wxString *arg2 = 0 ; | |
7545 | bool result; | |
7546 | void *argp1 = 0 ; | |
7547 | int res1 = 0 ; | |
7548 | bool temp2 = false ; | |
7549 | PyObject * obj0 = 0 ; | |
7550 | PyObject * obj1 = 0 ; | |
7551 | char * kwnames[] = { | |
7552 | (char *) "self",(char *) "param", NULL | |
7553 | }; | |
7554 | ||
7555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_HasParam",kwnames,&obj0,&obj1)) SWIG_fail; | |
7556 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7557 | if (!SWIG_IsOK(res1)) { | |
7558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_HasParam" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7559 | } | |
7560 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7561 | { | |
7562 | arg2 = wxString_in_helper(obj1); | |
7563 | if (arg2 == NULL) SWIG_fail; | |
7564 | temp2 = true; | |
7565 | } | |
7566 | { | |
7567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7568 | result = (bool)(arg1)->HasParam((wxString const &)*arg2); | |
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
7572 | { | |
7573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7574 | } | |
7575 | { | |
7576 | if (temp2) | |
7577 | delete arg2; | |
7578 | } | |
7579 | return resultobj; | |
7580 | fail: | |
7581 | { | |
7582 | if (temp2) | |
7583 | delete arg2; | |
7584 | } | |
7585 | return NULL; | |
7586 | } | |
7587 | ||
7588 | ||
7589 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7590 | PyObject *resultobj = 0; | |
7591 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7592 | wxString *arg2 = 0 ; | |
7593 | wxXmlNode *result = 0 ; | |
7594 | void *argp1 = 0 ; | |
7595 | int res1 = 0 ; | |
7596 | bool temp2 = false ; | |
7597 | PyObject * obj0 = 0 ; | |
7598 | PyObject * obj1 = 0 ; | |
7599 | char * kwnames[] = { | |
7600 | (char *) "self",(char *) "param", NULL | |
7601 | }; | |
7602 | ||
7603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7605 | if (!SWIG_IsOK(res1)) { | |
7606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7607 | } | |
7608 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7609 | { | |
7610 | arg2 = wxString_in_helper(obj1); | |
7611 | if (arg2 == NULL) SWIG_fail; | |
7612 | temp2 = true; | |
7613 | } | |
7614 | { | |
7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7616 | result = (wxXmlNode *)(arg1)->GetParamNode((wxString const &)*arg2); | |
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
7621 | { | |
7622 | if (temp2) | |
7623 | delete arg2; | |
7624 | } | |
7625 | return resultobj; | |
7626 | fail: | |
7627 | { | |
7628 | if (temp2) | |
7629 | delete arg2; | |
7630 | } | |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
7635 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7636 | PyObject *resultobj = 0; | |
7637 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7638 | wxString *arg2 = 0 ; | |
7639 | wxString result; | |
7640 | void *argp1 = 0 ; | |
7641 | int res1 = 0 ; | |
7642 | bool temp2 = false ; | |
7643 | PyObject * obj0 = 0 ; | |
7644 | PyObject * obj1 = 0 ; | |
7645 | char * kwnames[] = { | |
7646 | (char *) "self",(char *) "param", NULL | |
7647 | }; | |
7648 | ||
7649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
7650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7651 | if (!SWIG_IsOK(res1)) { | |
7652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamValue" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7653 | } | |
7654 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7655 | { | |
7656 | arg2 = wxString_in_helper(obj1); | |
7657 | if (arg2 == NULL) SWIG_fail; | |
7658 | temp2 = true; | |
7659 | } | |
7660 | { | |
7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7662 | result = (arg1)->GetParamValue((wxString const &)*arg2); | |
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | { | |
7667 | #if wxUSE_UNICODE | |
7668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7669 | #else | |
7670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7671 | #endif | |
7672 | } | |
7673 | { | |
7674 | if (temp2) | |
7675 | delete arg2; | |
7676 | } | |
7677 | return resultobj; | |
7678 | fail: | |
7679 | { | |
7680 | if (temp2) | |
7681 | delete arg2; | |
7682 | } | |
7683 | return NULL; | |
7684 | } | |
7685 | ||
7686 | ||
7687 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7688 | PyObject *resultobj = 0; | |
7689 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7690 | wxString *arg2 = 0 ; | |
7691 | int arg3 ; | |
7692 | void *argp1 = 0 ; | |
7693 | int res1 = 0 ; | |
7694 | bool temp2 = false ; | |
7695 | int val3 ; | |
7696 | int ecode3 = 0 ; | |
7697 | PyObject * obj0 = 0 ; | |
7698 | PyObject * obj1 = 0 ; | |
7699 | PyObject * obj2 = 0 ; | |
7700 | char * kwnames[] = { | |
7701 | (char *) "self",(char *) "name",(char *) "value", NULL | |
7702 | }; | |
7703 | ||
7704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7706 | if (!SWIG_IsOK(res1)) { | |
7707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7708 | } | |
7709 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7710 | { | |
7711 | arg2 = wxString_in_helper(obj1); | |
7712 | if (arg2 == NULL) SWIG_fail; | |
7713 | temp2 = true; | |
7714 | } | |
7715 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7716 | if (!SWIG_IsOK(ecode3)) { | |
7717 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "3"" of type '" "int""'"); | |
7718 | } | |
7719 | arg3 = static_cast< int >(val3); | |
7720 | { | |
7721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722 | (arg1)->AddStyle((wxString const &)*arg2,arg3); | |
7723 | wxPyEndAllowThreads(__tstate); | |
7724 | if (PyErr_Occurred()) SWIG_fail; | |
7725 | } | |
7726 | resultobj = SWIG_Py_Void(); | |
7727 | { | |
7728 | if (temp2) | |
7729 | delete arg2; | |
7730 | } | |
7731 | return resultobj; | |
7732 | fail: | |
7733 | { | |
7734 | if (temp2) | |
7735 | delete arg2; | |
7736 | } | |
7737 | return NULL; | |
ae8162c8 RD |
7738 | } |
7739 | ||
7740 | ||
554f62e9 RD |
7741 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddWindowStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7742 | PyObject *resultobj = 0; | |
7743 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7744 | void *argp1 = 0 ; | |
7745 | int res1 = 0 ; | |
7746 | PyObject *swig_obj[1] ; | |
7747 | ||
7748 | if (!args) SWIG_fail; | |
7749 | swig_obj[0] = args; | |
7750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7751 | if (!SWIG_IsOK(res1)) { | |
7752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddWindowStyles" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7753 | } | |
7754 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7755 | { | |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | (arg1)->AddWindowStyles(); | |
7758 | wxPyEndAllowThreads(__tstate); | |
7759 | if (PyErr_Occurred()) SWIG_fail; | |
7760 | } | |
7761 | resultobj = SWIG_Py_Void(); | |
7762 | return resultobj; | |
7763 | fail: | |
7764 | return NULL; | |
7765 | } | |
7766 | ||
7767 | ||
7768 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7769 | PyObject *resultobj = 0; | |
7770 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7771 | wxString const &arg2_defvalue = wxPyStyleString ; | |
7772 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7773 | int arg3 = (int) 0 ; | |
7774 | int result; | |
7775 | void *argp1 = 0 ; | |
7776 | int res1 = 0 ; | |
7777 | bool temp2 = false ; | |
7778 | int val3 ; | |
7779 | int ecode3 = 0 ; | |
7780 | PyObject * obj0 = 0 ; | |
7781 | PyObject * obj1 = 0 ; | |
7782 | PyObject * obj2 = 0 ; | |
7783 | char * kwnames[] = { | |
7784 | (char *) "self",(char *) "param",(char *) "defaults", NULL | |
7785 | }; | |
7786 | ||
7787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7788 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7789 | if (!SWIG_IsOK(res1)) { | |
7790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7791 | } | |
7792 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7793 | if (obj1) { | |
ae8162c8 | 7794 | { |
554f62e9 RD |
7795 | arg2 = wxString_in_helper(obj1); |
7796 | if (arg2 == NULL) SWIG_fail; | |
7797 | temp2 = true; | |
ae8162c8 | 7798 | } |
554f62e9 RD |
7799 | } |
7800 | if (obj2) { | |
7801 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7802 | if (!SWIG_IsOK(ecode3)) { | |
7803 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "3"" of type '" "int""'"); | |
7804 | } | |
7805 | arg3 = static_cast< int >(val3); | |
7806 | } | |
7807 | { | |
7808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7809 | result = (int)(arg1)->GetStyle((wxString const &)*arg2,arg3); | |
7810 | wxPyEndAllowThreads(__tstate); | |
7811 | if (PyErr_Occurred()) SWIG_fail; | |
7812 | } | |
7813 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7814 | { | |
7815 | if (temp2) | |
7816 | delete arg2; | |
7817 | } | |
7818 | return resultobj; | |
7819 | fail: | |
7820 | { | |
7821 | if (temp2) | |
7822 | delete arg2; | |
7823 | } | |
7824 | return NULL; | |
7825 | } | |
7826 | ||
7827 | ||
7828 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7829 | PyObject *resultobj = 0; | |
7830 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7831 | wxString *arg2 = 0 ; | |
7832 | bool arg3 = (bool) true ; | |
7833 | wxString result; | |
7834 | void *argp1 = 0 ; | |
7835 | int res1 = 0 ; | |
7836 | bool temp2 = false ; | |
7837 | bool val3 ; | |
7838 | int ecode3 = 0 ; | |
7839 | PyObject * obj0 = 0 ; | |
7840 | PyObject * obj1 = 0 ; | |
7841 | PyObject * obj2 = 0 ; | |
7842 | char * kwnames[] = { | |
7843 | (char *) "self",(char *) "param",(char *) "translate", NULL | |
7844 | }; | |
7845 | ||
7846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7848 | if (!SWIG_IsOK(res1)) { | |
7849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetText" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7850 | } | |
7851 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7852 | { | |
7853 | arg2 = wxString_in_helper(obj1); | |
7854 | if (arg2 == NULL) SWIG_fail; | |
7855 | temp2 = true; | |
7856 | } | |
7857 | if (obj2) { | |
7858 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7859 | if (!SWIG_IsOK(ecode3)) { | |
7860 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetText" "', expected argument " "3"" of type '" "bool""'"); | |
7861 | } | |
7862 | arg3 = static_cast< bool >(val3); | |
7863 | } | |
7864 | { | |
7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7866 | result = (arg1)->GetText((wxString const &)*arg2,arg3); | |
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | { | |
7871 | #if wxUSE_UNICODE | |
7872 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7873 | #else | |
7874 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7875 | #endif | |
7876 | } | |
7877 | { | |
7878 | if (temp2) | |
7879 | delete arg2; | |
7880 | } | |
7881 | return resultobj; | |
7882 | fail: | |
7883 | { | |
7884 | if (temp2) | |
7885 | delete arg2; | |
7886 | } | |
7887 | return NULL; | |
ae8162c8 RD |
7888 | } |
7889 | ||
7890 | ||
554f62e9 RD |
7891 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7892 | PyObject *resultobj = 0; | |
7893 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7894 | int result; | |
7895 | void *argp1 = 0 ; | |
7896 | int res1 = 0 ; | |
7897 | PyObject *swig_obj[1] ; | |
7898 | ||
7899 | if (!args) SWIG_fail; | |
7900 | swig_obj[0] = args; | |
7901 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7902 | if (!SWIG_IsOK(res1)) { | |
7903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetID" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7904 | } | |
7905 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7906 | { | |
7907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7908 | result = (int)(arg1)->GetID(); | |
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
7912 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7913 | return resultobj; | |
7914 | fail: | |
7915 | return NULL; | |
ae8162c8 RD |
7916 | } |
7917 | ||
7918 | ||
554f62e9 RD |
7919 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7920 | PyObject *resultobj = 0; | |
7921 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7922 | wxString result; | |
7923 | void *argp1 = 0 ; | |
7924 | int res1 = 0 ; | |
7925 | PyObject *swig_obj[1] ; | |
7926 | ||
7927 | if (!args) SWIG_fail; | |
7928 | swig_obj[0] = args; | |
7929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7930 | if (!SWIG_IsOK(res1)) { | |
7931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetName" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7932 | } | |
7933 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7934 | { | |
7935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7936 | result = (arg1)->GetName(); | |
7937 | wxPyEndAllowThreads(__tstate); | |
7938 | if (PyErr_Occurred()) SWIG_fail; | |
7939 | } | |
7940 | { | |
7941 | #if wxUSE_UNICODE | |
7942 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7943 | #else | |
7944 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7945 | #endif | |
7946 | } | |
7947 | return resultobj; | |
7948 | fail: | |
7949 | return NULL; | |
7950 | } | |
7951 | ||
7952 | ||
7953 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7954 | PyObject *resultobj = 0; | |
7955 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
7956 | wxString *arg2 = 0 ; | |
7957 | bool arg3 = (bool) false ; | |
7958 | bool result; | |
7959 | void *argp1 = 0 ; | |
7960 | int res1 = 0 ; | |
7961 | bool temp2 = false ; | |
7962 | bool val3 ; | |
7963 | int ecode3 = 0 ; | |
7964 | PyObject * obj0 = 0 ; | |
7965 | PyObject * obj1 = 0 ; | |
7966 | PyObject * obj2 = 0 ; | |
7967 | char * kwnames[] = { | |
7968 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
7969 | }; | |
7970 | ||
7971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
7973 | if (!SWIG_IsOK(res1)) { | |
7974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
7975 | } | |
7976 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
7977 | { | |
7978 | arg2 = wxString_in_helper(obj1); | |
7979 | if (arg2 == NULL) SWIG_fail; | |
7980 | temp2 = true; | |
7981 | } | |
7982 | if (obj2) { | |
7983 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7984 | if (!SWIG_IsOK(ecode3)) { | |
7985 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "3"" of type '" "bool""'"); | |
7986 | } | |
7987 | arg3 = static_cast< bool >(val3); | |
7988 | } | |
7989 | { | |
7990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7991 | result = (bool)(arg1)->GetBool((wxString const &)*arg2,arg3); | |
7992 | wxPyEndAllowThreads(__tstate); | |
7993 | if (PyErr_Occurred()) SWIG_fail; | |
7994 | } | |
7995 | { | |
7996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7997 | } | |
7998 | { | |
7999 | if (temp2) | |
8000 | delete arg2; | |
8001 | } | |
8002 | return resultobj; | |
8003 | fail: | |
8004 | { | |
8005 | if (temp2) | |
8006 | delete arg2; | |
8007 | } | |
8008 | return NULL; | |
8009 | } | |
8010 | ||
8011 | ||
8012 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8013 | PyObject *resultobj = 0; | |
8014 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8015 | wxString *arg2 = 0 ; | |
8016 | long arg3 = (long) 0 ; | |
8017 | long result; | |
8018 | void *argp1 = 0 ; | |
8019 | int res1 = 0 ; | |
8020 | bool temp2 = false ; | |
8021 | long val3 ; | |
8022 | int ecode3 = 0 ; | |
8023 | PyObject * obj0 = 0 ; | |
8024 | PyObject * obj1 = 0 ; | |
8025 | PyObject * obj2 = 0 ; | |
8026 | char * kwnames[] = { | |
8027 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
8028 | }; | |
8029 | ||
8030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8032 | if (!SWIG_IsOK(res1)) { | |
8033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8034 | } | |
8035 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8036 | { | |
8037 | arg2 = wxString_in_helper(obj1); | |
8038 | if (arg2 == NULL) SWIG_fail; | |
8039 | temp2 = true; | |
8040 | } | |
8041 | if (obj2) { | |
8042 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8043 | if (!SWIG_IsOK(ecode3)) { | |
8044 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "3"" of type '" "long""'"); | |
8045 | } | |
8046 | arg3 = static_cast< long >(val3); | |
8047 | } | |
8048 | { | |
8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8050 | result = (long)(arg1)->GetLong((wxString const &)*arg2,arg3); | |
8051 | wxPyEndAllowThreads(__tstate); | |
8052 | if (PyErr_Occurred()) SWIG_fail; | |
8053 | } | |
8054 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8055 | { | |
8056 | if (temp2) | |
8057 | delete arg2; | |
8058 | } | |
8059 | return resultobj; | |
8060 | fail: | |
8061 | { | |
8062 | if (temp2) | |
8063 | delete arg2; | |
8064 | } | |
8065 | return NULL; | |
8066 | } | |
8067 | ||
8068 | ||
8069 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8070 | PyObject *resultobj = 0; | |
8071 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8072 | wxString *arg2 = 0 ; | |
8073 | wxColour result; | |
8074 | void *argp1 = 0 ; | |
8075 | int res1 = 0 ; | |
8076 | bool temp2 = false ; | |
8077 | PyObject * obj0 = 0 ; | |
8078 | PyObject * obj1 = 0 ; | |
8079 | char * kwnames[] = { | |
8080 | (char *) "self",(char *) "param", NULL | |
8081 | }; | |
8082 | ||
8083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
8084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8085 | if (!SWIG_IsOK(res1)) { | |
8086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetColour" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8087 | } | |
8088 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8089 | { | |
8090 | arg2 = wxString_in_helper(obj1); | |
8091 | if (arg2 == NULL) SWIG_fail; | |
8092 | temp2 = true; | |
8093 | } | |
8094 | { | |
8095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8096 | result = (arg1)->GetColour((wxString const &)*arg2); | |
8097 | wxPyEndAllowThreads(__tstate); | |
8098 | if (PyErr_Occurred()) SWIG_fail; | |
8099 | } | |
8100 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
8101 | { | |
8102 | if (temp2) | |
8103 | delete arg2; | |
8104 | } | |
8105 | return resultobj; | |
8106 | fail: | |
8107 | { | |
8108 | if (temp2) | |
8109 | delete arg2; | |
8110 | } | |
8111 | return NULL; | |
8112 | } | |
8113 | ||
8114 | ||
8115 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8116 | PyObject *resultobj = 0; | |
8117 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8118 | wxString const &arg2_defvalue = wxPySizeString ; | |
8119 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8120 | wxSize result; | |
8121 | void *argp1 = 0 ; | |
8122 | int res1 = 0 ; | |
8123 | bool temp2 = false ; | |
8124 | PyObject * obj0 = 0 ; | |
8125 | PyObject * obj1 = 0 ; | |
8126 | char * kwnames[] = { | |
8127 | (char *) "self",(char *) "param", NULL | |
8128 | }; | |
8129 | ||
8130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
8131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8132 | if (!SWIG_IsOK(res1)) { | |
8133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetSize" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8134 | } | |
8135 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8136 | if (obj1) { | |
ae8162c8 | 8137 | { |
554f62e9 RD |
8138 | arg2 = wxString_in_helper(obj1); |
8139 | if (arg2 == NULL) SWIG_fail; | |
8140 | temp2 = true; | |
ae8162c8 | 8141 | } |
554f62e9 RD |
8142 | } |
8143 | { | |
8144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8145 | result = (arg1)->GetSize((wxString const &)*arg2); | |
8146 | wxPyEndAllowThreads(__tstate); | |
8147 | if (PyErr_Occurred()) SWIG_fail; | |
8148 | } | |
8149 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
8150 | { | |
8151 | if (temp2) | |
8152 | delete arg2; | |
8153 | } | |
8154 | return resultobj; | |
8155 | fail: | |
8156 | { | |
8157 | if (temp2) | |
8158 | delete arg2; | |
8159 | } | |
8160 | return NULL; | |
8161 | } | |
8162 | ||
8163 | ||
8164 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8165 | PyObject *resultobj = 0; | |
8166 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8167 | wxString const &arg2_defvalue = wxPyPosString ; | |
8168 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8169 | wxPoint result; | |
8170 | void *argp1 = 0 ; | |
8171 | int res1 = 0 ; | |
8172 | bool temp2 = false ; | |
8173 | PyObject * obj0 = 0 ; | |
8174 | PyObject * obj1 = 0 ; | |
8175 | char * kwnames[] = { | |
8176 | (char *) "self",(char *) "param", NULL | |
8177 | }; | |
8178 | ||
8179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
8180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8181 | if (!SWIG_IsOK(res1)) { | |
8182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetPosition" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8183 | } | |
8184 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8185 | if (obj1) { | |
ae8162c8 | 8186 | { |
554f62e9 RD |
8187 | arg2 = wxString_in_helper(obj1); |
8188 | if (arg2 == NULL) SWIG_fail; | |
8189 | temp2 = true; | |
ae8162c8 | 8190 | } |
554f62e9 RD |
8191 | } |
8192 | { | |
8193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8194 | result = (arg1)->GetPosition((wxString const &)*arg2); | |
8195 | wxPyEndAllowThreads(__tstate); | |
8196 | if (PyErr_Occurred()) SWIG_fail; | |
8197 | } | |
8198 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
8199 | { | |
8200 | if (temp2) | |
8201 | delete arg2; | |
8202 | } | |
8203 | return resultobj; | |
8204 | fail: | |
8205 | { | |
8206 | if (temp2) | |
8207 | delete arg2; | |
8208 | } | |
8209 | return NULL; | |
8210 | } | |
8211 | ||
8212 | ||
8213 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8214 | PyObject *resultobj = 0; | |
8215 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8216 | wxString *arg2 = 0 ; | |
8217 | int arg3 = (int) 0 ; | |
8218 | int result; | |
8219 | void *argp1 = 0 ; | |
8220 | int res1 = 0 ; | |
8221 | bool temp2 = false ; | |
8222 | int val3 ; | |
8223 | int ecode3 = 0 ; | |
8224 | PyObject * obj0 = 0 ; | |
8225 | PyObject * obj1 = 0 ; | |
8226 | PyObject * obj2 = 0 ; | |
8227 | char * kwnames[] = { | |
8228 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
8229 | }; | |
8230 | ||
8231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8232 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8233 | if (!SWIG_IsOK(res1)) { | |
8234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8235 | } | |
8236 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8237 | { | |
8238 | arg2 = wxString_in_helper(obj1); | |
8239 | if (arg2 == NULL) SWIG_fail; | |
8240 | temp2 = true; | |
8241 | } | |
8242 | if (obj2) { | |
8243 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8244 | if (!SWIG_IsOK(ecode3)) { | |
8245 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "3"" of type '" "int""'"); | |
8246 | } | |
8247 | arg3 = static_cast< int >(val3); | |
8248 | } | |
8249 | { | |
8250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8251 | result = (int)(arg1)->GetDimension((wxString const &)*arg2,arg3); | |
8252 | wxPyEndAllowThreads(__tstate); | |
8253 | if (PyErr_Occurred()) SWIG_fail; | |
8254 | } | |
8255 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8256 | { | |
8257 | if (temp2) | |
8258 | delete arg2; | |
8259 | } | |
8260 | return resultobj; | |
8261 | fail: | |
8262 | { | |
8263 | if (temp2) | |
8264 | delete arg2; | |
8265 | } | |
8266 | return NULL; | |
8267 | } | |
8268 | ||
8269 | ||
8270 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8271 | PyObject *resultobj = 0; | |
8272 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8273 | wxString const &arg2_defvalue = wxPyBitmapString ; | |
8274 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8275 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
8276 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
8277 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
8278 | wxBitmap result; | |
8279 | void *argp1 = 0 ; | |
8280 | int res1 = 0 ; | |
8281 | bool temp2 = false ; | |
8282 | void *argp3 = 0 ; | |
8283 | int res3 = 0 ; | |
8284 | void *argp4 ; | |
8285 | int res4 = 0 ; | |
8286 | PyObject * obj0 = 0 ; | |
8287 | PyObject * obj1 = 0 ; | |
8288 | PyObject * obj2 = 0 ; | |
8289 | PyObject * obj3 = 0 ; | |
8290 | char * kwnames[] = { | |
8291 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
8292 | }; | |
8293 | ||
8294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8296 | if (!SWIG_IsOK(res1)) { | |
8297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8298 | } | |
8299 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8300 | if (obj1) { | |
ae8162c8 | 8301 | { |
554f62e9 RD |
8302 | arg2 = wxString_in_helper(obj1); |
8303 | if (arg2 == NULL) SWIG_fail; | |
8304 | temp2 = true; | |
ae8162c8 | 8305 | } |
554f62e9 RD |
8306 | } |
8307 | if (obj2) { | |
8308 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0); | |
8309 | if (!SWIG_IsOK(res3)) { | |
8310 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
ae8162c8 | 8311 | } |
554f62e9 RD |
8312 | if (!argp3) { |
8313 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
ae8162c8 | 8314 | } |
554f62e9 RD |
8315 | arg3 = reinterpret_cast< wxArtClient * >(argp3); |
8316 | } | |
8317 | if (obj3) { | |
8318 | { | |
8319 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0); | |
8320 | if (!SWIG_IsOK(res4)) { | |
8321 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'"); | |
8322 | } | |
8323 | if (!argp4) { | |
8324 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'"); | |
8325 | } else { | |
8326 | wxSize * temp = reinterpret_cast< wxSize * >(argp4); | |
8327 | arg4 = *temp; | |
8328 | if (SWIG_IsNewObj(res4)) delete temp; | |
8329 | } | |
ae8162c8 | 8330 | } |
554f62e9 RD |
8331 | } |
8332 | { | |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | result = (arg1)->GetBitmap((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
8335 | wxPyEndAllowThreads(__tstate); | |
8336 | if (PyErr_Occurred()) SWIG_fail; | |
8337 | } | |
8338 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8339 | { | |
8340 | if (temp2) | |
8341 | delete arg2; | |
8342 | } | |
8343 | return resultobj; | |
8344 | fail: | |
8345 | { | |
8346 | if (temp2) | |
8347 | delete arg2; | |
8348 | } | |
8349 | return NULL; | |
8350 | } | |
8351 | ||
8352 | ||
8353 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8354 | PyObject *resultobj = 0; | |
8355 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8356 | wxString const &arg2_defvalue = wxPyIconString ; | |
8357 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8358 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
8359 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
8360 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
8361 | wxIcon result; | |
8362 | void *argp1 = 0 ; | |
8363 | int res1 = 0 ; | |
8364 | bool temp2 = false ; | |
8365 | void *argp3 = 0 ; | |
8366 | int res3 = 0 ; | |
8367 | void *argp4 ; | |
8368 | int res4 = 0 ; | |
8369 | PyObject * obj0 = 0 ; | |
8370 | PyObject * obj1 = 0 ; | |
8371 | PyObject * obj2 = 0 ; | |
8372 | PyObject * obj3 = 0 ; | |
8373 | char * kwnames[] = { | |
8374 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
8375 | }; | |
8376 | ||
8377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8379 | if (!SWIG_IsOK(res1)) { | |
8380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8381 | } | |
8382 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8383 | if (obj1) { | |
ae8162c8 | 8384 | { |
554f62e9 RD |
8385 | arg2 = wxString_in_helper(obj1); |
8386 | if (arg2 == NULL) SWIG_fail; | |
8387 | temp2 = true; | |
ae8162c8 | 8388 | } |
554f62e9 RD |
8389 | } |
8390 | if (obj2) { | |
8391 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0); | |
8392 | if (!SWIG_IsOK(res3)) { | |
8393 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
ae8162c8 | 8394 | } |
554f62e9 RD |
8395 | if (!argp3) { |
8396 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'"); | |
ae8162c8 | 8397 | } |
554f62e9 RD |
8398 | arg3 = reinterpret_cast< wxArtClient * >(argp3); |
8399 | } | |
8400 | if (obj3) { | |
8401 | { | |
8402 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0); | |
8403 | if (!SWIG_IsOK(res4)) { | |
8404 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'"); | |
8405 | } | |
8406 | if (!argp4) { | |
8407 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'"); | |
8408 | } else { | |
8409 | wxSize * temp = reinterpret_cast< wxSize * >(argp4); | |
8410 | arg4 = *temp; | |
8411 | if (SWIG_IsNewObj(res4)) delete temp; | |
8412 | } | |
ae8162c8 | 8413 | } |
554f62e9 RD |
8414 | } |
8415 | { | |
8416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8417 | result = (arg1)->GetIcon((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
8418 | wxPyEndAllowThreads(__tstate); | |
8419 | if (PyErr_Occurred()) SWIG_fail; | |
8420 | } | |
8421 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
8422 | { | |
8423 | if (temp2) | |
8424 | delete arg2; | |
8425 | } | |
8426 | return resultobj; | |
8427 | fail: | |
8428 | { | |
8429 | if (temp2) | |
8430 | delete arg2; | |
8431 | } | |
8432 | return NULL; | |
8433 | } | |
8434 | ||
8435 | ||
8436 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8437 | PyObject *resultobj = 0; | |
8438 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8439 | wxString const &arg2_defvalue = wxPyFontString ; | |
8440 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8441 | wxFont result; | |
8442 | void *argp1 = 0 ; | |
8443 | int res1 = 0 ; | |
8444 | bool temp2 = false ; | |
8445 | PyObject * obj0 = 0 ; | |
8446 | PyObject * obj1 = 0 ; | |
8447 | char * kwnames[] = { | |
8448 | (char *) "self",(char *) "param", NULL | |
8449 | }; | |
8450 | ||
8451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
8452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8453 | if (!SWIG_IsOK(res1)) { | |
8454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetFont" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8455 | } | |
8456 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8457 | if (obj1) { | |
ae8162c8 | 8458 | { |
554f62e9 RD |
8459 | arg2 = wxString_in_helper(obj1); |
8460 | if (arg2 == NULL) SWIG_fail; | |
8461 | temp2 = true; | |
ae8162c8 | 8462 | } |
554f62e9 RD |
8463 | } |
8464 | { | |
8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8466 | result = (arg1)->GetFont((wxString const &)*arg2); | |
8467 | wxPyEndAllowThreads(__tstate); | |
8468 | if (PyErr_Occurred()) SWIG_fail; | |
8469 | } | |
8470 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
8471 | { | |
8472 | if (temp2) | |
8473 | delete arg2; | |
8474 | } | |
8475 | return resultobj; | |
8476 | fail: | |
8477 | { | |
8478 | if (temp2) | |
8479 | delete arg2; | |
8480 | } | |
8481 | return NULL; | |
8482 | } | |
8483 | ||
8484 | ||
0a27f394 RD |
8485 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetAnimation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8486 | PyObject *resultobj = 0; | |
8487 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8488 | wxString const &arg2_defvalue = wxPyAnimationString ; | |
8489 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8490 | wxAnimation result; | |
8491 | void *argp1 = 0 ; | |
8492 | int res1 = 0 ; | |
8493 | bool temp2 = false ; | |
8494 | PyObject * obj0 = 0 ; | |
8495 | PyObject * obj1 = 0 ; | |
8496 | char * kwnames[] = { | |
8497 | (char *) "self",(char *) "param", NULL | |
8498 | }; | |
8499 | ||
8500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetAnimation",kwnames,&obj0,&obj1)) SWIG_fail; | |
8501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8502 | if (!SWIG_IsOK(res1)) { | |
8503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetAnimation" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8504 | } | |
8505 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8506 | if (obj1) { | |
8507 | { | |
8508 | arg2 = wxString_in_helper(obj1); | |
8509 | if (arg2 == NULL) SWIG_fail; | |
8510 | temp2 = true; | |
8511 | } | |
8512 | } | |
8513 | { | |
8514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8515 | result = (arg1)->GetAnimation((wxString const &)*arg2); | |
8516 | wxPyEndAllowThreads(__tstate); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | } | |
8519 | resultobj = SWIG_NewPointerObj((new wxAnimation(static_cast< const wxAnimation& >(result))), SWIGTYPE_p_wxAnimation, SWIG_POINTER_OWN | 0 ); | |
8520 | { | |
8521 | if (temp2) | |
8522 | delete arg2; | |
8523 | } | |
8524 | return resultobj; | |
8525 | fail: | |
8526 | { | |
8527 | if (temp2) | |
8528 | delete arg2; | |
8529 | } | |
8530 | return NULL; | |
8531 | } | |
8532 | ||
8533 | ||
554f62e9 RD |
8534 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8535 | PyObject *resultobj = 0; | |
8536 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8537 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8538 | void *argp1 = 0 ; | |
8539 | int res1 = 0 ; | |
8540 | void *argp2 = 0 ; | |
8541 | int res2 = 0 ; | |
8542 | PyObject * obj0 = 0 ; | |
8543 | PyObject * obj1 = 0 ; | |
8544 | char * kwnames[] = { | |
8545 | (char *) "self",(char *) "wnd", NULL | |
8546 | }; | |
8547 | ||
8548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
8549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8550 | if (!SWIG_IsOK(res1)) { | |
8551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8552 | } | |
8553 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8554 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8555 | if (!SWIG_IsOK(res2)) { | |
8556 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8557 | } | |
8558 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8559 | { | |
8560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8561 | (arg1)->SetupWindow(arg2); | |
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
8565 | resultobj = SWIG_Py_Void(); | |
8566 | return resultobj; | |
8567 | fail: | |
8568 | return NULL; | |
8569 | } | |
8570 | ||
8571 | ||
8572 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8573 | PyObject *resultobj = 0; | |
8574 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8575 | wxObject *arg2 = (wxObject *) 0 ; | |
8576 | bool arg3 = (bool) false ; | |
8577 | void *argp1 = 0 ; | |
8578 | int res1 = 0 ; | |
8579 | void *argp2 = 0 ; | |
8580 | int res2 = 0 ; | |
8581 | bool val3 ; | |
8582 | int ecode3 = 0 ; | |
8583 | PyObject * obj0 = 0 ; | |
8584 | PyObject * obj1 = 0 ; | |
8585 | PyObject * obj2 = 0 ; | |
8586 | char * kwnames[] = { | |
8587 | (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL | |
8588 | }; | |
8589 | ||
8590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8592 | if (!SWIG_IsOK(res1)) { | |
8593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8594 | } | |
8595 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8596 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8597 | if (!SWIG_IsOK(res2)) { | |
8598 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "2"" of type '" "wxObject *""'"); | |
8599 | } | |
8600 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
8601 | if (obj2) { | |
8602 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
8603 | if (!SWIG_IsOK(ecode3)) { | |
8604 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "3"" of type '" "bool""'"); | |
8605 | } | |
8606 | arg3 = static_cast< bool >(val3); | |
8607 | } | |
8608 | { | |
8609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8610 | (arg1)->CreateChildren(arg2,arg3); | |
8611 | wxPyEndAllowThreads(__tstate); | |
8612 | if (PyErr_Occurred()) SWIG_fail; | |
8613 | } | |
8614 | resultobj = SWIG_Py_Void(); | |
8615 | return resultobj; | |
8616 | fail: | |
8617 | return NULL; | |
8618 | } | |
8619 | ||
8620 | ||
8621 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8622 | PyObject *resultobj = 0; | |
8623 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8624 | wxObject *arg2 = (wxObject *) 0 ; | |
8625 | wxXmlNode *arg3 = (wxXmlNode *) NULL ; | |
8626 | void *argp1 = 0 ; | |
8627 | int res1 = 0 ; | |
8628 | void *argp2 = 0 ; | |
8629 | int res2 = 0 ; | |
8630 | void *argp3 = 0 ; | |
8631 | int res3 = 0 ; | |
8632 | PyObject * obj0 = 0 ; | |
8633 | PyObject * obj1 = 0 ; | |
8634 | PyObject * obj2 = 0 ; | |
8635 | char * kwnames[] = { | |
8636 | (char *) "self",(char *) "parent",(char *) "rootnode", NULL | |
8637 | }; | |
8638 | ||
8639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8641 | if (!SWIG_IsOK(res1)) { | |
8642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8643 | } | |
8644 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8645 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8646 | if (!SWIG_IsOK(res2)) { | |
8647 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "2"" of type '" "wxObject *""'"); | |
8648 | } | |
8649 | arg2 = reinterpret_cast< wxObject * >(argp2); | |
8650 | if (obj2) { | |
8651 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
8652 | if (!SWIG_IsOK(res3)) { | |
8653 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "3"" of type '" "wxXmlNode *""'"); | |
ae8162c8 | 8654 | } |
554f62e9 RD |
8655 | arg3 = reinterpret_cast< wxXmlNode * >(argp3); |
8656 | } | |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | (arg1)->CreateChildrenPrivately(arg2,arg3); | |
8660 | wxPyEndAllowThreads(__tstate); | |
8661 | if (PyErr_Occurred()) SWIG_fail; | |
8662 | } | |
8663 | resultobj = SWIG_Py_Void(); | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | return NULL; | |
8667 | } | |
8668 | ||
8669 | ||
8670 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj = 0; | |
8672 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8673 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
8674 | wxObject *arg3 = (wxObject *) 0 ; | |
8675 | wxObject *arg4 = (wxObject *) NULL ; | |
8676 | wxObject *result = 0 ; | |
8677 | void *argp1 = 0 ; | |
8678 | int res1 = 0 ; | |
8679 | void *argp2 = 0 ; | |
8680 | int res2 = 0 ; | |
8681 | void *argp3 = 0 ; | |
8682 | int res3 = 0 ; | |
8683 | void *argp4 = 0 ; | |
8684 | int res4 = 0 ; | |
8685 | PyObject * obj0 = 0 ; | |
8686 | PyObject * obj1 = 0 ; | |
8687 | PyObject * obj2 = 0 ; | |
8688 | PyObject * obj3 = 0 ; | |
8689 | char * kwnames[] = { | |
8690 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
8691 | }; | |
8692 | ||
8693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8695 | if (!SWIG_IsOK(res1)) { | |
8696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8697 | } | |
8698 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8699 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 ); | |
8700 | if (!SWIG_IsOK(res2)) { | |
8701 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "2"" of type '" "wxXmlNode *""'"); | |
8702 | } | |
8703 | arg2 = reinterpret_cast< wxXmlNode * >(argp2); | |
8704 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8705 | if (!SWIG_IsOK(res3)) { | |
8706 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "3"" of type '" "wxObject *""'"); | |
8707 | } | |
8708 | arg3 = reinterpret_cast< wxObject * >(argp3); | |
8709 | if (obj3) { | |
8710 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 ); | |
8711 | if (!SWIG_IsOK(res4)) { | |
8712 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "4"" of type '" "wxObject *""'"); | |
ae8162c8 | 8713 | } |
554f62e9 RD |
8714 | arg4 = reinterpret_cast< wxObject * >(argp4); |
8715 | } | |
8716 | { | |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | result = (wxObject *)(arg1)->CreateResFromNode(arg2,arg3,arg4); | |
8719 | wxPyEndAllowThreads(__tstate); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
8722 | { | |
8723 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
8724 | } | |
8725 | return resultobj; | |
8726 | fail: | |
8727 | return NULL; | |
ae8162c8 RD |
8728 | } |
8729 | ||
8730 | ||
554f62e9 RD |
8731 | SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetCurFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8732 | PyObject *resultobj = 0; | |
8733 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
8734 | wxFileSystem *result = 0 ; | |
8735 | void *argp1 = 0 ; | |
8736 | int res1 = 0 ; | |
8737 | PyObject *swig_obj[1] ; | |
8738 | ||
8739 | if (!args) SWIG_fail; | |
8740 | swig_obj[0] = args; | |
8741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 ); | |
8742 | if (!SWIG_IsOK(res1)) { | |
8743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetCurFileSystem" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'"); | |
8744 | } | |
8745 | arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1); | |
8746 | { | |
8747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ae8162c8 | 8748 | { |
554f62e9 RD |
8749 | wxFileSystem &_result_ref = (arg1)->GetCurFileSystem(); |
8750 | result = (wxFileSystem *) &_result_ref; | |
ae8162c8 | 8751 | } |
554f62e9 RD |
8752 | wxPyEndAllowThreads(__tstate); |
8753 | if (PyErr_Occurred()) SWIG_fail; | |
8754 | } | |
8755 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
8756 | return resultobj; | |
8757 | fail: | |
8758 | return NULL; | |
ae8162c8 RD |
8759 | } |
8760 | ||
8761 | ||
554f62e9 RD |
8762 | SWIGINTERN PyObject *XmlResourceHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8763 | PyObject *obj; | |
8764 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8765 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_NewClientData(obj)); | |
8766 | return SWIG_Py_Void(); | |
ae8162c8 RD |
8767 | } |
8768 | ||
554f62e9 RD |
8769 | SWIGINTERN PyObject *XmlResourceHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8770 | return SWIG_Python_InitShadowInstance(args); | |
ae8162c8 RD |
8771 | } |
8772 | ||
ae8162c8 | 8773 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
8774 | { (char *)"new_XmlResource", (PyCFunction) _wrap_new_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL}, |
8775 | { (char *)"new_EmptyXmlResource", (PyCFunction) _wrap_new_EmptyXmlResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 8776 | { (char *)"delete_XmlResource", (PyCFunction)_wrap_delete_XmlResource, METH_O, NULL}, |
0a27f394 | 8777 | { (char *)"XmlResource_GetFirstRoot", (PyCFunction)_wrap_XmlResource_GetFirstRoot, METH_O, NULL}, |
093d3ff1 RD |
8778 | { (char *)"XmlResource_Load", (PyCFunction) _wrap_XmlResource_Load, METH_VARARGS | METH_KEYWORDS, NULL}, |
8779 | { (char *)"XmlResource_LoadFromString", (PyCFunction) _wrap_XmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9d7dfdff | 8780 | { (char *)"XmlResource_Unload", (PyCFunction) _wrap_XmlResource_Unload, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 8781 | { (char *)"XmlResource_InitAllHandlers", (PyCFunction)_wrap_XmlResource_InitAllHandlers, METH_O, NULL}, |
093d3ff1 RD |
8782 | { (char *)"XmlResource_AddHandler", (PyCFunction) _wrap_XmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, |
8783 | { (char *)"XmlResource_InsertHandler", (PyCFunction) _wrap_XmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 8784 | { (char *)"XmlResource_ClearHandlers", (PyCFunction)_wrap_XmlResource_ClearHandlers, METH_O, NULL}, |
093d3ff1 RD |
8785 | { (char *)"XmlResource_AddSubclassFactory", (PyCFunction) _wrap_XmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
8786 | { (char *)"XmlResource_LoadMenu", (PyCFunction) _wrap_XmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8787 | { (char *)"XmlResource_LoadMenuBar", (PyCFunction) _wrap_XmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8788 | { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_XmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8789 | { (char *)"XmlResource_LoadToolBar", (PyCFunction) _wrap_XmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8790 | { (char *)"XmlResource_LoadDialog", (PyCFunction) _wrap_XmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8791 | { (char *)"XmlResource_LoadOnDialog", (PyCFunction) _wrap_XmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8792 | { (char *)"XmlResource_LoadPanel", (PyCFunction) _wrap_XmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8793 | { (char *)"XmlResource_LoadOnPanel", (PyCFunction) _wrap_XmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8794 | { (char *)"XmlResource_LoadFrame", (PyCFunction) _wrap_XmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8795 | { (char *)"XmlResource_LoadOnFrame", (PyCFunction) _wrap_XmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8796 | { (char *)"XmlResource_LoadObject", (PyCFunction) _wrap_XmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8797 | { (char *)"XmlResource_LoadOnObject", (PyCFunction) _wrap_XmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8798 | { (char *)"XmlResource_LoadBitmap", (PyCFunction) _wrap_XmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8799 | { (char *)"XmlResource_LoadIcon", (PyCFunction) _wrap_XmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8800 | { (char *)"XmlResource_AttachUnknownControl", (PyCFunction) _wrap_XmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8801 | { (char *)"XmlResource_GetXRCID", (PyCFunction) _wrap_XmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 8802 | { (char *)"XmlResource_GetVersion", (PyCFunction)_wrap_XmlResource_GetVersion, METH_O, NULL}, |
093d3ff1 | 8803 | { (char *)"XmlResource_CompareVersion", (PyCFunction) _wrap_XmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 8804 | { (char *)"XmlResource_Get", (PyCFunction)_wrap_XmlResource_Get, METH_NOARGS, NULL}, |
093d3ff1 | 8805 | { (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 8806 | { (char *)"XmlResource_GetFlags", (PyCFunction)_wrap_XmlResource_GetFlags, METH_O, NULL}, |
093d3ff1 | 8807 | { (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
fc46b7f3 RD |
8808 | { (char *)"XmlResource_GetDomain", (PyCFunction)_wrap_XmlResource_GetDomain, METH_O, NULL}, |
8809 | { (char *)"XmlResource_SetDomain", (PyCFunction) _wrap_XmlResource_SetDomain, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 8810 | { (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS, NULL}, |
554f62e9 RD |
8811 | { (char *)"XmlResource_swiginit", XmlResource_swiginit, METH_VARARGS, NULL}, |
8812 | { (char *)"new_XmlSubclassFactory", (PyCFunction)_wrap_new_XmlSubclassFactory, METH_NOARGS, NULL}, | |
093d3ff1 RD |
8813 | { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_XmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
8814 | { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 8815 | { (char *)"XmlSubclassFactory_swiginit", XmlSubclassFactory_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 8816 | { (char *)"new_XmlProperty", (PyCFunction) _wrap_new_XmlProperty, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
8817 | { (char *)"XmlProperty_GetName", (PyCFunction)_wrap_XmlProperty_GetName, METH_O, NULL}, |
8818 | { (char *)"XmlProperty_GetValue", (PyCFunction)_wrap_XmlProperty_GetValue, METH_O, NULL}, | |
8819 | { (char *)"XmlProperty_GetNext", (PyCFunction)_wrap_XmlProperty_GetNext, METH_O, NULL}, | |
093d3ff1 RD |
8820 | { (char *)"XmlProperty_SetName", (PyCFunction) _wrap_XmlProperty_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, |
8821 | { (char *)"XmlProperty_SetValue", (PyCFunction) _wrap_XmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8822 | { (char *)"XmlProperty_SetNext", (PyCFunction) _wrap_XmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8823 | { (char *)"XmlProperty_swigregister", XmlProperty_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 8824 | { (char *)"XmlProperty_swiginit", XmlProperty_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 8825 | { (char *)"new_XmlNode", (PyCFunction) _wrap_new_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 8826 | { (char *)"delete_XmlNode", (PyCFunction)_wrap_delete_XmlNode, METH_O, NULL}, |
093d3ff1 RD |
8827 | { (char *)"new_XmlNodeEasy", (PyCFunction) _wrap_new_XmlNodeEasy, METH_VARARGS | METH_KEYWORDS, NULL}, |
8828 | { (char *)"XmlNode_AddChild", (PyCFunction) _wrap_XmlNode_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8829 | { (char *)"XmlNode_InsertChild", (PyCFunction) _wrap_XmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8830 | { (char *)"XmlNode_RemoveChild", (PyCFunction) _wrap_XmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8831 | { (char *)"XmlNode_AddProperty", (PyCFunction) _wrap_XmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8832 | { (char *)"XmlNode_AddPropertyName", (PyCFunction) _wrap_XmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8833 | { (char *)"XmlNode_DeleteProperty", (PyCFunction) _wrap_XmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
8834 | { (char *)"XmlNode_GetType", (PyCFunction)_wrap_XmlNode_GetType, METH_O, NULL}, |
8835 | { (char *)"XmlNode_GetName", (PyCFunction)_wrap_XmlNode_GetName, METH_O, NULL}, | |
8836 | { (char *)"XmlNode_GetContent", (PyCFunction)_wrap_XmlNode_GetContent, METH_O, NULL}, | |
33d6fd3b RD |
8837 | { (char *)"XmlNode_IsWhitespaceOnly", (PyCFunction)_wrap_XmlNode_IsWhitespaceOnly, METH_O, NULL}, |
8838 | { (char *)"XmlNode_GetDepth", (PyCFunction) _wrap_XmlNode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8839 | { (char *)"XmlNode_GetNodeContent", (PyCFunction)_wrap_XmlNode_GetNodeContent, METH_O, NULL}, | |
554f62e9 RD |
8840 | { (char *)"XmlNode_GetParent", (PyCFunction)_wrap_XmlNode_GetParent, METH_O, NULL}, |
8841 | { (char *)"XmlNode_GetNext", (PyCFunction)_wrap_XmlNode_GetNext, METH_O, NULL}, | |
8842 | { (char *)"XmlNode_GetChildren", (PyCFunction)_wrap_XmlNode_GetChildren, METH_O, NULL}, | |
8843 | { (char *)"XmlNode_GetProperties", (PyCFunction)_wrap_XmlNode_GetProperties, METH_O, NULL}, | |
093d3ff1 RD |
8844 | { (char *)"XmlNode_GetPropVal", (PyCFunction) _wrap_XmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS, NULL}, |
8845 | { (char *)"XmlNode_HasProp", (PyCFunction) _wrap_XmlNode_HasProp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8846 | { (char *)"XmlNode_SetType", (PyCFunction) _wrap_XmlNode_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8847 | { (char *)"XmlNode_SetName", (PyCFunction) _wrap_XmlNode_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8848 | { (char *)"XmlNode_SetContent", (PyCFunction) _wrap_XmlNode_SetContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8849 | { (char *)"XmlNode_SetParent", (PyCFunction) _wrap_XmlNode_SetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8850 | { (char *)"XmlNode_SetNext", (PyCFunction) _wrap_XmlNode_SetNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8851 | { (char *)"XmlNode_SetChildren", (PyCFunction) _wrap_XmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8852 | { (char *)"XmlNode_SetProperties", (PyCFunction) _wrap_XmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8853 | { (char *)"XmlNode_swigregister", XmlNode_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 8854 | { (char *)"XmlNode_swiginit", XmlNode_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
8855 | { (char *)"new_XmlDocument", (PyCFunction) _wrap_new_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
8856 | { (char *)"new_XmlDocumentFromStream", (PyCFunction) _wrap_new_XmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
8857 | { (char *)"new_EmptyXmlDocument", (PyCFunction)_wrap_new_EmptyXmlDocument, METH_NOARGS, NULL}, |
8858 | { (char *)"delete_XmlDocument", (PyCFunction)_wrap_delete_XmlDocument, METH_O, NULL}, | |
093d3ff1 RD |
8859 | { (char *)"XmlDocument_Load", (PyCFunction) _wrap_XmlDocument_Load, METH_VARARGS | METH_KEYWORDS, NULL}, |
8860 | { (char *)"XmlDocument_LoadFromStream", (PyCFunction) _wrap_XmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8861 | { (char *)"XmlDocument_Save", (PyCFunction) _wrap_XmlDocument_Save, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8862 | { (char *)"XmlDocument_SaveToStream", (PyCFunction) _wrap_XmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
8863 | { (char *)"XmlDocument_IsOk", (PyCFunction)_wrap_XmlDocument_IsOk, METH_O, NULL}, |
8864 | { (char *)"XmlDocument_GetRoot", (PyCFunction)_wrap_XmlDocument_GetRoot, METH_O, NULL}, | |
8865 | { (char *)"XmlDocument_GetVersion", (PyCFunction)_wrap_XmlDocument_GetVersion, METH_O, NULL}, | |
8866 | { (char *)"XmlDocument_GetFileEncoding", (PyCFunction)_wrap_XmlDocument_GetFileEncoding, METH_O, NULL}, | |
0d2c9713 | 8867 | { (char *)"XmlDocument_DetachRoot", (PyCFunction)_wrap_XmlDocument_DetachRoot, METH_O, NULL}, |
093d3ff1 RD |
8868 | { (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS, NULL}, |
8869 | { (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8870 | { (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8871 | { (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
8872 | { (char *)"XmlDocument_swiginit", XmlDocument_swiginit, METH_VARARGS, NULL}, |
8873 | { (char *)"new_XmlResourceHandler", (PyCFunction)_wrap_new_XmlResourceHandler, METH_NOARGS, NULL}, | |
a08f21ce | 8874 | { (char *)"delete_XmlResourceHandler", (PyCFunction)_wrap_delete_XmlResourceHandler, METH_O, NULL}, |
093d3ff1 RD |
8875 | { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
8876 | { (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8877 | { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
8878 | { (char *)"XmlResourceHandler_GetResource", (PyCFunction)_wrap_XmlResourceHandler_GetResource, METH_O, NULL}, |
8879 | { (char *)"XmlResourceHandler_GetNode", (PyCFunction)_wrap_XmlResourceHandler_GetNode, METH_O, NULL}, | |
8880 | { (char *)"XmlResourceHandler_GetClass", (PyCFunction)_wrap_XmlResourceHandler_GetClass, METH_O, NULL}, | |
8881 | { (char *)"XmlResourceHandler_GetParent", (PyCFunction)_wrap_XmlResourceHandler_GetParent, METH_O, NULL}, | |
8882 | { (char *)"XmlResourceHandler_GetInstance", (PyCFunction)_wrap_XmlResourceHandler_GetInstance, METH_O, NULL}, | |
8883 | { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction)_wrap_XmlResourceHandler_GetParentAsWindow, METH_O, NULL}, | |
093d3ff1 RD |
8884 | { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS, NULL}, |
8885 | { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8886 | { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8887 | { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction) _wrap_XmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8888 | { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction) _wrap_XmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8889 | { (char *)"XmlResourceHandler_AddStyle", (PyCFunction) _wrap_XmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 8890 | { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction)_wrap_XmlResourceHandler_AddWindowStyles, METH_O, NULL}, |
093d3ff1 RD |
8891 | { (char *)"XmlResourceHandler_GetStyle", (PyCFunction) _wrap_XmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
8892 | { (char *)"XmlResourceHandler_GetText", (PyCFunction) _wrap_XmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
8893 | { (char *)"XmlResourceHandler_GetID", (PyCFunction)_wrap_XmlResourceHandler_GetID, METH_O, NULL}, |
8894 | { (char *)"XmlResourceHandler_GetName", (PyCFunction)_wrap_XmlResourceHandler_GetName, METH_O, NULL}, | |
093d3ff1 RD |
8895 | { (char *)"XmlResourceHandler_GetBool", (PyCFunction) _wrap_XmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS, NULL}, |
8896 | { (char *)"XmlResourceHandler_GetLong", (PyCFunction) _wrap_XmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8897 | { (char *)"XmlResourceHandler_GetColour", (PyCFunction) _wrap_XmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8898 | { (char *)"XmlResourceHandler_GetSize", (PyCFunction) _wrap_XmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8899 | { (char *)"XmlResourceHandler_GetPosition", (PyCFunction) _wrap_XmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8900 | { (char *)"XmlResourceHandler_GetDimension", (PyCFunction) _wrap_XmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8901 | { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction) _wrap_XmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8902 | { (char *)"XmlResourceHandler_GetIcon", (PyCFunction) _wrap_XmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8903 | { (char *)"XmlResourceHandler_GetFont", (PyCFunction) _wrap_XmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0a27f394 | 8904 | { (char *)"XmlResourceHandler_GetAnimation", (PyCFunction) _wrap_XmlResourceHandler_GetAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
8905 | { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction) _wrap_XmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
8906 | { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction) _wrap_XmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8907 | { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_XmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8908 | { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_XmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 8909 | { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction)_wrap_XmlResourceHandler_GetCurFileSystem, METH_O, NULL}, |
093d3ff1 | 8910 | { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 8911 | { (char *)"XmlResourceHandler_swiginit", XmlResourceHandler_swiginit, METH_VARARGS, NULL}, |
ae8162c8 RD |
8912 | { NULL, NULL, 0, NULL } |
8913 | }; | |
8914 | ||
8915 | ||
8916 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
8917 | ||
0a27f394 RD |
8918 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
8919 | return (void *)((wxWindow *) ((wxControl *) x)); | |
8920 | } | |
8921 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
8922 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
8923 | } | |
8924 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
8925 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
8926 | } | |
ae8162c8 RD |
8927 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
8928 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
8929 | } | |
8930 | static void *_p_wxXmlDocumentTo_p_wxObject(void *x) { | |
8931 | return (void *)((wxObject *) ((wxXmlDocument *) x)); | |
8932 | } | |
ae8162c8 RD |
8933 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
8934 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
8935 | } | |
0f83f5da RD |
8936 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
8937 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
8938 | } | |
ae8162c8 RD |
8939 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
8940 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
8941 | } | |
8942 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
8943 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
8944 | } | |
8945 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
8946 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
8947 | } | |
8948 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
8949 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
8950 | } | |
8951 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
8952 | return (void *)((wxObject *) ((wxSizer *) x)); | |
8953 | } | |
8954 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
8955 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
8956 | } | |
8957 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
8958 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
8959 | } | |
8960 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
8961 | return (void *)((wxObject *) ((wxEvent *) x)); | |
8962 | } | |
8963 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
8964 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
8965 | } | |
8966 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
8967 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
8968 | } | |
8969 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
8970 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
8971 | } | |
2131d850 RD |
8972 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
8973 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
8974 | } | |
ae8162c8 RD |
8975 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
8976 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
8977 | } | |
8978 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
8979 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
8980 | } | |
8981 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
8982 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
8983 | } | |
8984 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
8985 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
8986 | } | |
8987 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
8988 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
8989 | } | |
8990 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
8991 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
8992 | } | |
8993 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
8994 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
8995 | } | |
8996 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
8997 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
8998 | } | |
8999 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
9000 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
9001 | } | |
9002 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
9003 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
9004 | } | |
9005 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
9006 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
9007 | } | |
9008 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
9009 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
9010 | } | |
9011 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
9012 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
9013 | } | |
9014 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
9015 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
9016 | } | |
53aa7709 RD |
9017 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
9018 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
9019 | } | |
ae8162c8 RD |
9020 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
9021 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
9022 | } | |
9023 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
9024 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
9025 | } | |
9026 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
9027 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
9028 | } | |
9029 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
9030 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
9031 | } | |
9032 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
9033 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
9034 | } | |
9035 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
9036 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
9037 | } | |
9038 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
9039 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
9040 | } | |
9041 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
9042 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
9043 | } | |
ae8162c8 RD |
9044 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
9045 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
9046 | } | |
9047 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
9048 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
9049 | } | |
9050 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
9051 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
9052 | } | |
9053 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
9054 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
9055 | } | |
9056 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
9057 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
9058 | } | |
9059 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
9060 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
9061 | } | |
9062 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
9063 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
9064 | } | |
9065 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
9066 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
9067 | } | |
9068 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
9069 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
9070 | } | |
9d7dfdff RD |
9071 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
9072 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
9073 | } | |
ae8162c8 RD |
9074 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
9075 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
9076 | } | |
9d7dfdff RD |
9077 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
9078 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
9079 | } | |
ae8162c8 RD |
9080 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
9081 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
9082 | } | |
9083 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
9084 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
9085 | } | |
0f83f5da RD |
9086 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
9087 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
9088 | } | |
ae8162c8 RD |
9089 | static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x) { |
9090 | return (void *)((wxObject *) ((wxPyXmlResourceHandler *) x)); | |
9091 | } | |
51b83b37 RD |
9092 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
9093 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
9094 | } | |
ae8162c8 RD |
9095 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
9096 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
9097 | } | |
9098 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
9099 | return (void *)((wxObject *) ((wxImage *) x)); | |
9100 | } | |
9101 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
9102 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
9103 | } | |
9104 | static void *_p_wxXmlResourceTo_p_wxObject(void *x) { | |
9105 | return (void *)((wxObject *) ((wxXmlResource *) x)); | |
9106 | } | |
9107 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
9108 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
9109 | } | |
9110 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
9111 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
9112 | } | |
9113 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
9114 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
9115 | } | |
9116 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
9117 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
9118 | } | |
9119 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
9120 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
9121 | } | |
9122 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
9123 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
9124 | } | |
9125 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
9126 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
9127 | } | |
9128 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
9129 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
9130 | } | |
9131 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
9132 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
9133 | } | |
9134 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
9135 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
9136 | } | |
9137 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
9138 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
9139 | } | |
9140 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
9141 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
9142 | } | |
9143 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
9144 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
9145 | } | |
9146 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
9147 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
9148 | } | |
9149 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
9150 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
9151 | } | |
9152 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
9153 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
9154 | } | |
9155 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
9156 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
9157 | } | |
9158 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
9159 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
9160 | } | |
9161 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
9162 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
9163 | } | |
9164 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
9165 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
9166 | } | |
9167 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
9168 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
9169 | } | |
554f62e9 RD |
9170 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
9171 | 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}; | |
9172 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0}; | |
9173 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
9174 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
9175 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 9176 | static swig_type_info _swigt__p_wxAnimation = {"_p_wxAnimation", "wxAnimation *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
9177 | static swig_type_info _swigt__p_wxArtClient = {"_p_wxArtClient", "wxArtClient *", 0, 0, (void*)0, 0}; |
9178 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
9179 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
9180 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
9181 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
9182 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
9183 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
9184 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
9185 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
9186 | static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0}; | |
9187 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
9188 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
554f62e9 | 9189 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
0f83f5da | 9190 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
554f62e9 RD |
9191 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
9192 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
9193 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
9194 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
9195 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
9196 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
9197 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
9198 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
9199 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
9200 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
9201 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
9202 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 9203 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
9204 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
9205 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
9206 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
9207 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
9208 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
9209 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
9210 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
9211 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
9212 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
9213 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
9214 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
9215 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
9216 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
9217 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
554f62e9 RD |
9218 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; |
9219 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
9220 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 9221 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
9222 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; |
9223 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 9224 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
9225 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; |
9226 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
554f62e9 RD |
9227 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; |
9228 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
9229 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
9230 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
9231 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
9232 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
9233 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
9234 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
9235 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
9236 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
9237 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
9238 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
9239 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
9240 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; | |
0f83f5da | 9241 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
9242 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
9243 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
9244 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
9245 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
9246 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
9247 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
9248 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
9249 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
9250 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
9251 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
9252 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
554f62e9 RD |
9253 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; |
9254 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
0f83f5da | 9255 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; |
554f62e9 | 9256 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; |
2131d850 | 9257 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
9258 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; |
9259 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
9260 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
9261 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
9262 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
9263 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
9264 | static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0}; | |
9265 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
9266 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
9267 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
9268 | static swig_type_info _swigt__p_wxPyXmlResourceHandler = {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, (void*)0, 0}; | |
9269 | static swig_type_info _swigt__p_wxPyXmlSubclassFactory = {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, (void*)0, 0}; | |
9270 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
9271 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
9272 | static swig_type_info _swigt__p_wxXmlDocument = {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, (void*)0, 0}; | |
9273 | static swig_type_info _swigt__p_wxXmlNode = {"_p_wxXmlNode", "wxXmlNode *", 0, 0, (void*)0, 0}; | |
9274 | static swig_type_info _swigt__p_wxXmlProperty = {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, (void*)0, 0}; | |
9275 | static swig_type_info _swigt__p_wxXmlResource = {"_p_wxXmlResource", "wxXmlResource *", 0, 0, (void*)0, 0}; | |
7449af73 RD |
9276 | |
9277 | static swig_type_info *swig_type_initial[] = { | |
9278 | &_swigt__p_char, | |
9279 | &_swigt__p_form_ops_t, | |
9280 | &_swigt__p_int, | |
9281 | &_swigt__p_unsigned_char, | |
9282 | &_swigt__p_unsigned_int, | |
9283 | &_swigt__p_unsigned_long, | |
9284 | &_swigt__p_wxANIHandler, | |
9285 | &_swigt__p_wxAcceleratorTable, | |
9286 | &_swigt__p_wxActivateEvent, | |
0a27f394 | 9287 | &_swigt__p_wxAnimation, |
7449af73 RD |
9288 | &_swigt__p_wxArtClient, |
9289 | &_swigt__p_wxBMPHandler, | |
9290 | &_swigt__p_wxBitmap, | |
9291 | &_swigt__p_wxBoxSizer, | |
9292 | &_swigt__p_wxCURHandler, | |
9293 | &_swigt__p_wxChildFocusEvent, | |
2131d850 | 9294 | &_swigt__p_wxClipboardTextEvent, |
7449af73 RD |
9295 | &_swigt__p_wxCloseEvent, |
9296 | &_swigt__p_wxColour, | |
9297 | &_swigt__p_wxCommandEvent, | |
9298 | &_swigt__p_wxContextMenuEvent, | |
9299 | &_swigt__p_wxControl, | |
9300 | &_swigt__p_wxControlWithItems, | |
9301 | &_swigt__p_wxDateEvent, | |
9302 | &_swigt__p_wxDialog, | |
9303 | &_swigt__p_wxDisplayChangedEvent, | |
9304 | &_swigt__p_wxDropFilesEvent, | |
9305 | &_swigt__p_wxDuplexMode, | |
9306 | &_swigt__p_wxEraseEvent, | |
9307 | &_swigt__p_wxEvent, | |
9308 | &_swigt__p_wxEvtHandler, | |
9309 | &_swigt__p_wxFSFile, | |
9310 | &_swigt__p_wxFileSystem, | |
9311 | &_swigt__p_wxFlexGridSizer, | |
9312 | &_swigt__p_wxFocusEvent, | |
9313 | &_swigt__p_wxFont, | |
9314 | &_swigt__p_wxFrame, | |
9315 | &_swigt__p_wxGBSizerItem, | |
9316 | &_swigt__p_wxGIFHandler, | |
9317 | &_swigt__p_wxGridBagSizer, | |
9318 | &_swigt__p_wxGridSizer, | |
9319 | &_swigt__p_wxICOHandler, | |
9320 | &_swigt__p_wxIcon, | |
9321 | &_swigt__p_wxIconizeEvent, | |
9322 | &_swigt__p_wxIdleEvent, | |
9323 | &_swigt__p_wxImage, | |
9324 | &_swigt__p_wxImageHandler, | |
9325 | &_swigt__p_wxIndividualLayoutConstraint, | |
9326 | &_swigt__p_wxInitDialogEvent, | |
9327 | &_swigt__p_wxInputStream, | |
9328 | &_swigt__p_wxJPEGHandler, | |
9329 | &_swigt__p_wxKeyEvent, | |
9330 | &_swigt__p_wxLayoutConstraints, | |
9331 | &_swigt__p_wxMaximizeEvent, | |
9332 | &_swigt__p_wxMenu, | |
9333 | &_swigt__p_wxMenuBar, | |
9334 | &_swigt__p_wxMenuEvent, | |
9335 | &_swigt__p_wxMenuItem, | |
9336 | &_swigt__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 9337 | &_swigt__p_wxMouseCaptureLostEvent, |
7449af73 RD |
9338 | &_swigt__p_wxMouseEvent, |
9339 | &_swigt__p_wxMoveEvent, | |
9340 | &_swigt__p_wxNavigationKeyEvent, | |
9341 | &_swigt__p_wxNcPaintEvent, | |
9342 | &_swigt__p_wxNotifyEvent, | |
9343 | &_swigt__p_wxObject, | |
9344 | &_swigt__p_wxOutputStream, | |
9345 | &_swigt__p_wxPCXHandler, | |
9346 | &_swigt__p_wxPNGHandler, | |
9347 | &_swigt__p_wxPNMHandler, | |
9348 | &_swigt__p_wxPaintEvent, | |
9349 | &_swigt__p_wxPaletteChangedEvent, | |
9350 | &_swigt__p_wxPanel, | |
9351 | &_swigt__p_wxPaperSize, | |
9352 | &_swigt__p_wxPoint, | |
9353 | &_swigt__p_wxPyApp, | |
9354 | &_swigt__p_wxPyCommandEvent, | |
9355 | &_swigt__p_wxPyEvent, | |
9356 | &_swigt__p_wxPyImageHandler, | |
9357 | &_swigt__p_wxPySizer, | |
9358 | &_swigt__p_wxPyValidator, | |
9359 | &_swigt__p_wxPyXmlResourceHandler, | |
9360 | &_swigt__p_wxPyXmlSubclassFactory, | |
9361 | &_swigt__p_wxQueryNewPaletteEvent, | |
9362 | &_swigt__p_wxScrollEvent, | |
9363 | &_swigt__p_wxScrollWinEvent, | |
9364 | &_swigt__p_wxSetCursorEvent, | |
9365 | &_swigt__p_wxShowEvent, | |
9366 | &_swigt__p_wxSize, | |
9367 | &_swigt__p_wxSizeEvent, | |
9368 | &_swigt__p_wxSizer, | |
9369 | &_swigt__p_wxSizerItem, | |
9370 | &_swigt__p_wxStaticBoxSizer, | |
9371 | &_swigt__p_wxStdDialogButtonSizer, | |
9372 | &_swigt__p_wxSysColourChangedEvent, | |
9373 | &_swigt__p_wxTIFFHandler, | |
9374 | &_swigt__p_wxUpdateUIEvent, | |
9375 | &_swigt__p_wxValidator, | |
9376 | &_swigt__p_wxWindow, | |
9377 | &_swigt__p_wxWindowCreateEvent, | |
9378 | &_swigt__p_wxWindowDestroyEvent, | |
9379 | &_swigt__p_wxXPMHandler, | |
9380 | &_swigt__p_wxXmlDocument, | |
9381 | &_swigt__p_wxXmlNode, | |
9382 | &_swigt__p_wxXmlProperty, | |
9383 | &_swigt__p_wxXmlResource, | |
7449af73 RD |
9384 | }; |
9385 | ||
9386 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
9387 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
9388 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
9389 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
9390 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
9391 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 9392 | static swig_cast_info _swigc__p_wxAnimation[] = { {&_swigt__p_wxAnimation, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
9393 | static swig_cast_info _swigc__p_wxArtClient[] = { {&_swigt__p_wxArtClient, 0, 0, 0},{0, 0, 0, 0}}; |
9394 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
9395 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
9396 | static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
9397 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
9398 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
9399 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
9400 | static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
9401 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
9402 | static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}}; | |
9403 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 | 9404 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0f83f5da | 9405 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
9406 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9407 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
9408 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9409 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9410 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9411 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9412 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9413 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
9414 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9415 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9416 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9417 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 9418 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
9419 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9420 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9421 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9422 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9423 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9424 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9425 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
9426 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9427 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
9428 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
9429 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9430 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9431 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9432 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 RD |
9433 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9434 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9435 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 9436 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
9437 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9438 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 9439 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
9440 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9441 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 RD |
9442 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
9443 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9444 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9445 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9446 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9447 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9448 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9449 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9450 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9451 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9452 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9453 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9454 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9455 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 9456 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
9457 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
9458 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
9459 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
9460 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9461 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9462 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9463 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9464 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
9465 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9466 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9467 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 RD |
9468 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9469 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 9470 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 | 9471 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 9472 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
9473 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; |
9474 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9475 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
9476 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
9477 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
9478 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 9479 | 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_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_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_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}}; |
7449af73 RD |
9480 | static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}}; |
9481 | static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
9482 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
9483 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
9484 | static swig_cast_info _swigc__p_wxPyXmlResourceHandler[] = { {&_swigt__p_wxPyXmlResourceHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
9485 | static swig_cast_info _swigc__p_wxPyXmlSubclassFactory[] = { {&_swigt__p_wxPyXmlSubclassFactory, 0, 0, 0},{0, 0, 0, 0}}; | |
9486 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
9487 | 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}}; | |
9488 | static swig_cast_info _swigc__p_wxXmlDocument[] = { {&_swigt__p_wxXmlDocument, 0, 0, 0},{0, 0, 0, 0}}; | |
9489 | static swig_cast_info _swigc__p_wxXmlNode[] = { {&_swigt__p_wxXmlNode, 0, 0, 0},{0, 0, 0, 0}}; | |
9490 | static swig_cast_info _swigc__p_wxXmlProperty[] = { {&_swigt__p_wxXmlProperty, 0, 0, 0},{0, 0, 0, 0}}; | |
9491 | static swig_cast_info _swigc__p_wxXmlResource[] = { {&_swigt__p_wxXmlResource, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 RD |
9492 | |
9493 | static swig_cast_info *swig_cast_initial[] = { | |
9494 | _swigc__p_char, | |
9495 | _swigc__p_form_ops_t, | |
9496 | _swigc__p_int, | |
9497 | _swigc__p_unsigned_char, | |
9498 | _swigc__p_unsigned_int, | |
9499 | _swigc__p_unsigned_long, | |
9500 | _swigc__p_wxANIHandler, | |
9501 | _swigc__p_wxAcceleratorTable, | |
9502 | _swigc__p_wxActivateEvent, | |
0a27f394 | 9503 | _swigc__p_wxAnimation, |
7449af73 RD |
9504 | _swigc__p_wxArtClient, |
9505 | _swigc__p_wxBMPHandler, | |
9506 | _swigc__p_wxBitmap, | |
9507 | _swigc__p_wxBoxSizer, | |
9508 | _swigc__p_wxCURHandler, | |
9509 | _swigc__p_wxChildFocusEvent, | |
2131d850 | 9510 | _swigc__p_wxClipboardTextEvent, |
7449af73 RD |
9511 | _swigc__p_wxCloseEvent, |
9512 | _swigc__p_wxColour, | |
9513 | _swigc__p_wxCommandEvent, | |
9514 | _swigc__p_wxContextMenuEvent, | |
9515 | _swigc__p_wxControl, | |
9516 | _swigc__p_wxControlWithItems, | |
9517 | _swigc__p_wxDateEvent, | |
9518 | _swigc__p_wxDialog, | |
9519 | _swigc__p_wxDisplayChangedEvent, | |
9520 | _swigc__p_wxDropFilesEvent, | |
9521 | _swigc__p_wxDuplexMode, | |
9522 | _swigc__p_wxEraseEvent, | |
9523 | _swigc__p_wxEvent, | |
9524 | _swigc__p_wxEvtHandler, | |
9525 | _swigc__p_wxFSFile, | |
9526 | _swigc__p_wxFileSystem, | |
9527 | _swigc__p_wxFlexGridSizer, | |
9528 | _swigc__p_wxFocusEvent, | |
9529 | _swigc__p_wxFont, | |
9530 | _swigc__p_wxFrame, | |
9531 | _swigc__p_wxGBSizerItem, | |
9532 | _swigc__p_wxGIFHandler, | |
9533 | _swigc__p_wxGridBagSizer, | |
9534 | _swigc__p_wxGridSizer, | |
9535 | _swigc__p_wxICOHandler, | |
9536 | _swigc__p_wxIcon, | |
9537 | _swigc__p_wxIconizeEvent, | |
9538 | _swigc__p_wxIdleEvent, | |
9539 | _swigc__p_wxImage, | |
9540 | _swigc__p_wxImageHandler, | |
9541 | _swigc__p_wxIndividualLayoutConstraint, | |
9542 | _swigc__p_wxInitDialogEvent, | |
9543 | _swigc__p_wxInputStream, | |
9544 | _swigc__p_wxJPEGHandler, | |
9545 | _swigc__p_wxKeyEvent, | |
9546 | _swigc__p_wxLayoutConstraints, | |
9547 | _swigc__p_wxMaximizeEvent, | |
9548 | _swigc__p_wxMenu, | |
9549 | _swigc__p_wxMenuBar, | |
9550 | _swigc__p_wxMenuEvent, | |
9551 | _swigc__p_wxMenuItem, | |
9552 | _swigc__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 9553 | _swigc__p_wxMouseCaptureLostEvent, |
7449af73 RD |
9554 | _swigc__p_wxMouseEvent, |
9555 | _swigc__p_wxMoveEvent, | |
9556 | _swigc__p_wxNavigationKeyEvent, | |
9557 | _swigc__p_wxNcPaintEvent, | |
9558 | _swigc__p_wxNotifyEvent, | |
9559 | _swigc__p_wxObject, | |
9560 | _swigc__p_wxOutputStream, | |
9561 | _swigc__p_wxPCXHandler, | |
9562 | _swigc__p_wxPNGHandler, | |
9563 | _swigc__p_wxPNMHandler, | |
9564 | _swigc__p_wxPaintEvent, | |
9565 | _swigc__p_wxPaletteChangedEvent, | |
9566 | _swigc__p_wxPanel, | |
9567 | _swigc__p_wxPaperSize, | |
9568 | _swigc__p_wxPoint, | |
9569 | _swigc__p_wxPyApp, | |
9570 | _swigc__p_wxPyCommandEvent, | |
9571 | _swigc__p_wxPyEvent, | |
9572 | _swigc__p_wxPyImageHandler, | |
9573 | _swigc__p_wxPySizer, | |
9574 | _swigc__p_wxPyValidator, | |
9575 | _swigc__p_wxPyXmlResourceHandler, | |
9576 | _swigc__p_wxPyXmlSubclassFactory, | |
9577 | _swigc__p_wxQueryNewPaletteEvent, | |
9578 | _swigc__p_wxScrollEvent, | |
9579 | _swigc__p_wxScrollWinEvent, | |
9580 | _swigc__p_wxSetCursorEvent, | |
9581 | _swigc__p_wxShowEvent, | |
9582 | _swigc__p_wxSize, | |
9583 | _swigc__p_wxSizeEvent, | |
9584 | _swigc__p_wxSizer, | |
9585 | _swigc__p_wxSizerItem, | |
9586 | _swigc__p_wxStaticBoxSizer, | |
9587 | _swigc__p_wxStdDialogButtonSizer, | |
9588 | _swigc__p_wxSysColourChangedEvent, | |
9589 | _swigc__p_wxTIFFHandler, | |
9590 | _swigc__p_wxUpdateUIEvent, | |
9591 | _swigc__p_wxValidator, | |
9592 | _swigc__p_wxWindow, | |
9593 | _swigc__p_wxWindowCreateEvent, | |
9594 | _swigc__p_wxWindowDestroyEvent, | |
9595 | _swigc__p_wxXPMHandler, | |
9596 | _swigc__p_wxXmlDocument, | |
9597 | _swigc__p_wxXmlNode, | |
9598 | _swigc__p_wxXmlProperty, | |
9599 | _swigc__p_wxXmlResource, | |
ae8162c8 RD |
9600 | }; |
9601 | ||
9602 | ||
9603 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
9604 | ||
9605 | static swig_const_info swig_const_table[] = { | |
9606 | {0, 0, 0, 0.0, 0, 0}}; | |
9607 | ||
9608 | #ifdef __cplusplus | |
9609 | } | |
9610 | #endif | |
554f62e9 | 9611 | /* ----------------------------------------------------------------------------- |
7449af73 RD |
9612 | * Type initialization: |
9613 | * This problem is tough by the requirement that no dynamic | |
9614 | * memory is used. Also, since swig_type_info structures store pointers to | |
9615 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
9616 | * to swig_type_info structures, we need some lookup code at initialization. | |
9617 | * The idea is that swig generates all the structures that are needed. | |
9618 | * The runtime then collects these partially filled structures. | |
9619 | * The SWIG_InitializeModule function takes these initial arrays out of | |
9620 | * swig_module, and does all the lookup, filling in the swig_module.types | |
9621 | * array with the correct data and linking the correct swig_cast_info | |
9622 | * structures together. | |
554f62e9 | 9623 | * |
7449af73 RD |
9624 | * The generated swig_type_info structures are assigned staticly to an initial |
9625 | * array. We just loop though that array, and handle each type individually. | |
9626 | * First we lookup if this type has been already loaded, and if so, use the | |
9627 | * loaded structure instead of the generated one. Then we have to fill in the | |
9628 | * cast linked list. The cast data is initially stored in something like a | |
9629 | * two-dimensional array. Each row corresponds to a type (there are the same | |
9630 | * number of rows as there are in the swig_type_initial array). Each entry in | |
9631 | * a column is one of the swig_cast_info structures for that type. | |
9632 | * The cast_initial array is actually an array of arrays, because each row has | |
9633 | * a variable number of columns. So to actually build the cast linked list, | |
9634 | * we find the array of casts associated with the type, and loop through it | |
9635 | * adding the casts to the list. The one last trick we need to do is making | |
9636 | * sure the type pointer in the swig_cast_info struct is correct. | |
554f62e9 | 9637 | * |
7449af73 RD |
9638 | * First off, we lookup the cast->type name to see if it is already loaded. |
9639 | * There are three cases to handle: | |
9640 | * 1) If the cast->type has already been loaded AND the type we are adding | |
9641 | * casting info to has not been loaded (it is in this module), THEN we | |
9642 | * replace the cast->type pointer with the type pointer that has already | |
9643 | * been loaded. | |
9644 | * 2) If BOTH types (the one we are adding casting info to, and the | |
9645 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
9646 | * the previous module so we just ignore it. | |
9647 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
9648 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
9649 | * be correct. | |
554f62e9 | 9650 | * ----------------------------------------------------------------------------- */ |
7449af73 RD |
9651 | |
9652 | #ifdef __cplusplus | |
9653 | extern "C" { | |
9654 | #if 0 | |
9655 | } /* c-mode */ | |
9656 | #endif | |
9657 | #endif | |
9658 | ||
9659 | #if 0 | |
9660 | #define SWIGRUNTIME_DEBUG | |
9661 | #endif | |
9662 | ||
9663 | SWIGRUNTIME void | |
9664 | SWIG_InitializeModule(void *clientdata) { | |
554f62e9 RD |
9665 | size_t i; |
9666 | swig_module_info *module_head; | |
9667 | static int init_run = 0; | |
9668 | ||
9669 | clientdata = clientdata; | |
9670 | ||
9671 | if (init_run) return; | |
9672 | init_run = 1; | |
9673 | ||
9674 | /* Initialize the swig_module */ | |
9675 | swig_module.type_initial = swig_type_initial; | |
9676 | swig_module.cast_initial = swig_cast_initial; | |
9677 | ||
9678 | /* Try and load any already created modules */ | |
9679 | module_head = SWIG_GetModule(clientdata); | |
9680 | if (module_head) { | |
9681 | swig_module.next = module_head->next; | |
9682 | module_head->next = &swig_module; | |
9683 | } else { | |
9684 | /* This is the first module loaded */ | |
9685 | swig_module.next = &swig_module; | |
9686 | SWIG_SetModule(clientdata, &swig_module); | |
9687 | } | |
9688 | ||
9689 | /* Now work on filling in swig_module.types */ | |
7449af73 | 9690 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9691 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
7449af73 | 9692 | #endif |
554f62e9 RD |
9693 | for (i = 0; i < swig_module.size; ++i) { |
9694 | swig_type_info *type = 0; | |
9695 | swig_type_info *ret; | |
9696 | swig_cast_info *cast; | |
9697 | ||
7449af73 | 9698 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9699 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
7449af73 | 9700 | #endif |
554f62e9 RD |
9701 | |
9702 | /* if there is another module already loaded */ | |
9703 | if (swig_module.next != &swig_module) { | |
9704 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
9705 | } | |
9706 | if (type) { | |
9707 | /* Overwrite clientdata field */ | |
7449af73 | 9708 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9709 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
7449af73 | 9710 | #endif |
554f62e9 RD |
9711 | if (swig_module.type_initial[i]->clientdata) { |
9712 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
7449af73 | 9713 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9714 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
7449af73 | 9715 | #endif |
554f62e9 RD |
9716 | } |
9717 | } else { | |
9718 | type = swig_module.type_initial[i]; | |
9719 | } | |
9720 | ||
9721 | /* Insert casting types */ | |
9722 | cast = swig_module.cast_initial[i]; | |
9723 | while (cast->type) { | |
9724 | /* Don't need to add information already in the list */ | |
9725 | ret = 0; | |
7449af73 | 9726 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9727 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
7449af73 | 9728 | #endif |
554f62e9 RD |
9729 | if (swig_module.next != &swig_module) { |
9730 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
7449af73 | 9731 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9732 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
7449af73 | 9733 | #endif |
554f62e9 RD |
9734 | } |
9735 | if (ret) { | |
9736 | if (type == swig_module.type_initial[i]) { | |
7449af73 | 9737 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9738 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
7449af73 | 9739 | #endif |
554f62e9 RD |
9740 | cast->type = ret; |
9741 | ret = 0; | |
9742 | } else { | |
9743 | /* Check for casting already in the list */ | |
9744 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
7449af73 | 9745 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9746 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
7449af73 | 9747 | #endif |
554f62e9 RD |
9748 | if (!ocast) ret = 0; |
9749 | } | |
9750 | } | |
9751 | ||
9752 | if (!ret) { | |
7449af73 | 9753 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 | 9754 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
7449af73 | 9755 | #endif |
554f62e9 RD |
9756 | if (type->cast) { |
9757 | type->cast->prev = cast; | |
9758 | cast->next = type->cast; | |
7449af73 | 9759 | } |
554f62e9 RD |
9760 | type->cast = cast; |
9761 | } | |
9762 | cast++; | |
7449af73 | 9763 | } |
554f62e9 RD |
9764 | /* Set entry in modules->types array equal to the type */ |
9765 | swig_module.types[i] = type; | |
9766 | } | |
9767 | swig_module.types[i] = 0; | |
9768 | ||
7449af73 | 9769 | #ifdef SWIGRUNTIME_DEBUG |
554f62e9 RD |
9770 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
9771 | for (i = 0; i < swig_module.size; ++i) { | |
9772 | int j = 0; | |
9773 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
9774 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
9775 | while (cast->type) { | |
9776 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
9777 | cast++; | |
9778 | ++j; | |
9779 | } | |
9780 | printf("---- Total casts: %d\n",j); | |
9781 | } | |
9782 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
7449af73 RD |
9783 | #endif |
9784 | } | |
9785 | ||
9786 | /* This function will propagate the clientdata field of type to | |
9787 | * any new swig_type_info structures that have been added into the list | |
9788 | * of equivalent types. It is like calling | |
9789 | * SWIG_TypeClientData(type, clientdata) a second time. | |
9790 | */ | |
9791 | SWIGRUNTIME void | |
9792 | SWIG_PropagateClientData(void) { | |
554f62e9 RD |
9793 | size_t i; |
9794 | swig_cast_info *equiv; | |
9795 | static int init_run = 0; | |
9796 | ||
9797 | if (init_run) return; | |
9798 | init_run = 1; | |
9799 | ||
9800 | for (i = 0; i < swig_module.size; i++) { | |
9801 | if (swig_module.types[i]->clientdata) { | |
9802 | equiv = swig_module.types[i]->cast; | |
9803 | while (equiv) { | |
9804 | if (!equiv->converter) { | |
9805 | if (equiv->type && !equiv->type->clientdata) | |
9806 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
7449af73 | 9807 | } |
554f62e9 RD |
9808 | equiv = equiv->next; |
9809 | } | |
7449af73 | 9810 | } |
554f62e9 | 9811 | } |
7449af73 RD |
9812 | } |
9813 | ||
9814 | #ifdef __cplusplus | |
9815 | #if 0 | |
9816 | { | |
554f62e9 | 9817 | /* c-mode */ |
7449af73 RD |
9818 | #endif |
9819 | } | |
9820 | #endif | |
9821 | ||
ae8162c8 | 9822 | |
093d3ff1 RD |
9823 | |
9824 | #ifdef __cplusplus | |
9825 | extern "C" { | |
9826 | #endif | |
554f62e9 RD |
9827 | |
9828 | /* Python-specific SWIG API */ | |
093d3ff1 RD |
9829 | #define SWIG_newvarlink() SWIG_Python_newvarlink() |
9830 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
9831 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
554f62e9 RD |
9832 | |
9833 | /* ----------------------------------------------------------------------------- | |
9834 | * global variable support code. | |
9835 | * ----------------------------------------------------------------------------- */ | |
9836 | ||
9837 | typedef struct swig_globalvar { | |
9838 | char *name; /* Name of global variable */ | |
9839 | PyObject *(*get_attr)(void); /* Return the current value */ | |
9840 | int (*set_attr)(PyObject *); /* Set the value */ | |
9841 | struct swig_globalvar *next; | |
9842 | } swig_globalvar; | |
9843 | ||
9844 | typedef struct swig_varlinkobject { | |
9845 | PyObject_HEAD | |
9846 | swig_globalvar *vars; | |
9847 | } swig_varlinkobject; | |
9848 | ||
9849 | SWIGINTERN PyObject * | |
9850 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
9851 | return PyString_FromString("<Swig global variables>"); | |
9852 | } | |
9853 | ||
9854 | SWIGINTERN PyObject * | |
9855 | swig_varlink_str(swig_varlinkobject *v) { | |
9856 | PyObject *str = PyString_FromString("("); | |
9857 | swig_globalvar *var; | |
9858 | for (var = v->vars; var; var=var->next) { | |
9859 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
9860 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
9861 | } | |
9862 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
9863 | return str; | |
9864 | } | |
9865 | ||
9866 | SWIGINTERN int | |
9867 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
9868 | PyObject *str = swig_varlink_str(v); | |
9869 | fprintf(fp,"Swig global variables "); | |
9870 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
9871 | Py_DECREF(str); | |
9872 | return 0; | |
9873 | } | |
9874 | ||
9875 | SWIGINTERN void | |
9876 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
9877 | swig_globalvar *var = v->vars; | |
9878 | while (var) { | |
9879 | swig_globalvar *n = var->next; | |
9880 | free(var->name); | |
9881 | free(var); | |
9882 | var = n; | |
093d3ff1 | 9883 | } |
554f62e9 RD |
9884 | } |
9885 | ||
9886 | SWIGINTERN PyObject * | |
9887 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
9888 | PyObject *res = NULL; | |
9889 | swig_globalvar *var = v->vars; | |
9890 | while (var) { | |
9891 | if (strcmp(var->name,n) == 0) { | |
9892 | res = (*var->get_attr)(); | |
9893 | break; | |
9894 | } | |
9895 | var = var->next; | |
093d3ff1 | 9896 | } |
554f62e9 RD |
9897 | if (res == NULL && !PyErr_Occurred()) { |
9898 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 9899 | } |
554f62e9 RD |
9900 | return res; |
9901 | } | |
9902 | ||
9903 | SWIGINTERN int | |
9904 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
9905 | int res = 1; | |
9906 | swig_globalvar *var = v->vars; | |
9907 | while (var) { | |
9908 | if (strcmp(var->name,n) == 0) { | |
9909 | res = (*var->set_attr)(p); | |
9910 | break; | |
9911 | } | |
9912 | var = var->next; | |
093d3ff1 | 9913 | } |
554f62e9 RD |
9914 | if (res == 1 && !PyErr_Occurred()) { |
9915 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
9916 | } | |
9917 | return res; | |
9918 | } | |
9919 | ||
9920 | SWIGINTERN PyTypeObject* | |
9921 | swig_varlink_type(void) { | |
9922 | static char varlink__doc__[] = "Swig var link object"; | |
9923 | static PyTypeObject varlink_type; | |
9924 | static int type_init = 0; | |
9925 | if (!type_init) { | |
9926 | const PyTypeObject tmp | |
9927 | = { | |
9928 | PyObject_HEAD_INIT(NULL) | |
9929 | 0, /* Number of items in variable part (ob_size) */ | |
9930 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
9931 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
9932 | 0, /* Itemsize (tp_itemsize) */ | |
9933 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
9934 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
9935 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
9936 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
9937 | 0, /* tp_compare */ | |
9938 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
9939 | 0, /* tp_as_number */ | |
9940 | 0, /* tp_as_sequence */ | |
9941 | 0, /* tp_as_mapping */ | |
9942 | 0, /* tp_hash */ | |
9943 | 0, /* tp_call */ | |
9944 | (reprfunc)swig_varlink_str, /* tp_str */ | |
9945 | 0, /* tp_getattro */ | |
9946 | 0, /* tp_setattro */ | |
9947 | 0, /* tp_as_buffer */ | |
9948 | 0, /* tp_flags */ | |
9949 | varlink__doc__, /* tp_doc */ | |
9950 | 0, /* tp_traverse */ | |
9951 | 0, /* tp_clear */ | |
9952 | 0, /* tp_richcompare */ | |
9953 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 9954 | #if PY_VERSION_HEX >= 0x02020000 |
554f62e9 | 9955 | 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 |
9956 | #endif |
9957 | #if PY_VERSION_HEX >= 0x02030000 | |
554f62e9 | 9958 | 0, /* tp_del */ |
093d3ff1 RD |
9959 | #endif |
9960 | #ifdef COUNT_ALLOCS | |
554f62e9 | 9961 | 0,0,0,0 /* tp_alloc -> tp_next */ |
7449af73 | 9962 | #endif |
554f62e9 RD |
9963 | }; |
9964 | varlink_type = tmp; | |
9965 | varlink_type.ob_type = &PyType_Type; | |
9966 | type_init = 1; | |
093d3ff1 | 9967 | } |
554f62e9 RD |
9968 | return &varlink_type; |
9969 | } | |
9970 | ||
9971 | /* Create a variable linking object for use later */ | |
9972 | SWIGINTERN PyObject * | |
9973 | SWIG_Python_newvarlink(void) { | |
9974 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
9975 | if (result) { | |
9976 | result->vars = 0; | |
9977 | } | |
9978 | return ((PyObject*) result); | |
9979 | } | |
9980 | ||
9981 | SWIGINTERN void | |
9982 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
9983 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
9984 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
9985 | if (gv) { | |
9986 | size_t size = strlen(name)+1; | |
9987 | gv->name = (char *)malloc(size); | |
9988 | if (gv->name) { | |
9989 | strncpy(gv->name,name,size); | |
9990 | gv->get_attr = get_attr; | |
9991 | gv->set_attr = set_attr; | |
9992 | gv->next = v->vars; | |
9993 | } | |
093d3ff1 | 9994 | } |
554f62e9 RD |
9995 | v->vars = gv; |
9996 | } | |
9997 | ||
9998 | SWIGINTERN PyObject * | |
9999 | SWIG_globals() { | |
10000 | static PyObject *_SWIG_globals = 0; | |
10001 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
10002 | return _SWIG_globals; | |
10003 | } | |
10004 | ||
10005 | /* ----------------------------------------------------------------------------- | |
10006 | * constants/methods manipulation | |
10007 | * ----------------------------------------------------------------------------- */ | |
10008 | ||
10009 | /* Install Constants */ | |
10010 | SWIGINTERN void | |
10011 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
10012 | PyObject *obj = 0; | |
10013 | size_t i; | |
10014 | for (i = 0; constants[i].type; ++i) { | |
10015 | switch(constants[i].type) { | |
10016 | case SWIG_PY_POINTER: | |
10017 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
10018 | break; | |
10019 | case SWIG_PY_BINARY: | |
10020 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
10021 | break; | |
10022 | default: | |
10023 | obj = 0; | |
10024 | break; | |
10025 | } | |
10026 | if (obj) { | |
10027 | PyDict_SetItemString(d, constants[i].name, obj); | |
10028 | Py_DECREF(obj); | |
10029 | } | |
093d3ff1 | 10030 | } |
554f62e9 RD |
10031 | } |
10032 | ||
10033 | /* -----------------------------------------------------------------------------*/ | |
10034 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
10035 | /* -----------------------------------------------------------------------------*/ | |
10036 | ||
10037 | SWIGINTERN void | |
10038 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
093d3ff1 RD |
10039 | swig_const_info *const_table, |
10040 | swig_type_info **types, | |
10041 | swig_type_info **types_initial) { | |
554f62e9 RD |
10042 | size_t i; |
10043 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 10044 | const char *c = methods[i].ml_doc; |
554f62e9 RD |
10045 | if (c && (c = strstr(c, "swig_ptr: "))) { |
10046 | int j; | |
10047 | swig_const_info *ci = 0; | |
453fb36b | 10048 | const char *name = c + 10; |
554f62e9 RD |
10049 | for (j = 0; const_table[j].type; ++j) { |
10050 | if (strncmp(const_table[j].name, name, | |
10051 | strlen(const_table[j].name)) == 0) { | |
10052 | ci = &(const_table[j]); | |
10053 | break; | |
10054 | } | |
10055 | } | |
10056 | if (ci) { | |
10057 | size_t shift = (ci->ptype) - types; | |
10058 | swig_type_info *ty = types_initial[shift]; | |
10059 | size_t ldoc = (c - methods[i].ml_doc); | |
10060 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
10061 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
10062 | if (ndoc) { | |
10063 | char *buff = ndoc; | |
10064 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
10065 | if (ptr) { | |
10066 | strncpy(buff, methods[i].ml_doc, ldoc); | |
10067 | buff += ldoc; | |
10068 | strncpy(buff, "swig_ptr: ", 10); | |
10069 | buff += 10; | |
10070 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
10071 | methods[i].ml_doc = ndoc; | |
093d3ff1 | 10072 | } |
554f62e9 | 10073 | } |
093d3ff1 | 10074 | } |
554f62e9 | 10075 | } |
093d3ff1 | 10076 | } |
554f62e9 RD |
10077 | } |
10078 | ||
093d3ff1 RD |
10079 | #ifdef __cplusplus |
10080 | } | |
10081 | #endif | |
10082 | ||
10083 | /* -----------------------------------------------------------------------------* | |
10084 | * Partial Init method | |
10085 | * -----------------------------------------------------------------------------*/ | |
10086 | ||
ae8162c8 RD |
10087 | #ifdef __cplusplus |
10088 | extern "C" | |
10089 | #endif | |
7449af73 | 10090 | SWIGEXPORT void SWIG_init(void) { |
554f62e9 RD |
10091 | PyObject *m, *d; |
10092 | ||
10093 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
10094 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
10095 | ||
10096 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
10097 | d = PyModule_GetDict(m); | |
10098 | ||
10099 | SWIG_InitializeModule(0); | |
10100 | SWIG_InstallConstants(d,swig_const_table); | |
10101 | ||
10102 | ||
10103 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
10104 | SWIG_addvarlink(SWIG_globals(),(char*)"UTF8String",UTF8String_get, UTF8String_set); | |
10105 | SWIG_addvarlink(SWIG_globals(),(char*)"StyleString",StyleString_get, StyleString_set); | |
10106 | SWIG_addvarlink(SWIG_globals(),(char*)"SizeString",SizeString_get, SizeString_set); | |
10107 | SWIG_addvarlink(SWIG_globals(),(char*)"PosString",PosString_get, PosString_set); | |
10108 | SWIG_addvarlink(SWIG_globals(),(char*)"BitmapString",BitmapString_get, BitmapString_set); | |
10109 | SWIG_addvarlink(SWIG_globals(),(char*)"IconString",IconString_get, IconString_set); | |
10110 | SWIG_addvarlink(SWIG_globals(),(char*)"FontString",FontString_get, FontString_set); | |
0a27f394 | 10111 | SWIG_addvarlink(SWIG_globals(),(char*)"AnimationString",AnimationString_get, AnimationString_set); |
554f62e9 RD |
10112 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MAJOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MAJOR))); |
10113 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MINOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MINOR))); | |
10114 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_RELEASE",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_RELEASE))); | |
10115 | SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_REVISION",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_REVISION))); | |
10116 | SWIG_Python_SetConstant(d, "XRC_USE_LOCALE",SWIG_From_int(static_cast< int >(wxXRC_USE_LOCALE))); | |
10117 | SWIG_Python_SetConstant(d, "XRC_NO_SUBCLASSING",SWIG_From_int(static_cast< int >(wxXRC_NO_SUBCLASSING))); | |
10118 | SWIG_Python_SetConstant(d, "XRC_NO_RELOADING",SWIG_From_int(static_cast< int >(wxXRC_NO_RELOADING))); | |
10119 | SWIG_Python_SetConstant(d, "XML_ELEMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_ELEMENT_NODE))); | |
10120 | SWIG_Python_SetConstant(d, "XML_ATTRIBUTE_NODE",SWIG_From_int(static_cast< int >(wxXML_ATTRIBUTE_NODE))); | |
10121 | SWIG_Python_SetConstant(d, "XML_TEXT_NODE",SWIG_From_int(static_cast< int >(wxXML_TEXT_NODE))); | |
10122 | SWIG_Python_SetConstant(d, "XML_CDATA_SECTION_NODE",SWIG_From_int(static_cast< int >(wxXML_CDATA_SECTION_NODE))); | |
10123 | SWIG_Python_SetConstant(d, "XML_ENTITY_REF_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_REF_NODE))); | |
10124 | SWIG_Python_SetConstant(d, "XML_ENTITY_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_NODE))); | |
10125 | SWIG_Python_SetConstant(d, "XML_PI_NODE",SWIG_From_int(static_cast< int >(wxXML_PI_NODE))); | |
10126 | SWIG_Python_SetConstant(d, "XML_COMMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_COMMENT_NODE))); | |
10127 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_NODE))); | |
10128 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_TYPE_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_TYPE_NODE))); | |
10129 | SWIG_Python_SetConstant(d, "XML_DOCUMENT_FRAG_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_FRAG_NODE))); | |
10130 | SWIG_Python_SetConstant(d, "XML_NOTATION_NODE",SWIG_From_int(static_cast< int >(wxXML_NOTATION_NODE))); | |
10131 | SWIG_Python_SetConstant(d, "XML_HTML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_HTML_DOCUMENT_NODE))); | |
33d6fd3b RD |
10132 | SWIG_Python_SetConstant(d, "XML_NO_INDENTATION",SWIG_From_int(static_cast< int >(wxXML_NO_INDENTATION))); |
10133 | SWIG_Python_SetConstant(d, "XMLDOC_NONE",SWIG_From_int(static_cast< int >(wxXMLDOC_NONE))); | |
10134 | SWIG_Python_SetConstant(d, "XMLDOC_KEEP_WHITESPACE_NODES",SWIG_From_int(static_cast< int >(wxXMLDOC_KEEP_WHITESPACE_NODES))); | |
554f62e9 RD |
10135 | |
10136 | ||
10137 | wxXmlInitResourceModule(); | |
10138 | wxXmlResource::Get()->InitAllHandlers(); | |
10139 | ||
10140 | ||
ae8162c8 RD |
10141 | } |
10142 |