]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.27 | |
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 | |
12 | #define SWIG_VERSION 0x010327 | |
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); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | /*********************************************************************** | |
31 | * | |
32 | * This section contains generic SWIG labels for method/variable | |
33 | * declarations/attributes, and other compiler dependent labels. | |
34 | * | |
35 | ************************************************************************/ | |
36 | ||
37 | /* template workaround for compilers that cannot correctly implement the C++ standard */ | |
38 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
39 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) | |
40 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
41 | # else | |
42 | # define SWIGTEMPLATEDISAMBIGUATOR | |
43 | # endif | |
44 | #endif | |
45 | ||
46 | /* inline attribute */ | |
47 | #ifndef SWIGINLINE | |
48 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
49 | # define SWIGINLINE inline | |
50 | # else | |
51 | # define SWIGINLINE | |
52 | # endif | |
53 | #endif | |
54 | ||
55 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
56 | #ifndef SWIGUNUSED | |
57 | # if defined(__GNUC__) || defined(__ICC) | |
58 | # define SWIGUNUSED __attribute__ ((unused)) | |
59 | # else | |
60 | # define SWIGUNUSED | |
61 | # endif | |
62 | #endif | |
63 | ||
64 | /* internal SWIG method */ | |
65 | #ifndef SWIGINTERN | |
66 | # define SWIGINTERN static SWIGUNUSED | |
67 | #endif | |
68 | ||
69 | /* internal inline SWIG method */ | |
70 | #ifndef SWIGINTERNINLINE | |
71 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
72 | #endif | |
73 | ||
74 | /* exporting methods for Windows DLLs */ | |
75 | #ifndef SWIGEXPORT | |
76 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
77 | # if defined(STATIC_LINKED) | |
78 | # define SWIGEXPORT | |
79 | # else | |
80 | # define SWIGEXPORT __declspec(dllexport) | |
81 | # endif | |
82 | # else | |
83 | # define SWIGEXPORT | |
84 | # endif | |
85 | #endif | |
86 | ||
87 | /* calling conventions for Windows */ | |
88 | #ifndef SWIGSTDCALL | |
89 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
90 | # define SWIGSTDCALL __stdcall | |
91 | # else | |
92 | # define SWIGSTDCALL | |
93 | # endif | |
94 | #endif | |
95 | ||
96 | ||
97 | ||
98 | #include <Python.h> | |
99 | ||
100 | /*********************************************************************** | |
101 | * swigrun.swg | |
102 | * | |
103 | * This file contains generic CAPI SWIG runtime support for pointer | |
104 | * type checking. | |
105 | * | |
106 | ************************************************************************/ | |
107 | ||
108 | /* This should only be incremented when either the layout of swig_type_info changes, | |
109 | or for whatever reason, the runtime changes incompatibly */ | |
110 | #define SWIG_RUNTIME_VERSION "2" | |
111 | ||
112 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ | |
113 | #ifdef SWIG_TYPE_TABLE | |
114 | # define SWIG_QUOTE_STRING(x) #x | |
115 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
116 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
117 | #else | |
118 | # define SWIG_TYPE_TABLE_NAME | |
119 | #endif | |
120 | ||
121 | /* | |
122 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
123 | creating a static or dynamic library from the swig runtime code. | |
124 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
125 | ||
126 | But only do this if is strictly necessary, ie, if you have problems | |
127 | with your compiler or so. | |
128 | */ | |
129 | ||
130 | #ifndef SWIGRUNTIME | |
131 | # define SWIGRUNTIME SWIGINTERN | |
132 | #endif | |
133 | ||
134 | #ifndef SWIGRUNTIMEINLINE | |
135 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
136 | #endif | |
137 | ||
138 | #include <string.h> | |
139 | ||
140 | #ifdef __cplusplus | |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | typedef void *(*swig_converter_func)(void *); | |
145 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
146 | ||
147 | /* Structure to store inforomation on one type */ | |
148 | typedef struct swig_type_info { | |
149 | const char *name; /* mangled name of this type */ | |
150 | const char *str; /* human readable name of this type */ | |
151 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
152 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
153 | void *clientdata; /* language specific type data */ | |
154 | } swig_type_info; | |
155 | ||
156 | /* Structure to store a type and conversion function used for casting */ | |
157 | typedef struct swig_cast_info { | |
158 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
159 | swig_converter_func converter; /* function to cast the void pointers */ | |
160 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
161 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
162 | } swig_cast_info; | |
163 | ||
164 | /* Structure used to store module information | |
165 | * Each module generates one structure like this, and the runtime collects | |
166 | * all of these structures and stores them in a circularly linked list.*/ | |
167 | typedef struct swig_module_info { | |
168 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
169 | size_t size; /* Number of types in this module */ | |
170 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
171 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
172 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
173 | void *clientdata; /* Language specific module data */ | |
174 | } swig_module_info; | |
175 | ||
176 | ||
177 | /* | |
178 | Compare two type names skipping the space characters, therefore | |
179 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
180 | ||
181 | Return 0 when the two name types are equivalent, as in | |
182 | strncmp, but skipping ' '. | |
183 | */ | |
184 | SWIGRUNTIME int | |
185 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
186 | const char *f2, const char *l2) { | |
187 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
188 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
189 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
190 | if (*f1 != *f2) return (int)(*f1 - *f2); | |
191 | } | |
192 | return (l1 - f1) - (l2 - f2); | |
193 | } | |
194 | ||
195 | /* | |
196 | Check type equivalence in a name list like <name1>|<name2>|... | |
197 | Return 0 if not equal, 1 if equal | |
198 | */ | |
199 | SWIGRUNTIME int | |
200 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
201 | int equiv = 0; | |
202 | const char* te = tb + strlen(tb); | |
203 | const char* ne = nb; | |
204 | while (!equiv && *ne) { | |
205 | for (nb = ne; *ne; ++ne) { | |
206 | if (*ne == '|') break; | |
207 | } | |
208 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; | |
209 | if (*ne) ++ne; | |
210 | } | |
211 | return equiv; | |
212 | } | |
213 | ||
214 | /* | |
215 | Check type equivalence in a name list like <name1>|<name2>|... | |
216 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
217 | */ | |
218 | SWIGRUNTIME int | |
219 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
220 | int equiv = 0; | |
221 | const char* te = tb + strlen(tb); | |
222 | const char* ne = nb; | |
223 | while (!equiv && *ne) { | |
224 | for (nb = ne; *ne; ++ne) { | |
225 | if (*ne == '|') break; | |
226 | } | |
227 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; | |
228 | if (*ne) ++ne; | |
229 | } | |
230 | return equiv; | |
231 | } | |
232 | ||
233 | ||
234 | /* think of this as a c++ template<> or a scheme macro */ | |
235 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
236 | if (ty) { \ | |
237 | swig_cast_info *iter = ty->cast; \ | |
238 | while (iter) { \ | |
239 | if (comparison) { \ | |
240 | if (iter == ty->cast) return iter; \ | |
241 | /* Move iter to the top of the linked list */ \ | |
242 | iter->prev->next = iter->next; \ | |
243 | if (iter->next) \ | |
244 | iter->next->prev = iter->prev; \ | |
245 | iter->next = ty->cast; \ | |
246 | iter->prev = 0; \ | |
247 | if (ty->cast) ty->cast->prev = iter; \ | |
248 | ty->cast = iter; \ | |
249 | return iter; \ | |
250 | } \ | |
251 | iter = iter->next; \ | |
252 | } \ | |
253 | } \ | |
254 | return 0 | |
255 | ||
256 | /* | |
257 | Check the typename | |
258 | */ | |
259 | SWIGRUNTIME swig_cast_info * | |
260 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
261 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); | |
262 | } | |
263 | ||
264 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
265 | SWIGRUNTIME swig_cast_info * | |
266 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
267 | SWIG_TypeCheck_Template(iter->type == from, into); | |
268 | } | |
269 | ||
270 | /* | |
271 | Cast a pointer up an inheritance hierarchy | |
272 | */ | |
273 | SWIGRUNTIMEINLINE void * | |
274 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { | |
275 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); | |
276 | } | |
277 | ||
278 | /* | |
279 | Dynamic pointer casting. Down an inheritance hierarchy | |
280 | */ | |
281 | SWIGRUNTIME swig_type_info * | |
282 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
283 | swig_type_info *lastty = ty; | |
284 | if (!ty || !ty->dcast) return ty; | |
285 | while (ty && (ty->dcast)) { | |
286 | ty = (*ty->dcast)(ptr); | |
287 | if (ty) lastty = ty; | |
288 | } | |
289 | return lastty; | |
290 | } | |
291 | ||
292 | /* | |
293 | Return the name associated with this type | |
294 | */ | |
295 | SWIGRUNTIMEINLINE const char * | |
296 | SWIG_TypeName(const swig_type_info *ty) { | |
297 | return ty->name; | |
298 | } | |
299 | ||
300 | /* | |
301 | Return the pretty name associated with this type, | |
302 | that is an unmangled type name in a form presentable to the user. | |
303 | */ | |
304 | SWIGRUNTIME const char * | |
305 | SWIG_TypePrettyName(const swig_type_info *type) { | |
306 | /* The "str" field contains the equivalent pretty names of the | |
307 | type, separated by vertical-bar characters. We choose | |
308 | to print the last name, as it is often (?) the most | |
309 | specific. */ | |
310 | if (type->str != NULL) { | |
311 | const char *last_name = type->str; | |
312 | const char *s; | |
313 | for (s = type->str; *s; s++) | |
314 | if (*s == '|') last_name = s+1; | |
315 | return last_name; | |
316 | } | |
317 | else | |
318 | return type->name; | |
319 | } | |
320 | ||
321 | /* | |
322 | Set the clientdata field for a type | |
323 | */ | |
324 | SWIGRUNTIME void | |
325 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
326 | swig_cast_info *cast = ti->cast; | |
327 | /* if (ti->clientdata == clientdata) return; */ | |
328 | ti->clientdata = clientdata; | |
329 | ||
330 | while (cast) { | |
331 | if (!cast->converter) { | |
332 | swig_type_info *tc = cast->type; | |
333 | if (!tc->clientdata) { | |
334 | SWIG_TypeClientData(tc, clientdata); | |
335 | } | |
336 | } | |
337 | cast = cast->next; | |
338 | } | |
339 | } | |
340 | ||
341 | /* | |
342 | Search for a swig_type_info structure only by mangled name | |
343 | Search is a O(log #types) | |
344 | ||
345 | We start searching at module start, and finish searching when start == end. | |
346 | Note: if start == end at the beginning of the function, we go all the way around | |
347 | the circular list. | |
348 | */ | |
349 | SWIGRUNTIME swig_type_info * | |
350 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
351 | swig_module_info *end, | |
352 | const char *name) { | |
353 | swig_module_info *iter = start; | |
354 | do { | |
355 | if (iter->size) { | |
356 | register size_t l = 0; | |
357 | register size_t r = iter->size - 1; | |
358 | do { | |
359 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
360 | register size_t i = (l + r) >> 1; | |
361 | const char *iname = iter->types[i]->name; | |
362 | if (iname) { | |
363 | register int compare = strcmp(name, iname); | |
364 | if (compare == 0) { | |
365 | return iter->types[i]; | |
366 | } else if (compare < 0) { | |
367 | if (i) { | |
368 | r = i - 1; | |
369 | } else { | |
370 | break; | |
371 | } | |
372 | } else if (compare > 0) { | |
373 | l = i + 1; | |
374 | } | |
375 | } else { | |
376 | break; /* should never happen */ | |
377 | } | |
378 | } while (l <= r); | |
379 | } | |
380 | iter = iter->next; | |
381 | } while (iter != end); | |
382 | return 0; | |
383 | } | |
384 | ||
385 | /* | |
386 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
387 | It first searches the mangled names of the types, which is a O(log #types) | |
388 | If a type is not found it then searches the human readable names, which is O(#types). | |
389 | ||
390 | We start searching at module start, and finish searching when start == end. | |
391 | Note: if start == end at the beginning of the function, we go all the way around | |
392 | the circular list. | |
393 | */ | |
394 | SWIGRUNTIME swig_type_info * | |
395 | SWIG_TypeQueryModule(swig_module_info *start, | |
396 | swig_module_info *end, | |
397 | const char *name) { | |
398 | /* STEP 1: Search the name field using binary search */ | |
399 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
400 | if (ret) { | |
401 | return ret; | |
402 | } else { | |
403 | /* STEP 2: If the type hasn't been found, do a complete search | |
404 | of the str field (the human readable name) */ | |
405 | swig_module_info *iter = start; | |
406 | do { | |
407 | register size_t i = 0; | |
408 | for (; i < iter->size; ++i) { | |
409 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
410 | return iter->types[i]; | |
411 | } | |
412 | iter = iter->next; | |
413 | } while (iter != end); | |
414 | } | |
415 | ||
416 | /* neither found a match */ | |
417 | return 0; | |
418 | } | |
419 | ||
420 | ||
421 | /* | |
422 | Pack binary data into a string | |
423 | */ | |
424 | SWIGRUNTIME char * | |
425 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
426 | static const char hex[17] = "0123456789abcdef"; | |
427 | register const unsigned char *u = (unsigned char *) ptr; | |
428 | register const unsigned char *eu = u + sz; | |
429 | for (; u != eu; ++u) { | |
430 | register unsigned char uu = *u; | |
431 | *(c++) = hex[(uu & 0xf0) >> 4]; | |
432 | *(c++) = hex[uu & 0xf]; | |
433 | } | |
434 | return c; | |
435 | } | |
436 | ||
437 | /* | |
438 | Unpack binary data from a string | |
439 | */ | |
440 | SWIGRUNTIME const char * | |
441 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
442 | register unsigned char *u = (unsigned char *) ptr; | |
443 | register const unsigned char *eu = u + sz; | |
444 | for (; u != eu; ++u) { | |
445 | register char d = *(c++); | |
446 | register unsigned char uu = 0; | |
447 | if ((d >= '0') && (d <= '9')) | |
448 | uu = ((d - '0') << 4); | |
449 | else if ((d >= 'a') && (d <= 'f')) | |
450 | uu = ((d - ('a'-10)) << 4); | |
451 | else | |
452 | return (char *) 0; | |
453 | d = *(c++); | |
454 | if ((d >= '0') && (d <= '9')) | |
455 | uu |= (d - '0'); | |
456 | else if ((d >= 'a') && (d <= 'f')) | |
457 | uu |= (d - ('a'-10)); | |
458 | else | |
459 | return (char *) 0; | |
460 | *u = uu; | |
461 | } | |
462 | return c; | |
463 | } | |
464 | ||
465 | /* | |
466 | Pack 'void *' into a string buffer. | |
467 | */ | |
468 | SWIGRUNTIME char * | |
469 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
470 | char *r = buff; | |
471 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
472 | *(r++) = '_'; | |
473 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
474 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
475 | strcpy(r,name); | |
476 | return buff; | |
477 | } | |
478 | ||
479 | SWIGRUNTIME const char * | |
480 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
481 | if (*c != '_') { | |
482 | if (strcmp(c,"NULL") == 0) { | |
483 | *ptr = (void *) 0; | |
484 | return name; | |
485 | } else { | |
486 | return 0; | |
487 | } | |
488 | } | |
489 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
490 | } | |
491 | ||
492 | SWIGRUNTIME char * | |
493 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
494 | char *r = buff; | |
495 | size_t lname = (name ? strlen(name) : 0); | |
496 | if ((2*sz + 2 + lname) > bsz) return 0; | |
497 | *(r++) = '_'; | |
498 | r = SWIG_PackData(r,ptr,sz); | |
499 | if (lname) { | |
500 | strncpy(r,name,lname+1); | |
501 | } else { | |
502 | *r = 0; | |
503 | } | |
504 | return buff; | |
505 | } | |
506 | ||
507 | SWIGRUNTIME const char * | |
508 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
509 | if (*c != '_') { | |
510 | if (strcmp(c,"NULL") == 0) { | |
511 | memset(ptr,0,sz); | |
512 | return name; | |
513 | } else { | |
514 | return 0; | |
515 | } | |
516 | } | |
517 | return SWIG_UnpackData(++c,ptr,sz); | |
518 | } | |
519 | ||
520 | #ifdef __cplusplus | |
521 | } | |
522 | #endif | |
523 | ||
524 | /* ----------------------------------------------------------------------------- | |
525 | * SWIG API. Portion that goes into the runtime | |
526 | * ----------------------------------------------------------------------------- */ | |
527 | ||
528 | #ifdef __cplusplus | |
529 | extern "C" { | |
530 | #endif | |
531 | ||
532 | /* ----------------------------------------------------------------------------- | |
533 | * for internal method declarations | |
534 | * ----------------------------------------------------------------------------- */ | |
535 | ||
536 | #ifndef SWIGINTERN | |
537 | # define SWIGINTERN static SWIGUNUSED | |
538 | #endif | |
539 | ||
540 | #ifndef SWIGINTERNINLINE | |
541 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
542 | #endif | |
543 | ||
544 | /* | |
545 | Exception handling in wrappers | |
546 | */ | |
547 | #define SWIG_fail goto fail | |
548 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
549 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
550 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
551 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
552 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
553 | ||
554 | /* | |
555 | Contract support | |
556 | */ | |
557 | #define SWIG_contract_assert(expr, msg) \ | |
558 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
559 | ||
560 | /* ----------------------------------------------------------------------------- | |
561 | * Constant declarations | |
562 | * ----------------------------------------------------------------------------- */ | |
563 | ||
564 | /* Constant Types */ | |
565 | #define SWIG_PY_INT 1 | |
566 | #define SWIG_PY_FLOAT 2 | |
567 | #define SWIG_PY_STRING 3 | |
568 | #define SWIG_PY_POINTER 4 | |
569 | #define SWIG_PY_BINARY 5 | |
570 | ||
571 | /* Constant information structure */ | |
572 | typedef struct swig_const_info { | |
573 | int type; | |
574 | char *name; | |
575 | long lvalue; | |
576 | double dvalue; | |
577 | void *pvalue; | |
578 | swig_type_info **ptype; | |
579 | } swig_const_info; | |
580 | ||
581 | ||
582 | /* ----------------------------------------------------------------------------- | |
583 | * Alloc. memory flags | |
584 | * ----------------------------------------------------------------------------- */ | |
585 | #define SWIG_OLDOBJ 1 | |
586 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
587 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
588 | ||
589 | #ifdef __cplusplus | |
590 | } | |
591 | #endif | |
592 | ||
593 | ||
594 | /*********************************************************************** | |
595 | * pyrun.swg | |
596 | * | |
597 | * This file contains the runtime support for Python modules | |
598 | * and includes code for managing global variables and pointer | |
599 | * type checking. | |
600 | * | |
601 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
602 | ************************************************************************/ | |
603 | ||
604 | /* Common SWIG API */ | |
605 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
606 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
607 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
608 | ||
609 | ||
610 | /* Python-specific SWIG API */ | |
611 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
612 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
613 | ||
614 | /* Runtime API */ | |
615 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
616 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
617 | ||
618 | /* ----------------------------------------------------------------------------- | |
619 | * Pointer declarations | |
620 | * ----------------------------------------------------------------------------- */ | |
621 | /* | |
622 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
623 | C/C++ pointers in the python side. Very useful for debugging, but | |
624 | not always safe. | |
625 | */ | |
626 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
627 | # define SWIG_COBJECT_TYPES | |
628 | #endif | |
629 | ||
630 | /* Flags for pointer conversion */ | |
631 | #define SWIG_POINTER_EXCEPTION 0x1 | |
632 | #define SWIG_POINTER_DISOWN 0x2 | |
633 | ||
634 | ||
635 | /* Add PyOS_snprintf for old Pythons */ | |
636 | #if PY_VERSION_HEX < 0x02020000 | |
637 | #define PyOS_snprintf snprintf | |
638 | #endif | |
639 | ||
640 | #ifdef __cplusplus | |
641 | extern "C" { | |
642 | #endif | |
643 | ||
644 | /* ----------------------------------------------------------------------------- | |
645 | * Create a new pointer string | |
646 | * ----------------------------------------------------------------------------- */ | |
647 | #ifndef SWIG_BUFFER_SIZE | |
648 | #define SWIG_BUFFER_SIZE 1024 | |
649 | #endif | |
650 | ||
651 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
652 | #if PY_VERSION_HEX < 0x02020000 | |
653 | static PyObject * | |
654 | PyString_FromFormat(const char *fmt, ...) { | |
655 | va_list ap; | |
656 | char buf[SWIG_BUFFER_SIZE * 2]; | |
657 | int res; | |
658 | va_start(ap, fmt); | |
659 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
660 | va_end(ap); | |
661 | return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf); | |
662 | } | |
663 | #endif | |
664 | ||
665 | #if PY_VERSION_HEX < 0x01060000 | |
666 | #define PyObject_Del(op) PyMem_DEL((op)) | |
667 | #endif | |
668 | ||
669 | #if defined(SWIG_COBJECT_TYPES) | |
670 | #if !defined(SWIG_COBJECT_PYTHON) | |
671 | /* ----------------------------------------------------------------------------- | |
672 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
673 | * ----------------------------------------------------------------------------- */ | |
674 | ||
675 | typedef struct { | |
676 | PyObject_HEAD | |
677 | void *ptr; | |
678 | const char *desc; | |
679 | } PySwigObject; | |
680 | ||
681 | /* Declarations for objects of type PySwigObject */ | |
682 | ||
683 | SWIGRUNTIME int | |
684 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
685 | { | |
686 | char result[SWIG_BUFFER_SIZE]; | |
687 | flags = flags; | |
688 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { | |
689 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
690 | return 0; | |
691 | } else { | |
692 | return 1; | |
693 | } | |
694 | } | |
695 | ||
696 | SWIGRUNTIME PyObject * | |
697 | PySwigObject_repr(PySwigObject *v) | |
698 | { | |
699 | char result[SWIG_BUFFER_SIZE]; | |
700 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
701 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
702 | } | |
703 | ||
704 | SWIGRUNTIME PyObject * | |
705 | PySwigObject_str(PySwigObject *v) | |
706 | { | |
707 | char result[SWIG_BUFFER_SIZE]; | |
708 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
709 | PyString_FromString(result) : 0; | |
710 | } | |
711 | ||
712 | SWIGRUNTIME PyObject * | |
713 | PySwigObject_long(PySwigObject *v) | |
714 | { | |
715 | return PyLong_FromVoidPtr(v->ptr); | |
716 | } | |
717 | ||
718 | SWIGRUNTIME PyObject * | |
719 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
720 | { | |
721 | PyObject *res = NULL; | |
722 | PyObject *args = PyTuple_New(1); | |
723 | if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) { | |
724 | PyObject *ofmt = PyString_FromString(fmt); | |
725 | if (ofmt) { | |
726 | res = PyString_Format(ofmt,args); | |
727 | Py_DECREF(ofmt); | |
728 | } | |
729 | Py_DECREF(args); | |
730 | } | |
731 | return res; | |
732 | } | |
733 | ||
734 | SWIGRUNTIME PyObject * | |
735 | PySwigObject_oct(PySwigObject *v) | |
736 | { | |
737 | return PySwigObject_format("%o",v); | |
738 | } | |
739 | ||
740 | SWIGRUNTIME PyObject * | |
741 | PySwigObject_hex(PySwigObject *v) | |
742 | { | |
743 | return PySwigObject_format("%x",v); | |
744 | } | |
745 | ||
746 | SWIGRUNTIME int | |
747 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
748 | { | |
749 | int c = strcmp(v->desc, w->desc); | |
750 | if (c) { | |
751 | return (c > 0) ? 1 : -1; | |
752 | } else { | |
753 | void *i = v->ptr; | |
754 | void *j = w->ptr; | |
755 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
756 | } | |
757 | } | |
758 | ||
759 | SWIGRUNTIME void | |
760 | PySwigObject_dealloc(PySwigObject *self) | |
761 | { | |
762 | PyObject_Del(self); | |
763 | } | |
764 | ||
765 | SWIGRUNTIME PyTypeObject* | |
766 | PySwigObject_type(void) { | |
767 | static char pyswigobject_type__doc__[] = | |
768 | "Swig object carries a C/C++ instance pointer"; | |
769 | ||
770 | static PyNumberMethods PySwigObject_as_number = { | |
771 | (binaryfunc)0, /*nb_add*/ | |
772 | (binaryfunc)0, /*nb_subtract*/ | |
773 | (binaryfunc)0, /*nb_multiply*/ | |
774 | (binaryfunc)0, /*nb_divide*/ | |
775 | (binaryfunc)0, /*nb_remainder*/ | |
776 | (binaryfunc)0, /*nb_divmod*/ | |
777 | (ternaryfunc)0,/*nb_power*/ | |
778 | (unaryfunc)0, /*nb_negative*/ | |
779 | (unaryfunc)0, /*nb_positive*/ | |
780 | (unaryfunc)0, /*nb_absolute*/ | |
781 | (inquiry)0, /*nb_nonzero*/ | |
782 | 0, /*nb_invert*/ | |
783 | 0, /*nb_lshift*/ | |
784 | 0, /*nb_rshift*/ | |
785 | 0, /*nb_and*/ | |
786 | 0, /*nb_xor*/ | |
787 | 0, /*nb_or*/ | |
788 | (coercion)0, /*nb_coerce*/ | |
789 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
790 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
791 | (unaryfunc)0, /*nb_float*/ | |
792 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
793 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
794 | #if PY_VERSION_HEX >= 0x02020000 | |
795 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
796 | #elif PY_VERSION_HEX >= 0x02000000 | |
797 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
798 | #endif | |
799 | }; | |
800 | ||
801 | static PyTypeObject pyswigobject_type | |
802 | #if !defined(__cplusplus) | |
803 | ; | |
804 | static int type_init = 0; | |
805 | if (!type_init) { | |
806 | PyTypeObject tmp | |
807 | #endif | |
808 | = { | |
809 | PyObject_HEAD_INIT(&PyType_Type) | |
810 | 0, /*ob_size*/ | |
811 | (char *)"PySwigObject", /*tp_name*/ | |
812 | sizeof(PySwigObject), /*tp_basicsize*/ | |
813 | 0, /*tp_itemsize*/ | |
814 | /* methods */ | |
815 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
816 | (printfunc)PySwigObject_print, /*tp_print*/ | |
817 | (getattrfunc)0, /*tp_getattr*/ | |
818 | (setattrfunc)0, /*tp_setattr*/ | |
819 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
820 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
821 | &PySwigObject_as_number, /*tp_as_number*/ | |
822 | 0, /*tp_as_sequence*/ | |
823 | 0, /*tp_as_mapping*/ | |
824 | (hashfunc)0, /*tp_hash*/ | |
825 | (ternaryfunc)0, /*tp_call*/ | |
826 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
827 | /* Space for future expansion */ | |
828 | 0,0,0,0, | |
829 | pyswigobject_type__doc__, /* Documentation string */ | |
830 | #if PY_VERSION_HEX >= 0x02000000 | |
831 | 0, /* tp_traverse */ | |
832 | 0, /* tp_clear */ | |
833 | #endif | |
834 | #if PY_VERSION_HEX >= 0x02010000 | |
835 | 0, /* tp_richcompare */ | |
836 | 0, /* tp_weaklistoffset */ | |
837 | #endif | |
838 | #if PY_VERSION_HEX >= 0x02020000 | |
839 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
840 | #endif | |
841 | #if PY_VERSION_HEX >= 0x02030000 | |
842 | 0, /* tp_del */ | |
843 | #endif | |
844 | #ifdef COUNT_ALLOCS | |
845 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
846 | #endif | |
847 | }; | |
848 | #if !defined(__cplusplus) | |
849 | pyswigobject_type = tmp; | |
850 | type_init = 1; | |
851 | } | |
852 | #endif | |
853 | return &pyswigobject_type; | |
854 | } | |
855 | ||
856 | SWIGRUNTIME PyObject * | |
857 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
858 | { | |
859 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); | |
860 | if (self) { | |
861 | self->ptr = ptr; | |
862 | self->desc = desc; | |
863 | } | |
864 | return (PyObject *)self; | |
865 | } | |
866 | ||
867 | SWIGRUNTIMEINLINE void * | |
868 | PySwigObject_AsVoidPtr(PyObject *self) | |
869 | { | |
870 | return ((PySwigObject *)self)->ptr; | |
871 | } | |
872 | ||
873 | SWIGRUNTIMEINLINE const char * | |
874 | PySwigObject_GetDesc(PyObject *self) | |
875 | { | |
876 | return ((PySwigObject *)self)->desc; | |
877 | } | |
878 | ||
879 | SWIGRUNTIMEINLINE int | |
880 | PySwigObject_Check(PyObject *op) { | |
881 | return ((op)->ob_type == PySwigObject_type()) | |
882 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
883 | } | |
884 | ||
885 | /* ----------------------------------------------------------------------------- | |
886 | * Implements a simple Swig Packed type, and use it instead of string | |
887 | * ----------------------------------------------------------------------------- */ | |
888 | ||
889 | typedef struct { | |
890 | PyObject_HEAD | |
891 | void *pack; | |
892 | const char *desc; | |
893 | size_t size; | |
894 | } PySwigPacked; | |
895 | ||
896 | SWIGRUNTIME int | |
897 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
898 | { | |
899 | char result[SWIG_BUFFER_SIZE]; | |
900 | flags = flags; | |
901 | fputs("<Swig Packed ", fp); | |
902 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
903 | fputs("at ", fp); | |
904 | fputs(result, fp); | |
905 | } | |
906 | fputs(v->desc,fp); | |
907 | fputs(">", fp); | |
908 | return 0; | |
909 | } | |
910 | ||
911 | SWIGRUNTIME PyObject * | |
912 | PySwigPacked_repr(PySwigPacked *v) | |
913 | { | |
914 | char result[SWIG_BUFFER_SIZE]; | |
915 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
916 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
917 | } else { | |
918 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
919 | } | |
920 | } | |
921 | ||
922 | SWIGRUNTIME PyObject * | |
923 | PySwigPacked_str(PySwigPacked *v) | |
924 | { | |
925 | char result[SWIG_BUFFER_SIZE]; | |
926 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
927 | return PyString_FromFormat("%s%s", result, v->desc); | |
928 | } else { | |
929 | return PyString_FromString(v->desc); | |
930 | } | |
931 | } | |
932 | ||
933 | SWIGRUNTIME int | |
934 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
935 | { | |
936 | int c = strcmp(v->desc, w->desc); | |
937 | if (c) { | |
938 | return (c > 0) ? 1 : -1; | |
939 | } else { | |
940 | size_t i = v->size; | |
941 | size_t j = w->size; | |
942 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
943 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
944 | } | |
945 | } | |
946 | ||
947 | SWIGRUNTIME void | |
948 | PySwigPacked_dealloc(PySwigPacked *self) | |
949 | { | |
950 | free(self->pack); | |
951 | PyObject_Del(self); | |
952 | } | |
953 | ||
954 | SWIGRUNTIME PyTypeObject* | |
955 | PySwigPacked_type(void) { | |
956 | static char pyswigpacked_type__doc__[] = | |
957 | "Swig object carries a C/C++ instance pointer"; | |
958 | static PyTypeObject pyswigpacked_type | |
959 | #if !defined(__cplusplus) | |
960 | ; | |
961 | static int type_init = 0; | |
962 | if (!type_init) { | |
963 | PyTypeObject tmp | |
964 | #endif | |
965 | = { | |
966 | PyObject_HEAD_INIT(&PyType_Type) | |
967 | 0, /*ob_size*/ | |
968 | (char *)"PySwigPacked", /*tp_name*/ | |
969 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
970 | 0, /*tp_itemsize*/ | |
971 | /* methods */ | |
972 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
973 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
974 | (getattrfunc)0, /*tp_getattr*/ | |
975 | (setattrfunc)0, /*tp_setattr*/ | |
976 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
977 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
978 | 0, /*tp_as_number*/ | |
979 | 0, /*tp_as_sequence*/ | |
980 | 0, /*tp_as_mapping*/ | |
981 | (hashfunc)0, /*tp_hash*/ | |
982 | (ternaryfunc)0, /*tp_call*/ | |
983 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
984 | /* Space for future expansion */ | |
985 | 0,0,0,0, | |
986 | pyswigpacked_type__doc__, /* Documentation string */ | |
987 | #if PY_VERSION_HEX >= 0x02000000 | |
988 | 0, /* tp_traverse */ | |
989 | 0, /* tp_clear */ | |
990 | #endif | |
991 | #if PY_VERSION_HEX >= 0x02010000 | |
992 | 0, /* tp_richcompare */ | |
993 | 0, /* tp_weaklistoffset */ | |
994 | #endif | |
995 | #if PY_VERSION_HEX >= 0x02020000 | |
996 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
997 | #endif | |
998 | #if PY_VERSION_HEX >= 0x02030000 | |
999 | 0, /* tp_del */ | |
1000 | #endif | |
1001 | #ifdef COUNT_ALLOCS | |
1002 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1003 | #endif | |
1004 | }; | |
1005 | #if !defined(__cplusplus) | |
1006 | pyswigpacked_type = tmp; | |
1007 | type_init = 1; | |
1008 | } | |
1009 | #endif | |
1010 | return &pyswigpacked_type; | |
1011 | } | |
1012 | ||
1013 | SWIGRUNTIME PyObject * | |
1014 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
1015 | { | |
1016 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); | |
1017 | if (self == NULL) { | |
1018 | return NULL; | |
1019 | } else { | |
1020 | void *pack = malloc(size); | |
1021 | if (pack) { | |
1022 | memcpy(pack, ptr, size); | |
1023 | self->pack = pack; | |
1024 | self->desc = desc; | |
1025 | self->size = size; | |
1026 | return (PyObject *) self; | |
1027 | } | |
1028 | return NULL; | |
1029 | } | |
1030 | } | |
1031 | ||
1032 | SWIGRUNTIMEINLINE const char * | |
1033 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1034 | { | |
1035 | PySwigPacked *self = (PySwigPacked *)obj; | |
1036 | if (self->size != size) return 0; | |
1037 | memcpy(ptr, self->pack, size); | |
1038 | return self->desc; | |
1039 | } | |
1040 | ||
1041 | SWIGRUNTIMEINLINE const char * | |
1042 | PySwigPacked_GetDesc(PyObject *self) | |
1043 | { | |
1044 | return ((PySwigPacked *)self)->desc; | |
1045 | } | |
1046 | ||
1047 | SWIGRUNTIMEINLINE int | |
1048 | PySwigPacked_Check(PyObject *op) { | |
1049 | return ((op)->ob_type == PySwigPacked_type()) | |
1050 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1051 | } | |
1052 | ||
1053 | #else | |
1054 | /* ----------------------------------------------------------------------------- | |
1055 | * Use the old Python PyCObject instead of PySwigObject | |
1056 | * ----------------------------------------------------------------------------- */ | |
1057 | ||
1058 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1059 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1060 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1061 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1062 | ||
1063 | #endif | |
1064 | ||
1065 | #endif | |
1066 | ||
1067 | /* ----------------------------------------------------------------------------- | |
1068 | * errors manipulation | |
1069 | * ----------------------------------------------------------------------------- */ | |
1070 | ||
1071 | SWIGRUNTIME void | |
1072 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1073 | { | |
1074 | if (type) { | |
1075 | #if defined(SWIG_COBJECT_TYPES) | |
1076 | if (obj && PySwigObject_Check(obj)) { | |
1077 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
1078 | if (otype) { | |
1079 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1080 | type, otype); | |
1081 | return; | |
1082 | } | |
1083 | } else | |
1084 | #endif | |
1085 | { | |
1086 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1087 | if (otype) { | |
1088 | PyObject *str = PyObject_Str(obj); | |
1089 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1090 | if (cstr) { | |
1091 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1092 | type, otype, cstr); | |
1093 | } else { | |
1094 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1095 | type, otype); | |
1096 | } | |
1097 | Py_XDECREF(str); | |
1098 | return; | |
1099 | } | |
1100 | } | |
1101 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1102 | } else { | |
1103 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1104 | } | |
1105 | } | |
1106 | ||
1107 | SWIGRUNTIMEINLINE void | |
1108 | SWIG_Python_NullRef(const char *type) | |
1109 | { | |
1110 | if (type) { | |
1111 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1112 | } else { | |
1113 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1114 | } | |
1115 | } | |
1116 | ||
1117 | SWIGRUNTIME int | |
1118 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1119 | { | |
1120 | if (PyErr_Occurred()) { | |
1121 | PyObject *type = 0; | |
1122 | PyObject *value = 0; | |
1123 | PyObject *traceback = 0; | |
1124 | PyErr_Fetch(&type, &value, &traceback); | |
1125 | if (value) { | |
1126 | PyObject *old_str = PyObject_Str(value); | |
1127 | Py_XINCREF(type); | |
1128 | PyErr_Clear(); | |
1129 | if (infront) { | |
1130 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1131 | } else { | |
1132 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1133 | } | |
1134 | Py_DECREF(old_str); | |
1135 | } | |
1136 | return 1; | |
1137 | } else { | |
1138 | return 0; | |
1139 | } | |
1140 | } | |
1141 | ||
1142 | SWIGRUNTIME int | |
1143 | SWIG_Python_ArgFail(int argnum) | |
1144 | { | |
1145 | if (PyErr_Occurred()) { | |
1146 | /* add information about failing argument */ | |
1147 | char mesg[256]; | |
1148 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
1149 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1150 | } else { | |
1151 | return 0; | |
1152 | } | |
1153 | } | |
1154 | ||
1155 | ||
1156 | /* ----------------------------------------------------------------------------- | |
1157 | * pointers/data manipulation | |
1158 | * ----------------------------------------------------------------------------- */ | |
1159 | ||
1160 | /* Convert a pointer value */ | |
1161 | SWIGRUNTIME int | |
1162 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1163 | swig_cast_info *tc; | |
1164 | const char *c = 0; | |
1165 | static PyObject *SWIG_this = 0; | |
1166 | int newref = 0; | |
1167 | PyObject *pyobj = 0; | |
1168 | void *vptr; | |
1169 | ||
1170 | if (!obj) return 0; | |
1171 | if (obj == Py_None) { | |
1172 | *ptr = 0; | |
1173 | return 0; | |
1174 | } | |
1175 | ||
1176 | #ifdef SWIG_COBJECT_TYPES | |
1177 | if (!(PySwigObject_Check(obj))) { | |
1178 | if (!SWIG_this) | |
1179 | SWIG_this = PyString_FromString("this"); | |
1180 | pyobj = obj; | |
1181 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1182 | newref = 1; | |
1183 | if (!obj) goto type_error; | |
1184 | if (!PySwigObject_Check(obj)) { | |
1185 | Py_DECREF(obj); | |
1186 | goto type_error; | |
1187 | } | |
1188 | } | |
1189 | vptr = PySwigObject_AsVoidPtr(obj); | |
1190 | c = (const char *) PySwigObject_GetDesc(obj); | |
1191 | if (newref) { Py_DECREF(obj); } | |
1192 | goto type_check; | |
1193 | #else | |
1194 | if (!(PyString_Check(obj))) { | |
1195 | if (!SWIG_this) | |
1196 | SWIG_this = PyString_FromString("this"); | |
1197 | pyobj = obj; | |
1198 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1199 | newref = 1; | |
1200 | if (!obj) goto type_error; | |
1201 | if (!PyString_Check(obj)) { | |
1202 | Py_DECREF(obj); | |
1203 | goto type_error; | |
1204 | } | |
1205 | } | |
1206 | c = PyString_AsString(obj); | |
1207 | /* Pointer values must start with leading underscore */ | |
1208 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1209 | if (newref) { Py_DECREF(obj); } | |
1210 | if (!c) goto type_error; | |
1211 | #endif | |
1212 | ||
1213 | type_check: | |
1214 | if (ty) { | |
1215 | tc = SWIG_TypeCheck(c,ty); | |
1216 | if (!tc) goto type_error; | |
1217 | *ptr = SWIG_TypeCast(tc,vptr); | |
1218 | } else { | |
1219 | *ptr = vptr; | |
1220 | } | |
1221 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1222 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1223 | } | |
1224 | return 0; | |
1225 | ||
1226 | type_error: | |
1227 | PyErr_Clear(); | |
1228 | if (pyobj && !obj) { | |
1229 | obj = pyobj; | |
1230 | if (PyCFunction_Check(obj)) { | |
1231 | /* here we get the method pointer for callbacks */ | |
1232 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1233 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1234 | if (c) { | |
1235 | c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; | |
1236 | if (!c) goto type_error; | |
1237 | goto type_check; | |
1238 | } | |
1239 | } | |
1240 | } | |
1241 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1242 | if (ty) { | |
1243 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1244 | } else { | |
1245 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1246 | } | |
1247 | } | |
1248 | return -1; | |
1249 | } | |
1250 | ||
1251 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1252 | SWIGRUNTIME void * | |
1253 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1254 | void *result; | |
1255 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1256 | PyErr_Clear(); | |
1257 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1258 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1259 | SWIG_Python_ArgFail(argnum); | |
1260 | } | |
1261 | } | |
1262 | return result; | |
1263 | } | |
1264 | ||
1265 | /* Convert a packed value value */ | |
1266 | SWIGRUNTIME int | |
1267 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1268 | swig_cast_info *tc; | |
1269 | const char *c = 0; | |
1270 | ||
1271 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1272 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1273 | #else | |
1274 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1275 | c = PyString_AsString(obj); | |
1276 | /* Pointer values must start with leading underscore */ | |
1277 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1278 | #endif | |
1279 | if (!c) goto type_error; | |
1280 | if (ty) { | |
1281 | tc = SWIG_TypeCheck(c,ty); | |
1282 | if (!tc) goto type_error; | |
1283 | } | |
1284 | return 0; | |
1285 | ||
1286 | type_error: | |
1287 | PyErr_Clear(); | |
1288 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1289 | if (ty) { | |
1290 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1291 | } else { | |
1292 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1293 | } | |
1294 | } | |
1295 | return -1; | |
1296 | } | |
1297 | ||
1298 | /* Create a new array object */ | |
1299 | SWIGRUNTIME PyObject * | |
1300 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1301 | PyObject *robj = 0; | |
1302 | if (!type) { | |
1303 | if (!PyErr_Occurred()) { | |
1304 | PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); | |
1305 | } | |
1306 | return robj; | |
1307 | } | |
1308 | if (!ptr) { | |
1309 | Py_INCREF(Py_None); | |
1310 | return Py_None; | |
1311 | } | |
1312 | #ifdef SWIG_COBJECT_TYPES | |
1313 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1314 | #else | |
1315 | { | |
1316 | char result[SWIG_BUFFER_SIZE]; | |
1317 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1318 | PyString_FromString(result) : 0; | |
1319 | } | |
1320 | #endif | |
1321 | if (!robj || (robj == Py_None)) return robj; | |
1322 | if (type->clientdata) { | |
1323 | PyObject *inst; | |
1324 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1325 | Py_DECREF(robj); | |
1326 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1327 | Py_DECREF(args); | |
1328 | if (inst) { | |
1329 | if (own) { | |
1330 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1331 | } | |
1332 | robj = inst; | |
1333 | } | |
1334 | } | |
1335 | return robj; | |
1336 | } | |
1337 | ||
1338 | SWIGRUNTIME PyObject * | |
1339 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1340 | PyObject *robj = 0; | |
1341 | if (!ptr) { | |
1342 | Py_INCREF(Py_None); | |
1343 | return Py_None; | |
1344 | } | |
1345 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1346 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1347 | #else | |
1348 | { | |
1349 | char result[SWIG_BUFFER_SIZE]; | |
1350 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1351 | PyString_FromString(result) : 0; | |
1352 | } | |
1353 | #endif | |
1354 | return robj; | |
1355 | } | |
1356 | ||
1357 | /* -----------------------------------------------------------------------------* | |
1358 | * Get type list | |
1359 | * -----------------------------------------------------------------------------*/ | |
1360 | ||
1361 | #ifdef SWIG_LINK_RUNTIME | |
1362 | void *SWIG_ReturnGlobalTypeList(void *); | |
1363 | #endif | |
1364 | ||
1365 | SWIGRUNTIME swig_module_info * | |
1366 | SWIG_Python_GetModule(void) { | |
1367 | static void *type_pointer = (void *)0; | |
1368 | /* first check if module already created */ | |
1369 | if (!type_pointer) { | |
1370 | #ifdef SWIG_LINK_RUNTIME | |
1371 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1372 | #else | |
1373 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1374 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1375 | if (PyErr_Occurred()) { | |
1376 | PyErr_Clear(); | |
1377 | type_pointer = (void *)0; | |
1378 | } | |
1379 | #endif | |
1380 | } | |
1381 | return (swig_module_info *) type_pointer; | |
1382 | } | |
1383 | ||
1384 | #if PY_MAJOR_VERSION < 2 | |
1385 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1386 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
1387 | SWIGINTERN int | |
1388 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
1389 | { | |
1390 | PyObject *dict; | |
1391 | if (!PyModule_Check(m)) { | |
1392 | PyErr_SetString(PyExc_TypeError, | |
1393 | "PyModule_AddObject() needs module as first arg"); | |
1394 | return -1; | |
1395 | } | |
1396 | if (!o) { | |
1397 | PyErr_SetString(PyExc_TypeError, | |
1398 | "PyModule_AddObject() needs non-NULL value"); | |
1399 | return -1; | |
1400 | } | |
1401 | ||
1402 | dict = PyModule_GetDict(m); | |
1403 | if (dict == NULL) { | |
1404 | /* Internal error -- modules must have a dict! */ | |
1405 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
1406 | PyModule_GetName(m)); | |
1407 | return -1; | |
1408 | } | |
1409 | if (PyDict_SetItemString(dict, name, o)) | |
1410 | return -1; | |
1411 | Py_DECREF(o); | |
1412 | return 0; | |
1413 | } | |
1414 | #endif | |
1415 | ||
1416 | SWIGRUNTIME void | |
1417 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
1418 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
1419 | ||
1420 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1421 | swig_empty_runtime_method_table); | |
1422 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL); | |
1423 | if (pointer && module) { | |
1424 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1425 | } | |
1426 | } | |
1427 | ||
1428 | #ifdef __cplusplus | |
1429 | } | |
1430 | #endif | |
1431 | ||
1432 | ||
1433 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1434 | ||
1435 | #define SWIGTYPE_p_CLSID swig_types[0] | |
1436 | #define SWIGTYPE_p_char swig_types[1] | |
1437 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
1438 | #define SWIGTYPE_p_int swig_types[3] | |
1439 | #define SWIGTYPE_p_long swig_types[4] | |
1440 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
1441 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
1442 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
1443 | #define SWIGTYPE_p_unsigned_short swig_types[8] | |
1444 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
1445 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
1446 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
1447 | #define SWIGTYPE_p_wxActiveXEvent swig_types[12] | |
1448 | #define SWIGTYPE_p_wxActiveXWindow swig_types[13] | |
1449 | #define SWIGTYPE_p_wxBMPHandler swig_types[14] | |
1450 | #define SWIGTYPE_p_wxBoxSizer swig_types[15] | |
1451 | #define SWIGTYPE_p_wxCURHandler swig_types[16] | |
1452 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[17] | |
1453 | #define SWIGTYPE_p_wxCloseEvent swig_types[18] | |
1454 | #define SWIGTYPE_p_wxCommandEvent swig_types[19] | |
1455 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[20] | |
1456 | #define SWIGTYPE_p_wxControl swig_types[21] | |
1457 | #define SWIGTYPE_p_wxControlWithItems swig_types[22] | |
1458 | #define SWIGTYPE_p_wxDateEvent swig_types[23] | |
1459 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24] | |
1460 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[25] | |
1461 | #define SWIGTYPE_p_wxDuplexMode swig_types[26] | |
1462 | #define SWIGTYPE_p_wxEraseEvent swig_types[27] | |
1463 | #define SWIGTYPE_p_wxEvent swig_types[28] | |
1464 | #define SWIGTYPE_p_wxEvtHandler swig_types[29] | |
1465 | #define SWIGTYPE_p_wxFSFile swig_types[30] | |
1466 | #define SWIGTYPE_p_wxFileSystem swig_types[31] | |
1467 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[32] | |
1468 | #define SWIGTYPE_p_wxFocusEvent swig_types[33] | |
1469 | #define SWIGTYPE_p_wxFuncX swig_types[34] | |
1470 | #define SWIGTYPE_p_wxFuncXArray swig_types[35] | |
1471 | #define SWIGTYPE_p_wxGBSizerItem swig_types[36] | |
1472 | #define SWIGTYPE_p_wxGIFHandler swig_types[37] | |
1473 | #define SWIGTYPE_p_wxGridBagSizer swig_types[38] | |
1474 | #define SWIGTYPE_p_wxGridSizer swig_types[39] | |
1475 | #define SWIGTYPE_p_wxICOHandler swig_types[40] | |
1476 | #define SWIGTYPE_p_wxIEHtmlWindowBase swig_types[41] | |
1477 | #define SWIGTYPE_p_wxIconizeEvent swig_types[42] | |
1478 | #define SWIGTYPE_p_wxIdleEvent swig_types[43] | |
1479 | #define SWIGTYPE_p_wxImage swig_types[44] | |
1480 | #define SWIGTYPE_p_wxImageHandler swig_types[45] | |
1481 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[46] | |
1482 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[47] | |
1483 | #define SWIGTYPE_p_wxInputStream swig_types[48] | |
1484 | #define SWIGTYPE_p_wxJPEGHandler swig_types[49] | |
1485 | #define SWIGTYPE_p_wxKeyEvent swig_types[50] | |
1486 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[51] | |
1487 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[52] | |
1488 | #define SWIGTYPE_p_wxMenu swig_types[53] | |
1489 | #define SWIGTYPE_p_wxMenuBar swig_types[54] | |
1490 | #define SWIGTYPE_p_wxMenuEvent swig_types[55] | |
1491 | #define SWIGTYPE_p_wxMenuItem swig_types[56] | |
1492 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[57] | |
1493 | #define SWIGTYPE_p_wxMouseEvent swig_types[58] | |
1494 | #define SWIGTYPE_p_wxMoveEvent swig_types[59] | |
1495 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[60] | |
1496 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[61] | |
1497 | #define SWIGTYPE_p_wxNotifyEvent swig_types[62] | |
1498 | #define SWIGTYPE_p_wxObject swig_types[63] | |
1499 | #define SWIGTYPE_p_wxPCXHandler swig_types[64] | |
1500 | #define SWIGTYPE_p_wxPNGHandler swig_types[65] | |
1501 | #define SWIGTYPE_p_wxPNMHandler swig_types[66] | |
1502 | #define SWIGTYPE_p_wxPaintEvent swig_types[67] | |
1503 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[68] | |
1504 | #define SWIGTYPE_p_wxPaperSize swig_types[69] | |
1505 | #define SWIGTYPE_p_wxParamX swig_types[70] | |
1506 | #define SWIGTYPE_p_wxParamXArray swig_types[71] | |
1507 | #define SWIGTYPE_p_wxPropX swig_types[72] | |
1508 | #define SWIGTYPE_p_wxPropXArray swig_types[73] | |
1509 | #define SWIGTYPE_p_wxPyApp swig_types[74] | |
1510 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[75] | |
1511 | #define SWIGTYPE_p_wxPyEvent swig_types[76] | |
1512 | #define SWIGTYPE_p_wxPyImageHandler swig_types[77] | |
1513 | #define SWIGTYPE_p_wxPySizer swig_types[78] | |
1514 | #define SWIGTYPE_p_wxPyValidator swig_types[79] | |
1515 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[80] | |
1516 | #define SWIGTYPE_p_wxScrollEvent swig_types[81] | |
1517 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[82] | |
1518 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[83] | |
1519 | #define SWIGTYPE_p_wxShowEvent swig_types[84] | |
1520 | #define SWIGTYPE_p_wxSizeEvent swig_types[85] | |
1521 | #define SWIGTYPE_p_wxSizer swig_types[86] | |
1522 | #define SWIGTYPE_p_wxSizerItem swig_types[87] | |
1523 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[88] | |
1524 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[89] | |
1525 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[90] | |
1526 | #define SWIGTYPE_p_wxTIFFHandler swig_types[91] | |
1527 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[92] | |
1528 | #define SWIGTYPE_p_wxValidator swig_types[93] | |
1529 | #define SWIGTYPE_p_wxWindow swig_types[94] | |
1530 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[95] | |
1531 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[96] | |
1532 | #define SWIGTYPE_p_wxXPMHandler swig_types[97] | |
1533 | #define SWIGTYPE_ptrdiff_t swig_types[98] | |
1534 | #define SWIGTYPE_std__ptrdiff_t swig_types[99] | |
1535 | #define SWIGTYPE_unsigned_int swig_types[100] | |
1536 | static swig_type_info *swig_types[102]; | |
1537 | static swig_module_info swig_module = {swig_types, 101, 0, 0, 0, 0}; | |
1538 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) | |
1539 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
1540 | ||
1541 | /* -------- TYPES TABLE (END) -------- */ | |
1542 | ||
1543 | ||
1544 | /*----------------------------------------------- | |
1545 | @(target):= _activex.so | |
1546 | ------------------------------------------------*/ | |
1547 | #define SWIG_init init_activex | |
1548 | ||
1549 | #define SWIG_name "_activex" | |
1550 | ||
1551 | #include "wx/wxPython/wxPython.h" | |
1552 | #include "wx/wxPython/pyclasses.h" | |
1553 | #include "wx/wxPython/pyistream.h" | |
1554 | ||
1555 | #include "wxactivex.h" | |
1556 | ||
1557 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1558 | ||
1559 | // Since SWIG doesn't support nested classes, we need to fool it a bit | |
1560 | // and make them look like global classes. These defines make the C++ code | |
1561 | // know what we are doing. | |
1562 | #define wxParamX wxActiveX::ParamX | |
1563 | #define wxFuncX wxActiveX::FuncX | |
1564 | #define wxPropX wxActiveX::PropX | |
1565 | #define wxParamXArray wxActiveX::ParamXArray | |
1566 | #define wxFuncXArray wxActiveX::FuncXArray | |
1567 | #define wxPropXArray wxActiveX::PropXArray | |
1568 | ||
1569 | ||
1570 | // Some conversion helpers | |
1571 | static wxVariant _PyObj2Variant(PyObject* value); | |
1572 | static bool _PyObj2Variant(PyObject* value, wxVariant& wv); | |
1573 | static PyObject* _Variant2PyObj(wxVariant& value, bool useNone=false); | |
1574 | static wxString _VARTYPEname(VARTYPE vt); | |
1575 | ||
1576 | // Check if an exception has been raised (blocking threads) | |
1577 | inline bool wxPyErr_Occurred() | |
1578 | { | |
1579 | bool rval; | |
1580 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
1581 | rval = PyErr_Occurred() != NULL; | |
1582 | wxPyEndBlockThreads(blocked); | |
1583 | return rval; | |
1584 | } | |
1585 | ||
1586 | ||
1587 | static CLSID *new_CLSID(wxString const &id){ | |
1588 | int result; | |
1589 | CLSID* self = new CLSID; | |
1590 | memset(self, 0, sizeof(CLSID)); | |
1591 | ||
1592 | if (id[0] == _T('{')) { | |
1593 | // Looks like a classID string | |
1594 | result = | |
1595 | CLSIDFromString( | |
1596 | (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8), | |
1597 | self); | |
1598 | } else { | |
1599 | // Try a progID | |
1600 | result = | |
1601 | CLSIDFromProgID( | |
1602 | (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8), | |
1603 | self); | |
1604 | } | |
1605 | if (result != NOERROR) { | |
1606 | wxPyErr_SetString(PyExc_ValueError, "Not a recognized classID or progID"); | |
1607 | delete self; | |
1608 | return NULL; | |
1609 | } | |
1610 | return self; | |
1611 | } | |
1612 | static void delete_CLSID(CLSID *self){ delete self; } | |
1613 | static wxString CLSID_GetCLSIDString(CLSID *self){ | |
1614 | LPOLESTR s; | |
1615 | wxString str; | |
1616 | if (StringFromCLSID(*self, &s) == S_OK) { | |
1617 | str = s; | |
1618 | CoTaskMemFree(s); | |
1619 | } | |
1620 | else { | |
1621 | str = _T("Error!"); // TODO: raise exception? | |
1622 | } | |
1623 | return str; | |
1624 | } | |
1625 | static wxString CLSID_GetProgIDString(CLSID *self){ | |
1626 | LPOLESTR s; | |
1627 | wxString str; | |
1628 | if (ProgIDFromCLSID(*self, &s) == S_OK) { | |
1629 | str = s; | |
1630 | CoTaskMemFree(s); | |
1631 | } | |
1632 | else { | |
1633 | str = _T("Error!"); // TODO: raise exception? | |
1634 | } | |
1635 | return str; | |
1636 | } | |
1637 | ||
1638 | /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ | |
1639 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
1640 | /*@@*/ | |
1641 | ||
1642 | static wxString wxParamX_vt_type_get(wxParamX *self){ return _VARTYPEname(self->vt); } | |
1643 | ||
1644 | /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ | |
1645 | #define SWIG_From_long PyInt_FromLong | |
1646 | /*@@*/ | |
1647 | ||
1648 | static bool wxParamXArray___nonzero__(wxParamXArray *self){ return self->size() > 0; } | |
1649 | static int wxParamXArray___len__(wxParamXArray *self){ return self->size(); } | |
1650 | ||
1651 | /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ | |
1652 | #define SWIG_From_int PyInt_FromLong | |
1653 | /*@@*/ | |
1654 | ||
1655 | ||
1656 | #include <limits.h> | |
1657 | ||
1658 | ||
1659 | SWIGINTERN int | |
1660 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1661 | const char *errmsg) | |
1662 | { | |
1663 | if (value < min_value) { | |
1664 | if (errmsg) { | |
1665 | PyErr_Format(PyExc_OverflowError, | |
1666 | "value %ld is less than '%s' minimum %ld", | |
1667 | value, errmsg, min_value); | |
1668 | } | |
1669 | return 0; | |
1670 | } else if (value > max_value) { | |
1671 | if (errmsg) { | |
1672 | PyErr_Format(PyExc_OverflowError, | |
1673 | "value %ld is greater than '%s' maximum %ld", | |
1674 | value, errmsg, max_value); | |
1675 | } | |
1676 | return 0; | |
1677 | } | |
1678 | return 1; | |
1679 | } | |
1680 | ||
1681 | ||
1682 | SWIGINTERN int | |
1683 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1684 | { | |
1685 | if (PyNumber_Check(obj)) { | |
1686 | if (val) *val = PyInt_AsLong(obj); | |
1687 | return 1; | |
1688 | } | |
1689 | else { | |
1690 | SWIG_Python_TypeError("number", obj); | |
1691 | } | |
1692 | return 0; | |
1693 | } | |
1694 | ||
1695 | ||
1696 | #if INT_MAX != LONG_MAX | |
1697 | SWIGINTERN int | |
1698 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1699 | { | |
1700 | const char* errmsg = val ? "int" : (char*)0; | |
1701 | long v; | |
1702 | if (SWIG_AsVal_long(obj, &v)) { | |
1703 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1704 | if (val) *val = static_cast<int >(v); | |
1705 | return 1; | |
1706 | } else { | |
1707 | return 0; | |
1708 | } | |
1709 | } else { | |
1710 | PyErr_Clear(); | |
1711 | } | |
1712 | if (val) { | |
1713 | SWIG_type_error(errmsg, obj); | |
1714 | } | |
1715 | return 0; | |
1716 | } | |
1717 | #else | |
1718 | SWIGINTERNINLINE int | |
1719 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1720 | { | |
1721 | return SWIG_AsVal_long(obj,(long*)val); | |
1722 | } | |
1723 | #endif | |
1724 | ||
1725 | ||
1726 | SWIGINTERNINLINE int | |
1727 | SWIG_As_int(PyObject* obj) | |
1728 | { | |
1729 | int v; | |
1730 | if (!SWIG_AsVal_int(obj, &v)) { | |
1731 | /* | |
1732 | this is needed to make valgrind/purify happier. | |
1733 | */ | |
1734 | memset((void*)&v, 0, sizeof(int)); | |
1735 | } | |
1736 | return v; | |
1737 | } | |
1738 | ||
1739 | ||
1740 | SWIGINTERNINLINE int | |
1741 | SWIG_Check_int(PyObject* obj) | |
1742 | { | |
1743 | return SWIG_AsVal_int(obj, (int*)0); | |
1744 | } | |
1745 | ||
1746 | static wxParamX const &wxParamXArray___getitem__(wxParamXArray *self,int idx){ | |
1747 | if ( idx >= 0 && idx < self->size() ) | |
1748 | return (*self)[idx]; | |
1749 | else { | |
1750 | static wxParamX BadVal; | |
1751 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1752 | return BadVal; | |
1753 | } | |
1754 | } | |
1755 | static bool wxFuncXArray___nonzero__(wxFuncXArray *self){ return self->size() > 0; } | |
1756 | static int wxFuncXArray___len__(wxFuncXArray *self){ return self->size(); } | |
1757 | static wxFuncX const &wxFuncXArray___getitem__(wxFuncXArray *self,int idx){ | |
1758 | if ( idx >= 0 && idx < self->size() ) | |
1759 | return (*self)[idx]; | |
1760 | else { | |
1761 | static wxFuncX BadVal; | |
1762 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1763 | return BadVal; | |
1764 | } | |
1765 | } | |
1766 | static bool wxPropXArray___nonzero__(wxPropXArray *self){ return self->size() > 0; } | |
1767 | static int wxPropXArray___len__(wxPropXArray *self){ return self->size(); } | |
1768 | static wxPropX const &wxPropXArray___getitem__(wxPropXArray *self,int idx){ | |
1769 | if ( idx >= 0 && idx < self->size() ) | |
1770 | return (*self)[idx]; | |
1771 | else { | |
1772 | static wxPropX BadVal; | |
1773 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1774 | return BadVal; | |
1775 | } | |
1776 | } | |
1777 | ||
1778 | // C++ version of a Python-aware wxActiveX | |
1779 | class wxActiveXWindow : public wxActiveX | |
1780 | { | |
1781 | private: | |
1782 | CLSID m_CLSID; | |
1783 | ||
1784 | DECLARE_ABSTRACT_CLASS(wxActiveXWindow); | |
1785 | ||
1786 | public: | |
1787 | wxActiveXWindow( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1, | |
1788 | const wxPoint& pos = wxDefaultPosition, | |
1789 | const wxSize& size = wxDefaultSize, | |
1790 | long style = 0, | |
1791 | const wxString& name = wxPyPanelNameStr) | |
1792 | : wxActiveX(parent, clsId, id, pos, size, style, name) | |
1793 | { | |
1794 | m_CLSID = clsId; | |
1795 | } | |
1796 | ||
1797 | const CLSID& GetCLSID() const { return m_CLSID; } | |
1798 | ||
1799 | ||
1800 | // Renamed versions of some base class methods that delegate | |
1801 | // to the base where appropriate, and raise Python exceptions | |
1802 | // when needed. | |
1803 | int GetAXEventCount() const { return wxActiveX::GetEventCount(); } | |
1804 | int GetAXPropCount() const { return wxActiveX::GetPropCount(); } | |
1805 | int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); } | |
1806 | ||
1807 | const wxFuncX& GetAXEventDesc(int idx) const | |
1808 | { | |
1809 | static wxFuncX BadVal; | |
1810 | if (idx < 0 || idx >= GetAXEventCount()) { | |
1811 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1812 | return BadVal; | |
1813 | } | |
1814 | return m_events[idx]; | |
1815 | } | |
1816 | const wxFuncX& GetAXMethodDesc(int idx) const | |
1817 | { | |
1818 | static wxFuncX BadVal; | |
1819 | if (idx < 0 || idx >= GetAXMethodCount()) { | |
1820 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1821 | return BadVal; | |
1822 | } | |
1823 | return m_methods[idx]; | |
1824 | } | |
1825 | const wxPropX& GetAXPropDesc(int idx) const | |
1826 | { | |
1827 | static wxPropX BadVal; | |
1828 | if (idx < 0 || idx >= GetAXPropCount()) { | |
1829 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1830 | return BadVal; | |
1831 | } | |
1832 | return m_props[idx]; | |
1833 | } | |
1834 | ||
1835 | const wxFuncX& GetAXMethodDesc(const wxString& name) const | |
1836 | { | |
1837 | NameMap::const_iterator it = m_methodNames.find(name); | |
1838 | if (it == m_methodNames.end()) { | |
1839 | wxString msg; | |
1840 | msg << _T("method <") << name << _T("> not found"); | |
1841 | wxPyErr_SetString(PyExc_KeyError, msg.mb_str()); | |
1842 | static wxFuncX BadVal; | |
1843 | return BadVal; | |
1844 | }; | |
1845 | return GetAXMethodDesc(it->second); | |
1846 | } | |
1847 | const wxPropX& GetAXPropDesc(const wxString& name) const | |
1848 | { | |
1849 | NameMap::const_iterator it = m_propNames.find(name); | |
1850 | if (it == m_propNames.end()) { | |
1851 | wxString msg; | |
1852 | msg << _T("property <") << name << _T("> not found"); | |
1853 | wxPyErr_SetString(PyExc_KeyError, msg.mb_str()); | |
1854 | static wxPropX BadVal; | |
1855 | return BadVal; | |
1856 | }; | |
1857 | return GetAXPropDesc(it->second); | |
1858 | } | |
1859 | ||
1860 | // Accessors for the internal vectors of events, methods and | |
1861 | // proprties. Can be used as sequence like objects from | |
1862 | // Python. | |
1863 | const wxFuncXArray& GetAXEvents() { return m_events; } | |
1864 | const wxFuncXArray& GetAXMethods() { return m_methods; } | |
1865 | const wxPropXArray& GetAXProperties() { return m_props; } | |
1866 | ||
1867 | ||
1868 | // Set a property from a Python object | |
1869 | void SetAXProp(const wxString& name, PyObject* value) | |
1870 | { | |
1871 | const wxPropX& prop = GetAXPropDesc(name); | |
1872 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
1873 | if (! PyErr_Occurred() ) { | |
1874 | if (! prop.CanSet()) { | |
1875 | wxString msg; | |
1876 | msg << _T("property <") << name << _T("> is readonly"); | |
1877 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1878 | goto done; | |
1879 | } else { | |
1880 | wxVariant wxV = _PyObj2Variant(value); | |
1881 | if (PyErr_Occurred()) | |
1882 | goto done; | |
1883 | VARIANT v = {prop.arg.vt}; | |
1884 | if (!VariantToMSWVariant(wxV, v) || PyErr_Occurred()) { | |
1885 | wxString msg; | |
1886 | msg << _T("Unable to convert value to expected type: (") | |
1887 | << _VARTYPEname(prop.arg.vt) << _T(") for property <") | |
1888 | << name << _T(">"); | |
1889 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1890 | goto done; | |
1891 | } | |
1892 | PyThreadState* tstate = wxPyBeginAllowThreads(); | |
1893 | SetProp(prop.memid, v); | |
1894 | VariantClear(&v); | |
1895 | wxPyEndAllowThreads(tstate); | |
1896 | } | |
1897 | } | |
1898 | done: | |
1899 | wxPyEndBlockThreads(blocked); | |
1900 | } | |
1901 | ||
1902 | ||
1903 | // Get a property and convert it to a Python object | |
1904 | PyObject* GetAXProp(const wxString& name) | |
1905 | { | |
1906 | PyObject* rval = NULL; | |
1907 | const wxPropX& prop = GetAXPropDesc(name); | |
1908 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
1909 | if (! PyErr_Occurred() ) { | |
1910 | if (! prop.CanGet()) { | |
1911 | wxString msg; | |
1912 | msg << _T("property <") << name << _T("> is writeonly"); | |
1913 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1914 | goto done; | |
1915 | } else { | |
1916 | PyThreadState* tstate = wxPyBeginAllowThreads(); | |
1917 | VARIANT v = GetPropAsVariant(prop.memid); | |
1918 | wxPyEndAllowThreads(tstate); | |
1919 | wxVariant wv; | |
1920 | if (!MSWVariantToVariant(v, wv) || PyErr_Occurred()) { | |
1921 | wxString msg; | |
1922 | msg << _T("Unable to convert value to expected type: (") | |
1923 | << _VARTYPEname(prop.arg.vt) << _T(") for property <") | |
1924 | << name << _T(">"); | |
1925 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1926 | goto done; | |
1927 | } | |
1928 | rval = _Variant2PyObj(wv); | |
1929 | VariantClear(&v); | |
1930 | } | |
1931 | } | |
1932 | done: | |
1933 | wxPyEndBlockThreads(blocked); | |
1934 | return rval; | |
1935 | } | |
1936 | ||
1937 | ||
1938 | // If both IsIn and isOut are false, assume it is actually an | |
1939 | // input param | |
1940 | bool paramIsIn(const wxParamX& p) | |
1941 | { | |
1942 | return p.IsIn() || (!p.IsIn() && !p.IsOut()); | |
1943 | } | |
1944 | ||
1945 | ||
1946 | // Call a method of the ActiveX object | |
1947 | PyObject* _CallAXMethod(const wxString& name, PyObject* args) | |
1948 | { | |
1949 | VARIANTARG *vargs = NULL; | |
1950 | int nargs = 0; | |
1951 | PyObject* rval = NULL; | |
1952 | const wxFuncX& func = GetAXMethodDesc(name); | |
1953 | ||
1954 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
1955 | if (! PyErr_Occurred() ) { | |
1956 | nargs = func.params.size(); | |
1957 | if (nargs > 0) | |
1958 | vargs = new VARIANTARG[nargs]; | |
1959 | ||
1960 | if (vargs) { | |
1961 | // init type of vargs, in reverse order | |
1962 | int i; | |
1963 | for (i = 0; i < nargs; i++) | |
1964 | vargs[nargs - i - 1].vt = func.params[i].vt; | |
1965 | ||
1966 | // Map the args coming from Python to the input parameters in vargs | |
1967 | int pi = 0; | |
1968 | i = 0; | |
1969 | while ( i<nargs && pi<PyTuple_Size(args) ) { | |
1970 | // Move to the next input param. | |
1971 | if (! paramIsIn(func.params[i])) { | |
1972 | i += 1; | |
1973 | continue; | |
1974 | } | |
1975 | // convert the python object | |
1976 | PyObject* obj = PyTuple_GetItem(args, pi); | |
1977 | if (obj == Py_None) // special-case None? | |
1978 | vargs[nargs - i - 1].vt = VT_EMPTY; | |
1979 | else { | |
1980 | wxVariant wxV = _PyObj2Variant(obj); | |
1981 | if (PyErr_Occurred()) | |
1982 | goto done; | |
1983 | if (!VariantToMSWVariant(wxV, vargs[nargs - i - 1]) || PyErr_Occurred()) { | |
1984 | wxString msg; | |
1985 | msg << _T("Unable to convert value to expected type: (") | |
1986 | << _VARTYPEname(vargs[nargs - i - 1].vt) | |
1987 | << _T(") for parameter ") << i; | |
1988 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1989 | goto done; | |
1990 | } | |
1991 | } | |
1992 | i += 1; | |
1993 | pi += 1; | |
1994 | } | |
1995 | } | |
1996 | ||
1997 | // call the method | |
1998 | PyThreadState* tstate = wxPyBeginAllowThreads(); | |
1999 | VARIANT rv = CallMethod(func.memid, vargs, nargs); | |
2000 | wxPyEndAllowThreads(tstate); | |
2001 | ||
2002 | // Convert the return value and any out-params, ignoring | |
2003 | // conversion errors for now | |
2004 | wxVariant wv; | |
2005 | MSWVariantToVariant(rv, wv); | |
2006 | rval = _Variant2PyObj(wv, true); | |
2007 | VariantClear(&rv); | |
2008 | ||
2009 | if (func.hasOut) { | |
2010 | // make a list and put the rval in it if it is not None | |
2011 | PyObject* lst = PyList_New(0); | |
2012 | if (rval != Py_None) | |
2013 | PyList_Append(lst, rval); | |
2014 | else | |
2015 | Py_DECREF(rval); | |
2016 | ||
2017 | // find the out params and convert them | |
2018 | for (int i = 0; i < nargs; i++) { | |
2019 | VARIANTARG& va = vargs[nargs - i - 1]; | |
2020 | const wxParamX &px = func.params[i]; | |
2021 | if (px.IsOut()) { | |
2022 | MSWVariantToVariant(va, wv); | |
2023 | PyObject* obj = _Variant2PyObj(wv, true); | |
2024 | PyList_Append(lst, obj); | |
2025 | } | |
2026 | } | |
2027 | rval = PyList_AsTuple(lst); | |
2028 | Py_DECREF(lst); | |
2029 | } | |
2030 | if (PyErr_Occurred()) | |
2031 | PyErr_Clear(); | |
2032 | } | |
2033 | done: | |
2034 | wxPyEndBlockThreads(blocked); | |
2035 | if (vargs) { | |
2036 | for (int i = 0; i < nargs; i++) | |
2037 | VariantClear(&vargs[i]); | |
2038 | delete [] vargs; | |
2039 | } | |
2040 | return rval; | |
2041 | } | |
2042 | }; | |
2043 | ||
2044 | IMPLEMENT_ABSTRACT_CLASS( wxActiveXWindow, wxWindow ); | |
2045 | ||
2046 | ||
2047 | SWIGINTERNINLINE long | |
2048 | SWIG_As_long(PyObject* obj) | |
2049 | { | |
2050 | long v; | |
2051 | if (!SWIG_AsVal_long(obj, &v)) { | |
2052 | /* | |
2053 | this is needed to make valgrind/purify happier. | |
2054 | */ | |
2055 | memset((void*)&v, 0, sizeof(long)); | |
2056 | } | |
2057 | return v; | |
2058 | } | |
2059 | ||
2060 | ||
2061 | SWIGINTERNINLINE int | |
2062 | SWIG_Check_long(PyObject* obj) | |
2063 | { | |
2064 | return SWIG_AsVal_long(obj, (long*)0); | |
2065 | } | |
2066 | ||
2067 | static void wxActiveXEvent__preCallInit(wxActiveXEvent *self,PyObject *pyself){ | |
2068 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2069 | PyObject* pList = PyList_New(0); | |
2070 | PyObject_SetAttrString(pyself, "paramList", pList); | |
2071 | Py_DECREF(pList); | |
2072 | for (int i=0; i<self->ParamCount(); i+=1) { | |
2073 | PyObject* name = PyString_FromString((char*)(const char*)self->ParamName(i).mb_str()); | |
2074 | PyObject* val = _Variant2PyObj((*self)[i], true); | |
2075 | PyObject_SetAttr(pyself, name, val); | |
2076 | PyList_Append(pList, name); | |
2077 | Py_DECREF(val); | |
2078 | Py_DECREF(name); | |
2079 | } | |
2080 | wxPyEndBlockThreads(blocked); | |
2081 | } | |
2082 | static void wxActiveXEvent__postCallCleanup(wxActiveXEvent *self,PyObject *pyself){ | |
2083 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2084 | for (int i=0; i<self->ParamCount(); i+=1) { | |
2085 | PyObject* val = PyObject_GetAttrString( | |
2086 | pyself, (char*)(const char*)self->ParamName(i).mb_str()); | |
2087 | _PyObj2Variant(val, (*self)[i]); | |
2088 | Py_DECREF(val); | |
2089 | } | |
2090 | wxPyEndBlockThreads(blocked); | |
2091 | } | |
2092 | ||
2093 | ||
2094 | // Caller should already have the GIL! | |
2095 | wxVariant _PyObj2Variant(PyObject* value) | |
2096 | { | |
2097 | wxVariant rval; | |
2098 | ||
2099 | if (value == Py_None) | |
2100 | return rval; | |
2101 | ||
2102 | #if PYTHON_API_VERSION >= 1012 // Python 2.3+ | |
2103 | else if (PyBool_Check(value)) | |
2104 | rval = (value == Py_True) ? true : false; | |
2105 | #endif | |
2106 | ||
2107 | else if (PyInt_Check(value)) | |
2108 | rval = PyInt_AS_LONG(value); | |
2109 | ||
2110 | else if (PyFloat_Check(value)) | |
2111 | rval = PyFloat_AS_DOUBLE(value); | |
2112 | ||
2113 | else if (PyString_Check(value) || PyUnicode_Check(value)) | |
2114 | rval = Py2wxString(value); | |
2115 | ||
2116 | // TODO: PyList of strings --> wxArrayString | |
2117 | // wxDateTime | |
2118 | // list of objects | |
2119 | // etc. | |
2120 | ||
2121 | else { | |
2122 | PyErr_SetString(PyExc_TypeError, "Unsupported object type in _PyObj2Variant"); | |
2123 | rval = (long)0; | |
2124 | } | |
2125 | ||
2126 | return rval; | |
2127 | } | |
2128 | ||
2129 | // This one uses the type of the variant to try and force the conversion | |
2130 | bool _PyObj2Variant(PyObject* value, wxVariant& wv) | |
2131 | { | |
2132 | wxString type = wv.GetType(); | |
2133 | ||
2134 | if ( type == _T("long") || type == _T("bool") || type == _T("char") ) | |
2135 | wv = PyInt_AsLong(value); | |
2136 | ||
2137 | else if ( type == _T("string") ) | |
2138 | wv = Py2wxString(value); | |
2139 | ||
2140 | else if ( type == _T("double") ) | |
2141 | wv = PyFloat_AsDouble(value); | |
2142 | ||
2143 | else { | |
2144 | // it's some other type that we dont' handle yet. Log it? | |
2145 | return false; | |
2146 | } | |
2147 | return true; | |
2148 | } | |
2149 | ||
2150 | // Caller should already have the GIL! | |
2151 | PyObject* _Variant2PyObj(wxVariant& value, bool useNone) | |
2152 | { | |
2153 | PyObject* rval = NULL; | |
2154 | ||
2155 | if (value.IsNull()) { | |
2156 | rval = Py_None; | |
2157 | Py_INCREF(rval); | |
2158 | } | |
2159 | ||
2160 | // should "char" be treated as an int or as a string? | |
2161 | else if (value.IsType(_T("char")) || value.IsType(_T("long"))) | |
2162 | rval = PyInt_FromLong(value); | |
2163 | ||
2164 | else if (value.IsType(_T("double"))) | |
2165 | rval = PyFloat_FromDouble(value); | |
2166 | ||
2167 | else if (value.IsType(_T("bool"))) { | |
2168 | rval = (bool)value ? Py_True : Py_False; | |
2169 | Py_INCREF(rval); | |
2170 | } | |
2171 | ||
2172 | else if (value.IsType(_T("string"))) | |
2173 | rval = wx2PyString(value); | |
2174 | ||
2175 | else { | |
2176 | if (useNone) { | |
2177 | rval = Py_None; | |
2178 | Py_INCREF(rval); | |
2179 | } | |
2180 | else { | |
2181 | PyErr_SetString(PyExc_TypeError, "Unsupported object type in _Variant2PyObj"); | |
2182 | } | |
2183 | } | |
2184 | return rval; | |
2185 | } | |
2186 | ||
2187 | ||
2188 | wxString _VARTYPEname(VARTYPE vt) | |
2189 | { | |
2190 | if (vt & VT_BYREF) | |
2191 | vt &= ~(VT_BYREF); | |
2192 | ||
2193 | switch(vt) { | |
2194 | case VT_VARIANT: | |
2195 | return _T("VT_VARIANT"); | |
2196 | ||
2197 | // 1 byte chars | |
2198 | case VT_I1: | |
2199 | case VT_UI1: | |
2200 | // 2 byte shorts | |
2201 | case VT_I2: | |
2202 | case VT_UI2: | |
2203 | // 4 bytes longs | |
2204 | case VT_I4: | |
2205 | case VT_UI4: | |
2206 | case VT_INT: | |
2207 | case VT_UINT: | |
2208 | case VT_ERROR: | |
2209 | return _T("int"); | |
2210 | ||
2211 | // 4 byte floats | |
2212 | case VT_R4: | |
2213 | // 8 byte doubles | |
2214 | case VT_R8: | |
2215 | // decimals are converted from doubles too | |
2216 | case VT_DECIMAL: | |
2217 | return _T("double"); | |
2218 | ||
2219 | case VT_BOOL: | |
2220 | return _T("bool"); | |
2221 | ||
2222 | case VT_DATE: | |
2223 | return _T("wx.DateTime"); | |
2224 | ||
2225 | case VT_BSTR: | |
2226 | return _T("string"); | |
2227 | ||
2228 | case VT_UNKNOWN: | |
2229 | return _T("VT_UNKNOWN"); | |
2230 | ||
2231 | case VT_DISPATCH: | |
2232 | return _T("VT_DISPATCH"); | |
2233 | ||
2234 | case VT_EMPTY: | |
2235 | return _T("VT_EMPTY"); | |
2236 | ||
2237 | case VT_NULL: | |
2238 | return _T("VT_NULL"); | |
2239 | ||
2240 | case VT_VOID: | |
2241 | return _T("VT_VOID"); | |
2242 | ||
2243 | default: | |
2244 | wxString msg; | |
2245 | msg << _T("unsupported type ") << vt; | |
2246 | return msg; | |
2247 | } | |
2248 | } | |
2249 | ||
2250 | ||
2251 | ||
2252 | // A class derived from our wxActiveXWindow for the IE WebBrowser | |
2253 | // control that will serve as a base class for a Python | |
2254 | // implementation. This is done so we can "eat our own dog food" | |
2255 | // and use a class at least mostly generated by genaxmodule, but | |
2256 | // also get some of the extra stuff like loading a document from | |
2257 | // a string or a stream, getting text contents, etc. that | |
2258 | // Lindsay's version gives us. | |
2259 | // | |
2260 | ||
2261 | #include <wx/mstream.h> | |
2262 | #include <oleidl.h> | |
2263 | #include <winerror.h> | |
2264 | #include <exdispid.h> | |
2265 | #include <exdisp.h> | |
2266 | #include <olectl.h> | |
2267 | #include <Mshtml.h> | |
2268 | #include <sstream> | |
2269 | ||
2270 | #include "IEHtmlStream.h" | |
2271 | ||
2272 | class wxIEHtmlWindowBase : public wxActiveXWindow { | |
2273 | private: | |
2274 | wxAutoOleInterface<IWebBrowser2> m_webBrowser; | |
2275 | ||
2276 | DECLARE_ABSTRACT_CLASS(wxIEHtmlWindowBase); | |
2277 | ||
2278 | public: | |
2279 | ||
2280 | wxIEHtmlWindowBase ( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1, | |
2281 | const wxPoint& pos = wxDefaultPosition, | |
2282 | const wxSize& size = wxDefaultSize, | |
2283 | long style = 0, | |
2284 | const wxString& name = wxPyPanelNameStr) | |
2285 | : wxActiveXWindow(parent, clsId, id, pos, size, style, name) | |
2286 | { | |
2287 | HRESULT hret; | |
2288 | ||
2289 | // Get IWebBrowser2 Interface | |
2290 | hret = m_webBrowser.QueryInterface(IID_IWebBrowser2, m_ActiveX); | |
2291 | wxASSERT(SUCCEEDED(hret)); | |
2292 | ||
2293 | // web browser setup | |
2294 | m_webBrowser->put_MenuBar(VARIANT_FALSE); | |
2295 | m_webBrowser->put_AddressBar(VARIANT_FALSE); | |
2296 | m_webBrowser->put_StatusBar(VARIANT_FALSE); | |
2297 | m_webBrowser->put_ToolBar(VARIANT_FALSE); | |
2298 | ||
2299 | m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE); | |
2300 | m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE); | |
2301 | ||
2302 | m_webBrowser->Navigate( L"about:blank", NULL, NULL, NULL, NULL ); | |
2303 | } | |
2304 | ||
2305 | ||
2306 | void SetCharset(const wxString& charset) | |
2307 | { | |
2308 | HRESULT hret; | |
2309 | ||
2310 | // HTML Document ? | |
2311 | IDispatch *pDisp = NULL; | |
2312 | hret = m_webBrowser->get_Document(&pDisp); | |
2313 | wxAutoOleInterface<IDispatch> disp(pDisp); | |
2314 | ||
2315 | if (disp.Ok()) | |
2316 | { | |
2317 | wxAutoOleInterface<IHTMLDocument2> doc(IID_IHTMLDocument2, disp); | |
2318 | if (doc.Ok()) | |
2319 | doc->put_charset((BSTR) (const wchar_t *) charset.wc_str(wxConvUTF8)); | |
2320 | //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data()); | |
2321 | } | |
2322 | } | |
2323 | ||
2324 | ||
2325 | bool LoadString(const wxString& html) | |
2326 | { | |
2327 | char *data = NULL; | |
2328 | size_t len = html.length(); | |
2329 | len *= sizeof(wxChar); | |
2330 | data = (char *) malloc(len); | |
2331 | memcpy(data, html.c_str(), len); | |
2332 | return LoadStream(new wxOwnedMemInputStream(data, len)); | |
2333 | } | |
2334 | ||
2335 | ||
2336 | bool LoadStream(IStreamAdaptorBase *pstrm) | |
2337 | { | |
2338 | // need to prepend this as poxy MSHTML will not recognise a HTML comment | |
2339 | // as starting a html document and treats it as plain text | |
2340 | // Does nayone know how to force it to html mode ? | |
2341 | #if wxUSE_UNICODE | |
2342 | // TODO: What to do in this case??? | |
2343 | #else | |
2344 | pstrm->prepend = _T("<html>"); | |
2345 | #endif | |
2346 | ||
2347 | // strip leading whitespace as it can confuse MSHTML | |
2348 | wxAutoOleInterface<IStream> strm(pstrm); | |
2349 | ||
2350 | // Document Interface | |
2351 | IDispatch *pDisp = NULL; | |
2352 | HRESULT hret = m_webBrowser->get_Document(&pDisp); | |
2353 | if (! pDisp) | |
2354 | return false; | |
2355 | wxAutoOleInterface<IDispatch> disp(pDisp); | |
2356 | ||
2357 | ||
2358 | // get IPersistStreamInit | |
2359 | wxAutoOleInterface<IPersistStreamInit> | |
2360 | pPersistStreamInit(IID_IPersistStreamInit, disp); | |
2361 | ||
2362 | if (pPersistStreamInit.Ok()) | |
2363 | { | |
2364 | HRESULT hr = pPersistStreamInit->InitNew(); | |
2365 | if (SUCCEEDED(hr)) | |
2366 | hr = pPersistStreamInit->Load(strm); | |
2367 | ||
2368 | return SUCCEEDED(hr); | |
2369 | } | |
2370 | else | |
2371 | return false; | |
2372 | } | |
2373 | ||
2374 | bool LoadStream(wxInputStream *is) | |
2375 | { | |
2376 | // wrap reference around stream | |
2377 | IwxStreamAdaptor *pstrm = new IwxStreamAdaptor(is); | |
2378 | pstrm->AddRef(); | |
2379 | ||
2380 | return LoadStream(pstrm); | |
2381 | } | |
2382 | ||
2383 | ||
2384 | wxString GetStringSelection(bool asHTML) | |
2385 | { | |
2386 | wxAutoOleInterface<IHTMLTxtRange> tr(wxieGetSelRange(m_oleObject)); | |
2387 | if (! tr) | |
2388 | return wxEmptyString; | |
2389 | ||
2390 | BSTR text = NULL; | |
2391 | HRESULT hr = E_FAIL; | |
2392 | ||
2393 | if (asHTML) | |
2394 | hr = tr->get_htmlText(&text); | |
2395 | else | |
2396 | hr = tr->get_text(&text); | |
2397 | if (hr != S_OK) | |
2398 | return wxEmptyString; | |
2399 | ||
2400 | wxString s = text; | |
2401 | SysFreeString(text); | |
2402 | ||
2403 | return s; | |
2404 | }; | |
2405 | ||
2406 | wxString GetText(bool asHTML) | |
2407 | { | |
2408 | if (! m_webBrowser.Ok()) | |
2409 | return wxEmptyString; | |
2410 | ||
2411 | // get document dispatch interface | |
2412 | IDispatch *iDisp = NULL; | |
2413 | HRESULT hr = m_webBrowser->get_Document(&iDisp); | |
2414 | if (hr != S_OK) | |
2415 | return wxEmptyString; | |
2416 | ||
2417 | // Query for Document Interface | |
2418 | wxAutoOleInterface<IHTMLDocument2> hd(IID_IHTMLDocument2, iDisp); | |
2419 | iDisp->Release(); | |
2420 | ||
2421 | if (! hd.Ok()) | |
2422 | return wxEmptyString; | |
2423 | ||
2424 | // get body element | |
2425 | IHTMLElement *_body = NULL; | |
2426 | hd->get_body(&_body); | |
2427 | if (! _body) | |
2428 | return wxEmptyString; | |
2429 | wxAutoOleInterface<IHTMLElement> body(_body); | |
2430 | ||
2431 | // get inner text | |
2432 | BSTR text = NULL; | |
2433 | hr = E_FAIL; | |
2434 | ||
2435 | if (asHTML) | |
2436 | hr = body->get_innerHTML(&text); | |
2437 | else | |
2438 | hr = body->get_innerText(&text); | |
2439 | if (hr != S_OK) | |
2440 | return wxEmptyString; | |
2441 | ||
2442 | wxString s = text; | |
2443 | SysFreeString(text); | |
2444 | ||
2445 | return s; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | // void wxIEHtmlWin::SetEditMode(bool seton) | |
2450 | // { | |
2451 | // m_bAmbientUserMode = ! seton; | |
2452 | // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE); | |
2453 | // }; | |
2454 | ||
2455 | // bool wxIEHtmlWin::GetEditMode() | |
2456 | // { | |
2457 | // return ! m_bAmbientUserMode; | |
2458 | // }; | |
2459 | }; | |
2460 | ||
2461 | IMPLEMENT_ABSTRACT_CLASS( wxIEHtmlWindowBase, wxActiveXWindow ); | |
2462 | ||
2463 | ||
2464 | ||
2465 | SWIGINTERN int | |
2466 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
2467 | { | |
2468 | if (obj == Py_True) { | |
2469 | if (val) *val = true; | |
2470 | return 1; | |
2471 | } | |
2472 | if (obj == Py_False) { | |
2473 | if (val) *val = false; | |
2474 | return 1; | |
2475 | } | |
2476 | int res = 0; | |
2477 | if (SWIG_AsVal_int(obj, &res)) { | |
2478 | if (val) *val = res ? true : false; | |
2479 | return 1; | |
2480 | } else { | |
2481 | PyErr_Clear(); | |
2482 | } | |
2483 | if (val) { | |
2484 | SWIG_type_error("bool", obj); | |
2485 | } | |
2486 | return 0; | |
2487 | } | |
2488 | ||
2489 | ||
2490 | SWIGINTERNINLINE bool | |
2491 | SWIG_As_bool(PyObject* obj) | |
2492 | { | |
2493 | bool v; | |
2494 | if (!SWIG_AsVal_bool(obj, &v)) { | |
2495 | /* | |
2496 | this is needed to make valgrind/purify happier. | |
2497 | */ | |
2498 | memset((void*)&v, 0, sizeof(bool)); | |
2499 | } | |
2500 | return v; | |
2501 | } | |
2502 | ||
2503 | ||
2504 | SWIGINTERNINLINE int | |
2505 | SWIG_Check_bool(PyObject* obj) | |
2506 | { | |
2507 | return SWIG_AsVal_bool(obj, (bool*)0); | |
2508 | } | |
2509 | ||
2510 | #ifdef __cplusplus | |
2511 | extern "C" { | |
2512 | #endif | |
2513 | static PyObject *_wrap_new_CLSID(PyObject *, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject *resultobj = NULL; | |
2515 | wxString *arg1 = 0 ; | |
2516 | CLSID *result; | |
2517 | bool temp1 = false ; | |
2518 | PyObject * obj0 = 0 ; | |
2519 | char *kwnames[] = { | |
2520 | (char *) "id", NULL | |
2521 | }; | |
2522 | ||
2523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CLSID",kwnames,&obj0)) goto fail; | |
2524 | { | |
2525 | arg1 = wxString_in_helper(obj0); | |
2526 | if (arg1 == NULL) SWIG_fail; | |
2527 | temp1 = true; | |
2528 | } | |
2529 | { | |
2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2531 | result = (CLSID *)new_CLSID((wxString const &)*arg1); | |
2532 | ||
2533 | wxPyEndAllowThreads(__tstate); | |
2534 | if (PyErr_Occurred()) SWIG_fail; | |
2535 | } | |
2536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 1); | |
2537 | { | |
2538 | if (temp1) | |
2539 | delete arg1; | |
2540 | } | |
2541 | return resultobj; | |
2542 | fail: | |
2543 | { | |
2544 | if (temp1) | |
2545 | delete arg1; | |
2546 | } | |
2547 | return NULL; | |
2548 | } | |
2549 | ||
2550 | ||
2551 | static PyObject *_wrap_delete_CLSID(PyObject *, PyObject *args, PyObject *kwargs) { | |
2552 | PyObject *resultobj = NULL; | |
2553 | CLSID *arg1 = (CLSID *) 0 ; | |
2554 | PyObject * obj0 = 0 ; | |
2555 | char *kwnames[] = { | |
2556 | (char *) "self", NULL | |
2557 | }; | |
2558 | ||
2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_CLSID",kwnames,&obj0)) goto fail; | |
2560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
2561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2562 | { | |
2563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2564 | delete_CLSID(arg1); | |
2565 | ||
2566 | wxPyEndAllowThreads(__tstate); | |
2567 | if (PyErr_Occurred()) SWIG_fail; | |
2568 | } | |
2569 | Py_INCREF(Py_None); resultobj = Py_None; | |
2570 | return resultobj; | |
2571 | fail: | |
2572 | return NULL; | |
2573 | } | |
2574 | ||
2575 | ||
2576 | static PyObject *_wrap_CLSID_GetCLSIDString(PyObject *, PyObject *args, PyObject *kwargs) { | |
2577 | PyObject *resultobj = NULL; | |
2578 | CLSID *arg1 = (CLSID *) 0 ; | |
2579 | wxString result; | |
2580 | PyObject * obj0 = 0 ; | |
2581 | char *kwnames[] = { | |
2582 | (char *) "self", NULL | |
2583 | }; | |
2584 | ||
2585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetCLSIDString",kwnames,&obj0)) goto fail; | |
2586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
2587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2588 | { | |
2589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2590 | result = CLSID_GetCLSIDString(arg1); | |
2591 | ||
2592 | wxPyEndAllowThreads(__tstate); | |
2593 | if (PyErr_Occurred()) SWIG_fail; | |
2594 | } | |
2595 | { | |
2596 | #if wxUSE_UNICODE | |
2597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2598 | #else | |
2599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2600 | #endif | |
2601 | } | |
2602 | return resultobj; | |
2603 | fail: | |
2604 | return NULL; | |
2605 | } | |
2606 | ||
2607 | ||
2608 | static PyObject *_wrap_CLSID_GetProgIDString(PyObject *, PyObject *args, PyObject *kwargs) { | |
2609 | PyObject *resultobj = NULL; | |
2610 | CLSID *arg1 = (CLSID *) 0 ; | |
2611 | wxString result; | |
2612 | PyObject * obj0 = 0 ; | |
2613 | char *kwnames[] = { | |
2614 | (char *) "self", NULL | |
2615 | }; | |
2616 | ||
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetProgIDString",kwnames,&obj0)) goto fail; | |
2618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
2619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2620 | { | |
2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2622 | result = CLSID_GetProgIDString(arg1); | |
2623 | ||
2624 | wxPyEndAllowThreads(__tstate); | |
2625 | if (PyErr_Occurred()) SWIG_fail; | |
2626 | } | |
2627 | { | |
2628 | #if wxUSE_UNICODE | |
2629 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2630 | #else | |
2631 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2632 | #endif | |
2633 | } | |
2634 | return resultobj; | |
2635 | fail: | |
2636 | return NULL; | |
2637 | } | |
2638 | ||
2639 | ||
2640 | static PyObject * CLSID_swigregister(PyObject *, PyObject *args) { | |
2641 | PyObject *obj; | |
2642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2643 | SWIG_TypeClientData(SWIGTYPE_p_CLSID, obj); | |
2644 | Py_INCREF(obj); | |
2645 | return Py_BuildValue((char *)""); | |
2646 | } | |
2647 | static PyObject *_wrap_ParamX_flags_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2648 | PyObject *resultobj = NULL; | |
2649 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2650 | USHORT result; | |
2651 | PyObject * obj0 = 0 ; | |
2652 | char *kwnames[] = { | |
2653 | (char *) "self", NULL | |
2654 | }; | |
2655 | ||
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_flags_get",kwnames,&obj0)) goto fail; | |
2657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2659 | result = (USHORT) ((arg1)->flags); | |
2660 | ||
2661 | { | |
2662 | resultobj = SWIG_From_unsigned_SS_short(static_cast<unsigned short >(result)); | |
2663 | } | |
2664 | return resultobj; | |
2665 | fail: | |
2666 | return NULL; | |
2667 | } | |
2668 | ||
2669 | ||
2670 | static PyObject *_wrap_ParamX_isPtr_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2671 | PyObject *resultobj = NULL; | |
2672 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2673 | bool result; | |
2674 | PyObject * obj0 = 0 ; | |
2675 | char *kwnames[] = { | |
2676 | (char *) "self", NULL | |
2677 | }; | |
2678 | ||
2679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isPtr_get",kwnames,&obj0)) goto fail; | |
2680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2682 | result = (bool) ((arg1)->isPtr); | |
2683 | ||
2684 | { | |
2685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2686 | } | |
2687 | return resultobj; | |
2688 | fail: | |
2689 | return NULL; | |
2690 | } | |
2691 | ||
2692 | ||
2693 | static PyObject *_wrap_ParamX_isSafeArray_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2694 | PyObject *resultobj = NULL; | |
2695 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2696 | bool result; | |
2697 | PyObject * obj0 = 0 ; | |
2698 | char *kwnames[] = { | |
2699 | (char *) "self", NULL | |
2700 | }; | |
2701 | ||
2702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isSafeArray_get",kwnames,&obj0)) goto fail; | |
2703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2705 | result = (bool) ((arg1)->isSafeArray); | |
2706 | ||
2707 | { | |
2708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2709 | } | |
2710 | return resultobj; | |
2711 | fail: | |
2712 | return NULL; | |
2713 | } | |
2714 | ||
2715 | ||
2716 | static PyObject *_wrap_ParamX_isOptional_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2717 | PyObject *resultobj = NULL; | |
2718 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2719 | bool result; | |
2720 | PyObject * obj0 = 0 ; | |
2721 | char *kwnames[] = { | |
2722 | (char *) "self", NULL | |
2723 | }; | |
2724 | ||
2725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isOptional_get",kwnames,&obj0)) goto fail; | |
2726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2728 | result = (bool) ((arg1)->isOptional); | |
2729 | ||
2730 | { | |
2731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2732 | } | |
2733 | return resultobj; | |
2734 | fail: | |
2735 | return NULL; | |
2736 | } | |
2737 | ||
2738 | ||
2739 | static PyObject *_wrap_ParamX_vt_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2740 | PyObject *resultobj = NULL; | |
2741 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2742 | VARTYPE result; | |
2743 | PyObject * obj0 = 0 ; | |
2744 | char *kwnames[] = { | |
2745 | (char *) "self", NULL | |
2746 | }; | |
2747 | ||
2748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_get",kwnames,&obj0)) goto fail; | |
2749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2751 | result = (VARTYPE) ((arg1)->vt); | |
2752 | ||
2753 | { | |
2754 | resultobj = SWIG_From_unsigned_SS_short(static_cast<unsigned short >(result)); | |
2755 | } | |
2756 | return resultobj; | |
2757 | fail: | |
2758 | return NULL; | |
2759 | } | |
2760 | ||
2761 | ||
2762 | static PyObject *_wrap_ParamX_name_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2763 | PyObject *resultobj = NULL; | |
2764 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2765 | wxString *result; | |
2766 | PyObject * obj0 = 0 ; | |
2767 | char *kwnames[] = { | |
2768 | (char *) "self", NULL | |
2769 | }; | |
2770 | ||
2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_name_get",kwnames,&obj0)) goto fail; | |
2772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2774 | result = (wxString *)& ((arg1)->name); | |
2775 | ||
2776 | { | |
2777 | #if wxUSE_UNICODE | |
2778 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
2779 | #else | |
2780 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
2781 | #endif | |
2782 | } | |
2783 | return resultobj; | |
2784 | fail: | |
2785 | return NULL; | |
2786 | } | |
2787 | ||
2788 | ||
2789 | static PyObject *_wrap_ParamX_vt_type_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2790 | PyObject *resultobj = NULL; | |
2791 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2792 | wxString result; | |
2793 | PyObject * obj0 = 0 ; | |
2794 | char *kwnames[] = { | |
2795 | (char *) "self", NULL | |
2796 | }; | |
2797 | ||
2798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_type_get",kwnames,&obj0)) goto fail; | |
2799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2801 | { | |
2802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2803 | result = wxParamX_vt_type_get(arg1); | |
2804 | ||
2805 | wxPyEndAllowThreads(__tstate); | |
2806 | if (PyErr_Occurred()) SWIG_fail; | |
2807 | } | |
2808 | { | |
2809 | #if wxUSE_UNICODE | |
2810 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2811 | #else | |
2812 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2813 | #endif | |
2814 | } | |
2815 | return resultobj; | |
2816 | fail: | |
2817 | return NULL; | |
2818 | } | |
2819 | ||
2820 | ||
2821 | static PyObject *_wrap_ParamX_IsIn(PyObject *, PyObject *args, PyObject *kwargs) { | |
2822 | PyObject *resultobj = NULL; | |
2823 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2824 | bool result; | |
2825 | PyObject * obj0 = 0 ; | |
2826 | char *kwnames[] = { | |
2827 | (char *) "self", NULL | |
2828 | }; | |
2829 | ||
2830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsIn",kwnames,&obj0)) goto fail; | |
2831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2833 | { | |
2834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2835 | result = (bool)((wxParamX const *)arg1)->IsIn(); | |
2836 | ||
2837 | wxPyEndAllowThreads(__tstate); | |
2838 | if (PyErr_Occurred()) SWIG_fail; | |
2839 | } | |
2840 | { | |
2841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2842 | } | |
2843 | return resultobj; | |
2844 | fail: | |
2845 | return NULL; | |
2846 | } | |
2847 | ||
2848 | ||
2849 | static PyObject *_wrap_ParamX_IsOut(PyObject *, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject *resultobj = NULL; | |
2851 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2852 | bool result; | |
2853 | PyObject * obj0 = 0 ; | |
2854 | char *kwnames[] = { | |
2855 | (char *) "self", NULL | |
2856 | }; | |
2857 | ||
2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsOut",kwnames,&obj0)) goto fail; | |
2859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2861 | { | |
2862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2863 | result = (bool)((wxParamX const *)arg1)->IsOut(); | |
2864 | ||
2865 | wxPyEndAllowThreads(__tstate); | |
2866 | if (PyErr_Occurred()) SWIG_fail; | |
2867 | } | |
2868 | { | |
2869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2870 | } | |
2871 | return resultobj; | |
2872 | fail: | |
2873 | return NULL; | |
2874 | } | |
2875 | ||
2876 | ||
2877 | static PyObject *_wrap_ParamX_IsRetVal(PyObject *, PyObject *args, PyObject *kwargs) { | |
2878 | PyObject *resultobj = NULL; | |
2879 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2880 | bool result; | |
2881 | PyObject * obj0 = 0 ; | |
2882 | char *kwnames[] = { | |
2883 | (char *) "self", NULL | |
2884 | }; | |
2885 | ||
2886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsRetVal",kwnames,&obj0)) goto fail; | |
2887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2889 | { | |
2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2891 | result = (bool)((wxParamX const *)arg1)->IsRetVal(); | |
2892 | ||
2893 | wxPyEndAllowThreads(__tstate); | |
2894 | if (PyErr_Occurred()) SWIG_fail; | |
2895 | } | |
2896 | { | |
2897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2898 | } | |
2899 | return resultobj; | |
2900 | fail: | |
2901 | return NULL; | |
2902 | } | |
2903 | ||
2904 | ||
2905 | static PyObject * ParamX_swigregister(PyObject *, PyObject *args) { | |
2906 | PyObject *obj; | |
2907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2908 | SWIG_TypeClientData(SWIGTYPE_p_wxParamX, obj); | |
2909 | Py_INCREF(obj); | |
2910 | return Py_BuildValue((char *)""); | |
2911 | } | |
2912 | static PyObject *_wrap_FuncX_name_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2913 | PyObject *resultobj = NULL; | |
2914 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2915 | wxString *result; | |
2916 | PyObject * obj0 = 0 ; | |
2917 | char *kwnames[] = { | |
2918 | (char *) "self", NULL | |
2919 | }; | |
2920 | ||
2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_name_get",kwnames,&obj0)) goto fail; | |
2922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2924 | result = (wxString *)& ((arg1)->name); | |
2925 | ||
2926 | { | |
2927 | #if wxUSE_UNICODE | |
2928 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
2929 | #else | |
2930 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
2931 | #endif | |
2932 | } | |
2933 | return resultobj; | |
2934 | fail: | |
2935 | return NULL; | |
2936 | } | |
2937 | ||
2938 | ||
2939 | static PyObject *_wrap_FuncX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2940 | PyObject *resultobj = NULL; | |
2941 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2942 | MEMBERID result; | |
2943 | PyObject * obj0 = 0 ; | |
2944 | char *kwnames[] = { | |
2945 | (char *) "self", NULL | |
2946 | }; | |
2947 | ||
2948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_memid_get",kwnames,&obj0)) goto fail; | |
2949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2951 | result = (MEMBERID) ((arg1)->memid); | |
2952 | ||
2953 | { | |
2954 | resultobj = SWIG_From_long(static_cast<long >(result)); | |
2955 | } | |
2956 | return resultobj; | |
2957 | fail: | |
2958 | return NULL; | |
2959 | } | |
2960 | ||
2961 | ||
2962 | static PyObject *_wrap_FuncX_hasOut_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2963 | PyObject *resultobj = NULL; | |
2964 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2965 | bool result; | |
2966 | PyObject * obj0 = 0 ; | |
2967 | char *kwnames[] = { | |
2968 | (char *) "self", NULL | |
2969 | }; | |
2970 | ||
2971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_hasOut_get",kwnames,&obj0)) goto fail; | |
2972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2974 | result = (bool) ((arg1)->hasOut); | |
2975 | ||
2976 | { | |
2977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2978 | } | |
2979 | return resultobj; | |
2980 | fail: | |
2981 | return NULL; | |
2982 | } | |
2983 | ||
2984 | ||
2985 | static PyObject *_wrap_FuncX_retType_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2986 | PyObject *resultobj = NULL; | |
2987 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2988 | wxParamX *result; | |
2989 | PyObject * obj0 = 0 ; | |
2990 | char *kwnames[] = { | |
2991 | (char *) "self", NULL | |
2992 | }; | |
2993 | ||
2994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_retType_get",kwnames,&obj0)) goto fail; | |
2995 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2996 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2997 | result = (wxParamX *)& ((arg1)->retType); | |
2998 | ||
2999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0); | |
3000 | return resultobj; | |
3001 | fail: | |
3002 | return NULL; | |
3003 | } | |
3004 | ||
3005 | ||
3006 | static PyObject *_wrap_FuncX_params_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
3007 | PyObject *resultobj = NULL; | |
3008 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
3009 | wxParamXArray *result; | |
3010 | PyObject * obj0 = 0 ; | |
3011 | char *kwnames[] = { | |
3012 | (char *) "self", NULL | |
3013 | }; | |
3014 | ||
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_params_get",kwnames,&obj0)) goto fail; | |
3016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
3017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3018 | result = (wxParamXArray *)& ((arg1)->params); | |
3019 | ||
3020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamXArray, 0); | |
3021 | return resultobj; | |
3022 | fail: | |
3023 | return NULL; | |
3024 | } | |
3025 | ||
3026 | ||
3027 | static PyObject * FuncX_swigregister(PyObject *, PyObject *args) { | |
3028 | PyObject *obj; | |
3029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3030 | SWIG_TypeClientData(SWIGTYPE_p_wxFuncX, obj); | |
3031 | Py_INCREF(obj); | |
3032 | return Py_BuildValue((char *)""); | |
3033 | } | |
3034 | static PyObject *_wrap_PropX_name_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
3035 | PyObject *resultobj = NULL; | |
3036 | wxPropX *arg1 = (wxPropX *) 0 ; | |
3037 | wxString *result; | |
3038 | PyObject * obj0 = 0 ; | |
3039 | char *kwnames[] = { | |
3040 | (char *) "self", NULL | |
3041 | }; | |
3042 | ||
3043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_name_get",kwnames,&obj0)) goto fail; | |
3044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
3045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3046 | result = (wxString *)& ((arg1)->name); | |
3047 | ||
3048 | { | |
3049 | #if wxUSE_UNICODE | |
3050 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3051 | #else | |
3052 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3053 | #endif | |
3054 | } | |
3055 | return resultobj; | |
3056 | fail: | |
3057 | return NULL; | |
3058 | } | |
3059 | ||
3060 | ||
3061 | static PyObject *_wrap_PropX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
3062 | PyObject *resultobj = NULL; | |
3063 | wxPropX *arg1 = (wxPropX *) 0 ; | |
3064 | MEMBERID result; | |
3065 | PyObject * obj0 = 0 ; | |
3066 | char *kwnames[] = { | |
3067 | (char *) "self", NULL | |
3068 | }; | |
3069 | ||
3070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_memid_get",kwnames,&obj0)) goto fail; | |
3071 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
3072 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3073 | result = (MEMBERID) ((arg1)->memid); | |
3074 | ||
3075 | { | |
3076 | resultobj = SWIG_From_long(static_cast<long >(result)); | |
3077 | } | |
3078 | return resultobj; | |
3079 | fail: | |
3080 | return NULL; | |
3081 | } | |
3082 | ||
3083 | ||
3084 | static PyObject *_wrap_PropX_type_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
3085 | PyObject *resultobj = NULL; | |
3086 | wxPropX *arg1 = (wxPropX *) 0 ; | |
3087 | wxParamX *result; | |
3088 | PyObject * obj0 = 0 ; | |
3089 | char *kwnames[] = { | |
3090 | (char *) "self", NULL | |
3091 | }; | |
3092 | ||
3093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_type_get",kwnames,&obj0)) goto fail; | |
3094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
3095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3096 | result = (wxParamX *)& ((arg1)->type); | |
3097 | ||
3098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0); | |
3099 | return resultobj; | |
3100 | fail: | |
3101 | return NULL; | |
3102 | } | |
3103 | ||
3104 | ||
3105 | static PyObject *_wrap_PropX_arg_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
3106 | PyObject *resultobj = NULL; | |
3107 | wxPropX *arg1 = (wxPropX *) 0 ; | |
3108 | wxParamX *result; | |
3109 | PyObject * obj0 = 0 ; | |
3110 | char *kwnames[] = { | |
3111 | (char *) "self", NULL | |
3112 | }; | |
3113 | ||
3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_arg_get",kwnames,&obj0)) goto fail; | |
3115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
3116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3117 | result = (wxParamX *)& ((arg1)->arg); | |
3118 | ||
3119 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0); | |
3120 | return resultobj; | |
3121 | fail: | |
3122 | return NULL; | |
3123 | } | |
3124 | ||
3125 | ||
3126 | static PyObject *_wrap_PropX_putByRef_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
3127 | PyObject *resultobj = NULL; | |
3128 | wxPropX *arg1 = (wxPropX *) 0 ; | |
3129 | bool result; | |
3130 | PyObject * obj0 = 0 ; | |
3131 | char *kwnames[] = { | |
3132 | (char *) "self", NULL | |
3133 | }; | |
3134 | ||
3135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_putByRef_get",kwnames,&obj0)) goto fail; | |
3136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
3137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3138 | result = (bool) ((arg1)->putByRef); | |
3139 | ||
3140 | { | |
3141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3142 | } | |
3143 | return resultobj; | |
3144 | fail: | |
3145 | return NULL; | |
3146 | } | |
3147 | ||
3148 | ||
3149 | static PyObject *_wrap_PropX_CanGet(PyObject *, PyObject *args, PyObject *kwargs) { | |
3150 | PyObject *resultobj = NULL; | |
3151 | wxPropX *arg1 = (wxPropX *) 0 ; | |
3152 | bool result; | |
3153 | PyObject * obj0 = 0 ; | |
3154 | char *kwnames[] = { | |
3155 | (char *) "self", NULL | |
3156 | }; | |
3157 | ||
3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanGet",kwnames,&obj0)) goto fail; | |
3159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
3160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3161 | { | |
3162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3163 | result = (bool)((wxPropX const *)arg1)->CanGet(); | |
3164 | ||
3165 | wxPyEndAllowThreads(__tstate); | |
3166 | if (PyErr_Occurred()) SWIG_fail; | |
3167 | } | |
3168 | { | |
3169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3170 | } | |
3171 | return resultobj; | |
3172 | fail: | |
3173 | return NULL; | |
3174 | } | |
3175 | ||
3176 | ||
3177 | static PyObject *_wrap_PropX_CanSet(PyObject *, PyObject *args, PyObject *kwargs) { | |
3178 | PyObject *resultobj = NULL; | |
3179 | wxPropX *arg1 = (wxPropX *) 0 ; | |
3180 | bool result; | |
3181 | PyObject * obj0 = 0 ; | |
3182 | char *kwnames[] = { | |
3183 | (char *) "self", NULL | |
3184 | }; | |
3185 | ||
3186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanSet",kwnames,&obj0)) goto fail; | |
3187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
3188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3189 | { | |
3190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3191 | result = (bool)((wxPropX const *)arg1)->CanSet(); | |
3192 | ||
3193 | wxPyEndAllowThreads(__tstate); | |
3194 | if (PyErr_Occurred()) SWIG_fail; | |
3195 | } | |
3196 | { | |
3197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3198 | } | |
3199 | return resultobj; | |
3200 | fail: | |
3201 | return NULL; | |
3202 | } | |
3203 | ||
3204 | ||
3205 | static PyObject * PropX_swigregister(PyObject *, PyObject *args) { | |
3206 | PyObject *obj; | |
3207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3208 | SWIG_TypeClientData(SWIGTYPE_p_wxPropX, obj); | |
3209 | Py_INCREF(obj); | |
3210 | return Py_BuildValue((char *)""); | |
3211 | } | |
3212 | static PyObject *_wrap_ParamXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3213 | PyObject *resultobj = NULL; | |
3214 | wxParamXArray *arg1 = (wxParamXArray *) 0 ; | |
3215 | bool result; | |
3216 | PyObject * obj0 = 0 ; | |
3217 | char *kwnames[] = { | |
3218 | (char *) "self", NULL | |
3219 | }; | |
3220 | ||
3221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___nonzero__",kwnames,&obj0)) goto fail; | |
3222 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0); | |
3223 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3224 | { | |
3225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3226 | result = (bool)wxParamXArray___nonzero__(arg1); | |
3227 | ||
3228 | wxPyEndAllowThreads(__tstate); | |
3229 | if (PyErr_Occurred()) SWIG_fail; | |
3230 | } | |
3231 | { | |
3232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3233 | } | |
3234 | return resultobj; | |
3235 | fail: | |
3236 | return NULL; | |
3237 | } | |
3238 | ||
3239 | ||
3240 | static PyObject *_wrap_ParamXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject *resultobj = NULL; | |
3242 | wxParamXArray *arg1 = (wxParamXArray *) 0 ; | |
3243 | int result; | |
3244 | PyObject * obj0 = 0 ; | |
3245 | char *kwnames[] = { | |
3246 | (char *) "self", NULL | |
3247 | }; | |
3248 | ||
3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___len__",kwnames,&obj0)) goto fail; | |
3250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0); | |
3251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3252 | { | |
3253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3254 | result = (int)wxParamXArray___len__(arg1); | |
3255 | ||
3256 | wxPyEndAllowThreads(__tstate); | |
3257 | if (PyErr_Occurred()) SWIG_fail; | |
3258 | } | |
3259 | { | |
3260 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
3261 | } | |
3262 | return resultobj; | |
3263 | fail: | |
3264 | return NULL; | |
3265 | } | |
3266 | ||
3267 | ||
3268 | static PyObject *_wrap_ParamXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3269 | PyObject *resultobj = NULL; | |
3270 | wxParamXArray *arg1 = (wxParamXArray *) 0 ; | |
3271 | int arg2 ; | |
3272 | wxParamX *result; | |
3273 | PyObject * obj0 = 0 ; | |
3274 | PyObject * obj1 = 0 ; | |
3275 | char *kwnames[] = { | |
3276 | (char *) "self",(char *) "idx", NULL | |
3277 | }; | |
3278 | ||
3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ParamXArray___getitem__",kwnames,&obj0,&obj1)) goto fail; | |
3280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0); | |
3281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3282 | { | |
3283 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
3284 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3285 | } | |
3286 | { | |
3287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3288 | { | |
3289 | wxParamX const &_result_ref = wxParamXArray___getitem__(arg1,arg2); | |
3290 | result = (wxParamX *) &_result_ref; | |
3291 | } | |
3292 | ||
3293 | wxPyEndAllowThreads(__tstate); | |
3294 | if (PyErr_Occurred()) SWIG_fail; | |
3295 | } | |
3296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0); | |
3297 | return resultobj; | |
3298 | fail: | |
3299 | return NULL; | |
3300 | } | |
3301 | ||
3302 | ||
3303 | static PyObject * ParamXArray_swigregister(PyObject *, PyObject *args) { | |
3304 | PyObject *obj; | |
3305 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3306 | SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray, obj); | |
3307 | Py_INCREF(obj); | |
3308 | return Py_BuildValue((char *)""); | |
3309 | } | |
3310 | static PyObject *_wrap_FuncXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject *resultobj = NULL; | |
3312 | wxFuncXArray *arg1 = (wxFuncXArray *) 0 ; | |
3313 | bool result; | |
3314 | PyObject * obj0 = 0 ; | |
3315 | char *kwnames[] = { | |
3316 | (char *) "self", NULL | |
3317 | }; | |
3318 | ||
3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___nonzero__",kwnames,&obj0)) goto fail; | |
3320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0); | |
3321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3322 | { | |
3323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3324 | result = (bool)wxFuncXArray___nonzero__(arg1); | |
3325 | ||
3326 | wxPyEndAllowThreads(__tstate); | |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
3328 | } | |
3329 | { | |
3330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3331 | } | |
3332 | return resultobj; | |
3333 | fail: | |
3334 | return NULL; | |
3335 | } | |
3336 | ||
3337 | ||
3338 | static PyObject *_wrap_FuncXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3339 | PyObject *resultobj = NULL; | |
3340 | wxFuncXArray *arg1 = (wxFuncXArray *) 0 ; | |
3341 | int result; | |
3342 | PyObject * obj0 = 0 ; | |
3343 | char *kwnames[] = { | |
3344 | (char *) "self", NULL | |
3345 | }; | |
3346 | ||
3347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___len__",kwnames,&obj0)) goto fail; | |
3348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0); | |
3349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3350 | { | |
3351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3352 | result = (int)wxFuncXArray___len__(arg1); | |
3353 | ||
3354 | wxPyEndAllowThreads(__tstate); | |
3355 | if (PyErr_Occurred()) SWIG_fail; | |
3356 | } | |
3357 | { | |
3358 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
3359 | } | |
3360 | return resultobj; | |
3361 | fail: | |
3362 | return NULL; | |
3363 | } | |
3364 | ||
3365 | ||
3366 | static PyObject *_wrap_FuncXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3367 | PyObject *resultobj = NULL; | |
3368 | wxFuncXArray *arg1 = (wxFuncXArray *) 0 ; | |
3369 | int arg2 ; | |
3370 | wxFuncX *result; | |
3371 | PyObject * obj0 = 0 ; | |
3372 | PyObject * obj1 = 0 ; | |
3373 | char *kwnames[] = { | |
3374 | (char *) "self",(char *) "idx", NULL | |
3375 | }; | |
3376 | ||
3377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FuncXArray___getitem__",kwnames,&obj0,&obj1)) goto fail; | |
3378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0); | |
3379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3380 | { | |
3381 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
3382 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3383 | } | |
3384 | { | |
3385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3386 | { | |
3387 | wxFuncX const &_result_ref = wxFuncXArray___getitem__(arg1,arg2); | |
3388 | result = (wxFuncX *) &_result_ref; | |
3389 | } | |
3390 | ||
3391 | wxPyEndAllowThreads(__tstate); | |
3392 | if (PyErr_Occurred()) SWIG_fail; | |
3393 | } | |
3394 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0); | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | return NULL; | |
3398 | } | |
3399 | ||
3400 | ||
3401 | static PyObject * FuncXArray_swigregister(PyObject *, PyObject *args) { | |
3402 | PyObject *obj; | |
3403 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3404 | SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray, obj); | |
3405 | Py_INCREF(obj); | |
3406 | return Py_BuildValue((char *)""); | |
3407 | } | |
3408 | static PyObject *_wrap_PropXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3409 | PyObject *resultobj = NULL; | |
3410 | wxPropXArray *arg1 = (wxPropXArray *) 0 ; | |
3411 | bool result; | |
3412 | PyObject * obj0 = 0 ; | |
3413 | char *kwnames[] = { | |
3414 | (char *) "self", NULL | |
3415 | }; | |
3416 | ||
3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___nonzero__",kwnames,&obj0)) goto fail; | |
3418 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0); | |
3419 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3420 | { | |
3421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3422 | result = (bool)wxPropXArray___nonzero__(arg1); | |
3423 | ||
3424 | wxPyEndAllowThreads(__tstate); | |
3425 | if (PyErr_Occurred()) SWIG_fail; | |
3426 | } | |
3427 | { | |
3428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3429 | } | |
3430 | return resultobj; | |
3431 | fail: | |
3432 | return NULL; | |
3433 | } | |
3434 | ||
3435 | ||
3436 | static PyObject *_wrap_PropXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3437 | PyObject *resultobj = NULL; | |
3438 | wxPropXArray *arg1 = (wxPropXArray *) 0 ; | |
3439 | int result; | |
3440 | PyObject * obj0 = 0 ; | |
3441 | char *kwnames[] = { | |
3442 | (char *) "self", NULL | |
3443 | }; | |
3444 | ||
3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___len__",kwnames,&obj0)) goto fail; | |
3446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0); | |
3447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3448 | { | |
3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3450 | result = (int)wxPropXArray___len__(arg1); | |
3451 | ||
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
3455 | { | |
3456 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
3457 | } | |
3458 | return resultobj; | |
3459 | fail: | |
3460 | return NULL; | |
3461 | } | |
3462 | ||
3463 | ||
3464 | static PyObject *_wrap_PropXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3465 | PyObject *resultobj = NULL; | |
3466 | wxPropXArray *arg1 = (wxPropXArray *) 0 ; | |
3467 | int arg2 ; | |
3468 | wxPropX *result; | |
3469 | PyObject * obj0 = 0 ; | |
3470 | PyObject * obj1 = 0 ; | |
3471 | char *kwnames[] = { | |
3472 | (char *) "self",(char *) "idx", NULL | |
3473 | }; | |
3474 | ||
3475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PropXArray___getitem__",kwnames,&obj0,&obj1)) goto fail; | |
3476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0); | |
3477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3478 | { | |
3479 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
3480 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3481 | } | |
3482 | { | |
3483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3484 | { | |
3485 | wxPropX const &_result_ref = wxPropXArray___getitem__(arg1,arg2); | |
3486 | result = (wxPropX *) &_result_ref; | |
3487 | } | |
3488 | ||
3489 | wxPyEndAllowThreads(__tstate); | |
3490 | if (PyErr_Occurred()) SWIG_fail; | |
3491 | } | |
3492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0); | |
3493 | return resultobj; | |
3494 | fail: | |
3495 | return NULL; | |
3496 | } | |
3497 | ||
3498 | ||
3499 | static PyObject * PropXArray_swigregister(PyObject *, PyObject *args) { | |
3500 | PyObject *obj; | |
3501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3502 | SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray, obj); | |
3503 | Py_INCREF(obj); | |
3504 | return Py_BuildValue((char *)""); | |
3505 | } | |
3506 | static PyObject *_wrap_new_ActiveXWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
3507 | PyObject *resultobj = NULL; | |
3508 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3509 | CLSID *arg2 = 0 ; | |
3510 | int arg3 = (int) -1 ; | |
3511 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3512 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3513 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3514 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3515 | long arg6 = (long) 0 ; | |
3516 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
3517 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3518 | wxActiveXWindow *result; | |
3519 | wxPoint temp4 ; | |
3520 | wxSize temp5 ; | |
3521 | bool temp7 = false ; | |
3522 | PyObject * obj0 = 0 ; | |
3523 | PyObject * obj1 = 0 ; | |
3524 | PyObject * obj2 = 0 ; | |
3525 | PyObject * obj3 = 0 ; | |
3526 | PyObject * obj4 = 0 ; | |
3527 | PyObject * obj5 = 0 ; | |
3528 | PyObject * obj6 = 0 ; | |
3529 | char *kwnames[] = { | |
3530 | (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3531 | }; | |
3532 | ||
3533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_ActiveXWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3536 | { | |
3537 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
3538 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3539 | if (arg2 == NULL) { | |
3540 | SWIG_null_ref("CLSID"); | |
3541 | } | |
3542 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3543 | } | |
3544 | if (obj2) { | |
3545 | { | |
3546 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
3547 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3548 | } | |
3549 | } | |
3550 | if (obj3) { | |
3551 | { | |
3552 | arg4 = &temp4; | |
3553 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3554 | } | |
3555 | } | |
3556 | if (obj4) { | |
3557 | { | |
3558 | arg5 = &temp5; | |
3559 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3560 | } | |
3561 | } | |
3562 | if (obj5) { | |
3563 | { | |
3564 | arg6 = static_cast<long >(SWIG_As_long(obj5)); | |
3565 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3566 | } | |
3567 | } | |
3568 | if (obj6) { | |
3569 | { | |
3570 | arg7 = wxString_in_helper(obj6); | |
3571 | if (arg7 == NULL) SWIG_fail; | |
3572 | temp7 = true; | |
3573 | } | |
3574 | } | |
3575 | { | |
3576 | if (!wxPyCheckForApp()) SWIG_fail; | |
3577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3578 | result = (wxActiveXWindow *)new wxActiveXWindow(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3579 | ||
3580 | wxPyEndAllowThreads(__tstate); | |
3581 | if (PyErr_Occurred()) SWIG_fail; | |
3582 | } | |
3583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActiveXWindow, 1); | |
3584 | { | |
3585 | if (temp7) | |
3586 | delete arg7; | |
3587 | } | |
3588 | return resultobj; | |
3589 | fail: | |
3590 | { | |
3591 | if (temp7) | |
3592 | delete arg7; | |
3593 | } | |
3594 | return NULL; | |
3595 | } | |
3596 | ||
3597 | ||
3598 | static PyObject *_wrap_ActiveXWindow_GetCLSID(PyObject *, PyObject *args, PyObject *kwargs) { | |
3599 | PyObject *resultobj = NULL; | |
3600 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3601 | CLSID *result; | |
3602 | PyObject * obj0 = 0 ; | |
3603 | char *kwnames[] = { | |
3604 | (char *) "self", NULL | |
3605 | }; | |
3606 | ||
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetCLSID",kwnames,&obj0)) goto fail; | |
3608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3610 | { | |
3611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3612 | { | |
3613 | CLSID const &_result_ref = ((wxActiveXWindow const *)arg1)->GetCLSID(); | |
3614 | result = (CLSID *) &_result_ref; | |
3615 | } | |
3616 | ||
3617 | wxPyEndAllowThreads(__tstate); | |
3618 | if (PyErr_Occurred()) SWIG_fail; | |
3619 | } | |
3620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 0); | |
3621 | return resultobj; | |
3622 | fail: | |
3623 | return NULL; | |
3624 | } | |
3625 | ||
3626 | ||
3627 | static PyObject *_wrap_ActiveXWindow_GetAXEventCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
3628 | PyObject *resultobj = NULL; | |
3629 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3630 | int result; | |
3631 | PyObject * obj0 = 0 ; | |
3632 | char *kwnames[] = { | |
3633 | (char *) "self", NULL | |
3634 | }; | |
3635 | ||
3636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEventCount",kwnames,&obj0)) goto fail; | |
3637 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3638 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3639 | { | |
3640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3641 | result = (int)((wxActiveXWindow const *)arg1)->GetAXEventCount(); | |
3642 | ||
3643 | wxPyEndAllowThreads(__tstate); | |
3644 | if (PyErr_Occurred()) SWIG_fail; | |
3645 | } | |
3646 | { | |
3647 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
3648 | } | |
3649 | return resultobj; | |
3650 | fail: | |
3651 | return NULL; | |
3652 | } | |
3653 | ||
3654 | ||
3655 | static PyObject *_wrap_ActiveXWindow_GetAXEventDesc(PyObject *, PyObject *args, PyObject *kwargs) { | |
3656 | PyObject *resultobj = NULL; | |
3657 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3658 | int arg2 ; | |
3659 | wxFuncX *result; | |
3660 | PyObject * obj0 = 0 ; | |
3661 | PyObject * obj1 = 0 ; | |
3662 | char *kwnames[] = { | |
3663 | (char *) "self",(char *) "idx", NULL | |
3664 | }; | |
3665 | ||
3666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXEventDesc",kwnames,&obj0,&obj1)) goto fail; | |
3667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3669 | { | |
3670 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
3671 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3672 | } | |
3673 | { | |
3674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3675 | { | |
3676 | wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXEventDesc(arg2); | |
3677 | result = (wxFuncX *) &_result_ref; | |
3678 | } | |
3679 | ||
3680 | wxPyEndAllowThreads(__tstate); | |
3681 | if (PyErr_Occurred()) SWIG_fail; | |
3682 | } | |
3683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0); | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
3690 | static PyObject *_wrap_ActiveXWindow_GetAXPropCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
3691 | PyObject *resultobj = NULL; | |
3692 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3693 | int result; | |
3694 | PyObject * obj0 = 0 ; | |
3695 | char *kwnames[] = { | |
3696 | (char *) "self", NULL | |
3697 | }; | |
3698 | ||
3699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXPropCount",kwnames,&obj0)) goto fail; | |
3700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3702 | { | |
3703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3704 | result = (int)((wxActiveXWindow const *)arg1)->GetAXPropCount(); | |
3705 | ||
3706 | wxPyEndAllowThreads(__tstate); | |
3707 | if (PyErr_Occurred()) SWIG_fail; | |
3708 | } | |
3709 | { | |
3710 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
3711 | } | |
3712 | return resultobj; | |
3713 | fail: | |
3714 | return NULL; | |
3715 | } | |
3716 | ||
3717 | ||
3718 | static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject *, PyObject *args) { | |
3719 | PyObject *resultobj = NULL; | |
3720 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3721 | int arg2 ; | |
3722 | wxPropX *result; | |
3723 | PyObject * obj0 = 0 ; | |
3724 | PyObject * obj1 = 0 ; | |
3725 | ||
3726 | if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail; | |
3727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3729 | { | |
3730 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
3731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3732 | } | |
3733 | { | |
3734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3735 | { | |
3736 | wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc(arg2); | |
3737 | result = (wxPropX *) &_result_ref; | |
3738 | } | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
3743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0); | |
3744 | return resultobj; | |
3745 | fail: | |
3746 | return NULL; | |
3747 | } | |
3748 | ||
3749 | ||
3750 | static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject *, PyObject *args) { | |
3751 | PyObject *resultobj = NULL; | |
3752 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3753 | wxString *arg2 = 0 ; | |
3754 | wxPropX *result; | |
3755 | bool temp2 = false ; | |
3756 | PyObject * obj0 = 0 ; | |
3757 | PyObject * obj1 = 0 ; | |
3758 | ||
3759 | if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail; | |
3760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3762 | { | |
3763 | arg2 = wxString_in_helper(obj1); | |
3764 | if (arg2 == NULL) SWIG_fail; | |
3765 | temp2 = true; | |
3766 | } | |
3767 | { | |
3768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3769 | { | |
3770 | wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc((wxString const &)*arg2); | |
3771 | result = (wxPropX *) &_result_ref; | |
3772 | } | |
3773 | ||
3774 | wxPyEndAllowThreads(__tstate); | |
3775 | if (PyErr_Occurred()) SWIG_fail; | |
3776 | } | |
3777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0); | |
3778 | { | |
3779 | if (temp2) | |
3780 | delete arg2; | |
3781 | } | |
3782 | return resultobj; | |
3783 | fail: | |
3784 | { | |
3785 | if (temp2) | |
3786 | delete arg2; | |
3787 | } | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
3792 | static PyObject *_wrap_ActiveXWindow_GetAXPropDesc(PyObject *self, PyObject *args) { | |
3793 | int argc; | |
3794 | PyObject *argv[3]; | |
3795 | int ii; | |
3796 | ||
3797 | argc = PyObject_Length(args); | |
3798 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
3799 | argv[ii] = PyTuple_GetItem(args,ii); | |
3800 | } | |
3801 | if (argc == 2) { | |
3802 | int _v; | |
3803 | { | |
3804 | void *ptr; | |
3805 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) { | |
3806 | _v = 0; | |
3807 | PyErr_Clear(); | |
3808 | } else { | |
3809 | _v = 1; | |
3810 | } | |
3811 | } | |
3812 | if (_v) { | |
3813 | { | |
3814 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
3815 | } | |
3816 | if (_v) { | |
3817 | return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self,args); | |
3818 | } | |
3819 | } | |
3820 | } | |
3821 | if (argc == 2) { | |
3822 | int _v; | |
3823 | { | |
3824 | void *ptr; | |
3825 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) { | |
3826 | _v = 0; | |
3827 | PyErr_Clear(); | |
3828 | } else { | |
3829 | _v = 1; | |
3830 | } | |
3831 | } | |
3832 | if (_v) { | |
3833 | _v = SWIG_Check_int(argv[1]); | |
3834 | if (_v) { | |
3835 | return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self,args); | |
3836 | } | |
3837 | } | |
3838 | } | |
3839 | ||
3840 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'"); | |
3841 | return NULL; | |
3842 | } | |
3843 | ||
3844 | ||
3845 | static PyObject *_wrap_ActiveXWindow_GetAXMethodCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
3846 | PyObject *resultobj = NULL; | |
3847 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3848 | int result; | |
3849 | PyObject * obj0 = 0 ; | |
3850 | char *kwnames[] = { | |
3851 | (char *) "self", NULL | |
3852 | }; | |
3853 | ||
3854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethodCount",kwnames,&obj0)) goto fail; | |
3855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3857 | { | |
3858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3859 | result = (int)((wxActiveXWindow const *)arg1)->GetAXMethodCount(); | |
3860 | ||
3861 | wxPyEndAllowThreads(__tstate); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | } | |
3864 | { | |
3865 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
3866 | } | |
3867 | return resultobj; | |
3868 | fail: | |
3869 | return NULL; | |
3870 | } | |
3871 | ||
3872 | ||
3873 | static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject *, PyObject *args) { | |
3874 | PyObject *resultobj = NULL; | |
3875 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3876 | int arg2 ; | |
3877 | wxFuncX *result; | |
3878 | PyObject * obj0 = 0 ; | |
3879 | PyObject * obj1 = 0 ; | |
3880 | ||
3881 | if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail; | |
3882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3884 | { | |
3885 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
3886 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3887 | } | |
3888 | { | |
3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3890 | { | |
3891 | wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc(arg2); | |
3892 | result = (wxFuncX *) &_result_ref; | |
3893 | } | |
3894 | ||
3895 | wxPyEndAllowThreads(__tstate); | |
3896 | if (PyErr_Occurred()) SWIG_fail; | |
3897 | } | |
3898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0); | |
3899 | return resultobj; | |
3900 | fail: | |
3901 | return NULL; | |
3902 | } | |
3903 | ||
3904 | ||
3905 | static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject *, PyObject *args) { | |
3906 | PyObject *resultobj = NULL; | |
3907 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3908 | wxString *arg2 = 0 ; | |
3909 | wxFuncX *result; | |
3910 | bool temp2 = false ; | |
3911 | PyObject * obj0 = 0 ; | |
3912 | PyObject * obj1 = 0 ; | |
3913 | ||
3914 | if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail; | |
3915 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3916 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3917 | { | |
3918 | arg2 = wxString_in_helper(obj1); | |
3919 | if (arg2 == NULL) SWIG_fail; | |
3920 | temp2 = true; | |
3921 | } | |
3922 | { | |
3923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3924 | { | |
3925 | wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc((wxString const &)*arg2); | |
3926 | result = (wxFuncX *) &_result_ref; | |
3927 | } | |
3928 | ||
3929 | wxPyEndAllowThreads(__tstate); | |
3930 | if (PyErr_Occurred()) SWIG_fail; | |
3931 | } | |
3932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0); | |
3933 | { | |
3934 | if (temp2) | |
3935 | delete arg2; | |
3936 | } | |
3937 | return resultobj; | |
3938 | fail: | |
3939 | { | |
3940 | if (temp2) | |
3941 | delete arg2; | |
3942 | } | |
3943 | return NULL; | |
3944 | } | |
3945 | ||
3946 | ||
3947 | static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc(PyObject *self, PyObject *args) { | |
3948 | int argc; | |
3949 | PyObject *argv[3]; | |
3950 | int ii; | |
3951 | ||
3952 | argc = PyObject_Length(args); | |
3953 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
3954 | argv[ii] = PyTuple_GetItem(args,ii); | |
3955 | } | |
3956 | if (argc == 2) { | |
3957 | int _v; | |
3958 | { | |
3959 | void *ptr; | |
3960 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) { | |
3961 | _v = 0; | |
3962 | PyErr_Clear(); | |
3963 | } else { | |
3964 | _v = 1; | |
3965 | } | |
3966 | } | |
3967 | if (_v) { | |
3968 | { | |
3969 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
3970 | } | |
3971 | if (_v) { | |
3972 | return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self,args); | |
3973 | } | |
3974 | } | |
3975 | } | |
3976 | if (argc == 2) { | |
3977 | int _v; | |
3978 | { | |
3979 | void *ptr; | |
3980 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) { | |
3981 | _v = 0; | |
3982 | PyErr_Clear(); | |
3983 | } else { | |
3984 | _v = 1; | |
3985 | } | |
3986 | } | |
3987 | if (_v) { | |
3988 | _v = SWIG_Check_int(argv[1]); | |
3989 | if (_v) { | |
3990 | return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self,args); | |
3991 | } | |
3992 | } | |
3993 | } | |
3994 | ||
3995 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'"); | |
3996 | return NULL; | |
3997 | } | |
3998 | ||
3999 | ||
4000 | static PyObject *_wrap_ActiveXWindow_GetAXEvents(PyObject *, PyObject *args, PyObject *kwargs) { | |
4001 | PyObject *resultobj = NULL; | |
4002 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
4003 | wxFuncXArray *result; | |
4004 | PyObject * obj0 = 0 ; | |
4005 | char *kwnames[] = { | |
4006 | (char *) "self", NULL | |
4007 | }; | |
4008 | ||
4009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEvents",kwnames,&obj0)) goto fail; | |
4010 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
4011 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4012 | { | |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | { | |
4015 | wxFuncXArray const &_result_ref = (arg1)->GetAXEvents(); | |
4016 | result = (wxFuncXArray *) &_result_ref; | |
4017 | } | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
4022 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0); | |
4023 | return resultobj; | |
4024 | fail: | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
4029 | static PyObject *_wrap_ActiveXWindow_GetAXMethods(PyObject *, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj = NULL; | |
4031 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
4032 | wxFuncXArray *result; | |
4033 | PyObject * obj0 = 0 ; | |
4034 | char *kwnames[] = { | |
4035 | (char *) "self", NULL | |
4036 | }; | |
4037 | ||
4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethods",kwnames,&obj0)) goto fail; | |
4039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
4040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4041 | { | |
4042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4043 | { | |
4044 | wxFuncXArray const &_result_ref = (arg1)->GetAXMethods(); | |
4045 | result = (wxFuncXArray *) &_result_ref; | |
4046 | } | |
4047 | ||
4048 | wxPyEndAllowThreads(__tstate); | |
4049 | if (PyErr_Occurred()) SWIG_fail; | |
4050 | } | |
4051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0); | |
4052 | return resultobj; | |
4053 | fail: | |
4054 | return NULL; | |
4055 | } | |
4056 | ||
4057 | ||
4058 | static PyObject *_wrap_ActiveXWindow_GetAXProperties(PyObject *, PyObject *args, PyObject *kwargs) { | |
4059 | PyObject *resultobj = NULL; | |
4060 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
4061 | wxPropXArray *result; | |
4062 | PyObject * obj0 = 0 ; | |
4063 | char *kwnames[] = { | |
4064 | (char *) "self", NULL | |
4065 | }; | |
4066 | ||
4067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXProperties",kwnames,&obj0)) goto fail; | |
4068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
4069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4070 | { | |
4071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4072 | { | |
4073 | wxPropXArray const &_result_ref = (arg1)->GetAXProperties(); | |
4074 | result = (wxPropXArray *) &_result_ref; | |
4075 | } | |
4076 | ||
4077 | wxPyEndAllowThreads(__tstate); | |
4078 | if (PyErr_Occurred()) SWIG_fail; | |
4079 | } | |
4080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropXArray, 0); | |
4081 | return resultobj; | |
4082 | fail: | |
4083 | return NULL; | |
4084 | } | |
4085 | ||
4086 | ||
4087 | static PyObject *_wrap_ActiveXWindow_SetAXProp(PyObject *, PyObject *args, PyObject *kwargs) { | |
4088 | PyObject *resultobj = NULL; | |
4089 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
4090 | wxString *arg2 = 0 ; | |
4091 | PyObject *arg3 = (PyObject *) 0 ; | |
4092 | bool temp2 = false ; | |
4093 | PyObject * obj0 = 0 ; | |
4094 | PyObject * obj1 = 0 ; | |
4095 | PyObject * obj2 = 0 ; | |
4096 | char *kwnames[] = { | |
4097 | (char *) "self",(char *) "name",(char *) "value", NULL | |
4098 | }; | |
4099 | ||
4100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ActiveXWindow_SetAXProp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
4102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4103 | { | |
4104 | arg2 = wxString_in_helper(obj1); | |
4105 | if (arg2 == NULL) SWIG_fail; | |
4106 | temp2 = true; | |
4107 | } | |
4108 | arg3 = obj2; | |
4109 | { | |
4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4111 | (arg1)->SetAXProp((wxString const &)*arg2,arg3); | |
4112 | ||
4113 | wxPyEndAllowThreads(__tstate); | |
4114 | if (PyErr_Occurred()) SWIG_fail; | |
4115 | } | |
4116 | Py_INCREF(Py_None); resultobj = Py_None; | |
4117 | { | |
4118 | if (temp2) | |
4119 | delete arg2; | |
4120 | } | |
4121 | return resultobj; | |
4122 | fail: | |
4123 | { | |
4124 | if (temp2) | |
4125 | delete arg2; | |
4126 | } | |
4127 | return NULL; | |
4128 | } | |
4129 | ||
4130 | ||
4131 | static PyObject *_wrap_ActiveXWindow_GetAXProp(PyObject *, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject *resultobj = NULL; | |
4133 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
4134 | wxString *arg2 = 0 ; | |
4135 | PyObject *result; | |
4136 | bool temp2 = false ; | |
4137 | PyObject * obj0 = 0 ; | |
4138 | PyObject * obj1 = 0 ; | |
4139 | char *kwnames[] = { | |
4140 | (char *) "self",(char *) "name", NULL | |
4141 | }; | |
4142 | ||
4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXProp",kwnames,&obj0,&obj1)) goto fail; | |
4144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
4145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4146 | { | |
4147 | arg2 = wxString_in_helper(obj1); | |
4148 | if (arg2 == NULL) SWIG_fail; | |
4149 | temp2 = true; | |
4150 | } | |
4151 | { | |
4152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4153 | result = (PyObject *)(arg1)->GetAXProp((wxString const &)*arg2); | |
4154 | ||
4155 | wxPyEndAllowThreads(__tstate); | |
4156 | if (PyErr_Occurred()) SWIG_fail; | |
4157 | } | |
4158 | resultobj = result; | |
4159 | { | |
4160 | if (temp2) | |
4161 | delete arg2; | |
4162 | } | |
4163 | return resultobj; | |
4164 | fail: | |
4165 | { | |
4166 | if (temp2) | |
4167 | delete arg2; | |
4168 | } | |
4169 | return NULL; | |
4170 | } | |
4171 | ||
4172 | ||
4173 | static PyObject *_wrap_ActiveXWindow__CallAXMethod(PyObject *, PyObject *args) { | |
4174 | PyObject *resultobj = NULL; | |
4175 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
4176 | wxString *arg2 = 0 ; | |
4177 | PyObject *arg3 = (PyObject *) 0 ; | |
4178 | PyObject *result; | |
4179 | bool temp2 = false ; | |
4180 | PyObject * obj0 = 0 ; | |
4181 | PyObject * obj1 = 0 ; | |
4182 | PyObject * obj2 = 0 ; | |
4183 | ||
4184 | if(!PyArg_ParseTuple(args,(char *)"OOO:ActiveXWindow__CallAXMethod",&obj0,&obj1,&obj2)) goto fail; | |
4185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
4186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4187 | { | |
4188 | arg2 = wxString_in_helper(obj1); | |
4189 | if (arg2 == NULL) SWIG_fail; | |
4190 | temp2 = true; | |
4191 | } | |
4192 | arg3 = obj2; | |
4193 | { | |
4194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4195 | result = (PyObject *)(arg1)->_CallAXMethod((wxString const &)*arg2,arg3); | |
4196 | ||
4197 | wxPyEndAllowThreads(__tstate); | |
4198 | if (PyErr_Occurred()) SWIG_fail; | |
4199 | } | |
4200 | resultobj = result; | |
4201 | { | |
4202 | if (temp2) | |
4203 | delete arg2; | |
4204 | } | |
4205 | return resultobj; | |
4206 | fail: | |
4207 | { | |
4208 | if (temp2) | |
4209 | delete arg2; | |
4210 | } | |
4211 | return NULL; | |
4212 | } | |
4213 | ||
4214 | ||
4215 | static PyObject * ActiveXWindow_swigregister(PyObject *, PyObject *args) { | |
4216 | PyObject *obj; | |
4217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4218 | SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow, obj); | |
4219 | Py_INCREF(obj); | |
4220 | return Py_BuildValue((char *)""); | |
4221 | } | |
4222 | static PyObject *_wrap_RegisterActiveXEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
4223 | PyObject *resultobj = NULL; | |
4224 | wxString *arg1 = 0 ; | |
4225 | wxEventType result; | |
4226 | bool temp1 = false ; | |
4227 | PyObject * obj0 = 0 ; | |
4228 | char *kwnames[] = { | |
4229 | (char *) "eventName", NULL | |
4230 | }; | |
4231 | ||
4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterActiveXEvent",kwnames,&obj0)) goto fail; | |
4233 | { | |
4234 | arg1 = wxString_in_helper(obj0); | |
4235 | if (arg1 == NULL) SWIG_fail; | |
4236 | temp1 = true; | |
4237 | } | |
4238 | { | |
4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4240 | result = (wxEventType)RegisterActiveXEvent((wxString const &)*arg1); | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | { | |
4246 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
4247 | } | |
4248 | { | |
4249 | if (temp1) | |
4250 | delete arg1; | |
4251 | } | |
4252 | return resultobj; | |
4253 | fail: | |
4254 | { | |
4255 | if (temp1) | |
4256 | delete arg1; | |
4257 | } | |
4258 | return NULL; | |
4259 | } | |
4260 | ||
4261 | ||
4262 | static PyObject *_wrap_ActiveXEvent_EventName(PyObject *, PyObject *args, PyObject *kwargs) { | |
4263 | PyObject *resultobj = NULL; | |
4264 | wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ; | |
4265 | wxString result; | |
4266 | PyObject * obj0 = 0 ; | |
4267 | char *kwnames[] = { | |
4268 | (char *) "self", NULL | |
4269 | }; | |
4270 | ||
4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXEvent_EventName",kwnames,&obj0)) goto fail; | |
4272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0); | |
4273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4274 | { | |
4275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276 | result = (arg1)->EventName(); | |
4277 | ||
4278 | wxPyEndAllowThreads(__tstate); | |
4279 | if (PyErr_Occurred()) SWIG_fail; | |
4280 | } | |
4281 | { | |
4282 | #if wxUSE_UNICODE | |
4283 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4284 | #else | |
4285 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4286 | #endif | |
4287 | } | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | return NULL; | |
4291 | } | |
4292 | ||
4293 | ||
4294 | static PyObject *_wrap_ActiveXEvent__preCallInit(PyObject *, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject *resultobj = NULL; | |
4296 | wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ; | |
4297 | PyObject *arg2 = (PyObject *) 0 ; | |
4298 | PyObject * obj0 = 0 ; | |
4299 | PyObject * obj1 = 0 ; | |
4300 | char *kwnames[] = { | |
4301 | (char *) "self",(char *) "pyself", NULL | |
4302 | }; | |
4303 | ||
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__preCallInit",kwnames,&obj0,&obj1)) goto fail; | |
4305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0); | |
4306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4307 | arg2 = obj1; | |
4308 | { | |
4309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4310 | wxActiveXEvent__preCallInit(arg1,arg2); | |
4311 | ||
4312 | wxPyEndAllowThreads(__tstate); | |
4313 | if (PyErr_Occurred()) SWIG_fail; | |
4314 | } | |
4315 | Py_INCREF(Py_None); resultobj = Py_None; | |
4316 | return resultobj; | |
4317 | fail: | |
4318 | return NULL; | |
4319 | } | |
4320 | ||
4321 | ||
4322 | static PyObject *_wrap_ActiveXEvent__postCallCleanup(PyObject *, PyObject *args, PyObject *kwargs) { | |
4323 | PyObject *resultobj = NULL; | |
4324 | wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ; | |
4325 | PyObject *arg2 = (PyObject *) 0 ; | |
4326 | PyObject * obj0 = 0 ; | |
4327 | PyObject * obj1 = 0 ; | |
4328 | char *kwnames[] = { | |
4329 | (char *) "self",(char *) "pyself", NULL | |
4330 | }; | |
4331 | ||
4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__postCallCleanup",kwnames,&obj0,&obj1)) goto fail; | |
4333 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0); | |
4334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4335 | arg2 = obj1; | |
4336 | { | |
4337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4338 | wxActiveXEvent__postCallCleanup(arg1,arg2); | |
4339 | ||
4340 | wxPyEndAllowThreads(__tstate); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
4343 | Py_INCREF(Py_None); resultobj = Py_None; | |
4344 | return resultobj; | |
4345 | fail: | |
4346 | return NULL; | |
4347 | } | |
4348 | ||
4349 | ||
4350 | static PyObject * ActiveXEvent_swigregister(PyObject *, PyObject *args) { | |
4351 | PyObject *obj; | |
4352 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4353 | SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent, obj); | |
4354 | Py_INCREF(obj); | |
4355 | return Py_BuildValue((char *)""); | |
4356 | } | |
4357 | static PyObject *_wrap_new_IEHtmlWindowBase(PyObject *, PyObject *args, PyObject *kwargs) { | |
4358 | PyObject *resultobj = NULL; | |
4359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4360 | CLSID *arg2 = 0 ; | |
4361 | int arg3 = (int) -1 ; | |
4362 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4363 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4364 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4365 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4366 | long arg6 = (long) 0 ; | |
4367 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
4368 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4369 | wxIEHtmlWindowBase *result; | |
4370 | wxPoint temp4 ; | |
4371 | wxSize temp5 ; | |
4372 | bool temp7 = false ; | |
4373 | PyObject * obj0 = 0 ; | |
4374 | PyObject * obj1 = 0 ; | |
4375 | PyObject * obj2 = 0 ; | |
4376 | PyObject * obj3 = 0 ; | |
4377 | PyObject * obj4 = 0 ; | |
4378 | PyObject * obj5 = 0 ; | |
4379 | PyObject * obj6 = 0 ; | |
4380 | char *kwnames[] = { | |
4381 | (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4382 | }; | |
4383 | ||
4384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_IEHtmlWindowBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4387 | { | |
4388 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
4389 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4390 | if (arg2 == NULL) { | |
4391 | SWIG_null_ref("CLSID"); | |
4392 | } | |
4393 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4394 | } | |
4395 | if (obj2) { | |
4396 | { | |
4397 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
4398 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4399 | } | |
4400 | } | |
4401 | if (obj3) { | |
4402 | { | |
4403 | arg4 = &temp4; | |
4404 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4405 | } | |
4406 | } | |
4407 | if (obj4) { | |
4408 | { | |
4409 | arg5 = &temp5; | |
4410 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4411 | } | |
4412 | } | |
4413 | if (obj5) { | |
4414 | { | |
4415 | arg6 = static_cast<long >(SWIG_As_long(obj5)); | |
4416 | if (SWIG_arg_fail(6)) SWIG_fail; | |
4417 | } | |
4418 | } | |
4419 | if (obj6) { | |
4420 | { | |
4421 | arg7 = wxString_in_helper(obj6); | |
4422 | if (arg7 == NULL) SWIG_fail; | |
4423 | temp7 = true; | |
4424 | } | |
4425 | } | |
4426 | { | |
4427 | if (!wxPyCheckForApp()) SWIG_fail; | |
4428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4429 | result = (wxIEHtmlWindowBase *)new wxIEHtmlWindowBase(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4430 | ||
4431 | wxPyEndAllowThreads(__tstate); | |
4432 | if (PyErr_Occurred()) SWIG_fail; | |
4433 | } | |
4434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIEHtmlWindowBase, 1); | |
4435 | { | |
4436 | if (temp7) | |
4437 | delete arg7; | |
4438 | } | |
4439 | return resultobj; | |
4440 | fail: | |
4441 | { | |
4442 | if (temp7) | |
4443 | delete arg7; | |
4444 | } | |
4445 | return NULL; | |
4446 | } | |
4447 | ||
4448 | ||
4449 | static PyObject *_wrap_IEHtmlWindowBase_SetCharset(PyObject *, PyObject *args, PyObject *kwargs) { | |
4450 | PyObject *resultobj = NULL; | |
4451 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4452 | wxString *arg2 = 0 ; | |
4453 | bool temp2 = false ; | |
4454 | PyObject * obj0 = 0 ; | |
4455 | PyObject * obj1 = 0 ; | |
4456 | char *kwnames[] = { | |
4457 | (char *) "self",(char *) "charset", NULL | |
4458 | }; | |
4459 | ||
4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_SetCharset",kwnames,&obj0,&obj1)) goto fail; | |
4461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4463 | { | |
4464 | arg2 = wxString_in_helper(obj1); | |
4465 | if (arg2 == NULL) SWIG_fail; | |
4466 | temp2 = true; | |
4467 | } | |
4468 | { | |
4469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4470 | (arg1)->SetCharset((wxString const &)*arg2); | |
4471 | ||
4472 | wxPyEndAllowThreads(__tstate); | |
4473 | if (PyErr_Occurred()) SWIG_fail; | |
4474 | } | |
4475 | Py_INCREF(Py_None); resultobj = Py_None; | |
4476 | { | |
4477 | if (temp2) | |
4478 | delete arg2; | |
4479 | } | |
4480 | return resultobj; | |
4481 | fail: | |
4482 | { | |
4483 | if (temp2) | |
4484 | delete arg2; | |
4485 | } | |
4486 | return NULL; | |
4487 | } | |
4488 | ||
4489 | ||
4490 | static PyObject *_wrap_IEHtmlWindowBase_LoadString(PyObject *, PyObject *args, PyObject *kwargs) { | |
4491 | PyObject *resultobj = NULL; | |
4492 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4493 | wxString *arg2 = 0 ; | |
4494 | bool result; | |
4495 | bool temp2 = false ; | |
4496 | PyObject * obj0 = 0 ; | |
4497 | PyObject * obj1 = 0 ; | |
4498 | char *kwnames[] = { | |
4499 | (char *) "self",(char *) "html", NULL | |
4500 | }; | |
4501 | ||
4502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadString",kwnames,&obj0,&obj1)) goto fail; | |
4503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4505 | { | |
4506 | arg2 = wxString_in_helper(obj1); | |
4507 | if (arg2 == NULL) SWIG_fail; | |
4508 | temp2 = true; | |
4509 | } | |
4510 | { | |
4511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4512 | result = (bool)(arg1)->LoadString((wxString const &)*arg2); | |
4513 | ||
4514 | wxPyEndAllowThreads(__tstate); | |
4515 | if (PyErr_Occurred()) SWIG_fail; | |
4516 | } | |
4517 | { | |
4518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4519 | } | |
4520 | { | |
4521 | if (temp2) | |
4522 | delete arg2; | |
4523 | } | |
4524 | return resultobj; | |
4525 | fail: | |
4526 | { | |
4527 | if (temp2) | |
4528 | delete arg2; | |
4529 | } | |
4530 | return NULL; | |
4531 | } | |
4532 | ||
4533 | ||
4534 | static PyObject *_wrap_IEHtmlWindowBase_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
4535 | PyObject *resultobj = NULL; | |
4536 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4537 | wxInputStream *arg2 = (wxInputStream *) 0 ; | |
4538 | bool result; | |
4539 | wxPyInputStream *temp2 ; | |
4540 | PyObject * obj0 = 0 ; | |
4541 | PyObject * obj1 = 0 ; | |
4542 | char *kwnames[] = { | |
4543 | (char *) "self",(char *) "is", NULL | |
4544 | }; | |
4545 | ||
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadStream",kwnames,&obj0,&obj1)) goto fail; | |
4547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4549 | { | |
4550 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
4551 | arg2 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp2->m_wxis); | |
4552 | } else { | |
4553 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
4554 | arg2 = wxPyCBInputStream_create(obj1, true); | |
4555 | if (arg2 == NULL) { | |
4556 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); | |
4557 | SWIG_fail; | |
4558 | } | |
4559 | } | |
4560 | } | |
4561 | { | |
4562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4563 | result = (bool)(arg1)->LoadStream(arg2); | |
4564 | ||
4565 | wxPyEndAllowThreads(__tstate); | |
4566 | if (PyErr_Occurred()) SWIG_fail; | |
4567 | } | |
4568 | { | |
4569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4570 | } | |
4571 | return resultobj; | |
4572 | fail: | |
4573 | return NULL; | |
4574 | } | |
4575 | ||
4576 | ||
4577 | static PyObject *_wrap_IEHtmlWindowBase_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
4578 | PyObject *resultobj = NULL; | |
4579 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4580 | bool arg2 ; | |
4581 | wxString result; | |
4582 | PyObject * obj0 = 0 ; | |
4583 | PyObject * obj1 = 0 ; | |
4584 | char *kwnames[] = { | |
4585 | (char *) "self",(char *) "asHTML", NULL | |
4586 | }; | |
4587 | ||
4588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_GetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
4589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4591 | { | |
4592 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
4593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4594 | } | |
4595 | { | |
4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4597 | result = (arg1)->GetStringSelection(arg2); | |
4598 | ||
4599 | wxPyEndAllowThreads(__tstate); | |
4600 | if (PyErr_Occurred()) SWIG_fail; | |
4601 | } | |
4602 | { | |
4603 | #if wxUSE_UNICODE | |
4604 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4605 | #else | |
4606 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4607 | #endif | |
4608 | } | |
4609 | return resultobj; | |
4610 | fail: | |
4611 | return NULL; | |
4612 | } | |
4613 | ||
4614 | ||
4615 | static PyObject *_wrap_IEHtmlWindowBase_GetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
4616 | PyObject *resultobj = NULL; | |
4617 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4618 | bool arg2 ; | |
4619 | wxString result; | |
4620 | PyObject * obj0 = 0 ; | |
4621 | PyObject * obj1 = 0 ; | |
4622 | char *kwnames[] = { | |
4623 | (char *) "self",(char *) "asHTML", NULL | |
4624 | }; | |
4625 | ||
4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_GetText",kwnames,&obj0,&obj1)) goto fail; | |
4627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4629 | { | |
4630 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
4631 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4632 | } | |
4633 | { | |
4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4635 | result = (arg1)->GetText(arg2); | |
4636 | ||
4637 | wxPyEndAllowThreads(__tstate); | |
4638 | if (PyErr_Occurred()) SWIG_fail; | |
4639 | } | |
4640 | { | |
4641 | #if wxUSE_UNICODE | |
4642 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4643 | #else | |
4644 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4645 | #endif | |
4646 | } | |
4647 | return resultobj; | |
4648 | fail: | |
4649 | return NULL; | |
4650 | } | |
4651 | ||
4652 | ||
4653 | static PyObject * IEHtmlWindowBase_swigregister(PyObject *, PyObject *args) { | |
4654 | PyObject *obj; | |
4655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4656 | SWIG_TypeClientData(SWIGTYPE_p_wxIEHtmlWindowBase, obj); | |
4657 | Py_INCREF(obj); | |
4658 | return Py_BuildValue((char *)""); | |
4659 | } | |
4660 | static PyMethodDef SwigMethods[] = { | |
4661 | { (char *)"new_CLSID", (PyCFunction) _wrap_new_CLSID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4662 | { (char *)"delete_CLSID", (PyCFunction) _wrap_delete_CLSID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4663 | { (char *)"CLSID_GetCLSIDString", (PyCFunction) _wrap_CLSID_GetCLSIDString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4664 | { (char *)"CLSID_GetProgIDString", (PyCFunction) _wrap_CLSID_GetProgIDString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4665 | { (char *)"CLSID_swigregister", CLSID_swigregister, METH_VARARGS, NULL}, | |
4666 | { (char *)"ParamX_flags_get", (PyCFunction) _wrap_ParamX_flags_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4667 | { (char *)"ParamX_isPtr_get", (PyCFunction) _wrap_ParamX_isPtr_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4668 | { (char *)"ParamX_isSafeArray_get", (PyCFunction) _wrap_ParamX_isSafeArray_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4669 | { (char *)"ParamX_isOptional_get", (PyCFunction) _wrap_ParamX_isOptional_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4670 | { (char *)"ParamX_vt_get", (PyCFunction) _wrap_ParamX_vt_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4671 | { (char *)"ParamX_name_get", (PyCFunction) _wrap_ParamX_name_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4672 | { (char *)"ParamX_vt_type_get", (PyCFunction) _wrap_ParamX_vt_type_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4673 | { (char *)"ParamX_IsIn", (PyCFunction) _wrap_ParamX_IsIn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4674 | { (char *)"ParamX_IsOut", (PyCFunction) _wrap_ParamX_IsOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4675 | { (char *)"ParamX_IsRetVal", (PyCFunction) _wrap_ParamX_IsRetVal, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4676 | { (char *)"ParamX_swigregister", ParamX_swigregister, METH_VARARGS, NULL}, | |
4677 | { (char *)"FuncX_name_get", (PyCFunction) _wrap_FuncX_name_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4678 | { (char *)"FuncX_memid_get", (PyCFunction) _wrap_FuncX_memid_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4679 | { (char *)"FuncX_hasOut_get", (PyCFunction) _wrap_FuncX_hasOut_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4680 | { (char *)"FuncX_retType_get", (PyCFunction) _wrap_FuncX_retType_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4681 | { (char *)"FuncX_params_get", (PyCFunction) _wrap_FuncX_params_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4682 | { (char *)"FuncX_swigregister", FuncX_swigregister, METH_VARARGS, NULL}, | |
4683 | { (char *)"PropX_name_get", (PyCFunction) _wrap_PropX_name_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4684 | { (char *)"PropX_memid_get", (PyCFunction) _wrap_PropX_memid_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4685 | { (char *)"PropX_type_get", (PyCFunction) _wrap_PropX_type_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4686 | { (char *)"PropX_arg_get", (PyCFunction) _wrap_PropX_arg_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4687 | { (char *)"PropX_putByRef_get", (PyCFunction) _wrap_PropX_putByRef_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4688 | { (char *)"PropX_CanGet", (PyCFunction) _wrap_PropX_CanGet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4689 | { (char *)"PropX_CanSet", (PyCFunction) _wrap_PropX_CanSet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4690 | { (char *)"PropX_swigregister", PropX_swigregister, METH_VARARGS, NULL}, | |
4691 | { (char *)"ParamXArray___nonzero__", (PyCFunction) _wrap_ParamXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4692 | { (char *)"ParamXArray___len__", (PyCFunction) _wrap_ParamXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4693 | { (char *)"ParamXArray___getitem__", (PyCFunction) _wrap_ParamXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4694 | { (char *)"ParamXArray_swigregister", ParamXArray_swigregister, METH_VARARGS, NULL}, | |
4695 | { (char *)"FuncXArray___nonzero__", (PyCFunction) _wrap_FuncXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4696 | { (char *)"FuncXArray___len__", (PyCFunction) _wrap_FuncXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4697 | { (char *)"FuncXArray___getitem__", (PyCFunction) _wrap_FuncXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4698 | { (char *)"FuncXArray_swigregister", FuncXArray_swigregister, METH_VARARGS, NULL}, | |
4699 | { (char *)"PropXArray___nonzero__", (PyCFunction) _wrap_PropXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4700 | { (char *)"PropXArray___len__", (PyCFunction) _wrap_PropXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4701 | { (char *)"PropXArray___getitem__", (PyCFunction) _wrap_PropXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4702 | { (char *)"PropXArray_swigregister", PropXArray_swigregister, METH_VARARGS, NULL}, | |
4703 | { (char *)"new_ActiveXWindow", (PyCFunction) _wrap_new_ActiveXWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4704 | { (char *)"ActiveXWindow_GetCLSID", (PyCFunction) _wrap_ActiveXWindow_GetCLSID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4705 | { (char *)"ActiveXWindow_GetAXEventCount", (PyCFunction) _wrap_ActiveXWindow_GetAXEventCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4706 | { (char *)"ActiveXWindow_GetAXEventDesc", (PyCFunction) _wrap_ActiveXWindow_GetAXEventDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4707 | { (char *)"ActiveXWindow_GetAXPropCount", (PyCFunction) _wrap_ActiveXWindow_GetAXPropCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4708 | { (char *)"ActiveXWindow_GetAXPropDesc", _wrap_ActiveXWindow_GetAXPropDesc, METH_VARARGS, NULL}, | |
4709 | { (char *)"ActiveXWindow_GetAXMethodCount", (PyCFunction) _wrap_ActiveXWindow_GetAXMethodCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4710 | { (char *)"ActiveXWindow_GetAXMethodDesc", _wrap_ActiveXWindow_GetAXMethodDesc, METH_VARARGS, NULL}, | |
4711 | { (char *)"ActiveXWindow_GetAXEvents", (PyCFunction) _wrap_ActiveXWindow_GetAXEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4712 | { (char *)"ActiveXWindow_GetAXMethods", (PyCFunction) _wrap_ActiveXWindow_GetAXMethods, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4713 | { (char *)"ActiveXWindow_GetAXProperties", (PyCFunction) _wrap_ActiveXWindow_GetAXProperties, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4714 | { (char *)"ActiveXWindow_SetAXProp", (PyCFunction) _wrap_ActiveXWindow_SetAXProp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4715 | { (char *)"ActiveXWindow_GetAXProp", (PyCFunction) _wrap_ActiveXWindow_GetAXProp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4716 | { (char *)"ActiveXWindow__CallAXMethod", _wrap_ActiveXWindow__CallAXMethod, METH_VARARGS, NULL}, | |
4717 | { (char *)"ActiveXWindow_swigregister", ActiveXWindow_swigregister, METH_VARARGS, NULL}, | |
4718 | { (char *)"RegisterActiveXEvent", (PyCFunction) _wrap_RegisterActiveXEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4719 | { (char *)"ActiveXEvent_EventName", (PyCFunction) _wrap_ActiveXEvent_EventName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4720 | { (char *)"ActiveXEvent__preCallInit", (PyCFunction) _wrap_ActiveXEvent__preCallInit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4721 | { (char *)"ActiveXEvent__postCallCleanup", (PyCFunction) _wrap_ActiveXEvent__postCallCleanup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4722 | { (char *)"ActiveXEvent_swigregister", ActiveXEvent_swigregister, METH_VARARGS, NULL}, | |
4723 | { (char *)"new_IEHtmlWindowBase", (PyCFunction) _wrap_new_IEHtmlWindowBase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4724 | { (char *)"IEHtmlWindowBase_SetCharset", (PyCFunction) _wrap_IEHtmlWindowBase_SetCharset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4725 | { (char *)"IEHtmlWindowBase_LoadString", (PyCFunction) _wrap_IEHtmlWindowBase_LoadString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4726 | { (char *)"IEHtmlWindowBase_LoadStream", (PyCFunction) _wrap_IEHtmlWindowBase_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4727 | { (char *)"IEHtmlWindowBase_GetStringSelection", (PyCFunction) _wrap_IEHtmlWindowBase_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4728 | { (char *)"IEHtmlWindowBase_GetText", (PyCFunction) _wrap_IEHtmlWindowBase_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4729 | { (char *)"IEHtmlWindowBase_swigregister", IEHtmlWindowBase_swigregister, METH_VARARGS, NULL}, | |
4730 | { NULL, NULL, 0, NULL } | |
4731 | }; | |
4732 | ||
4733 | ||
4734 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
4735 | ||
4736 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
4737 | return (void *)((wxWindow *) ((wxControl *) x)); | |
4738 | } | |
4739 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
4740 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
4741 | } | |
4742 | static void *_p_wxActiveXWindowTo_p_wxWindow(void *x) { | |
4743 | return (void *)((wxWindow *) ((wxActiveXWindow *) x)); | |
4744 | } | |
4745 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
4746 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
4747 | } | |
4748 | static void *_p_wxIEHtmlWindowBaseTo_p_wxWindow(void *x) { | |
4749 | return (void *)((wxWindow *) (wxActiveXWindow *) ((wxIEHtmlWindowBase *) x)); | |
4750 | } | |
4751 | static void *_p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow(void *x) { | |
4752 | return (void *)((wxActiveXWindow *) ((wxIEHtmlWindowBase *) x)); | |
4753 | } | |
4754 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
4755 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
4756 | } | |
4757 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
4758 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
4759 | } | |
4760 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
4761 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
4762 | } | |
4763 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
4764 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
4765 | } | |
4766 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
4767 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
4768 | } | |
4769 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
4770 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
4771 | } | |
4772 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
4773 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
4774 | } | |
4775 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
4776 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
4777 | } | |
4778 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
4779 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
4780 | } | |
4781 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
4782 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
4783 | } | |
4784 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
4785 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
4786 | } | |
4787 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
4788 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
4789 | } | |
4790 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
4791 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
4792 | } | |
4793 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
4794 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
4795 | } | |
4796 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
4797 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
4798 | } | |
4799 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
4800 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
4801 | } | |
4802 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
4803 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
4804 | } | |
4805 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
4806 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
4807 | } | |
4808 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
4809 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
4810 | } | |
4811 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
4812 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
4813 | } | |
4814 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
4815 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
4816 | } | |
4817 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
4818 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
4819 | } | |
4820 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
4821 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
4822 | } | |
4823 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
4824 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
4825 | } | |
4826 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
4827 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
4828 | } | |
4829 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
4830 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
4831 | } | |
4832 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
4833 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
4834 | } | |
4835 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
4836 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
4837 | } | |
4838 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
4839 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
4840 | } | |
4841 | static void *_p_wxActiveXEventTo_p_wxEvent(void *x) { | |
4842 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxActiveXEvent *) x)); | |
4843 | } | |
4844 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
4845 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
4846 | } | |
4847 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
4848 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
4849 | } | |
4850 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
4851 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
4852 | } | |
4853 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
4854 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
4855 | } | |
4856 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
4857 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
4858 | } | |
4859 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
4860 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
4861 | } | |
4862 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
4863 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
4864 | } | |
4865 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
4866 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
4867 | } | |
4868 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
4869 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
4870 | } | |
4871 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
4872 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
4873 | } | |
4874 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
4875 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
4876 | } | |
4877 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
4878 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
4879 | } | |
4880 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
4881 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
4882 | } | |
4883 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
4884 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
4885 | } | |
4886 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
4887 | return (void *)((wxObject *) ((wxSizer *) x)); | |
4888 | } | |
4889 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
4890 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
4891 | } | |
4892 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
4893 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
4894 | } | |
4895 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
4896 | return (void *)((wxObject *) ((wxEvent *) x)); | |
4897 | } | |
4898 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
4899 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
4900 | } | |
4901 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
4902 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
4903 | } | |
4904 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
4905 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
4906 | } | |
4907 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
4908 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
4909 | } | |
4910 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
4911 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
4912 | } | |
4913 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
4914 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
4915 | } | |
4916 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
4917 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
4918 | } | |
4919 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
4920 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
4921 | } | |
4922 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
4923 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
4924 | } | |
4925 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
4926 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
4927 | } | |
4928 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
4929 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
4930 | } | |
4931 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
4932 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
4933 | } | |
4934 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
4935 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
4936 | } | |
4937 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
4938 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
4939 | } | |
4940 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
4941 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
4942 | } | |
4943 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
4944 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
4945 | } | |
4946 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
4947 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
4948 | } | |
4949 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
4950 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
4951 | } | |
4952 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
4953 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
4954 | } | |
4955 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
4956 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
4957 | } | |
4958 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
4959 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
4960 | } | |
4961 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
4962 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
4963 | } | |
4964 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
4965 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
4966 | } | |
4967 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
4968 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
4969 | } | |
4970 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
4971 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
4972 | } | |
4973 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
4974 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
4975 | } | |
4976 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
4977 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
4978 | } | |
4979 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
4980 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
4981 | } | |
4982 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
4983 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
4984 | } | |
4985 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
4986 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
4987 | } | |
4988 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
4989 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
4990 | } | |
4991 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
4992 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
4993 | } | |
4994 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
4995 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
4996 | } | |
4997 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
4998 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
4999 | } | |
5000 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
5001 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
5002 | } | |
5003 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
5004 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
5005 | } | |
5006 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
5007 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
5008 | } | |
5009 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
5010 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
5011 | } | |
5012 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
5013 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
5014 | } | |
5015 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
5016 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
5017 | } | |
5018 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
5019 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
5020 | } | |
5021 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
5022 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
5023 | } | |
5024 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
5025 | return (void *)((wxObject *) ((wxImage *) x)); | |
5026 | } | |
5027 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
5028 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
5029 | } | |
5030 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
5031 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
5032 | } | |
5033 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
5034 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
5035 | } | |
5036 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
5037 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
5038 | } | |
5039 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
5040 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
5041 | } | |
5042 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
5043 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
5044 | } | |
5045 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
5046 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
5047 | } | |
5048 | static void *_p_wxActiveXWindowTo_p_wxObject(void *x) { | |
5049 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxActiveXWindow *) x)); | |
5050 | } | |
5051 | static void *_p_wxActiveXEventTo_p_wxObject(void *x) { | |
5052 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxActiveXEvent *) x)); | |
5053 | } | |
5054 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
5055 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
5056 | } | |
5057 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
5058 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
5059 | } | |
5060 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
5061 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
5062 | } | |
5063 | static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x) { | |
5064 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x)); | |
5065 | } | |
5066 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
5067 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
5068 | } | |
5069 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
5070 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
5071 | } | |
5072 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
5073 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
5074 | } | |
5075 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
5076 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
5077 | } | |
5078 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
5079 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
5080 | } | |
5081 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
5082 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
5083 | } | |
5084 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
5085 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
5086 | } | |
5087 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
5088 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
5089 | } | |
5090 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
5091 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
5092 | } | |
5093 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
5094 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
5095 | } | |
5096 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
5097 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
5098 | } | |
5099 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
5100 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
5101 | } | |
5102 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
5103 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
5104 | } | |
5105 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
5106 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
5107 | } | |
5108 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
5109 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
5110 | } | |
5111 | static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x) { | |
5112 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxActiveXWindow *) x)); | |
5113 | } | |
5114 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
5115 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
5116 | } | |
5117 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
5118 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
5119 | } | |
5120 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
5121 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
5122 | } | |
5123 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
5124 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
5125 | } | |
5126 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
5127 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
5128 | } | |
5129 | static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x) { | |
5130 | return (void *)((wxEvtHandler *) (wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x)); | |
5131 | } | |
5132 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
5133 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
5134 | } | |
5135 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
5136 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
5137 | } | |
5138 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
5139 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
5140 | } | |
5141 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
5142 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
5143 | } | |
5144 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
5145 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
5146 | } | |
5147 | static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x) { | |
5148 | return (void *)((wxCommandEvent *) ((wxActiveXEvent *) x)); | |
5149 | } | |
5150 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
5151 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
5152 | } | |
5153 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
5154 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
5155 | } | |
5156 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
5157 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
5158 | } | |
5159 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
5160 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
5161 | } | |
5162 | static swig_type_info _swigt__p_CLSID = {"_p_CLSID", "CLSID *", 0, 0, 0}; | |
5163 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; | |
5164 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
5165 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, 0}; | |
5166 | static swig_type_info _swigt__p_long = {"_p_long", "long *|MEMBERID *", 0, 0, 0}; | |
5167 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
5168 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
5169 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0}; | |
5170 | static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|VARTYPE *", 0, 0, 0}; | |
5171 | static swig_type_info _swigt__p_wxActiveXEvent = {"_p_wxActiveXEvent", "wxActiveXEvent *", 0, 0, 0}; | |
5172 | static swig_type_info _swigt__p_wxActiveXWindow = {"_p_wxActiveXWindow", "wxActiveXWindow *", 0, 0, 0}; | |
5173 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0}; | |
5174 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
5175 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
5176 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
5177 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
5178 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
5179 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
5180 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
5181 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0}; | |
5182 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
5183 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
5184 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0}; | |
5185 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
5186 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
5187 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0}; | |
5188 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
5189 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
5190 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
5191 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
5192 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
5193 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
5194 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
5195 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
5196 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
5197 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
5198 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
5199 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
5200 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
5201 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
5202 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
5203 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
5204 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
5205 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
5206 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
5207 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
5208 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
5209 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0}; | |
5210 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
5211 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0}; | |
5212 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0}; | |
5213 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0}; | |
5214 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
5215 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
5216 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0}; | |
5217 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
5218 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0}; | |
5219 | static swig_type_info _swigt__p_wxFuncX = {"_p_wxFuncX", "wxFuncX *", 0, 0, 0}; | |
5220 | static swig_type_info _swigt__p_wxFuncXArray = {"_p_wxFuncXArray", "wxFuncXArray *", 0, 0, 0}; | |
5221 | static swig_type_info _swigt__p_wxIEHtmlWindowBase = {"_p_wxIEHtmlWindowBase", "wxIEHtmlWindowBase *", 0, 0, 0}; | |
5222 | static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, 0}; | |
5223 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
5224 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
5225 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
5226 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
5227 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
5228 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
5229 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
5230 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
5231 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
5232 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
5233 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
5234 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
5235 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
5236 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
5237 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
5238 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
5239 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
5240 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
5241 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
5242 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
5243 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
5244 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
5245 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
5246 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
5247 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
5248 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
5249 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
5250 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
5251 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
5252 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0}; | |
5253 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
5254 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
5255 | static swig_type_info _swigt__p_wxParamX = {"_p_wxParamX", "wxParamX *", 0, 0, 0}; | |
5256 | static swig_type_info _swigt__p_wxParamXArray = {"_p_wxParamXArray", "wxParamXArray *", 0, 0, 0}; | |
5257 | static swig_type_info _swigt__p_wxPropX = {"_p_wxPropX", "wxPropX *", 0, 0, 0}; | |
5258 | static swig_type_info _swigt__p_wxPropXArray = {"_p_wxPropXArray", "wxPropXArray *", 0, 0, 0}; | |
5259 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
5260 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
5261 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
5262 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
5263 | ||
5264 | static swig_type_info *swig_type_initial[] = { | |
5265 | &_swigt__p_CLSID, | |
5266 | &_swigt__p_char, | |
5267 | &_swigt__p_form_ops_t, | |
5268 | &_swigt__p_int, | |
5269 | &_swigt__p_long, | |
5270 | &_swigt__p_unsigned_char, | |
5271 | &_swigt__p_unsigned_int, | |
5272 | &_swigt__p_unsigned_long, | |
5273 | &_swigt__p_unsigned_short, | |
5274 | &_swigt__p_wxANIHandler, | |
5275 | &_swigt__p_wxAcceleratorTable, | |
5276 | &_swigt__p_wxActivateEvent, | |
5277 | &_swigt__p_wxActiveXEvent, | |
5278 | &_swigt__p_wxActiveXWindow, | |
5279 | &_swigt__p_wxBMPHandler, | |
5280 | &_swigt__p_wxBoxSizer, | |
5281 | &_swigt__p_wxCURHandler, | |
5282 | &_swigt__p_wxChildFocusEvent, | |
5283 | &_swigt__p_wxCloseEvent, | |
5284 | &_swigt__p_wxCommandEvent, | |
5285 | &_swigt__p_wxContextMenuEvent, | |
5286 | &_swigt__p_wxControl, | |
5287 | &_swigt__p_wxControlWithItems, | |
5288 | &_swigt__p_wxDateEvent, | |
5289 | &_swigt__p_wxDisplayChangedEvent, | |
5290 | &_swigt__p_wxDropFilesEvent, | |
5291 | &_swigt__p_wxDuplexMode, | |
5292 | &_swigt__p_wxEraseEvent, | |
5293 | &_swigt__p_wxEvent, | |
5294 | &_swigt__p_wxEvtHandler, | |
5295 | &_swigt__p_wxFSFile, | |
5296 | &_swigt__p_wxFileSystem, | |
5297 | &_swigt__p_wxFlexGridSizer, | |
5298 | &_swigt__p_wxFocusEvent, | |
5299 | &_swigt__p_wxFuncX, | |
5300 | &_swigt__p_wxFuncXArray, | |
5301 | &_swigt__p_wxGBSizerItem, | |
5302 | &_swigt__p_wxGIFHandler, | |
5303 | &_swigt__p_wxGridBagSizer, | |
5304 | &_swigt__p_wxGridSizer, | |
5305 | &_swigt__p_wxICOHandler, | |
5306 | &_swigt__p_wxIEHtmlWindowBase, | |
5307 | &_swigt__p_wxIconizeEvent, | |
5308 | &_swigt__p_wxIdleEvent, | |
5309 | &_swigt__p_wxImage, | |
5310 | &_swigt__p_wxImageHandler, | |
5311 | &_swigt__p_wxIndividualLayoutConstraint, | |
5312 | &_swigt__p_wxInitDialogEvent, | |
5313 | &_swigt__p_wxInputStream, | |
5314 | &_swigt__p_wxJPEGHandler, | |
5315 | &_swigt__p_wxKeyEvent, | |
5316 | &_swigt__p_wxLayoutConstraints, | |
5317 | &_swigt__p_wxMaximizeEvent, | |
5318 | &_swigt__p_wxMenu, | |
5319 | &_swigt__p_wxMenuBar, | |
5320 | &_swigt__p_wxMenuEvent, | |
5321 | &_swigt__p_wxMenuItem, | |
5322 | &_swigt__p_wxMouseCaptureChangedEvent, | |
5323 | &_swigt__p_wxMouseEvent, | |
5324 | &_swigt__p_wxMoveEvent, | |
5325 | &_swigt__p_wxNavigationKeyEvent, | |
5326 | &_swigt__p_wxNcPaintEvent, | |
5327 | &_swigt__p_wxNotifyEvent, | |
5328 | &_swigt__p_wxObject, | |
5329 | &_swigt__p_wxPCXHandler, | |
5330 | &_swigt__p_wxPNGHandler, | |
5331 | &_swigt__p_wxPNMHandler, | |
5332 | &_swigt__p_wxPaintEvent, | |
5333 | &_swigt__p_wxPaletteChangedEvent, | |
5334 | &_swigt__p_wxPaperSize, | |
5335 | &_swigt__p_wxParamX, | |
5336 | &_swigt__p_wxParamXArray, | |
5337 | &_swigt__p_wxPropX, | |
5338 | &_swigt__p_wxPropXArray, | |
5339 | &_swigt__p_wxPyApp, | |
5340 | &_swigt__p_wxPyCommandEvent, | |
5341 | &_swigt__p_wxPyEvent, | |
5342 | &_swigt__p_wxPyImageHandler, | |
5343 | &_swigt__p_wxPySizer, | |
5344 | &_swigt__p_wxPyValidator, | |
5345 | &_swigt__p_wxQueryNewPaletteEvent, | |
5346 | &_swigt__p_wxScrollEvent, | |
5347 | &_swigt__p_wxScrollWinEvent, | |
5348 | &_swigt__p_wxSetCursorEvent, | |
5349 | &_swigt__p_wxShowEvent, | |
5350 | &_swigt__p_wxSizeEvent, | |
5351 | &_swigt__p_wxSizer, | |
5352 | &_swigt__p_wxSizerItem, | |
5353 | &_swigt__p_wxStaticBoxSizer, | |
5354 | &_swigt__p_wxStdDialogButtonSizer, | |
5355 | &_swigt__p_wxSysColourChangedEvent, | |
5356 | &_swigt__p_wxTIFFHandler, | |
5357 | &_swigt__p_wxUpdateUIEvent, | |
5358 | &_swigt__p_wxValidator, | |
5359 | &_swigt__p_wxWindow, | |
5360 | &_swigt__p_wxWindowCreateEvent, | |
5361 | &_swigt__p_wxWindowDestroyEvent, | |
5362 | &_swigt__p_wxXPMHandler, | |
5363 | &_swigt__ptrdiff_t, | |
5364 | &_swigt__std__ptrdiff_t, | |
5365 | &_swigt__unsigned_int, | |
5366 | }; | |
5367 | ||
5368 | static swig_cast_info _swigc__p_CLSID[] = { {&_swigt__p_CLSID, 0, 0, 0},{0, 0, 0, 0}}; | |
5369 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
5370 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
5371 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
5372 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
5373 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
5374 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
5375 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
5376 | static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; | |
5377 | static swig_cast_info _swigc__p_wxActiveXEvent[] = { {&_swigt__p_wxActiveXEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5378 | static swig_cast_info _swigc__p_wxActiveXWindow[] = { {&_swigt__p_wxActiveXWindow, 0, 0, 0}, {&_swigt__p_wxIEHtmlWindowBase, _p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow, 0, 0},{0, 0, 0, 0}}; | |
5379 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5380 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5381 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5382 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5383 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5384 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5385 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5386 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5387 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5388 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxActiveXEvent, _p_wxActiveXEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; | |
5389 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
5390 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5391 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5392 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5393 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5394 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5395 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5396 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5397 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5398 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5399 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5400 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5401 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5402 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5403 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5404 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5405 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5406 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5407 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5408 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5409 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5410 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5411 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5412 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5413 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5414 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5415 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5416 | static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActiveXEvent, _p_wxActiveXEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; | |
5417 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
5418 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
5419 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
5420 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
5421 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
5422 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
5423 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
5424 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxActiveXWindow, _p_wxActiveXWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxIEHtmlWindowBase, _p_wxIEHtmlWindowBaseTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; | |
5425 | static swig_cast_info _swigc__p_wxFuncX[] = { {&_swigt__p_wxFuncX, 0, 0, 0},{0, 0, 0, 0}}; | |
5426 | static swig_cast_info _swigc__p_wxFuncXArray[] = { {&_swigt__p_wxFuncXArray, 0, 0, 0},{0, 0, 0, 0}}; | |
5427 | static swig_cast_info _swigc__p_wxIEHtmlWindowBase[] = { {&_swigt__p_wxIEHtmlWindowBase, 0, 0, 0},{0, 0, 0, 0}}; | |
5428 | static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}}; | |
5429 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
5430 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
5431 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
5432 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
5433 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5434 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5435 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5436 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5437 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5438 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5439 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
5440 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5441 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
5442 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5443 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5444 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5445 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5446 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5447 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5448 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5449 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5450 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5451 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5452 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5453 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5454 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5455 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5456 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
5457 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
5458 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
5459 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_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_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_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_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_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_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActiveXEvent, _p_wxActiveXEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActiveXWindow, _p_wxActiveXWindowTo_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_wxIEHtmlWindowBase, _p_wxIEHtmlWindowBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
5460 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
5461 | static swig_cast_info _swigc__p_wxParamX[] = { {&_swigt__p_wxParamX, 0, 0, 0},{0, 0, 0, 0}}; | |
5462 | static swig_cast_info _swigc__p_wxParamXArray[] = { {&_swigt__p_wxParamXArray, 0, 0, 0},{0, 0, 0, 0}}; | |
5463 | static swig_cast_info _swigc__p_wxPropX[] = { {&_swigt__p_wxPropX, 0, 0, 0},{0, 0, 0, 0}}; | |
5464 | static swig_cast_info _swigc__p_wxPropXArray[] = { {&_swigt__p_wxPropXArray, 0, 0, 0},{0, 0, 0, 0}}; | |
5465 | 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_wxActiveXWindow, _p_wxActiveXWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxIEHtmlWindowBase, _p_wxIEHtmlWindowBaseTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
5466 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
5467 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
5468 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
5469 | ||
5470 | static swig_cast_info *swig_cast_initial[] = { | |
5471 | _swigc__p_CLSID, | |
5472 | _swigc__p_char, | |
5473 | _swigc__p_form_ops_t, | |
5474 | _swigc__p_int, | |
5475 | _swigc__p_long, | |
5476 | _swigc__p_unsigned_char, | |
5477 | _swigc__p_unsigned_int, | |
5478 | _swigc__p_unsigned_long, | |
5479 | _swigc__p_unsigned_short, | |
5480 | _swigc__p_wxANIHandler, | |
5481 | _swigc__p_wxAcceleratorTable, | |
5482 | _swigc__p_wxActivateEvent, | |
5483 | _swigc__p_wxActiveXEvent, | |
5484 | _swigc__p_wxActiveXWindow, | |
5485 | _swigc__p_wxBMPHandler, | |
5486 | _swigc__p_wxBoxSizer, | |
5487 | _swigc__p_wxCURHandler, | |
5488 | _swigc__p_wxChildFocusEvent, | |
5489 | _swigc__p_wxCloseEvent, | |
5490 | _swigc__p_wxCommandEvent, | |
5491 | _swigc__p_wxContextMenuEvent, | |
5492 | _swigc__p_wxControl, | |
5493 | _swigc__p_wxControlWithItems, | |
5494 | _swigc__p_wxDateEvent, | |
5495 | _swigc__p_wxDisplayChangedEvent, | |
5496 | _swigc__p_wxDropFilesEvent, | |
5497 | _swigc__p_wxDuplexMode, | |
5498 | _swigc__p_wxEraseEvent, | |
5499 | _swigc__p_wxEvent, | |
5500 | _swigc__p_wxEvtHandler, | |
5501 | _swigc__p_wxFSFile, | |
5502 | _swigc__p_wxFileSystem, | |
5503 | _swigc__p_wxFlexGridSizer, | |
5504 | _swigc__p_wxFocusEvent, | |
5505 | _swigc__p_wxFuncX, | |
5506 | _swigc__p_wxFuncXArray, | |
5507 | _swigc__p_wxGBSizerItem, | |
5508 | _swigc__p_wxGIFHandler, | |
5509 | _swigc__p_wxGridBagSizer, | |
5510 | _swigc__p_wxGridSizer, | |
5511 | _swigc__p_wxICOHandler, | |
5512 | _swigc__p_wxIEHtmlWindowBase, | |
5513 | _swigc__p_wxIconizeEvent, | |
5514 | _swigc__p_wxIdleEvent, | |
5515 | _swigc__p_wxImage, | |
5516 | _swigc__p_wxImageHandler, | |
5517 | _swigc__p_wxIndividualLayoutConstraint, | |
5518 | _swigc__p_wxInitDialogEvent, | |
5519 | _swigc__p_wxInputStream, | |
5520 | _swigc__p_wxJPEGHandler, | |
5521 | _swigc__p_wxKeyEvent, | |
5522 | _swigc__p_wxLayoutConstraints, | |
5523 | _swigc__p_wxMaximizeEvent, | |
5524 | _swigc__p_wxMenu, | |
5525 | _swigc__p_wxMenuBar, | |
5526 | _swigc__p_wxMenuEvent, | |
5527 | _swigc__p_wxMenuItem, | |
5528 | _swigc__p_wxMouseCaptureChangedEvent, | |
5529 | _swigc__p_wxMouseEvent, | |
5530 | _swigc__p_wxMoveEvent, | |
5531 | _swigc__p_wxNavigationKeyEvent, | |
5532 | _swigc__p_wxNcPaintEvent, | |
5533 | _swigc__p_wxNotifyEvent, | |
5534 | _swigc__p_wxObject, | |
5535 | _swigc__p_wxPCXHandler, | |
5536 | _swigc__p_wxPNGHandler, | |
5537 | _swigc__p_wxPNMHandler, | |
5538 | _swigc__p_wxPaintEvent, | |
5539 | _swigc__p_wxPaletteChangedEvent, | |
5540 | _swigc__p_wxPaperSize, | |
5541 | _swigc__p_wxParamX, | |
5542 | _swigc__p_wxParamXArray, | |
5543 | _swigc__p_wxPropX, | |
5544 | _swigc__p_wxPropXArray, | |
5545 | _swigc__p_wxPyApp, | |
5546 | _swigc__p_wxPyCommandEvent, | |
5547 | _swigc__p_wxPyEvent, | |
5548 | _swigc__p_wxPyImageHandler, | |
5549 | _swigc__p_wxPySizer, | |
5550 | _swigc__p_wxPyValidator, | |
5551 | _swigc__p_wxQueryNewPaletteEvent, | |
5552 | _swigc__p_wxScrollEvent, | |
5553 | _swigc__p_wxScrollWinEvent, | |
5554 | _swigc__p_wxSetCursorEvent, | |
5555 | _swigc__p_wxShowEvent, | |
5556 | _swigc__p_wxSizeEvent, | |
5557 | _swigc__p_wxSizer, | |
5558 | _swigc__p_wxSizerItem, | |
5559 | _swigc__p_wxStaticBoxSizer, | |
5560 | _swigc__p_wxStdDialogButtonSizer, | |
5561 | _swigc__p_wxSysColourChangedEvent, | |
5562 | _swigc__p_wxTIFFHandler, | |
5563 | _swigc__p_wxUpdateUIEvent, | |
5564 | _swigc__p_wxValidator, | |
5565 | _swigc__p_wxWindow, | |
5566 | _swigc__p_wxWindowCreateEvent, | |
5567 | _swigc__p_wxWindowDestroyEvent, | |
5568 | _swigc__p_wxXPMHandler, | |
5569 | _swigc__ptrdiff_t, | |
5570 | _swigc__std__ptrdiff_t, | |
5571 | _swigc__unsigned_int, | |
5572 | }; | |
5573 | ||
5574 | ||
5575 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
5576 | ||
5577 | static swig_const_info swig_const_table[] = { | |
5578 | {0, 0, 0, 0.0, 0, 0}}; | |
5579 | ||
5580 | #ifdef __cplusplus | |
5581 | } | |
5582 | #endif | |
5583 | /************************************************************************* | |
5584 | * Type initialization: | |
5585 | * This problem is tough by the requirement that no dynamic | |
5586 | * memory is used. Also, since swig_type_info structures store pointers to | |
5587 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
5588 | * to swig_type_info structures, we need some lookup code at initialization. | |
5589 | * The idea is that swig generates all the structures that are needed. | |
5590 | * The runtime then collects these partially filled structures. | |
5591 | * The SWIG_InitializeModule function takes these initial arrays out of | |
5592 | * swig_module, and does all the lookup, filling in the swig_module.types | |
5593 | * array with the correct data and linking the correct swig_cast_info | |
5594 | * structures together. | |
5595 | ||
5596 | * The generated swig_type_info structures are assigned staticly to an initial | |
5597 | * array. We just loop though that array, and handle each type individually. | |
5598 | * First we lookup if this type has been already loaded, and if so, use the | |
5599 | * loaded structure instead of the generated one. Then we have to fill in the | |
5600 | * cast linked list. The cast data is initially stored in something like a | |
5601 | * two-dimensional array. Each row corresponds to a type (there are the same | |
5602 | * number of rows as there are in the swig_type_initial array). Each entry in | |
5603 | * a column is one of the swig_cast_info structures for that type. | |
5604 | * The cast_initial array is actually an array of arrays, because each row has | |
5605 | * a variable number of columns. So to actually build the cast linked list, | |
5606 | * we find the array of casts associated with the type, and loop through it | |
5607 | * adding the casts to the list. The one last trick we need to do is making | |
5608 | * sure the type pointer in the swig_cast_info struct is correct. | |
5609 | ||
5610 | * First off, we lookup the cast->type name to see if it is already loaded. | |
5611 | * There are three cases to handle: | |
5612 | * 1) If the cast->type has already been loaded AND the type we are adding | |
5613 | * casting info to has not been loaded (it is in this module), THEN we | |
5614 | * replace the cast->type pointer with the type pointer that has already | |
5615 | * been loaded. | |
5616 | * 2) If BOTH types (the one we are adding casting info to, and the | |
5617 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
5618 | * the previous module so we just ignore it. | |
5619 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
5620 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
5621 | * be correct. | |
5622 | **/ | |
5623 | ||
5624 | #ifdef __cplusplus | |
5625 | extern "C" { | |
5626 | #if 0 | |
5627 | } /* c-mode */ | |
5628 | #endif | |
5629 | #endif | |
5630 | ||
5631 | #if 0 | |
5632 | #define SWIGRUNTIME_DEBUG | |
5633 | #endif | |
5634 | ||
5635 | SWIGRUNTIME void | |
5636 | SWIG_InitializeModule(void *clientdata) { | |
5637 | size_t i; | |
5638 | swig_module_info *module_head; | |
5639 | static int init_run = 0; | |
5640 | ||
5641 | clientdata = clientdata; | |
5642 | ||
5643 | if (init_run) return; | |
5644 | init_run = 1; | |
5645 | ||
5646 | /* Initialize the swig_module */ | |
5647 | swig_module.type_initial = swig_type_initial; | |
5648 | swig_module.cast_initial = swig_cast_initial; | |
5649 | ||
5650 | /* Try and load any already created modules */ | |
5651 | module_head = SWIG_GetModule(clientdata); | |
5652 | if (module_head) { | |
5653 | swig_module.next = module_head->next; | |
5654 | module_head->next = &swig_module; | |
5655 | } else { | |
5656 | /* This is the first module loaded */ | |
5657 | swig_module.next = &swig_module; | |
5658 | SWIG_SetModule(clientdata, &swig_module); | |
5659 | } | |
5660 | ||
5661 | /* Now work on filling in swig_module.types */ | |
5662 | #ifdef SWIGRUNTIME_DEBUG | |
5663 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
5664 | #endif | |
5665 | for (i = 0; i < swig_module.size; ++i) { | |
5666 | swig_type_info *type = 0; | |
5667 | swig_type_info *ret; | |
5668 | swig_cast_info *cast; | |
5669 | ||
5670 | #ifdef SWIGRUNTIME_DEBUG | |
5671 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
5672 | #endif | |
5673 | ||
5674 | /* if there is another module already loaded */ | |
5675 | if (swig_module.next != &swig_module) { | |
5676 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
5677 | } | |
5678 | if (type) { | |
5679 | /* Overwrite clientdata field */ | |
5680 | #ifdef SWIGRUNTIME_DEBUG | |
5681 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
5682 | #endif | |
5683 | if (swig_module.type_initial[i]->clientdata) { | |
5684 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
5685 | #ifdef SWIGRUNTIME_DEBUG | |
5686 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
5687 | #endif | |
5688 | } | |
5689 | } else { | |
5690 | type = swig_module.type_initial[i]; | |
5691 | } | |
5692 | ||
5693 | /* Insert casting types */ | |
5694 | cast = swig_module.cast_initial[i]; | |
5695 | while (cast->type) { | |
5696 | /* Don't need to add information already in the list */ | |
5697 | ret = 0; | |
5698 | #ifdef SWIGRUNTIME_DEBUG | |
5699 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
5700 | #endif | |
5701 | if (swig_module.next != &swig_module) { | |
5702 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
5703 | #ifdef SWIGRUNTIME_DEBUG | |
5704 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
5705 | #endif | |
5706 | } | |
5707 | if (ret) { | |
5708 | if (type == swig_module.type_initial[i]) { | |
5709 | #ifdef SWIGRUNTIME_DEBUG | |
5710 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
5711 | #endif | |
5712 | cast->type = ret; | |
5713 | ret = 0; | |
5714 | } else { | |
5715 | /* Check for casting already in the list */ | |
5716 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
5717 | #ifdef SWIGRUNTIME_DEBUG | |
5718 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
5719 | #endif | |
5720 | if (!ocast) ret = 0; | |
5721 | } | |
5722 | } | |
5723 | ||
5724 | if (!ret) { | |
5725 | #ifdef SWIGRUNTIME_DEBUG | |
5726 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
5727 | #endif | |
5728 | if (type->cast) { | |
5729 | type->cast->prev = cast; | |
5730 | cast->next = type->cast; | |
5731 | } | |
5732 | type->cast = cast; | |
5733 | } | |
5734 | cast++; | |
5735 | } | |
5736 | /* Set entry in modules->types array equal to the type */ | |
5737 | swig_module.types[i] = type; | |
5738 | } | |
5739 | swig_module.types[i] = 0; | |
5740 | ||
5741 | #ifdef SWIGRUNTIME_DEBUG | |
5742 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
5743 | for (i = 0; i < swig_module.size; ++i) { | |
5744 | int j = 0; | |
5745 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
5746 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
5747 | while (cast->type) { | |
5748 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
5749 | cast++; | |
5750 | ++j; | |
5751 | } | |
5752 | printf("---- Total casts: %d\n",j); | |
5753 | } | |
5754 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
5755 | #endif | |
5756 | } | |
5757 | ||
5758 | /* This function will propagate the clientdata field of type to | |
5759 | * any new swig_type_info structures that have been added into the list | |
5760 | * of equivalent types. It is like calling | |
5761 | * SWIG_TypeClientData(type, clientdata) a second time. | |
5762 | */ | |
5763 | SWIGRUNTIME void | |
5764 | SWIG_PropagateClientData(void) { | |
5765 | size_t i; | |
5766 | swig_cast_info *equiv; | |
5767 | static int init_run = 0; | |
5768 | ||
5769 | if (init_run) return; | |
5770 | init_run = 1; | |
5771 | ||
5772 | for (i = 0; i < swig_module.size; i++) { | |
5773 | if (swig_module.types[i]->clientdata) { | |
5774 | equiv = swig_module.types[i]->cast; | |
5775 | while (equiv) { | |
5776 | if (!equiv->converter) { | |
5777 | if (equiv->type && !equiv->type->clientdata) | |
5778 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
5779 | } | |
5780 | equiv = equiv->next; | |
5781 | } | |
5782 | } | |
5783 | } | |
5784 | } | |
5785 | ||
5786 | #ifdef __cplusplus | |
5787 | #if 0 | |
5788 | { | |
5789 | /* c-mode */ | |
5790 | #endif | |
5791 | } | |
5792 | #endif | |
5793 | ||
5794 | ||
5795 | ||
5796 | #ifdef __cplusplus | |
5797 | extern "C" { | |
5798 | #endif | |
5799 | ||
5800 | /* Python-specific SWIG API */ | |
5801 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
5802 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
5803 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
5804 | ||
5805 | /* ----------------------------------------------------------------------------- | |
5806 | * global variable support code. | |
5807 | * ----------------------------------------------------------------------------- */ | |
5808 | ||
5809 | typedef struct swig_globalvar { | |
5810 | char *name; /* Name of global variable */ | |
5811 | PyObject *(*get_attr)(void); /* Return the current value */ | |
5812 | int (*set_attr)(PyObject *); /* Set the value */ | |
5813 | struct swig_globalvar *next; | |
5814 | } swig_globalvar; | |
5815 | ||
5816 | typedef struct swig_varlinkobject { | |
5817 | PyObject_HEAD | |
5818 | swig_globalvar *vars; | |
5819 | } swig_varlinkobject; | |
5820 | ||
5821 | SWIGINTERN PyObject * | |
5822 | swig_varlink_repr(swig_varlinkobject *v) { | |
5823 | v = v; | |
5824 | return PyString_FromString("<Swig global variables>"); | |
5825 | } | |
5826 | ||
5827 | SWIGINTERN int | |
5828 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
5829 | swig_globalvar *var; | |
5830 | flags = flags; | |
5831 | fprintf(fp,"Swig global variables { "); | |
5832 | for (var = v->vars; var; var=var->next) { | |
5833 | fprintf(fp,"%s", var->name); | |
5834 | if (var->next) fprintf(fp,", "); | |
5835 | } | |
5836 | fprintf(fp," }\n"); | |
5837 | return 0; | |
5838 | } | |
5839 | ||
5840 | SWIGINTERN PyObject * | |
5841 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
5842 | swig_globalvar *var = v->vars; | |
5843 | while (var) { | |
5844 | if (strcmp(var->name,n) == 0) { | |
5845 | return (*var->get_attr)(); | |
5846 | } | |
5847 | var = var->next; | |
5848 | } | |
5849 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
5850 | return NULL; | |
5851 | } | |
5852 | ||
5853 | SWIGINTERN int | |
5854 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
5855 | swig_globalvar *var = v->vars; | |
5856 | while (var) { | |
5857 | if (strcmp(var->name,n) == 0) { | |
5858 | return (*var->set_attr)(p); | |
5859 | } | |
5860 | var = var->next; | |
5861 | } | |
5862 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
5863 | return 1; | |
5864 | } | |
5865 | ||
5866 | SWIGINTERN PyTypeObject* | |
5867 | swig_varlink_type(void) { | |
5868 | static char varlink__doc__[] = "Swig var link object"; | |
5869 | static PyTypeObject varlink_type | |
5870 | #if !defined(__cplusplus) | |
5871 | ; | |
5872 | static int type_init = 0; | |
5873 | if (!type_init) { | |
5874 | PyTypeObject tmp | |
5875 | #endif | |
5876 | = { | |
5877 | PyObject_HEAD_INIT(&PyType_Type) | |
5878 | 0, /* Number of items in variable part (ob_size) */ | |
5879 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
5880 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
5881 | 0, /* Itemsize (tp_itemsize) */ | |
5882 | 0, /* Deallocator (tp_dealloc) */ | |
5883 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
5884 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
5885 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
5886 | 0, /* tp_compare */ | |
5887 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
5888 | 0, /* tp_as_number */ | |
5889 | 0, /* tp_as_sequence */ | |
5890 | 0, /* tp_as_mapping */ | |
5891 | 0, /* tp_hash */ | |
5892 | 0, /* tp_call */ | |
5893 | 0, /* tp_str */ | |
5894 | 0, /* tp_getattro */ | |
5895 | 0, /* tp_setattro */ | |
5896 | 0, /* tp_as_buffer */ | |
5897 | 0, /* tp_flags */ | |
5898 | varlink__doc__, /* tp_doc */ | |
5899 | #if PY_VERSION_HEX >= 0x02000000 | |
5900 | 0, /* tp_traverse */ | |
5901 | 0, /* tp_clear */ | |
5902 | #endif | |
5903 | #if PY_VERSION_HEX >= 0x02010000 | |
5904 | 0, /* tp_richcompare */ | |
5905 | 0, /* tp_weaklistoffset */ | |
5906 | #endif | |
5907 | #if PY_VERSION_HEX >= 0x02020000 | |
5908 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
5909 | #endif | |
5910 | #if PY_VERSION_HEX >= 0x02030000 | |
5911 | 0, /* tp_del */ | |
5912 | #endif | |
5913 | #ifdef COUNT_ALLOCS | |
5914 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
5915 | #endif | |
5916 | }; | |
5917 | #if !defined(__cplusplus) | |
5918 | varlink_type = tmp; | |
5919 | type_init = 1; | |
5920 | } | |
5921 | #endif | |
5922 | return &varlink_type; | |
5923 | } | |
5924 | ||
5925 | /* Create a variable linking object for use later */ | |
5926 | SWIGINTERN PyObject * | |
5927 | SWIG_Python_newvarlink(void) { | |
5928 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
5929 | if (result) { | |
5930 | result->vars = 0; | |
5931 | } | |
5932 | return ((PyObject*) result); | |
5933 | } | |
5934 | ||
5935 | SWIGINTERN void | |
5936 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
5937 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
5938 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
5939 | if (gv) { | |
5940 | size_t size = strlen(name)+1; | |
5941 | gv->name = (char *)malloc(size); | |
5942 | if (gv->name) { | |
5943 | strncpy(gv->name,name,size); | |
5944 | gv->get_attr = get_attr; | |
5945 | gv->set_attr = set_attr; | |
5946 | gv->next = v->vars; | |
5947 | } | |
5948 | } | |
5949 | v->vars = gv; | |
5950 | } | |
5951 | ||
5952 | /* ----------------------------------------------------------------------------- | |
5953 | * constants/methods manipulation | |
5954 | * ----------------------------------------------------------------------------- */ | |
5955 | ||
5956 | /* Install Constants */ | |
5957 | SWIGINTERN void | |
5958 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
5959 | PyObject *obj = 0; | |
5960 | size_t i; | |
5961 | for (i = 0; constants[i].type; ++i) { | |
5962 | switch(constants[i].type) { | |
5963 | case SWIG_PY_INT: | |
5964 | obj = PyInt_FromLong(constants[i].lvalue); | |
5965 | break; | |
5966 | case SWIG_PY_FLOAT: | |
5967 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
5968 | break; | |
5969 | case SWIG_PY_STRING: | |
5970 | if (constants[i].pvalue) { | |
5971 | obj = PyString_FromString((char *) constants[i].pvalue); | |
5972 | } else { | |
5973 | Py_INCREF(Py_None); | |
5974 | obj = Py_None; | |
5975 | } | |
5976 | break; | |
5977 | case SWIG_PY_POINTER: | |
5978 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
5979 | break; | |
5980 | case SWIG_PY_BINARY: | |
5981 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
5982 | break; | |
5983 | default: | |
5984 | obj = 0; | |
5985 | break; | |
5986 | } | |
5987 | if (obj) { | |
5988 | PyDict_SetItemString(d,constants[i].name,obj); | |
5989 | Py_DECREF(obj); | |
5990 | } | |
5991 | } | |
5992 | } | |
5993 | ||
5994 | /* -----------------------------------------------------------------------------*/ | |
5995 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
5996 | /* -----------------------------------------------------------------------------*/ | |
5997 | ||
5998 | SWIGINTERN void | |
5999 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
6000 | swig_const_info *const_table, | |
6001 | swig_type_info **types, | |
6002 | swig_type_info **types_initial) { | |
6003 | size_t i; | |
6004 | for (i = 0; methods[i].ml_name; ++i) { | |
6005 | char *c = methods[i].ml_doc; | |
6006 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
6007 | int j; | |
6008 | swig_const_info *ci = 0; | |
6009 | char *name = c + 10; | |
6010 | for (j = 0; const_table[j].type; ++j) { | |
6011 | if (strncmp(const_table[j].name, name, | |
6012 | strlen(const_table[j].name)) == 0) { | |
6013 | ci = &(const_table[j]); | |
6014 | break; | |
6015 | } | |
6016 | } | |
6017 | if (ci) { | |
6018 | size_t shift = (ci->ptype) - types; | |
6019 | swig_type_info *ty = types_initial[shift]; | |
6020 | size_t ldoc = (c - methods[i].ml_doc); | |
6021 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
6022 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
6023 | if (ndoc) { | |
6024 | char *buff = ndoc; | |
6025 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
6026 | if (ptr) { | |
6027 | strncpy(buff, methods[i].ml_doc, ldoc); | |
6028 | buff += ldoc; | |
6029 | strncpy(buff, "swig_ptr: ", 10); | |
6030 | buff += 10; | |
6031 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
6032 | methods[i].ml_doc = ndoc; | |
6033 | } | |
6034 | } | |
6035 | } | |
6036 | } | |
6037 | } | |
6038 | } | |
6039 | ||
6040 | /* -----------------------------------------------------------------------------* | |
6041 | * Initialize type list | |
6042 | * -----------------------------------------------------------------------------*/ | |
6043 | ||
6044 | #ifdef __cplusplus | |
6045 | } | |
6046 | #endif | |
6047 | ||
6048 | /* -----------------------------------------------------------------------------* | |
6049 | * Partial Init method | |
6050 | * -----------------------------------------------------------------------------*/ | |
6051 | ||
6052 | #ifdef __cplusplus | |
6053 | extern "C" | |
6054 | #endif | |
6055 | SWIGEXPORT void SWIG_init(void) { | |
6056 | static PyObject *SWIG_globals = 0; | |
6057 | PyObject *m, *d; | |
6058 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
6059 | ||
6060 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
6061 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
6062 | ||
6063 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
6064 | d = PyModule_GetDict(m); | |
6065 | ||
6066 | SWIG_InitializeModule(0); | |
6067 | SWIG_InstallConstants(d,swig_const_table); | |
6068 | ||
6069 | } | |
6070 |