]>
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 | ||
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
26 | }; | |
27 | #endif | |
28 | ||
29 | /*********************************************************************** | |
30 | * | |
31 | * This section contains generic SWIG labels for method/variable | |
32 | * declarations/attributes, and other compiler dependent labels. | |
33 | * | |
34 | ************************************************************************/ | |
35 | ||
36 | /* template workaround for compilers that cannot correctly implement the C++ standard */ | |
37 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
38 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | #endif | |
44 | ||
45 | /* inline attribute */ | |
46 | #ifndef SWIGINLINE | |
47 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
48 | # define SWIGINLINE inline | |
49 | # else | |
50 | # define SWIGINLINE | |
51 | # endif | |
52 | #endif | |
53 | ||
54 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
55 | #ifndef SWIGUNUSED | |
56 | # if defined(__GNUC__) || defined(__ICC) | |
57 | # define SWIGUNUSED __attribute__ ((unused)) | |
58 | # else | |
59 | # define SWIGUNUSED | |
60 | # endif | |
61 | #endif | |
62 | ||
63 | /* internal SWIG method */ | |
64 | #ifndef SWIGINTERN | |
65 | # define SWIGINTERN static SWIGUNUSED | |
66 | #endif | |
67 | ||
68 | /* internal inline SWIG method */ | |
69 | #ifndef SWIGINTERNINLINE | |
70 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
71 | #endif | |
72 | ||
73 | /* exporting methods for Windows DLLs */ | |
74 | #ifndef SWIGEXPORT | |
75 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
76 | # if defined(STATIC_LINKED) | |
77 | # define SWIGEXPORT | |
78 | # else | |
79 | # define SWIGEXPORT __declspec(dllexport) | |
80 | # endif | |
81 | # else | |
82 | # define SWIGEXPORT | |
83 | # endif | |
84 | #endif | |
85 | ||
86 | /* calling conventions for Windows */ | |
87 | #ifndef SWIGSTDCALL | |
88 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
89 | # define SWIGSTDCALL __stdcall | |
90 | # else | |
91 | # define SWIGSTDCALL | |
92 | # endif | |
93 | #endif | |
94 | ||
95 | ||
96 | ||
97 | #include <Python.h> | |
98 | ||
99 | /*********************************************************************** | |
100 | * swigrun.swg | |
101 | * | |
102 | * This file contains generic CAPI SWIG runtime support for pointer | |
103 | * type checking. | |
104 | * | |
105 | ************************************************************************/ | |
106 | ||
107 | /* This should only be incremented when either the layout of swig_type_info changes, | |
108 | or for whatever reason, the runtime changes incompatibly */ | |
109 | #define SWIG_RUNTIME_VERSION "2" | |
110 | ||
111 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ | |
112 | #ifdef SWIG_TYPE_TABLE | |
113 | # define SWIG_QUOTE_STRING(x) #x | |
114 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
115 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
116 | #else | |
117 | # define SWIG_TYPE_TABLE_NAME | |
118 | #endif | |
119 | ||
120 | /* | |
121 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
122 | creating a static or dynamic library from the swig runtime code. | |
123 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
124 | ||
125 | But only do this if is strictly necessary, ie, if you have problems | |
126 | with your compiler or so. | |
127 | */ | |
128 | ||
129 | #ifndef SWIGRUNTIME | |
130 | # define SWIGRUNTIME SWIGINTERN | |
131 | #endif | |
132 | ||
133 | #ifndef SWIGRUNTIMEINLINE | |
134 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
135 | #endif | |
136 | ||
137 | #include <string.h> | |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | typedef void *(*swig_converter_func)(void *); | |
144 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
145 | ||
146 | /* Structure to store inforomation on one type */ | |
147 | typedef struct swig_type_info { | |
148 | const char *name; /* mangled name of this type */ | |
149 | const char *str; /* human readable name of this type */ | |
150 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
151 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
152 | void *clientdata; /* language specific type data */ | |
153 | } swig_type_info; | |
154 | ||
155 | /* Structure to store a type and conversion function used for casting */ | |
156 | typedef struct swig_cast_info { | |
157 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
158 | swig_converter_func converter; /* function to cast the void pointers */ | |
159 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
160 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
161 | } swig_cast_info; | |
162 | ||
163 | /* Structure used to store module information | |
164 | * Each module generates one structure like this, and the runtime collects | |
165 | * all of these structures and stores them in a circularly linked list.*/ | |
166 | typedef struct swig_module_info { | |
167 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
168 | size_t size; /* Number of types in this module */ | |
169 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
170 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
171 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
172 | void *clientdata; /* Language specific module data */ | |
173 | } swig_module_info; | |
174 | ||
175 | ||
176 | /* | |
177 | Compare two type names skipping the space characters, therefore | |
178 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
179 | ||
180 | Return 0 when the two name types are equivalent, as in | |
181 | strncmp, but skipping ' '. | |
182 | */ | |
183 | SWIGRUNTIME int | |
184 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
185 | const char *f2, const char *l2) { | |
186 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
187 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
188 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
189 | if (*f1 != *f2) return (int)(*f1 - *f2); | |
190 | } | |
191 | return (l1 - f1) - (l2 - f2); | |
192 | } | |
193 | ||
194 | /* | |
195 | Check type equivalence in a name list like <name1>|<name2>|... | |
196 | Return 0 if not equal, 1 if equal | |
197 | */ | |
198 | SWIGRUNTIME int | |
199 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
200 | int equiv = 0; | |
201 | const char* te = tb + strlen(tb); | |
202 | const char* ne = nb; | |
203 | while (!equiv && *ne) { | |
204 | for (nb = ne; *ne; ++ne) { | |
205 | if (*ne == '|') break; | |
206 | } | |
207 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; | |
208 | if (*ne) ++ne; | |
209 | } | |
210 | return equiv; | |
211 | } | |
212 | ||
213 | /* | |
214 | Check type equivalence in a name list like <name1>|<name2>|... | |
215 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
216 | */ | |
217 | SWIGRUNTIME int | |
218 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
219 | int equiv = 0; | |
220 | const char* te = tb + strlen(tb); | |
221 | const char* ne = nb; | |
222 | while (!equiv && *ne) { | |
223 | for (nb = ne; *ne; ++ne) { | |
224 | if (*ne == '|') break; | |
225 | } | |
226 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; | |
227 | if (*ne) ++ne; | |
228 | } | |
229 | return equiv; | |
230 | } | |
231 | ||
232 | ||
233 | /* think of this as a c++ template<> or a scheme macro */ | |
234 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
235 | if (ty) { \ | |
236 | swig_cast_info *iter = ty->cast; \ | |
237 | while (iter) { \ | |
238 | if (comparison) { \ | |
239 | if (iter == ty->cast) return iter; \ | |
240 | /* Move iter to the top of the linked list */ \ | |
241 | iter->prev->next = iter->next; \ | |
242 | if (iter->next) \ | |
243 | iter->next->prev = iter->prev; \ | |
244 | iter->next = ty->cast; \ | |
245 | iter->prev = 0; \ | |
246 | if (ty->cast) ty->cast->prev = iter; \ | |
247 | ty->cast = iter; \ | |
248 | return iter; \ | |
249 | } \ | |
250 | iter = iter->next; \ | |
251 | } \ | |
252 | } \ | |
253 | return 0 | |
254 | ||
255 | /* | |
256 | Check the typename | |
257 | */ | |
258 | SWIGRUNTIME swig_cast_info * | |
259 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
260 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); | |
261 | } | |
262 | ||
263 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
264 | SWIGRUNTIME swig_cast_info * | |
265 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
266 | SWIG_TypeCheck_Template(iter->type == from, into); | |
267 | } | |
268 | ||
269 | /* | |
270 | Cast a pointer up an inheritance hierarchy | |
271 | */ | |
272 | SWIGRUNTIMEINLINE void * | |
273 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { | |
274 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); | |
275 | } | |
276 | ||
277 | /* | |
278 | Dynamic pointer casting. Down an inheritance hierarchy | |
279 | */ | |
280 | SWIGRUNTIME swig_type_info * | |
281 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
282 | swig_type_info *lastty = ty; | |
283 | if (!ty || !ty->dcast) return ty; | |
284 | while (ty && (ty->dcast)) { | |
285 | ty = (*ty->dcast)(ptr); | |
286 | if (ty) lastty = ty; | |
287 | } | |
288 | return lastty; | |
289 | } | |
290 | ||
291 | /* | |
292 | Return the name associated with this type | |
293 | */ | |
294 | SWIGRUNTIMEINLINE const char * | |
295 | SWIG_TypeName(const swig_type_info *ty) { | |
296 | return ty->name; | |
297 | } | |
298 | ||
299 | /* | |
300 | Return the pretty name associated with this type, | |
301 | that is an unmangled type name in a form presentable to the user. | |
302 | */ | |
303 | SWIGRUNTIME const char * | |
304 | SWIG_TypePrettyName(const swig_type_info *type) { | |
305 | /* The "str" field contains the equivalent pretty names of the | |
306 | type, separated by vertical-bar characters. We choose | |
307 | to print the last name, as it is often (?) the most | |
308 | specific. */ | |
309 | if (type->str != NULL) { | |
310 | const char *last_name = type->str; | |
311 | const char *s; | |
312 | for (s = type->str; *s; s++) | |
313 | if (*s == '|') last_name = s+1; | |
314 | return last_name; | |
315 | } | |
316 | else | |
317 | return type->name; | |
318 | } | |
319 | ||
320 | /* | |
321 | Set the clientdata field for a type | |
322 | */ | |
323 | SWIGRUNTIME void | |
324 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
325 | swig_cast_info *cast = ti->cast; | |
326 | /* if (ti->clientdata == clientdata) return; */ | |
327 | ti->clientdata = clientdata; | |
328 | ||
329 | while (cast) { | |
330 | if (!cast->converter) { | |
331 | swig_type_info *tc = cast->type; | |
332 | if (!tc->clientdata) { | |
333 | SWIG_TypeClientData(tc, clientdata); | |
334 | } | |
335 | } | |
336 | cast = cast->next; | |
337 | } | |
338 | } | |
339 | ||
340 | /* | |
341 | Search for a swig_type_info structure only by mangled name | |
342 | Search is a O(log #types) | |
343 | ||
344 | We start searching at module start, and finish searching when start == end. | |
345 | Note: if start == end at the beginning of the function, we go all the way around | |
346 | the circular list. | |
347 | */ | |
348 | SWIGRUNTIME swig_type_info * | |
349 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
350 | swig_module_info *end, | |
351 | const char *name) { | |
352 | swig_module_info *iter = start; | |
353 | do { | |
354 | if (iter->size) { | |
355 | register size_t l = 0; | |
356 | register size_t r = iter->size - 1; | |
357 | do { | |
358 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
359 | register size_t i = (l + r) >> 1; | |
360 | const char *iname = iter->types[i]->name; | |
361 | if (iname) { | |
362 | register int compare = strcmp(name, iname); | |
363 | if (compare == 0) { | |
364 | return iter->types[i]; | |
365 | } else if (compare < 0) { | |
366 | if (i) { | |
367 | r = i - 1; | |
368 | } else { | |
369 | break; | |
370 | } | |
371 | } else if (compare > 0) { | |
372 | l = i + 1; | |
373 | } | |
374 | } else { | |
375 | break; /* should never happen */ | |
376 | } | |
377 | } while (l <= r); | |
378 | } | |
379 | iter = iter->next; | |
380 | } while (iter != end); | |
381 | return 0; | |
382 | } | |
383 | ||
384 | /* | |
385 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
386 | It first searches the mangled names of the types, which is a O(log #types) | |
387 | If a type is not found it then searches the human readable names, which is O(#types). | |
388 | ||
389 | We start searching at module start, and finish searching when start == end. | |
390 | Note: if start == end at the beginning of the function, we go all the way around | |
391 | the circular list. | |
392 | */ | |
393 | SWIGRUNTIME swig_type_info * | |
394 | SWIG_TypeQueryModule(swig_module_info *start, | |
395 | swig_module_info *end, | |
396 | const char *name) { | |
397 | /* STEP 1: Search the name field using binary search */ | |
398 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
399 | if (ret) { | |
400 | return ret; | |
401 | } else { | |
402 | /* STEP 2: If the type hasn't been found, do a complete search | |
403 | of the str field (the human readable name) */ | |
404 | swig_module_info *iter = start; | |
405 | do { | |
406 | register size_t i = 0; | |
407 | for (; i < iter->size; ++i) { | |
408 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
409 | return iter->types[i]; | |
410 | } | |
411 | iter = iter->next; | |
412 | } while (iter != end); | |
413 | } | |
414 | ||
415 | /* neither found a match */ | |
416 | return 0; | |
417 | } | |
418 | ||
419 | ||
420 | /* | |
421 | Pack binary data into a string | |
422 | */ | |
423 | SWIGRUNTIME char * | |
424 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
425 | static const char hex[17] = "0123456789abcdef"; | |
426 | register const unsigned char *u = (unsigned char *) ptr; | |
427 | register const unsigned char *eu = u + sz; | |
428 | for (; u != eu; ++u) { | |
429 | register unsigned char uu = *u; | |
430 | *(c++) = hex[(uu & 0xf0) >> 4]; | |
431 | *(c++) = hex[uu & 0xf]; | |
432 | } | |
433 | return c; | |
434 | } | |
435 | ||
436 | /* | |
437 | Unpack binary data from a string | |
438 | */ | |
439 | SWIGRUNTIME const char * | |
440 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
441 | register unsigned char *u = (unsigned char *) ptr; | |
442 | register const unsigned char *eu = u + sz; | |
443 | for (; u != eu; ++u) { | |
444 | register char d = *(c++); | |
445 | register unsigned char uu = 0; | |
446 | if ((d >= '0') && (d <= '9')) | |
447 | uu = ((d - '0') << 4); | |
448 | else if ((d >= 'a') && (d <= 'f')) | |
449 | uu = ((d - ('a'-10)) << 4); | |
450 | else | |
451 | return (char *) 0; | |
452 | d = *(c++); | |
453 | if ((d >= '0') && (d <= '9')) | |
454 | uu |= (d - '0'); | |
455 | else if ((d >= 'a') && (d <= 'f')) | |
456 | uu |= (d - ('a'-10)); | |
457 | else | |
458 | return (char *) 0; | |
459 | *u = uu; | |
460 | } | |
461 | return c; | |
462 | } | |
463 | ||
464 | /* | |
465 | Pack 'void *' into a string buffer. | |
466 | */ | |
467 | SWIGRUNTIME char * | |
468 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
469 | char *r = buff; | |
470 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
471 | *(r++) = '_'; | |
472 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
473 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
474 | strcpy(r,name); | |
475 | return buff; | |
476 | } | |
477 | ||
478 | SWIGRUNTIME const char * | |
479 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
480 | if (*c != '_') { | |
481 | if (strcmp(c,"NULL") == 0) { | |
482 | *ptr = (void *) 0; | |
483 | return name; | |
484 | } else { | |
485 | return 0; | |
486 | } | |
487 | } | |
488 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
489 | } | |
490 | ||
491 | SWIGRUNTIME char * | |
492 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
493 | char *r = buff; | |
494 | size_t lname = (name ? strlen(name) : 0); | |
495 | if ((2*sz + 2 + lname) > bsz) return 0; | |
496 | *(r++) = '_'; | |
497 | r = SWIG_PackData(r,ptr,sz); | |
498 | if (lname) { | |
499 | strncpy(r,name,lname+1); | |
500 | } else { | |
501 | *r = 0; | |
502 | } | |
503 | return buff; | |
504 | } | |
505 | ||
506 | SWIGRUNTIME const char * | |
507 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
508 | if (*c != '_') { | |
509 | if (strcmp(c,"NULL") == 0) { | |
510 | memset(ptr,0,sz); | |
511 | return name; | |
512 | } else { | |
513 | return 0; | |
514 | } | |
515 | } | |
516 | return SWIG_UnpackData(++c,ptr,sz); | |
517 | } | |
518 | ||
519 | #ifdef __cplusplus | |
520 | } | |
521 | #endif | |
522 | ||
523 | /* ----------------------------------------------------------------------------- | |
524 | * SWIG API. Portion that goes into the runtime | |
525 | * ----------------------------------------------------------------------------- */ | |
526 | ||
527 | #ifdef __cplusplus | |
528 | extern "C" { | |
529 | #endif | |
530 | ||
531 | /* ----------------------------------------------------------------------------- | |
532 | * for internal method declarations | |
533 | * ----------------------------------------------------------------------------- */ | |
534 | ||
535 | #ifndef SWIGINTERN | |
536 | # define SWIGINTERN static SWIGUNUSED | |
537 | #endif | |
538 | ||
539 | #ifndef SWIGINTERNINLINE | |
540 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
541 | #endif | |
542 | ||
543 | /* | |
544 | Exception handling in wrappers | |
545 | */ | |
546 | #define SWIG_fail goto fail | |
547 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
548 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
549 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
550 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
551 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
552 | ||
553 | /* | |
554 | Contract support | |
555 | */ | |
556 | #define SWIG_contract_assert(expr, msg) \ | |
557 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
558 | ||
559 | /* ----------------------------------------------------------------------------- | |
560 | * Constant declarations | |
561 | * ----------------------------------------------------------------------------- */ | |
562 | ||
563 | /* Constant Types */ | |
564 | #define SWIG_PY_INT 1 | |
565 | #define SWIG_PY_FLOAT 2 | |
566 | #define SWIG_PY_STRING 3 | |
567 | #define SWIG_PY_POINTER 4 | |
568 | #define SWIG_PY_BINARY 5 | |
569 | ||
570 | /* Constant information structure */ | |
571 | typedef struct swig_const_info { | |
572 | int type; | |
573 | char *name; | |
574 | long lvalue; | |
575 | double dvalue; | |
576 | void *pvalue; | |
577 | swig_type_info **ptype; | |
578 | } swig_const_info; | |
579 | ||
580 | ||
581 | /* ----------------------------------------------------------------------------- | |
582 | * Alloc. memory flags | |
583 | * ----------------------------------------------------------------------------- */ | |
584 | #define SWIG_OLDOBJ 1 | |
585 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
586 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
587 | ||
588 | #ifdef __cplusplus | |
589 | } | |
590 | #endif | |
591 | ||
592 | ||
593 | /*********************************************************************** | |
594 | * pyrun.swg | |
595 | * | |
596 | * This file contains the runtime support for Python modules | |
597 | * and includes code for managing global variables and pointer | |
598 | * type checking. | |
599 | * | |
600 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
601 | ************************************************************************/ | |
602 | ||
603 | /* Common SWIG API */ | |
604 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
605 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
606 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
607 | ||
608 | ||
609 | /* Python-specific SWIG API */ | |
610 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
611 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
612 | ||
613 | /* Runtime API */ | |
614 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
615 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
616 | ||
617 | /* ----------------------------------------------------------------------------- | |
618 | * Pointer declarations | |
619 | * ----------------------------------------------------------------------------- */ | |
620 | /* | |
621 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
622 | C/C++ pointers in the python side. Very useful for debugging, but | |
623 | not always safe. | |
624 | */ | |
625 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
626 | # define SWIG_COBJECT_TYPES | |
627 | #endif | |
628 | ||
629 | /* Flags for pointer conversion */ | |
630 | #define SWIG_POINTER_EXCEPTION 0x1 | |
631 | #define SWIG_POINTER_DISOWN 0x2 | |
632 | ||
633 | ||
634 | /* Add PyOS_snprintf for old Pythons */ | |
635 | #if PY_VERSION_HEX < 0x02020000 | |
636 | #define PyOS_snprintf snprintf | |
637 | #endif | |
638 | ||
639 | #ifdef __cplusplus | |
640 | extern "C" { | |
641 | #endif | |
642 | ||
643 | /* ----------------------------------------------------------------------------- | |
644 | * Create a new pointer string | |
645 | * ----------------------------------------------------------------------------- */ | |
646 | #ifndef SWIG_BUFFER_SIZE | |
647 | #define SWIG_BUFFER_SIZE 1024 | |
648 | #endif | |
649 | ||
650 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
651 | #if PY_VERSION_HEX < 0x02020000 | |
652 | static PyObject * | |
653 | PyString_FromFormat(const char *fmt, ...) { | |
654 | va_list ap; | |
655 | char buf[SWIG_BUFFER_SIZE * 2]; | |
656 | int res; | |
657 | va_start(ap, fmt); | |
658 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
659 | va_end(ap); | |
660 | return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf); | |
661 | } | |
662 | #endif | |
663 | ||
664 | #if PY_VERSION_HEX < 0x01060000 | |
665 | #define PyObject_Del(op) PyMem_DEL((op)) | |
666 | #endif | |
667 | ||
668 | #if defined(SWIG_COBJECT_TYPES) | |
669 | #if !defined(SWIG_COBJECT_PYTHON) | |
670 | /* ----------------------------------------------------------------------------- | |
671 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
672 | * ----------------------------------------------------------------------------- */ | |
673 | ||
674 | typedef struct { | |
675 | PyObject_HEAD | |
676 | void *ptr; | |
677 | const char *desc; | |
678 | } PySwigObject; | |
679 | ||
680 | /* Declarations for objects of type PySwigObject */ | |
681 | ||
682 | SWIGRUNTIME int | |
683 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
684 | { | |
685 | char result[SWIG_BUFFER_SIZE]; | |
686 | flags = flags; | |
687 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { | |
688 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
689 | return 0; | |
690 | } else { | |
691 | return 1; | |
692 | } | |
693 | } | |
694 | ||
695 | SWIGRUNTIME PyObject * | |
696 | PySwigObject_repr(PySwigObject *v) | |
697 | { | |
698 | char result[SWIG_BUFFER_SIZE]; | |
699 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
700 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
701 | } | |
702 | ||
703 | SWIGRUNTIME PyObject * | |
704 | PySwigObject_str(PySwigObject *v) | |
705 | { | |
706 | char result[SWIG_BUFFER_SIZE]; | |
707 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
708 | PyString_FromString(result) : 0; | |
709 | } | |
710 | ||
711 | SWIGRUNTIME PyObject * | |
712 | PySwigObject_long(PySwigObject *v) | |
713 | { | |
714 | return PyLong_FromVoidPtr(v->ptr); | |
715 | } | |
716 | ||
717 | SWIGRUNTIME PyObject * | |
718 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
719 | { | |
720 | PyObject *res = NULL; | |
721 | PyObject *args = PyTuple_New(1); | |
722 | if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) { | |
723 | PyObject *ofmt = PyString_FromString(fmt); | |
724 | if (ofmt) { | |
725 | res = PyString_Format(ofmt,args); | |
726 | Py_DECREF(ofmt); | |
727 | } | |
728 | Py_DECREF(args); | |
729 | } | |
730 | return res; | |
731 | } | |
732 | ||
733 | SWIGRUNTIME PyObject * | |
734 | PySwigObject_oct(PySwigObject *v) | |
735 | { | |
736 | return PySwigObject_format("%o",v); | |
737 | } | |
738 | ||
739 | SWIGRUNTIME PyObject * | |
740 | PySwigObject_hex(PySwigObject *v) | |
741 | { | |
742 | return PySwigObject_format("%x",v); | |
743 | } | |
744 | ||
745 | SWIGRUNTIME int | |
746 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
747 | { | |
748 | int c = strcmp(v->desc, w->desc); | |
749 | if (c) { | |
750 | return (c > 0) ? 1 : -1; | |
751 | } else { | |
752 | void *i = v->ptr; | |
753 | void *j = w->ptr; | |
754 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
755 | } | |
756 | } | |
757 | ||
758 | SWIGRUNTIME void | |
759 | PySwigObject_dealloc(PySwigObject *self) | |
760 | { | |
761 | PyObject_Del(self); | |
762 | } | |
763 | ||
764 | SWIGRUNTIME PyTypeObject* | |
765 | PySwigObject_type(void) { | |
766 | static char pyswigobject_type__doc__[] = | |
767 | "Swig object carries a C/C++ instance pointer"; | |
768 | ||
769 | static PyNumberMethods PySwigObject_as_number = { | |
770 | (binaryfunc)0, /*nb_add*/ | |
771 | (binaryfunc)0, /*nb_subtract*/ | |
772 | (binaryfunc)0, /*nb_multiply*/ | |
773 | (binaryfunc)0, /*nb_divide*/ | |
774 | (binaryfunc)0, /*nb_remainder*/ | |
775 | (binaryfunc)0, /*nb_divmod*/ | |
776 | (ternaryfunc)0,/*nb_power*/ | |
777 | (unaryfunc)0, /*nb_negative*/ | |
778 | (unaryfunc)0, /*nb_positive*/ | |
779 | (unaryfunc)0, /*nb_absolute*/ | |
780 | (inquiry)0, /*nb_nonzero*/ | |
781 | 0, /*nb_invert*/ | |
782 | 0, /*nb_lshift*/ | |
783 | 0, /*nb_rshift*/ | |
784 | 0, /*nb_and*/ | |
785 | 0, /*nb_xor*/ | |
786 | 0, /*nb_or*/ | |
787 | (coercion)0, /*nb_coerce*/ | |
788 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
789 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
790 | (unaryfunc)0, /*nb_float*/ | |
791 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
792 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
793 | #if PY_VERSION_HEX >= 0x02020000 | |
794 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
795 | #elif PY_VERSION_HEX >= 0x02000000 | |
796 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
797 | #endif | |
798 | }; | |
799 | ||
800 | static PyTypeObject pyswigobject_type | |
801 | #if !defined(__cplusplus) | |
802 | ; | |
803 | static int type_init = 0; | |
804 | if (!type_init) { | |
805 | PyTypeObject tmp | |
806 | #endif | |
807 | = { | |
808 | PyObject_HEAD_INIT(&PyType_Type) | |
809 | 0, /*ob_size*/ | |
810 | (char *)"PySwigObject", /*tp_name*/ | |
811 | sizeof(PySwigObject), /*tp_basicsize*/ | |
812 | 0, /*tp_itemsize*/ | |
813 | /* methods */ | |
814 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
815 | (printfunc)PySwigObject_print, /*tp_print*/ | |
816 | (getattrfunc)0, /*tp_getattr*/ | |
817 | (setattrfunc)0, /*tp_setattr*/ | |
818 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
819 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
820 | &PySwigObject_as_number, /*tp_as_number*/ | |
821 | 0, /*tp_as_sequence*/ | |
822 | 0, /*tp_as_mapping*/ | |
823 | (hashfunc)0, /*tp_hash*/ | |
824 | (ternaryfunc)0, /*tp_call*/ | |
825 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
826 | /* Space for future expansion */ | |
827 | 0,0,0,0, | |
828 | pyswigobject_type__doc__, /* Documentation string */ | |
829 | #if PY_VERSION_HEX >= 0x02000000 | |
830 | 0, /* tp_traverse */ | |
831 | 0, /* tp_clear */ | |
832 | #endif | |
833 | #if PY_VERSION_HEX >= 0x02010000 | |
834 | 0, /* tp_richcompare */ | |
835 | 0, /* tp_weaklistoffset */ | |
836 | #endif | |
837 | #if PY_VERSION_HEX >= 0x02020000 | |
838 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
839 | #endif | |
840 | #if PY_VERSION_HEX >= 0x02030000 | |
841 | 0, /* tp_del */ | |
842 | #endif | |
843 | #ifdef COUNT_ALLOCS | |
844 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
845 | #endif | |
846 | }; | |
847 | #if !defined(__cplusplus) | |
848 | pyswigobject_type = tmp; | |
849 | type_init = 1; | |
850 | } | |
851 | #endif | |
852 | return &pyswigobject_type; | |
853 | } | |
854 | ||
855 | SWIGRUNTIME PyObject * | |
856 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
857 | { | |
858 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); | |
859 | if (self) { | |
860 | self->ptr = ptr; | |
861 | self->desc = desc; | |
862 | } | |
863 | return (PyObject *)self; | |
864 | } | |
865 | ||
866 | SWIGRUNTIMEINLINE void * | |
867 | PySwigObject_AsVoidPtr(PyObject *self) | |
868 | { | |
869 | return ((PySwigObject *)self)->ptr; | |
870 | } | |
871 | ||
872 | SWIGRUNTIMEINLINE const char * | |
873 | PySwigObject_GetDesc(PyObject *self) | |
874 | { | |
875 | return ((PySwigObject *)self)->desc; | |
876 | } | |
877 | ||
878 | SWIGRUNTIMEINLINE int | |
879 | PySwigObject_Check(PyObject *op) { | |
880 | return ((op)->ob_type == PySwigObject_type()) | |
881 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
882 | } | |
883 | ||
884 | /* ----------------------------------------------------------------------------- | |
885 | * Implements a simple Swig Packed type, and use it instead of string | |
886 | * ----------------------------------------------------------------------------- */ | |
887 | ||
888 | typedef struct { | |
889 | PyObject_HEAD | |
890 | void *pack; | |
891 | const char *desc; | |
892 | size_t size; | |
893 | } PySwigPacked; | |
894 | ||
895 | SWIGRUNTIME int | |
896 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
897 | { | |
898 | char result[SWIG_BUFFER_SIZE]; | |
899 | flags = flags; | |
900 | fputs("<Swig Packed ", fp); | |
901 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
902 | fputs("at ", fp); | |
903 | fputs(result, fp); | |
904 | } | |
905 | fputs(v->desc,fp); | |
906 | fputs(">", fp); | |
907 | return 0; | |
908 | } | |
909 | ||
910 | SWIGRUNTIME PyObject * | |
911 | PySwigPacked_repr(PySwigPacked *v) | |
912 | { | |
913 | char result[SWIG_BUFFER_SIZE]; | |
914 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
915 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
916 | } else { | |
917 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
918 | } | |
919 | } | |
920 | ||
921 | SWIGRUNTIME PyObject * | |
922 | PySwigPacked_str(PySwigPacked *v) | |
923 | { | |
924 | char result[SWIG_BUFFER_SIZE]; | |
925 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
926 | return PyString_FromFormat("%s%s", result, v->desc); | |
927 | } else { | |
928 | return PyString_FromString(v->desc); | |
929 | } | |
930 | } | |
931 | ||
932 | SWIGRUNTIME int | |
933 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
934 | { | |
935 | int c = strcmp(v->desc, w->desc); | |
936 | if (c) { | |
937 | return (c > 0) ? 1 : -1; | |
938 | } else { | |
939 | size_t i = v->size; | |
940 | size_t j = w->size; | |
941 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
942 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
943 | } | |
944 | } | |
945 | ||
946 | SWIGRUNTIME void | |
947 | PySwigPacked_dealloc(PySwigPacked *self) | |
948 | { | |
949 | free(self->pack); | |
950 | PyObject_Del(self); | |
951 | } | |
952 | ||
953 | SWIGRUNTIME PyTypeObject* | |
954 | PySwigPacked_type(void) { | |
955 | static char pyswigpacked_type__doc__[] = | |
956 | "Swig object carries a C/C++ instance pointer"; | |
957 | static PyTypeObject pyswigpacked_type | |
958 | #if !defined(__cplusplus) | |
959 | ; | |
960 | static int type_init = 0; | |
961 | if (!type_init) { | |
962 | PyTypeObject tmp | |
963 | #endif | |
964 | = { | |
965 | PyObject_HEAD_INIT(&PyType_Type) | |
966 | 0, /*ob_size*/ | |
967 | (char *)"PySwigPacked", /*tp_name*/ | |
968 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
969 | 0, /*tp_itemsize*/ | |
970 | /* methods */ | |
971 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
972 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
973 | (getattrfunc)0, /*tp_getattr*/ | |
974 | (setattrfunc)0, /*tp_setattr*/ | |
975 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
976 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
977 | 0, /*tp_as_number*/ | |
978 | 0, /*tp_as_sequence*/ | |
979 | 0, /*tp_as_mapping*/ | |
980 | (hashfunc)0, /*tp_hash*/ | |
981 | (ternaryfunc)0, /*tp_call*/ | |
982 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
983 | /* Space for future expansion */ | |
984 | 0,0,0,0, | |
985 | pyswigpacked_type__doc__, /* Documentation string */ | |
986 | #if PY_VERSION_HEX >= 0x02000000 | |
987 | 0, /* tp_traverse */ | |
988 | 0, /* tp_clear */ | |
989 | #endif | |
990 | #if PY_VERSION_HEX >= 0x02010000 | |
991 | 0, /* tp_richcompare */ | |
992 | 0, /* tp_weaklistoffset */ | |
993 | #endif | |
994 | #if PY_VERSION_HEX >= 0x02020000 | |
995 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
996 | #endif | |
997 | #if PY_VERSION_HEX >= 0x02030000 | |
998 | 0, /* tp_del */ | |
999 | #endif | |
1000 | #ifdef COUNT_ALLOCS | |
1001 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1002 | #endif | |
1003 | }; | |
1004 | #if !defined(__cplusplus) | |
1005 | pyswigpacked_type = tmp; | |
1006 | type_init = 1; | |
1007 | } | |
1008 | #endif | |
1009 | return &pyswigpacked_type; | |
1010 | } | |
1011 | ||
1012 | SWIGRUNTIME PyObject * | |
1013 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
1014 | { | |
1015 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); | |
1016 | if (self == NULL) { | |
1017 | return NULL; | |
1018 | } else { | |
1019 | void *pack = malloc(size); | |
1020 | if (pack) { | |
1021 | memcpy(pack, ptr, size); | |
1022 | self->pack = pack; | |
1023 | self->desc = desc; | |
1024 | self->size = size; | |
1025 | return (PyObject *) self; | |
1026 | } | |
1027 | return NULL; | |
1028 | } | |
1029 | } | |
1030 | ||
1031 | SWIGRUNTIMEINLINE const char * | |
1032 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1033 | { | |
1034 | PySwigPacked *self = (PySwigPacked *)obj; | |
1035 | if (self->size != size) return 0; | |
1036 | memcpy(ptr, self->pack, size); | |
1037 | return self->desc; | |
1038 | } | |
1039 | ||
1040 | SWIGRUNTIMEINLINE const char * | |
1041 | PySwigPacked_GetDesc(PyObject *self) | |
1042 | { | |
1043 | return ((PySwigPacked *)self)->desc; | |
1044 | } | |
1045 | ||
1046 | SWIGRUNTIMEINLINE int | |
1047 | PySwigPacked_Check(PyObject *op) { | |
1048 | return ((op)->ob_type == PySwigPacked_type()) | |
1049 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1050 | } | |
1051 | ||
1052 | #else | |
1053 | /* ----------------------------------------------------------------------------- | |
1054 | * Use the old Python PyCObject instead of PySwigObject | |
1055 | * ----------------------------------------------------------------------------- */ | |
1056 | ||
1057 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1058 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1059 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1060 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1061 | ||
1062 | #endif | |
1063 | ||
1064 | #endif | |
1065 | ||
1066 | /* ----------------------------------------------------------------------------- | |
1067 | * errors manipulation | |
1068 | * ----------------------------------------------------------------------------- */ | |
1069 | ||
1070 | SWIGRUNTIME void | |
1071 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1072 | { | |
1073 | if (type) { | |
1074 | #if defined(SWIG_COBJECT_TYPES) | |
1075 | if (obj && PySwigObject_Check(obj)) { | |
1076 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
1077 | if (otype) { | |
1078 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1079 | type, otype); | |
1080 | return; | |
1081 | } | |
1082 | } else | |
1083 | #endif | |
1084 | { | |
1085 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1086 | if (otype) { | |
1087 | PyObject *str = PyObject_Str(obj); | |
1088 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1089 | if (cstr) { | |
1090 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1091 | type, otype, cstr); | |
1092 | } else { | |
1093 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1094 | type, otype); | |
1095 | } | |
1096 | Py_XDECREF(str); | |
1097 | return; | |
1098 | } | |
1099 | } | |
1100 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1101 | } else { | |
1102 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1103 | } | |
1104 | } | |
1105 | ||
1106 | SWIGRUNTIMEINLINE void | |
1107 | SWIG_Python_NullRef(const char *type) | |
1108 | { | |
1109 | if (type) { | |
1110 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1111 | } else { | |
1112 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1113 | } | |
1114 | } | |
1115 | ||
1116 | SWIGRUNTIME int | |
1117 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1118 | { | |
1119 | if (PyErr_Occurred()) { | |
1120 | PyObject *type = 0; | |
1121 | PyObject *value = 0; | |
1122 | PyObject *traceback = 0; | |
1123 | PyErr_Fetch(&type, &value, &traceback); | |
1124 | if (value) { | |
1125 | PyObject *old_str = PyObject_Str(value); | |
1126 | Py_XINCREF(type); | |
1127 | PyErr_Clear(); | |
1128 | if (infront) { | |
1129 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1130 | } else { | |
1131 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1132 | } | |
1133 | Py_DECREF(old_str); | |
1134 | } | |
1135 | return 1; | |
1136 | } else { | |
1137 | return 0; | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | SWIGRUNTIME int | |
1142 | SWIG_Python_ArgFail(int argnum) | |
1143 | { | |
1144 | if (PyErr_Occurred()) { | |
1145 | /* add information about failing argument */ | |
1146 | char mesg[256]; | |
1147 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
1148 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1149 | } else { | |
1150 | return 0; | |
1151 | } | |
1152 | } | |
1153 | ||
1154 | ||
1155 | /* ----------------------------------------------------------------------------- | |
1156 | * pointers/data manipulation | |
1157 | * ----------------------------------------------------------------------------- */ | |
1158 | ||
1159 | /* Convert a pointer value */ | |
1160 | SWIGRUNTIME int | |
1161 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1162 | swig_cast_info *tc; | |
1163 | const char *c = 0; | |
1164 | static PyObject *SWIG_this = 0; | |
1165 | int newref = 0; | |
1166 | PyObject *pyobj = 0; | |
1167 | void *vptr; | |
1168 | ||
1169 | if (!obj) return 0; | |
1170 | if (obj == Py_None) { | |
1171 | *ptr = 0; | |
1172 | return 0; | |
1173 | } | |
1174 | ||
1175 | #ifdef SWIG_COBJECT_TYPES | |
1176 | if (!(PySwigObject_Check(obj))) { | |
1177 | if (!SWIG_this) | |
1178 | SWIG_this = PyString_FromString("this"); | |
1179 | pyobj = obj; | |
1180 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1181 | newref = 1; | |
1182 | if (!obj) goto type_error; | |
1183 | if (!PySwigObject_Check(obj)) { | |
1184 | Py_DECREF(obj); | |
1185 | goto type_error; | |
1186 | } | |
1187 | } | |
1188 | vptr = PySwigObject_AsVoidPtr(obj); | |
1189 | c = (const char *) PySwigObject_GetDesc(obj); | |
1190 | if (newref) { Py_DECREF(obj); } | |
1191 | goto type_check; | |
1192 | #else | |
1193 | if (!(PyString_Check(obj))) { | |
1194 | if (!SWIG_this) | |
1195 | SWIG_this = PyString_FromString("this"); | |
1196 | pyobj = obj; | |
1197 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1198 | newref = 1; | |
1199 | if (!obj) goto type_error; | |
1200 | if (!PyString_Check(obj)) { | |
1201 | Py_DECREF(obj); | |
1202 | goto type_error; | |
1203 | } | |
1204 | } | |
1205 | c = PyString_AsString(obj); | |
1206 | /* Pointer values must start with leading underscore */ | |
1207 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1208 | if (newref) { Py_DECREF(obj); } | |
1209 | if (!c) goto type_error; | |
1210 | #endif | |
1211 | ||
1212 | type_check: | |
1213 | if (ty) { | |
1214 | tc = SWIG_TypeCheck(c,ty); | |
1215 | if (!tc) goto type_error; | |
1216 | *ptr = SWIG_TypeCast(tc,vptr); | |
1217 | } else { | |
1218 | *ptr = vptr; | |
1219 | } | |
1220 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1221 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1222 | } | |
1223 | return 0; | |
1224 | ||
1225 | type_error: | |
1226 | PyErr_Clear(); | |
1227 | if (pyobj && !obj) { | |
1228 | obj = pyobj; | |
1229 | if (PyCFunction_Check(obj)) { | |
1230 | /* here we get the method pointer for callbacks */ | |
1231 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1232 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1233 | if (c) { | |
1234 | c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; | |
1235 | if (!c) goto type_error; | |
1236 | goto type_check; | |
1237 | } | |
1238 | } | |
1239 | } | |
1240 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1241 | if (ty) { | |
1242 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1243 | } else { | |
1244 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1245 | } | |
1246 | } | |
1247 | return -1; | |
1248 | } | |
1249 | ||
1250 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1251 | SWIGRUNTIME void * | |
1252 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1253 | void *result; | |
1254 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1255 | PyErr_Clear(); | |
1256 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1257 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1258 | SWIG_Python_ArgFail(argnum); | |
1259 | } | |
1260 | } | |
1261 | return result; | |
1262 | } | |
1263 | ||
1264 | /* Convert a packed value value */ | |
1265 | SWIGRUNTIME int | |
1266 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1267 | swig_cast_info *tc; | |
1268 | const char *c = 0; | |
1269 | ||
1270 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1271 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1272 | #else | |
1273 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1274 | c = PyString_AsString(obj); | |
1275 | /* Pointer values must start with leading underscore */ | |
1276 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1277 | #endif | |
1278 | if (!c) goto type_error; | |
1279 | if (ty) { | |
1280 | tc = SWIG_TypeCheck(c,ty); | |
1281 | if (!tc) goto type_error; | |
1282 | } | |
1283 | return 0; | |
1284 | ||
1285 | type_error: | |
1286 | PyErr_Clear(); | |
1287 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1288 | if (ty) { | |
1289 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1290 | } else { | |
1291 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1292 | } | |
1293 | } | |
1294 | return -1; | |
1295 | } | |
1296 | ||
1297 | /* Create a new array object */ | |
1298 | SWIGRUNTIME PyObject * | |
1299 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1300 | PyObject *robj = 0; | |
1301 | if (!type) { | |
1302 | if (!PyErr_Occurred()) { | |
1303 | PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); | |
1304 | } | |
1305 | return robj; | |
1306 | } | |
1307 | if (!ptr) { | |
1308 | Py_INCREF(Py_None); | |
1309 | return Py_None; | |
1310 | } | |
1311 | #ifdef SWIG_COBJECT_TYPES | |
1312 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1313 | #else | |
1314 | { | |
1315 | char result[SWIG_BUFFER_SIZE]; | |
1316 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1317 | PyString_FromString(result) : 0; | |
1318 | } | |
1319 | #endif | |
1320 | if (!robj || (robj == Py_None)) return robj; | |
1321 | if (type->clientdata) { | |
1322 | PyObject *inst; | |
1323 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1324 | Py_DECREF(robj); | |
1325 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1326 | Py_DECREF(args); | |
1327 | if (inst) { | |
1328 | if (own) { | |
1329 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1330 | } | |
1331 | robj = inst; | |
1332 | } | |
1333 | } | |
1334 | return robj; | |
1335 | } | |
1336 | ||
1337 | SWIGRUNTIME PyObject * | |
1338 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1339 | PyObject *robj = 0; | |
1340 | if (!ptr) { | |
1341 | Py_INCREF(Py_None); | |
1342 | return Py_None; | |
1343 | } | |
1344 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1345 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1346 | #else | |
1347 | { | |
1348 | char result[SWIG_BUFFER_SIZE]; | |
1349 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1350 | PyString_FromString(result) : 0; | |
1351 | } | |
1352 | #endif | |
1353 | return robj; | |
1354 | } | |
1355 | ||
1356 | /* -----------------------------------------------------------------------------* | |
1357 | * Get type list | |
1358 | * -----------------------------------------------------------------------------*/ | |
1359 | ||
1360 | #ifdef SWIG_LINK_RUNTIME | |
1361 | void *SWIG_ReturnGlobalTypeList(void *); | |
1362 | #endif | |
1363 | ||
1364 | SWIGRUNTIME swig_module_info * | |
1365 | SWIG_Python_GetModule(void) { | |
1366 | static void *type_pointer = (void *)0; | |
1367 | /* first check if module already created */ | |
1368 | if (!type_pointer) { | |
1369 | #ifdef SWIG_LINK_RUNTIME | |
1370 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1371 | #else | |
1372 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1373 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1374 | if (PyErr_Occurred()) { | |
1375 | PyErr_Clear(); | |
1376 | type_pointer = (void *)0; | |
1377 | } | |
1378 | #endif | |
1379 | } | |
1380 | return (swig_module_info *) type_pointer; | |
1381 | } | |
1382 | ||
1383 | #if PY_MAJOR_VERSION < 2 | |
1384 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1385 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
1386 | SWIGINTERN int | |
1387 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
1388 | { | |
1389 | PyObject *dict; | |
1390 | if (!PyModule_Check(m)) { | |
1391 | PyErr_SetString(PyExc_TypeError, | |
1392 | "PyModule_AddObject() needs module as first arg"); | |
1393 | return -1; | |
1394 | } | |
1395 | if (!o) { | |
1396 | PyErr_SetString(PyExc_TypeError, | |
1397 | "PyModule_AddObject() needs non-NULL value"); | |
1398 | return -1; | |
1399 | } | |
1400 | ||
1401 | dict = PyModule_GetDict(m); | |
1402 | if (dict == NULL) { | |
1403 | /* Internal error -- modules must have a dict! */ | |
1404 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
1405 | PyModule_GetName(m)); | |
1406 | return -1; | |
1407 | } | |
1408 | if (PyDict_SetItemString(dict, name, o)) | |
1409 | return -1; | |
1410 | Py_DECREF(o); | |
1411 | return 0; | |
1412 | } | |
1413 | #endif | |
1414 | ||
1415 | SWIGRUNTIME void | |
1416 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
1417 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
1418 | ||
1419 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1420 | swig_empty_runtime_method_table); | |
1421 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL); | |
1422 | if (pointer && module) { | |
1423 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1424 | } | |
1425 | } | |
1426 | ||
1427 | #ifdef __cplusplus | |
1428 | } | |
1429 | #endif | |
1430 | ||
1431 | ||
1432 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1433 | ||
1434 | #define SWIGTYPE_p_char swig_types[0] | |
1435 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
1436 | #define SWIGTYPE_p_int swig_types[2] | |
1437 | #define SWIGTYPE_p_unsigned_char swig_types[3] | |
1438 | #define SWIGTYPE_p_unsigned_int swig_types[4] | |
1439 | #define SWIGTYPE_p_unsigned_long swig_types[5] | |
1440 | #define SWIGTYPE_p_wxANIHandler swig_types[6] | |
1441 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[7] | |
1442 | #define SWIGTYPE_p_wxActivateEvent swig_types[8] | |
1443 | #define SWIGTYPE_p_wxBMPHandler swig_types[9] | |
1444 | #define SWIGTYPE_p_wxBoxSizer swig_types[10] | |
1445 | #define SWIGTYPE_p_wxCURHandler swig_types[11] | |
1446 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[12] | |
1447 | #define SWIGTYPE_p_wxCloseEvent swig_types[13] | |
1448 | #define SWIGTYPE_p_wxCommandEvent swig_types[14] | |
1449 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[15] | |
1450 | #define SWIGTYPE_p_wxControl swig_types[16] | |
1451 | #define SWIGTYPE_p_wxControlWithItems swig_types[17] | |
1452 | #define SWIGTYPE_p_wxDateEvent swig_types[18] | |
1453 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[19] | |
1454 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[20] | |
1455 | #define SWIGTYPE_p_wxDuplexMode swig_types[21] | |
1456 | #define SWIGTYPE_p_wxEraseEvent swig_types[22] | |
1457 | #define SWIGTYPE_p_wxEvent swig_types[23] | |
1458 | #define SWIGTYPE_p_wxEvtHandler swig_types[24] | |
1459 | #define SWIGTYPE_p_wxFSFile swig_types[25] | |
1460 | #define SWIGTYPE_p_wxFileSystem swig_types[26] | |
1461 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[27] | |
1462 | #define SWIGTYPE_p_wxFocusEvent swig_types[28] | |
1463 | #define SWIGTYPE_p_wxGBSizerItem swig_types[29] | |
1464 | #define SWIGTYPE_p_wxGIFHandler swig_types[30] | |
1465 | #define SWIGTYPE_p_wxGridBagSizer swig_types[31] | |
1466 | #define SWIGTYPE_p_wxGridSizer swig_types[32] | |
1467 | #define SWIGTYPE_p_wxICOHandler swig_types[33] | |
1468 | #define SWIGTYPE_p_wxIconizeEvent swig_types[34] | |
1469 | #define SWIGTYPE_p_wxIdleEvent swig_types[35] | |
1470 | #define SWIGTYPE_p_wxImage swig_types[36] | |
1471 | #define SWIGTYPE_p_wxImageHandler swig_types[37] | |
1472 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[38] | |
1473 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[39] | |
1474 | #define SWIGTYPE_p_wxJPEGHandler swig_types[40] | |
1475 | #define SWIGTYPE_p_wxKeyEvent swig_types[41] | |
1476 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[42] | |
1477 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[43] | |
1478 | #define SWIGTYPE_p_wxMenu swig_types[44] | |
1479 | #define SWIGTYPE_p_wxMenuBar swig_types[45] | |
1480 | #define SWIGTYPE_p_wxMenuEvent swig_types[46] | |
1481 | #define SWIGTYPE_p_wxMenuItem swig_types[47] | |
1482 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[48] | |
1483 | #define SWIGTYPE_p_wxMouseEvent swig_types[49] | |
1484 | #define SWIGTYPE_p_wxMoveEvent swig_types[50] | |
1485 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[51] | |
1486 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[52] | |
1487 | #define SWIGTYPE_p_wxNotifyEvent swig_types[53] | |
1488 | #define SWIGTYPE_p_wxObject swig_types[54] | |
1489 | #define SWIGTYPE_p_wxPCXHandler swig_types[55] | |
1490 | #define SWIGTYPE_p_wxPNGHandler swig_types[56] | |
1491 | #define SWIGTYPE_p_wxPNMHandler swig_types[57] | |
1492 | #define SWIGTYPE_p_wxPaintEvent swig_types[58] | |
1493 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[59] | |
1494 | #define SWIGTYPE_p_wxPaperSize swig_types[60] | |
1495 | #define SWIGTYPE_p_wxPyApp swig_types[61] | |
1496 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[62] | |
1497 | #define SWIGTYPE_p_wxPyEvent swig_types[63] | |
1498 | #define SWIGTYPE_p_wxPyImageHandler swig_types[64] | |
1499 | #define SWIGTYPE_p_wxPySizer swig_types[65] | |
1500 | #define SWIGTYPE_p_wxPyValidator swig_types[66] | |
1501 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[67] | |
1502 | #define SWIGTYPE_p_wxScrollEvent swig_types[68] | |
1503 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[69] | |
1504 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[70] | |
1505 | #define SWIGTYPE_p_wxShowEvent swig_types[71] | |
1506 | #define SWIGTYPE_p_wxSizeEvent swig_types[72] | |
1507 | #define SWIGTYPE_p_wxSizer swig_types[73] | |
1508 | #define SWIGTYPE_p_wxSizerItem swig_types[74] | |
1509 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[75] | |
1510 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[76] | |
1511 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[77] | |
1512 | #define SWIGTYPE_p_wxTIFFHandler swig_types[78] | |
1513 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[79] | |
1514 | #define SWIGTYPE_p_wxValidator swig_types[80] | |
1515 | #define SWIGTYPE_p_wxWebKitCtrl swig_types[81] | |
1516 | #define SWIGTYPE_p_wxWebKitStateChangedEvent swig_types[82] | |
1517 | #define SWIGTYPE_p_wxWindow swig_types[83] | |
1518 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[84] | |
1519 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[85] | |
1520 | #define SWIGTYPE_p_wxXPMHandler swig_types[86] | |
1521 | #define SWIGTYPE_ptrdiff_t swig_types[87] | |
1522 | #define SWIGTYPE_std__ptrdiff_t swig_types[88] | |
1523 | #define SWIGTYPE_unsigned_int swig_types[89] | |
1524 | static swig_type_info *swig_types[91]; | |
1525 | static swig_module_info swig_module = {swig_types, 90, 0, 0, 0, 0}; | |
1526 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) | |
1527 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
1528 | ||
1529 | /* -------- TYPES TABLE (END) -------- */ | |
1530 | ||
1531 | ||
1532 | /*----------------------------------------------- | |
1533 | @(target):= _webkit.so | |
1534 | ------------------------------------------------*/ | |
1535 | #define SWIG_init init_webkit | |
1536 | ||
1537 | #define SWIG_name "_webkit" | |
1538 | ||
1539 | ||
1540 | #include "wx/wxPython/wxPython.h" | |
1541 | #include "wx/wxPython/pyclasses.h" | |
1542 | #include "wx/wxPython/pyistream.h" | |
1543 | ||
1544 | #ifdef __WXMAC__ // avoid a bug in Carbon headers | |
1545 | #define scalb scalbn | |
1546 | #endif | |
1547 | ||
1548 | #if wxUSE_WEBKIT | |
1549 | #include "wx/html/webkit.h" | |
1550 | #endif | |
1551 | ||
1552 | static const wxString wxPyEmptyString(wxEmptyString); | |
1553 | static const wxString wxPyWebKitNameStr(wxT("webkitctrl")); | |
1554 | ||
1555 | #if !wxUSE_WEBKIT | |
1556 | // a dummy class for ports that don't have wxWebKitCtrl | |
1557 | class wxWebKitCtrl : public wxControl | |
1558 | { | |
1559 | public: | |
1560 | wxWebKitCtrl(wxWindow *parent, | |
1561 | wxWindowID winID, | |
1562 | const wxString& strURL, | |
1563 | const wxPoint& pos = wxDefaultPosition, | |
1564 | const wxSize& size = wxDefaultSize, long style = 0, | |
1565 | const wxValidator& validator = wxDefaultValidator, | |
1566 | const wxString& name = wxPyWebKitNameStr) | |
1567 | { wxPyRaiseNotImplemented(); } | |
1568 | ||
1569 | wxWebKitCtrl() { wxPyRaiseNotImplemented(); } | |
1570 | ||
1571 | bool Create(wxWindow *parent, | |
1572 | wxWindowID winID, | |
1573 | const wxString& strURL, | |
1574 | const wxPoint& pos = wxDefaultPosition, | |
1575 | const wxSize& size = wxDefaultSize, long style = 0, | |
1576 | const wxValidator& validator = wxDefaultValidator, | |
1577 | const wxString& name = wxPyWebKitNameStr) | |
1578 | { return false; } | |
1579 | ||
1580 | void LoadURL(const wxString &url) {} | |
1581 | ||
1582 | bool CanGoBack() { return false; } | |
1583 | bool CanGoForward() { return false; } | |
1584 | bool GoBack() { return false; } | |
1585 | bool GoForward() { return false; } | |
1586 | void Reload() {} | |
1587 | void Stop() {} | |
1588 | bool CanGetPageSource() { return false; } | |
1589 | wxString GetPageSource() { return wxEmptyString; } | |
1590 | void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString) {} | |
1591 | wxString GetPageURL() { return wxEmptyString; } | |
1592 | wxString GetPageTitle() { return wxEmptyString; } | |
1593 | }; | |
1594 | ||
1595 | ||
1596 | enum { | |
1597 | wxWEBKIT_STATE_START = 0, | |
1598 | wxWEBKIT_STATE_NEGOTIATING = 0, | |
1599 | wxWEBKIT_STATE_REDIRECTING = 0, | |
1600 | wxWEBKIT_STATE_TRANSFERRING = 0, | |
1601 | wxWEBKIT_STATE_STOP = 0, | |
1602 | wxWEBKIT_STATE_FAILED = 0, | |
1603 | ||
1604 | wxEVT_WEBKIT_STATE_CHANGED = 0 | |
1605 | }; | |
1606 | ||
1607 | class wxWebKitStateChangedEvent : public wxCommandEvent | |
1608 | { | |
1609 | public: | |
1610 | wxWebKitStateChangedEvent( wxWindow* win = NULL ) | |
1611 | { wxPyRaiseNotImplemented(); } | |
1612 | ||
1613 | int GetState() { return 0; } | |
1614 | void SetState(const int state) {} | |
1615 | wxString GetURL() { return wxEmptyString; } | |
1616 | void SetURL(const wxString& url) {} | |
1617 | }; | |
1618 | ||
1619 | ||
1620 | #endif | |
1621 | ||
1622 | ||
1623 | #include <limits.h> | |
1624 | ||
1625 | ||
1626 | SWIGINTERN int | |
1627 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1628 | const char *errmsg) | |
1629 | { | |
1630 | if (value < min_value) { | |
1631 | if (errmsg) { | |
1632 | PyErr_Format(PyExc_OverflowError, | |
1633 | "value %ld is less than '%s' minimum %ld", | |
1634 | value, errmsg, min_value); | |
1635 | } | |
1636 | return 0; | |
1637 | } else if (value > max_value) { | |
1638 | if (errmsg) { | |
1639 | PyErr_Format(PyExc_OverflowError, | |
1640 | "value %ld is greater than '%s' maximum %ld", | |
1641 | value, errmsg, max_value); | |
1642 | } | |
1643 | return 0; | |
1644 | } | |
1645 | return 1; | |
1646 | } | |
1647 | ||
1648 | ||
1649 | SWIGINTERN int | |
1650 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1651 | { | |
1652 | if (PyNumber_Check(obj)) { | |
1653 | if (val) *val = PyInt_AsLong(obj); | |
1654 | return 1; | |
1655 | } | |
1656 | else { | |
1657 | SWIG_Python_TypeError("number", obj); | |
1658 | } | |
1659 | return 0; | |
1660 | } | |
1661 | ||
1662 | ||
1663 | #if INT_MAX != LONG_MAX | |
1664 | SWIGINTERN int | |
1665 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1666 | { | |
1667 | const char* errmsg = val ? "int" : (char*)0; | |
1668 | long v; | |
1669 | if (SWIG_AsVal_long(obj, &v)) { | |
1670 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1671 | if (val) *val = static_cast<int >(v); | |
1672 | return 1; | |
1673 | } else { | |
1674 | return 0; | |
1675 | } | |
1676 | } else { | |
1677 | PyErr_Clear(); | |
1678 | } | |
1679 | if (val) { | |
1680 | SWIG_type_error(errmsg, obj); | |
1681 | } | |
1682 | return 0; | |
1683 | } | |
1684 | #else | |
1685 | SWIGINTERNINLINE int | |
1686 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1687 | { | |
1688 | return SWIG_AsVal_long(obj,(long*)val); | |
1689 | } | |
1690 | #endif | |
1691 | ||
1692 | ||
1693 | SWIGINTERNINLINE int | |
1694 | SWIG_As_int(PyObject* obj) | |
1695 | { | |
1696 | int v; | |
1697 | if (!SWIG_AsVal_int(obj, &v)) { | |
1698 | /* | |
1699 | this is needed to make valgrind/purify happier. | |
1700 | */ | |
1701 | memset((void*)&v, 0, sizeof(int)); | |
1702 | } | |
1703 | return v; | |
1704 | } | |
1705 | ||
1706 | ||
1707 | SWIGINTERNINLINE long | |
1708 | SWIG_As_long(PyObject* obj) | |
1709 | { | |
1710 | long v; | |
1711 | if (!SWIG_AsVal_long(obj, &v)) { | |
1712 | /* | |
1713 | this is needed to make valgrind/purify happier. | |
1714 | */ | |
1715 | memset((void*)&v, 0, sizeof(long)); | |
1716 | } | |
1717 | return v; | |
1718 | } | |
1719 | ||
1720 | ||
1721 | SWIGINTERNINLINE int | |
1722 | SWIG_Check_int(PyObject* obj) | |
1723 | { | |
1724 | return SWIG_AsVal_int(obj, (int*)0); | |
1725 | } | |
1726 | ||
1727 | ||
1728 | SWIGINTERNINLINE int | |
1729 | SWIG_Check_long(PyObject* obj) | |
1730 | { | |
1731 | return SWIG_AsVal_long(obj, (long*)0); | |
1732 | } | |
1733 | ||
1734 | ||
1735 | /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ | |
1736 | #define SWIG_From_int PyInt_FromLong | |
1737 | /*@@*/ | |
1738 | ||
1739 | #ifdef __cplusplus | |
1740 | extern "C" { | |
1741 | #endif | |
1742 | static int _wrap_WebKitNameStr_set(PyObject *) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Variable WebKitNameStr is read-only."); | |
1744 | return 1; | |
1745 | } | |
1746 | ||
1747 | ||
1748 | static PyObject *_wrap_WebKitNameStr_get(void) { | |
1749 | PyObject *pyobj = NULL; | |
1750 | ||
1751 | { | |
1752 | #if wxUSE_UNICODE | |
1753 | pyobj = PyUnicode_FromWideChar((&wxPyWebKitNameStr)->c_str(), (&wxPyWebKitNameStr)->Len()); | |
1754 | #else | |
1755 | pyobj = PyString_FromStringAndSize((&wxPyWebKitNameStr)->c_str(), (&wxPyWebKitNameStr)->Len()); | |
1756 | #endif | |
1757 | } | |
1758 | return pyobj; | |
1759 | } | |
1760 | ||
1761 | ||
1762 | static PyObject *_wrap_new_WebKitCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
1763 | PyObject *resultobj = NULL; | |
1764 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1765 | int arg2 = (int) -1 ; | |
1766 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1767 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
1768 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1769 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1770 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1771 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1772 | long arg6 = (long) 0 ; | |
1773 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1774 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1775 | wxString const &arg8_defvalue = wxPyWebKitNameStr ; | |
1776 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1777 | wxWebKitCtrl *result; | |
1778 | bool temp3 = false ; | |
1779 | wxPoint temp4 ; | |
1780 | wxSize temp5 ; | |
1781 | bool temp8 = false ; | |
1782 | PyObject * obj0 = 0 ; | |
1783 | PyObject * obj1 = 0 ; | |
1784 | PyObject * obj2 = 0 ; | |
1785 | PyObject * obj3 = 0 ; | |
1786 | PyObject * obj4 = 0 ; | |
1787 | PyObject * obj5 = 0 ; | |
1788 | PyObject * obj6 = 0 ; | |
1789 | PyObject * obj7 = 0 ; | |
1790 | char *kwnames[] = { | |
1791 | (char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1792 | }; | |
1793 | ||
1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_WebKitCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
1796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1797 | if (obj1) { | |
1798 | { | |
1799 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
1800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
1801 | } | |
1802 | } | |
1803 | if (obj2) { | |
1804 | { | |
1805 | arg3 = wxString_in_helper(obj2); | |
1806 | if (arg3 == NULL) SWIG_fail; | |
1807 | temp3 = true; | |
1808 | } | |
1809 | } | |
1810 | if (obj3) { | |
1811 | { | |
1812 | arg4 = &temp4; | |
1813 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1814 | } | |
1815 | } | |
1816 | if (obj4) { | |
1817 | { | |
1818 | arg5 = &temp5; | |
1819 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1820 | } | |
1821 | } | |
1822 | if (obj5) { | |
1823 | { | |
1824 | arg6 = static_cast<long >(SWIG_As_long(obj5)); | |
1825 | if (SWIG_arg_fail(6)) SWIG_fail; | |
1826 | } | |
1827 | } | |
1828 | if (obj6) { | |
1829 | { | |
1830 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
1831 | if (SWIG_arg_fail(7)) SWIG_fail; | |
1832 | if (arg7 == NULL) { | |
1833 | SWIG_null_ref("wxValidator"); | |
1834 | } | |
1835 | if (SWIG_arg_fail(7)) SWIG_fail; | |
1836 | } | |
1837 | } | |
1838 | if (obj7) { | |
1839 | { | |
1840 | arg8 = wxString_in_helper(obj7); | |
1841 | if (arg8 == NULL) SWIG_fail; | |
1842 | temp8 = true; | |
1843 | } | |
1844 | } | |
1845 | { | |
1846 | if (!wxPyCheckForApp()) SWIG_fail; | |
1847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1848 | result = (wxWebKitCtrl *)new wxWebKitCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1849 | ||
1850 | wxPyEndAllowThreads(__tstate); | |
1851 | if (PyErr_Occurred()) SWIG_fail; | |
1852 | } | |
1853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitCtrl, 1); | |
1854 | { | |
1855 | if (temp3) | |
1856 | delete arg3; | |
1857 | } | |
1858 | { | |
1859 | if (temp8) | |
1860 | delete arg8; | |
1861 | } | |
1862 | return resultobj; | |
1863 | fail: | |
1864 | { | |
1865 | if (temp3) | |
1866 | delete arg3; | |
1867 | } | |
1868 | { | |
1869 | if (temp8) | |
1870 | delete arg8; | |
1871 | } | |
1872 | return NULL; | |
1873 | } | |
1874 | ||
1875 | ||
1876 | static PyObject *_wrap_new_PreWebKitCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject *resultobj = NULL; | |
1878 | wxWebKitCtrl *result; | |
1879 | char *kwnames[] = { | |
1880 | NULL | |
1881 | }; | |
1882 | ||
1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWebKitCtrl",kwnames)) goto fail; | |
1884 | { | |
1885 | if (!wxPyCheckForApp()) SWIG_fail; | |
1886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1887 | result = (wxWebKitCtrl *)new wxWebKitCtrl(); | |
1888 | ||
1889 | wxPyEndAllowThreads(__tstate); | |
1890 | if (PyErr_Occurred()) SWIG_fail; | |
1891 | } | |
1892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitCtrl, 1); | |
1893 | return resultobj; | |
1894 | fail: | |
1895 | return NULL; | |
1896 | } | |
1897 | ||
1898 | ||
1899 | static PyObject *_wrap_WebKitCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
1900 | PyObject *resultobj = NULL; | |
1901 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
1902 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1903 | int arg3 = (int) -1 ; | |
1904 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1905 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
1906 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1907 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1908 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1909 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1910 | long arg7 = (long) 0 ; | |
1911 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1912 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1913 | wxString const &arg9_defvalue = wxPyWebKitNameStr ; | |
1914 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1915 | bool result; | |
1916 | bool temp4 = false ; | |
1917 | wxPoint temp5 ; | |
1918 | wxSize temp6 ; | |
1919 | bool temp9 = false ; | |
1920 | PyObject * obj0 = 0 ; | |
1921 | PyObject * obj1 = 0 ; | |
1922 | PyObject * obj2 = 0 ; | |
1923 | PyObject * obj3 = 0 ; | |
1924 | PyObject * obj4 = 0 ; | |
1925 | PyObject * obj5 = 0 ; | |
1926 | PyObject * obj6 = 0 ; | |
1927 | PyObject * obj7 = 0 ; | |
1928 | PyObject * obj8 = 0 ; | |
1929 | char *kwnames[] = { | |
1930 | (char *) "self",(char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1931 | }; | |
1932 | ||
1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:WebKitCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
1934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
1935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1936 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
1937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
1938 | if (obj2) { | |
1939 | { | |
1940 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
1941 | if (SWIG_arg_fail(3)) SWIG_fail; | |
1942 | } | |
1943 | } | |
1944 | if (obj3) { | |
1945 | { | |
1946 | arg4 = wxString_in_helper(obj3); | |
1947 | if (arg4 == NULL) SWIG_fail; | |
1948 | temp4 = true; | |
1949 | } | |
1950 | } | |
1951 | if (obj4) { | |
1952 | { | |
1953 | arg5 = &temp5; | |
1954 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1955 | } | |
1956 | } | |
1957 | if (obj5) { | |
1958 | { | |
1959 | arg6 = &temp6; | |
1960 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1961 | } | |
1962 | } | |
1963 | if (obj6) { | |
1964 | { | |
1965 | arg7 = static_cast<long >(SWIG_As_long(obj6)); | |
1966 | if (SWIG_arg_fail(7)) SWIG_fail; | |
1967 | } | |
1968 | } | |
1969 | if (obj7) { | |
1970 | { | |
1971 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
1972 | if (SWIG_arg_fail(8)) SWIG_fail; | |
1973 | if (arg8 == NULL) { | |
1974 | SWIG_null_ref("wxValidator"); | |
1975 | } | |
1976 | if (SWIG_arg_fail(8)) SWIG_fail; | |
1977 | } | |
1978 | } | |
1979 | if (obj8) { | |
1980 | { | |
1981 | arg9 = wxString_in_helper(obj8); | |
1982 | if (arg9 == NULL) SWIG_fail; | |
1983 | temp9 = true; | |
1984 | } | |
1985 | } | |
1986 | { | |
1987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1988 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1989 | ||
1990 | wxPyEndAllowThreads(__tstate); | |
1991 | if (PyErr_Occurred()) SWIG_fail; | |
1992 | } | |
1993 | { | |
1994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1995 | } | |
1996 | { | |
1997 | if (temp4) | |
1998 | delete arg4; | |
1999 | } | |
2000 | { | |
2001 | if (temp9) | |
2002 | delete arg9; | |
2003 | } | |
2004 | return resultobj; | |
2005 | fail: | |
2006 | { | |
2007 | if (temp4) | |
2008 | delete arg4; | |
2009 | } | |
2010 | { | |
2011 | if (temp9) | |
2012 | delete arg9; | |
2013 | } | |
2014 | return NULL; | |
2015 | } | |
2016 | ||
2017 | ||
2018 | static PyObject *_wrap_WebKitCtrl_LoadURL(PyObject *, PyObject *args, PyObject *kwargs) { | |
2019 | PyObject *resultobj = NULL; | |
2020 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2021 | wxString *arg2 = 0 ; | |
2022 | bool temp2 = false ; | |
2023 | PyObject * obj0 = 0 ; | |
2024 | PyObject * obj1 = 0 ; | |
2025 | char *kwnames[] = { | |
2026 | (char *) "self",(char *) "url", NULL | |
2027 | }; | |
2028 | ||
2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitCtrl_LoadURL",kwnames,&obj0,&obj1)) goto fail; | |
2030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2032 | { | |
2033 | arg2 = wxString_in_helper(obj1); | |
2034 | if (arg2 == NULL) SWIG_fail; | |
2035 | temp2 = true; | |
2036 | } | |
2037 | { | |
2038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2039 | (arg1)->LoadURL((wxString const &)*arg2); | |
2040 | ||
2041 | wxPyEndAllowThreads(__tstate); | |
2042 | if (PyErr_Occurred()) SWIG_fail; | |
2043 | } | |
2044 | Py_INCREF(Py_None); resultobj = Py_None; | |
2045 | { | |
2046 | if (temp2) | |
2047 | delete arg2; | |
2048 | } | |
2049 | return resultobj; | |
2050 | fail: | |
2051 | { | |
2052 | if (temp2) | |
2053 | delete arg2; | |
2054 | } | |
2055 | return NULL; | |
2056 | } | |
2057 | ||
2058 | ||
2059 | static PyObject *_wrap_WebKitCtrl_CanGoBack(PyObject *, PyObject *args, PyObject *kwargs) { | |
2060 | PyObject *resultobj = NULL; | |
2061 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2062 | bool result; | |
2063 | PyObject * obj0 = 0 ; | |
2064 | char *kwnames[] = { | |
2065 | (char *) "self", NULL | |
2066 | }; | |
2067 | ||
2068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGoBack",kwnames,&obj0)) goto fail; | |
2069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2071 | { | |
2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2073 | result = (bool)(arg1)->CanGoBack(); | |
2074 | ||
2075 | wxPyEndAllowThreads(__tstate); | |
2076 | if (PyErr_Occurred()) SWIG_fail; | |
2077 | } | |
2078 | { | |
2079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2080 | } | |
2081 | return resultobj; | |
2082 | fail: | |
2083 | return NULL; | |
2084 | } | |
2085 | ||
2086 | ||
2087 | static PyObject *_wrap_WebKitCtrl_CanGoForward(PyObject *, PyObject *args, PyObject *kwargs) { | |
2088 | PyObject *resultobj = NULL; | |
2089 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2090 | bool result; | |
2091 | PyObject * obj0 = 0 ; | |
2092 | char *kwnames[] = { | |
2093 | (char *) "self", NULL | |
2094 | }; | |
2095 | ||
2096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGoForward",kwnames,&obj0)) goto fail; | |
2097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2099 | { | |
2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2101 | result = (bool)(arg1)->CanGoForward(); | |
2102 | ||
2103 | wxPyEndAllowThreads(__tstate); | |
2104 | if (PyErr_Occurred()) SWIG_fail; | |
2105 | } | |
2106 | { | |
2107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2108 | } | |
2109 | return resultobj; | |
2110 | fail: | |
2111 | return NULL; | |
2112 | } | |
2113 | ||
2114 | ||
2115 | static PyObject *_wrap_WebKitCtrl_GoBack(PyObject *, PyObject *args, PyObject *kwargs) { | |
2116 | PyObject *resultobj = NULL; | |
2117 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2118 | bool result; | |
2119 | PyObject * obj0 = 0 ; | |
2120 | char *kwnames[] = { | |
2121 | (char *) "self", NULL | |
2122 | }; | |
2123 | ||
2124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GoBack",kwnames,&obj0)) goto fail; | |
2125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2127 | { | |
2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2129 | result = (bool)(arg1)->GoBack(); | |
2130 | ||
2131 | wxPyEndAllowThreads(__tstate); | |
2132 | if (PyErr_Occurred()) SWIG_fail; | |
2133 | } | |
2134 | { | |
2135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2136 | } | |
2137 | return resultobj; | |
2138 | fail: | |
2139 | return NULL; | |
2140 | } | |
2141 | ||
2142 | ||
2143 | static PyObject *_wrap_WebKitCtrl_GoForward(PyObject *, PyObject *args, PyObject *kwargs) { | |
2144 | PyObject *resultobj = NULL; | |
2145 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2146 | bool result; | |
2147 | PyObject * obj0 = 0 ; | |
2148 | char *kwnames[] = { | |
2149 | (char *) "self", NULL | |
2150 | }; | |
2151 | ||
2152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GoForward",kwnames,&obj0)) goto fail; | |
2153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2155 | { | |
2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2157 | result = (bool)(arg1)->GoForward(); | |
2158 | ||
2159 | wxPyEndAllowThreads(__tstate); | |
2160 | if (PyErr_Occurred()) SWIG_fail; | |
2161 | } | |
2162 | { | |
2163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2164 | } | |
2165 | return resultobj; | |
2166 | fail: | |
2167 | return NULL; | |
2168 | } | |
2169 | ||
2170 | ||
2171 | static PyObject *_wrap_WebKitCtrl_Reload(PyObject *, PyObject *args, PyObject *kwargs) { | |
2172 | PyObject *resultobj = NULL; | |
2173 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2174 | PyObject * obj0 = 0 ; | |
2175 | char *kwnames[] = { | |
2176 | (char *) "self", NULL | |
2177 | }; | |
2178 | ||
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_Reload",kwnames,&obj0)) goto fail; | |
2180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2182 | { | |
2183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2184 | (arg1)->Reload(); | |
2185 | ||
2186 | wxPyEndAllowThreads(__tstate); | |
2187 | if (PyErr_Occurred()) SWIG_fail; | |
2188 | } | |
2189 | Py_INCREF(Py_None); resultobj = Py_None; | |
2190 | return resultobj; | |
2191 | fail: | |
2192 | return NULL; | |
2193 | } | |
2194 | ||
2195 | ||
2196 | static PyObject *_wrap_WebKitCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject *resultobj = NULL; | |
2198 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2199 | PyObject * obj0 = 0 ; | |
2200 | char *kwnames[] = { | |
2201 | (char *) "self", NULL | |
2202 | }; | |
2203 | ||
2204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_Stop",kwnames,&obj0)) goto fail; | |
2205 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2207 | { | |
2208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2209 | (arg1)->Stop(); | |
2210 | ||
2211 | wxPyEndAllowThreads(__tstate); | |
2212 | if (PyErr_Occurred()) SWIG_fail; | |
2213 | } | |
2214 | Py_INCREF(Py_None); resultobj = Py_None; | |
2215 | return resultobj; | |
2216 | fail: | |
2217 | return NULL; | |
2218 | } | |
2219 | ||
2220 | ||
2221 | static PyObject *_wrap_WebKitCtrl_CanGetPageSource(PyObject *, PyObject *args, PyObject *kwargs) { | |
2222 | PyObject *resultobj = NULL; | |
2223 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2224 | bool result; | |
2225 | PyObject * obj0 = 0 ; | |
2226 | char *kwnames[] = { | |
2227 | (char *) "self", NULL | |
2228 | }; | |
2229 | ||
2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGetPageSource",kwnames,&obj0)) goto fail; | |
2231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2233 | { | |
2234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2235 | result = (bool)(arg1)->CanGetPageSource(); | |
2236 | ||
2237 | wxPyEndAllowThreads(__tstate); | |
2238 | if (PyErr_Occurred()) SWIG_fail; | |
2239 | } | |
2240 | { | |
2241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2242 | } | |
2243 | return resultobj; | |
2244 | fail: | |
2245 | return NULL; | |
2246 | } | |
2247 | ||
2248 | ||
2249 | static PyObject *_wrap_WebKitCtrl_GetPageSource(PyObject *, PyObject *args, PyObject *kwargs) { | |
2250 | PyObject *resultobj = NULL; | |
2251 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2252 | wxString result; | |
2253 | PyObject * obj0 = 0 ; | |
2254 | char *kwnames[] = { | |
2255 | (char *) "self", NULL | |
2256 | }; | |
2257 | ||
2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GetPageSource",kwnames,&obj0)) goto fail; | |
2259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2261 | { | |
2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2263 | result = (arg1)->GetPageSource(); | |
2264 | ||
2265 | wxPyEndAllowThreads(__tstate); | |
2266 | if (PyErr_Occurred()) SWIG_fail; | |
2267 | } | |
2268 | { | |
2269 | #if wxUSE_UNICODE | |
2270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2271 | #else | |
2272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2273 | #endif | |
2274 | } | |
2275 | return resultobj; | |
2276 | fail: | |
2277 | return NULL; | |
2278 | } | |
2279 | ||
2280 | ||
2281 | static PyObject *_wrap_WebKitCtrl_SetPageSource(PyObject *, PyObject *args, PyObject *kwargs) { | |
2282 | PyObject *resultobj = NULL; | |
2283 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2284 | wxString *arg2 = 0 ; | |
2285 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2286 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2287 | bool temp2 = false ; | |
2288 | bool temp3 = false ; | |
2289 | PyObject * obj0 = 0 ; | |
2290 | PyObject * obj1 = 0 ; | |
2291 | PyObject * obj2 = 0 ; | |
2292 | char *kwnames[] = { | |
2293 | (char *) "self",(char *) "source",(char *) "baseUrl", NULL | |
2294 | }; | |
2295 | ||
2296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:WebKitCtrl_SetPageSource",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2299 | { | |
2300 | arg2 = wxString_in_helper(obj1); | |
2301 | if (arg2 == NULL) SWIG_fail; | |
2302 | temp2 = true; | |
2303 | } | |
2304 | if (obj2) { | |
2305 | { | |
2306 | arg3 = wxString_in_helper(obj2); | |
2307 | if (arg3 == NULL) SWIG_fail; | |
2308 | temp3 = true; | |
2309 | } | |
2310 | } | |
2311 | { | |
2312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2313 | (arg1)->SetPageSource(*arg2,(wxString const &)*arg3); | |
2314 | ||
2315 | wxPyEndAllowThreads(__tstate); | |
2316 | if (PyErr_Occurred()) SWIG_fail; | |
2317 | } | |
2318 | Py_INCREF(Py_None); resultobj = Py_None; | |
2319 | { | |
2320 | if (temp2) | |
2321 | delete arg2; | |
2322 | } | |
2323 | { | |
2324 | if (temp3) | |
2325 | delete arg3; | |
2326 | } | |
2327 | return resultobj; | |
2328 | fail: | |
2329 | { | |
2330 | if (temp2) | |
2331 | delete arg2; | |
2332 | } | |
2333 | { | |
2334 | if (temp3) | |
2335 | delete arg3; | |
2336 | } | |
2337 | return NULL; | |
2338 | } | |
2339 | ||
2340 | ||
2341 | static PyObject *_wrap_WebKitCtrl_GetPageURL(PyObject *, PyObject *args, PyObject *kwargs) { | |
2342 | PyObject *resultobj = NULL; | |
2343 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2344 | wxString result; | |
2345 | PyObject * obj0 = 0 ; | |
2346 | char *kwnames[] = { | |
2347 | (char *) "self", NULL | |
2348 | }; | |
2349 | ||
2350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GetPageURL",kwnames,&obj0)) goto fail; | |
2351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2353 | { | |
2354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2355 | result = (arg1)->GetPageURL(); | |
2356 | ||
2357 | wxPyEndAllowThreads(__tstate); | |
2358 | if (PyErr_Occurred()) SWIG_fail; | |
2359 | } | |
2360 | { | |
2361 | #if wxUSE_UNICODE | |
2362 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2363 | #else | |
2364 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2365 | #endif | |
2366 | } | |
2367 | return resultobj; | |
2368 | fail: | |
2369 | return NULL; | |
2370 | } | |
2371 | ||
2372 | ||
2373 | static PyObject *_wrap_WebKitCtrl_GetPageTitle(PyObject *, PyObject *args, PyObject *kwargs) { | |
2374 | PyObject *resultobj = NULL; | |
2375 | wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ; | |
2376 | wxString result; | |
2377 | PyObject * obj0 = 0 ; | |
2378 | char *kwnames[] = { | |
2379 | (char *) "self", NULL | |
2380 | }; | |
2381 | ||
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GetPageTitle",kwnames,&obj0)) goto fail; | |
2383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2385 | { | |
2386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2387 | result = (arg1)->GetPageTitle(); | |
2388 | ||
2389 | wxPyEndAllowThreads(__tstate); | |
2390 | if (PyErr_Occurred()) SWIG_fail; | |
2391 | } | |
2392 | { | |
2393 | #if wxUSE_UNICODE | |
2394 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2395 | #else | |
2396 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2397 | #endif | |
2398 | } | |
2399 | return resultobj; | |
2400 | fail: | |
2401 | return NULL; | |
2402 | } | |
2403 | ||
2404 | ||
2405 | static PyObject * WebKitCtrl_swigregister(PyObject *, PyObject *args) { | |
2406 | PyObject *obj; | |
2407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2408 | SWIG_TypeClientData(SWIGTYPE_p_wxWebKitCtrl, obj); | |
2409 | Py_INCREF(obj); | |
2410 | return Py_BuildValue((char *)""); | |
2411 | } | |
2412 | static PyObject *_wrap_new_WebKitStateChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
2413 | PyObject *resultobj = NULL; | |
2414 | wxWindow *arg1 = (wxWindow *) NULL ; | |
2415 | wxWebKitStateChangedEvent *result; | |
2416 | PyObject * obj0 = 0 ; | |
2417 | char *kwnames[] = { | |
2418 | (char *) "win", NULL | |
2419 | }; | |
2420 | ||
2421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WebKitStateChangedEvent",kwnames,&obj0)) goto fail; | |
2422 | if (obj0) { | |
2423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2425 | } | |
2426 | { | |
2427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2428 | result = (wxWebKitStateChangedEvent *)new wxWebKitStateChangedEvent(arg1); | |
2429 | ||
2430 | wxPyEndAllowThreads(__tstate); | |
2431 | if (PyErr_Occurred()) SWIG_fail; | |
2432 | } | |
2433 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitStateChangedEvent, 1); | |
2434 | return resultobj; | |
2435 | fail: | |
2436 | return NULL; | |
2437 | } | |
2438 | ||
2439 | ||
2440 | static PyObject *_wrap_WebKitStateChangedEvent_GetState(PyObject *, PyObject *args, PyObject *kwargs) { | |
2441 | PyObject *resultobj = NULL; | |
2442 | wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ; | |
2443 | int result; | |
2444 | PyObject * obj0 = 0 ; | |
2445 | char *kwnames[] = { | |
2446 | (char *) "self", NULL | |
2447 | }; | |
2448 | ||
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitStateChangedEvent_GetState",kwnames,&obj0)) goto fail; | |
2450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitStateChangedEvent, SWIG_POINTER_EXCEPTION | 0); | |
2451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2452 | { | |
2453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2454 | result = (int)(arg1)->GetState(); | |
2455 | ||
2456 | wxPyEndAllowThreads(__tstate); | |
2457 | if (PyErr_Occurred()) SWIG_fail; | |
2458 | } | |
2459 | { | |
2460 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
2461 | } | |
2462 | return resultobj; | |
2463 | fail: | |
2464 | return NULL; | |
2465 | } | |
2466 | ||
2467 | ||
2468 | static PyObject *_wrap_WebKitStateChangedEvent_SetState(PyObject *, PyObject *args, PyObject *kwargs) { | |
2469 | PyObject *resultobj = NULL; | |
2470 | wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ; | |
2471 | int arg2 ; | |
2472 | PyObject * obj0 = 0 ; | |
2473 | PyObject * obj1 = 0 ; | |
2474 | char *kwnames[] = { | |
2475 | (char *) "self",(char *) "state", NULL | |
2476 | }; | |
2477 | ||
2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitStateChangedEvent_SetState",kwnames,&obj0,&obj1)) goto fail; | |
2479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitStateChangedEvent, SWIG_POINTER_EXCEPTION | 0); | |
2480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2481 | { | |
2482 | arg2 = static_cast<int const >(SWIG_As_int(obj1)); | |
2483 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2484 | } | |
2485 | { | |
2486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2487 | (arg1)->SetState(arg2); | |
2488 | ||
2489 | wxPyEndAllowThreads(__tstate); | |
2490 | if (PyErr_Occurred()) SWIG_fail; | |
2491 | } | |
2492 | Py_INCREF(Py_None); resultobj = Py_None; | |
2493 | return resultobj; | |
2494 | fail: | |
2495 | return NULL; | |
2496 | } | |
2497 | ||
2498 | ||
2499 | static PyObject *_wrap_WebKitStateChangedEvent_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { | |
2500 | PyObject *resultobj = NULL; | |
2501 | wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ; | |
2502 | wxString result; | |
2503 | PyObject * obj0 = 0 ; | |
2504 | char *kwnames[] = { | |
2505 | (char *) "self", NULL | |
2506 | }; | |
2507 | ||
2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitStateChangedEvent_GetURL",kwnames,&obj0)) goto fail; | |
2509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitStateChangedEvent, SWIG_POINTER_EXCEPTION | 0); | |
2510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | result = (arg1)->GetURL(); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | { | |
2519 | #if wxUSE_UNICODE | |
2520 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2521 | #else | |
2522 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2523 | #endif | |
2524 | } | |
2525 | return resultobj; | |
2526 | fail: | |
2527 | return NULL; | |
2528 | } | |
2529 | ||
2530 | ||
2531 | static PyObject *_wrap_WebKitStateChangedEvent_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject *resultobj = NULL; | |
2533 | wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ; | |
2534 | wxString *arg2 = 0 ; | |
2535 | bool temp2 = false ; | |
2536 | PyObject * obj0 = 0 ; | |
2537 | PyObject * obj1 = 0 ; | |
2538 | char *kwnames[] = { | |
2539 | (char *) "self",(char *) "url", NULL | |
2540 | }; | |
2541 | ||
2542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitStateChangedEvent_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
2543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitStateChangedEvent, SWIG_POINTER_EXCEPTION | 0); | |
2544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2545 | { | |
2546 | arg2 = wxString_in_helper(obj1); | |
2547 | if (arg2 == NULL) SWIG_fail; | |
2548 | temp2 = true; | |
2549 | } | |
2550 | { | |
2551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2552 | (arg1)->SetURL((wxString const &)*arg2); | |
2553 | ||
2554 | wxPyEndAllowThreads(__tstate); | |
2555 | if (PyErr_Occurred()) SWIG_fail; | |
2556 | } | |
2557 | Py_INCREF(Py_None); resultobj = Py_None; | |
2558 | { | |
2559 | if (temp2) | |
2560 | delete arg2; | |
2561 | } | |
2562 | return resultobj; | |
2563 | fail: | |
2564 | { | |
2565 | if (temp2) | |
2566 | delete arg2; | |
2567 | } | |
2568 | return NULL; | |
2569 | } | |
2570 | ||
2571 | ||
2572 | static PyObject * WebKitStateChangedEvent_swigregister(PyObject *, PyObject *args) { | |
2573 | PyObject *obj; | |
2574 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2575 | SWIG_TypeClientData(SWIGTYPE_p_wxWebKitStateChangedEvent, obj); | |
2576 | Py_INCREF(obj); | |
2577 | return Py_BuildValue((char *)""); | |
2578 | } | |
2579 | static PyMethodDef SwigMethods[] = { | |
2580 | { (char *)"new_WebKitCtrl", (PyCFunction) _wrap_new_WebKitCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2581 | { (char *)"new_PreWebKitCtrl", (PyCFunction) _wrap_new_PreWebKitCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2582 | { (char *)"WebKitCtrl_Create", (PyCFunction) _wrap_WebKitCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2583 | { (char *)"WebKitCtrl_LoadURL", (PyCFunction) _wrap_WebKitCtrl_LoadURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2584 | { (char *)"WebKitCtrl_CanGoBack", (PyCFunction) _wrap_WebKitCtrl_CanGoBack, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2585 | { (char *)"WebKitCtrl_CanGoForward", (PyCFunction) _wrap_WebKitCtrl_CanGoForward, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2586 | { (char *)"WebKitCtrl_GoBack", (PyCFunction) _wrap_WebKitCtrl_GoBack, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2587 | { (char *)"WebKitCtrl_GoForward", (PyCFunction) _wrap_WebKitCtrl_GoForward, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2588 | { (char *)"WebKitCtrl_Reload", (PyCFunction) _wrap_WebKitCtrl_Reload, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2589 | { (char *)"WebKitCtrl_Stop", (PyCFunction) _wrap_WebKitCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2590 | { (char *)"WebKitCtrl_CanGetPageSource", (PyCFunction) _wrap_WebKitCtrl_CanGetPageSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2591 | { (char *)"WebKitCtrl_GetPageSource", (PyCFunction) _wrap_WebKitCtrl_GetPageSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2592 | { (char *)"WebKitCtrl_SetPageSource", (PyCFunction) _wrap_WebKitCtrl_SetPageSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2593 | { (char *)"WebKitCtrl_GetPageURL", (PyCFunction) _wrap_WebKitCtrl_GetPageURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2594 | { (char *)"WebKitCtrl_GetPageTitle", (PyCFunction) _wrap_WebKitCtrl_GetPageTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2595 | { (char *)"WebKitCtrl_swigregister", WebKitCtrl_swigregister, METH_VARARGS, NULL}, | |
2596 | { (char *)"new_WebKitStateChangedEvent", (PyCFunction) _wrap_new_WebKitStateChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2597 | { (char *)"WebKitStateChangedEvent_GetState", (PyCFunction) _wrap_WebKitStateChangedEvent_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2598 | { (char *)"WebKitStateChangedEvent_SetState", (PyCFunction) _wrap_WebKitStateChangedEvent_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2599 | { (char *)"WebKitStateChangedEvent_GetURL", (PyCFunction) _wrap_WebKitStateChangedEvent_GetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2600 | { (char *)"WebKitStateChangedEvent_SetURL", (PyCFunction) _wrap_WebKitStateChangedEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2601 | { (char *)"WebKitStateChangedEvent_swigregister", WebKitStateChangedEvent_swigregister, METH_VARARGS, NULL}, | |
2602 | { NULL, NULL, 0, NULL } | |
2603 | }; | |
2604 | ||
2605 | ||
2606 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
2607 | ||
2608 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
2609 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
2610 | } | |
2611 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
2612 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
2613 | } | |
2614 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
2615 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
2616 | } | |
2617 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
2618 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
2619 | } | |
2620 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
2621 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
2622 | } | |
2623 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
2624 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
2625 | } | |
2626 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
2627 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
2628 | } | |
2629 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
2630 | return (void *)((wxObject *) ((wxSizer *) x)); | |
2631 | } | |
2632 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
2633 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
2634 | } | |
2635 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
2636 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
2637 | } | |
2638 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
2639 | return (void *)((wxObject *) ((wxEvent *) x)); | |
2640 | } | |
2641 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
2642 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
2643 | } | |
2644 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
2645 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
2646 | } | |
2647 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
2648 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
2649 | } | |
2650 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
2651 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
2652 | } | |
2653 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
2654 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
2655 | } | |
2656 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
2657 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
2658 | } | |
2659 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
2660 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
2661 | } | |
2662 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
2663 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
2664 | } | |
2665 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
2666 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
2667 | } | |
2668 | static void *_p_wxWebKitStateChangedEventTo_p_wxObject(void *x) { | |
2669 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWebKitStateChangedEvent *) x)); | |
2670 | } | |
2671 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
2672 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
2673 | } | |
2674 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
2675 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
2676 | } | |
2677 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
2678 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
2679 | } | |
2680 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
2681 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
2682 | } | |
2683 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
2684 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
2685 | } | |
2686 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
2687 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
2688 | } | |
2689 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
2690 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
2691 | } | |
2692 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
2693 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
2694 | } | |
2695 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
2696 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
2697 | } | |
2698 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
2699 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
2700 | } | |
2701 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
2702 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
2703 | } | |
2704 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
2705 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
2706 | } | |
2707 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
2708 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
2709 | } | |
2710 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
2711 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
2712 | } | |
2713 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
2714 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
2715 | } | |
2716 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
2717 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
2718 | } | |
2719 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
2720 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
2721 | } | |
2722 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
2723 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
2724 | } | |
2725 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
2726 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
2727 | } | |
2728 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
2729 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
2730 | } | |
2731 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
2732 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
2733 | } | |
2734 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
2735 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
2736 | } | |
2737 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
2738 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
2739 | } | |
2740 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
2741 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
2742 | } | |
2743 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
2744 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
2745 | } | |
2746 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
2747 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
2748 | } | |
2749 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
2750 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
2751 | } | |
2752 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
2753 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
2754 | } | |
2755 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
2756 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
2757 | } | |
2758 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
2759 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
2760 | } | |
2761 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
2762 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
2763 | } | |
2764 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
2765 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
2766 | } | |
2767 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
2768 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
2769 | } | |
2770 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
2771 | return (void *)((wxObject *) ((wxImage *) x)); | |
2772 | } | |
2773 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
2774 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
2775 | } | |
2776 | static void *_p_wxWebKitCtrlTo_p_wxObject(void *x) { | |
2777 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxWebKitCtrl *) x)); | |
2778 | } | |
2779 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
2780 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
2781 | } | |
2782 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
2783 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
2784 | } | |
2785 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
2786 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
2787 | } | |
2788 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
2789 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
2790 | } | |
2791 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
2792 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
2793 | } | |
2794 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
2795 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
2796 | } | |
2797 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
2798 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
2799 | } | |
2800 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
2801 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2802 | } | |
2803 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
2804 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
2805 | } | |
2806 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
2807 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
2808 | } | |
2809 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
2810 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
2811 | } | |
2812 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
2813 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
2814 | } | |
2815 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
2816 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
2817 | } | |
2818 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
2819 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
2820 | } | |
2821 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
2822 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
2823 | } | |
2824 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
2825 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
2826 | } | |
2827 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
2828 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
2829 | } | |
2830 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
2831 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
2832 | } | |
2833 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
2834 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
2835 | } | |
2836 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
2837 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
2838 | } | |
2839 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
2840 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
2841 | } | |
2842 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
2843 | return (void *)((wxWindow *) ((wxControl *) x)); | |
2844 | } | |
2845 | static void *_p_wxWebKitCtrlTo_p_wxWindow(void *x) { | |
2846 | return (void *)((wxWindow *) (wxControl *) ((wxWebKitCtrl *) x)); | |
2847 | } | |
2848 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
2849 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
2850 | } | |
2851 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
2852 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
2853 | } | |
2854 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
2855 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
2856 | } | |
2857 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
2858 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
2859 | } | |
2860 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
2861 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
2862 | } | |
2863 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
2864 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
2865 | } | |
2866 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
2867 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
2868 | } | |
2869 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
2870 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
2871 | } | |
2872 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
2873 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
2874 | } | |
2875 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
2876 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2877 | } | |
2878 | static void *_p_wxWebKitStateChangedEventTo_p_wxCommandEvent(void *x) { | |
2879 | return (void *)((wxCommandEvent *) ((wxWebKitStateChangedEvent *) x)); | |
2880 | } | |
2881 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
2882 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
2883 | } | |
2884 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
2885 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
2886 | } | |
2887 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
2888 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
2889 | } | |
2890 | static void *_p_wxWebKitCtrlTo_p_wxEvtHandler(void *x) { | |
2891 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxWebKitCtrl *) x)); | |
2892 | } | |
2893 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
2894 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
2895 | } | |
2896 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
2897 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
2898 | } | |
2899 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
2900 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
2901 | } | |
2902 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
2903 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
2904 | } | |
2905 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
2906 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
2907 | } | |
2908 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
2909 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
2910 | } | |
2911 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
2912 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
2913 | } | |
2914 | static void *_p_wxWebKitCtrlTo_p_wxControl(void *x) { | |
2915 | return (void *)((wxControl *) ((wxWebKitCtrl *) x)); | |
2916 | } | |
2917 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
2918 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
2919 | } | |
2920 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
2921 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2922 | } | |
2923 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
2924 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
2925 | } | |
2926 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
2927 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
2928 | } | |
2929 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
2930 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
2931 | } | |
2932 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
2933 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
2934 | } | |
2935 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
2936 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
2937 | } | |
2938 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
2939 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
2940 | } | |
2941 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
2942 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
2943 | } | |
2944 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
2945 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
2946 | } | |
2947 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
2948 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
2949 | } | |
2950 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
2951 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
2952 | } | |
2953 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
2954 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
2955 | } | |
2956 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
2957 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
2958 | } | |
2959 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
2960 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
2961 | } | |
2962 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
2963 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
2964 | } | |
2965 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
2966 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
2967 | } | |
2968 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
2969 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
2970 | } | |
2971 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
2972 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
2973 | } | |
2974 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
2975 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
2976 | } | |
2977 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
2978 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
2979 | } | |
2980 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
2981 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
2982 | } | |
2983 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
2984 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
2985 | } | |
2986 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
2987 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
2988 | } | |
2989 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
2990 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
2991 | } | |
2992 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
2993 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
2994 | } | |
2995 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
2996 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
2997 | } | |
2998 | static void *_p_wxWebKitStateChangedEventTo_p_wxEvent(void *x) { | |
2999 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWebKitStateChangedEvent *) x)); | |
3000 | } | |
3001 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
3002 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
3003 | } | |
3004 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
3005 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
3006 | } | |
3007 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
3008 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
3009 | } | |
3010 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
3011 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
3012 | } | |
3013 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
3014 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
3015 | } | |
3016 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
3017 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
3018 | } | |
3019 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
3020 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
3021 | } | |
3022 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
3023 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
3024 | } | |
3025 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
3026 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
3027 | } | |
3028 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
3029 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
3030 | } | |
3031 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; | |
3032 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
3033 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, 0}; | |
3034 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
3035 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
3036 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0}; | |
3037 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0}; | |
3038 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
3039 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
3040 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
3041 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
3042 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
3043 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
3044 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
3045 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0}; | |
3046 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
3047 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, 0}; | |
3048 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0}; | |
3049 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
3050 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0}; | |
3051 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
3052 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
3053 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0}; | |
3054 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
3055 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
3056 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
3057 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
3058 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
3059 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
3060 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
3061 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
3062 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
3063 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
3064 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
3065 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
3066 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
3067 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
3068 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
3069 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
3070 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
3071 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
3072 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
3073 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
3074 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
3075 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0}; | |
3076 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
3077 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0}; | |
3078 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
3079 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
3080 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
3081 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0}; | |
3082 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
3083 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
3084 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
3085 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
3086 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
3087 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
3088 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
3089 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
3090 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
3091 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
3092 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
3093 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
3094 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
3095 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
3096 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
3097 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
3098 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
3099 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
3100 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
3101 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
3102 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
3103 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
3104 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
3105 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
3106 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
3107 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
3108 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
3109 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
3110 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
3111 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0}; | |
3112 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
3113 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
3114 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, 0}; | |
3115 | static swig_type_info _swigt__p_wxWebKitCtrl = {"_p_wxWebKitCtrl", "wxWebKitCtrl *", 0, 0, 0}; | |
3116 | static swig_type_info _swigt__p_wxWebKitStateChangedEvent = {"_p_wxWebKitStateChangedEvent", "wxWebKitStateChangedEvent *", 0, 0, 0}; | |
3117 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
3118 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
3119 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
3120 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
3121 | ||
3122 | static swig_type_info *swig_type_initial[] = { | |
3123 | &_swigt__p_char, | |
3124 | &_swigt__p_form_ops_t, | |
3125 | &_swigt__p_int, | |
3126 | &_swigt__p_unsigned_char, | |
3127 | &_swigt__p_unsigned_int, | |
3128 | &_swigt__p_unsigned_long, | |
3129 | &_swigt__p_wxANIHandler, | |
3130 | &_swigt__p_wxAcceleratorTable, | |
3131 | &_swigt__p_wxActivateEvent, | |
3132 | &_swigt__p_wxBMPHandler, | |
3133 | &_swigt__p_wxBoxSizer, | |
3134 | &_swigt__p_wxCURHandler, | |
3135 | &_swigt__p_wxChildFocusEvent, | |
3136 | &_swigt__p_wxCloseEvent, | |
3137 | &_swigt__p_wxCommandEvent, | |
3138 | &_swigt__p_wxContextMenuEvent, | |
3139 | &_swigt__p_wxControl, | |
3140 | &_swigt__p_wxControlWithItems, | |
3141 | &_swigt__p_wxDateEvent, | |
3142 | &_swigt__p_wxDisplayChangedEvent, | |
3143 | &_swigt__p_wxDropFilesEvent, | |
3144 | &_swigt__p_wxDuplexMode, | |
3145 | &_swigt__p_wxEraseEvent, | |
3146 | &_swigt__p_wxEvent, | |
3147 | &_swigt__p_wxEvtHandler, | |
3148 | &_swigt__p_wxFSFile, | |
3149 | &_swigt__p_wxFileSystem, | |
3150 | &_swigt__p_wxFlexGridSizer, | |
3151 | &_swigt__p_wxFocusEvent, | |
3152 | &_swigt__p_wxGBSizerItem, | |
3153 | &_swigt__p_wxGIFHandler, | |
3154 | &_swigt__p_wxGridBagSizer, | |
3155 | &_swigt__p_wxGridSizer, | |
3156 | &_swigt__p_wxICOHandler, | |
3157 | &_swigt__p_wxIconizeEvent, | |
3158 | &_swigt__p_wxIdleEvent, | |
3159 | &_swigt__p_wxImage, | |
3160 | &_swigt__p_wxImageHandler, | |
3161 | &_swigt__p_wxIndividualLayoutConstraint, | |
3162 | &_swigt__p_wxInitDialogEvent, | |
3163 | &_swigt__p_wxJPEGHandler, | |
3164 | &_swigt__p_wxKeyEvent, | |
3165 | &_swigt__p_wxLayoutConstraints, | |
3166 | &_swigt__p_wxMaximizeEvent, | |
3167 | &_swigt__p_wxMenu, | |
3168 | &_swigt__p_wxMenuBar, | |
3169 | &_swigt__p_wxMenuEvent, | |
3170 | &_swigt__p_wxMenuItem, | |
3171 | &_swigt__p_wxMouseCaptureChangedEvent, | |
3172 | &_swigt__p_wxMouseEvent, | |
3173 | &_swigt__p_wxMoveEvent, | |
3174 | &_swigt__p_wxNavigationKeyEvent, | |
3175 | &_swigt__p_wxNcPaintEvent, | |
3176 | &_swigt__p_wxNotifyEvent, | |
3177 | &_swigt__p_wxObject, | |
3178 | &_swigt__p_wxPCXHandler, | |
3179 | &_swigt__p_wxPNGHandler, | |
3180 | &_swigt__p_wxPNMHandler, | |
3181 | &_swigt__p_wxPaintEvent, | |
3182 | &_swigt__p_wxPaletteChangedEvent, | |
3183 | &_swigt__p_wxPaperSize, | |
3184 | &_swigt__p_wxPyApp, | |
3185 | &_swigt__p_wxPyCommandEvent, | |
3186 | &_swigt__p_wxPyEvent, | |
3187 | &_swigt__p_wxPyImageHandler, | |
3188 | &_swigt__p_wxPySizer, | |
3189 | &_swigt__p_wxPyValidator, | |
3190 | &_swigt__p_wxQueryNewPaletteEvent, | |
3191 | &_swigt__p_wxScrollEvent, | |
3192 | &_swigt__p_wxScrollWinEvent, | |
3193 | &_swigt__p_wxSetCursorEvent, | |
3194 | &_swigt__p_wxShowEvent, | |
3195 | &_swigt__p_wxSizeEvent, | |
3196 | &_swigt__p_wxSizer, | |
3197 | &_swigt__p_wxSizerItem, | |
3198 | &_swigt__p_wxStaticBoxSizer, | |
3199 | &_swigt__p_wxStdDialogButtonSizer, | |
3200 | &_swigt__p_wxSysColourChangedEvent, | |
3201 | &_swigt__p_wxTIFFHandler, | |
3202 | &_swigt__p_wxUpdateUIEvent, | |
3203 | &_swigt__p_wxValidator, | |
3204 | &_swigt__p_wxWebKitCtrl, | |
3205 | &_swigt__p_wxWebKitStateChangedEvent, | |
3206 | &_swigt__p_wxWindow, | |
3207 | &_swigt__p_wxWindowCreateEvent, | |
3208 | &_swigt__p_wxWindowDestroyEvent, | |
3209 | &_swigt__p_wxXPMHandler, | |
3210 | &_swigt__ptrdiff_t, | |
3211 | &_swigt__std__ptrdiff_t, | |
3212 | &_swigt__unsigned_int, | |
3213 | }; | |
3214 | ||
3215 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
3216 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
3217 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
3218 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
3219 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
3220 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
3221 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3222 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3223 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3224 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3225 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3226 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3227 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3228 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3229 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3230 | 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_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWebKitStateChangedEvent, _p_wxWebKitStateChangedEventTo_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}}; | |
3231 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
3232 | static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxWebKitCtrl, _p_wxWebKitCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0},{0, 0, 0, 0}}; | |
3233 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
3234 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3235 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3236 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3237 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3238 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3239 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3240 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3241 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3242 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3243 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3244 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3245 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3246 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3247 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3248 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3249 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3250 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3251 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3252 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3253 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3254 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3255 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3256 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3257 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3258 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3259 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3260 | 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_wxWebKitStateChangedEvent, _p_wxWebKitStateChangedEventTo_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}}; | |
3261 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
3262 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
3263 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
3264 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
3265 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWebKitCtrl, _p_wxWebKitCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_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},{0, 0, 0, 0}}; | |
3266 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
3267 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
3268 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
3269 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
3270 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3271 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3272 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3273 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3274 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3275 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3276 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
3277 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3278 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
3279 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3280 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3281 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3282 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3283 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3284 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3285 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3286 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3287 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3288 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3289 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3290 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3291 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3292 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3293 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
3294 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
3295 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
3296 | 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_wxWebKitStateChangedEvent, _p_wxWebKitStateChangedEventTo_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_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxWebKitCtrl, _p_wxWebKitCtrlTo_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_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
3297 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
3298 | static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}}; | |
3299 | static swig_cast_info _swigc__p_wxWebKitCtrl[] = { {&_swigt__p_wxWebKitCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
3300 | static swig_cast_info _swigc__p_wxWebKitStateChangedEvent[] = { {&_swigt__p_wxWebKitStateChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3301 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWebKitCtrl, _p_wxWebKitCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
3302 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
3303 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
3304 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
3305 | ||
3306 | static swig_cast_info *swig_cast_initial[] = { | |
3307 | _swigc__p_char, | |
3308 | _swigc__p_form_ops_t, | |
3309 | _swigc__p_int, | |
3310 | _swigc__p_unsigned_char, | |
3311 | _swigc__p_unsigned_int, | |
3312 | _swigc__p_unsigned_long, | |
3313 | _swigc__p_wxANIHandler, | |
3314 | _swigc__p_wxAcceleratorTable, | |
3315 | _swigc__p_wxActivateEvent, | |
3316 | _swigc__p_wxBMPHandler, | |
3317 | _swigc__p_wxBoxSizer, | |
3318 | _swigc__p_wxCURHandler, | |
3319 | _swigc__p_wxChildFocusEvent, | |
3320 | _swigc__p_wxCloseEvent, | |
3321 | _swigc__p_wxCommandEvent, | |
3322 | _swigc__p_wxContextMenuEvent, | |
3323 | _swigc__p_wxControl, | |
3324 | _swigc__p_wxControlWithItems, | |
3325 | _swigc__p_wxDateEvent, | |
3326 | _swigc__p_wxDisplayChangedEvent, | |
3327 | _swigc__p_wxDropFilesEvent, | |
3328 | _swigc__p_wxDuplexMode, | |
3329 | _swigc__p_wxEraseEvent, | |
3330 | _swigc__p_wxEvent, | |
3331 | _swigc__p_wxEvtHandler, | |
3332 | _swigc__p_wxFSFile, | |
3333 | _swigc__p_wxFileSystem, | |
3334 | _swigc__p_wxFlexGridSizer, | |
3335 | _swigc__p_wxFocusEvent, | |
3336 | _swigc__p_wxGBSizerItem, | |
3337 | _swigc__p_wxGIFHandler, | |
3338 | _swigc__p_wxGridBagSizer, | |
3339 | _swigc__p_wxGridSizer, | |
3340 | _swigc__p_wxICOHandler, | |
3341 | _swigc__p_wxIconizeEvent, | |
3342 | _swigc__p_wxIdleEvent, | |
3343 | _swigc__p_wxImage, | |
3344 | _swigc__p_wxImageHandler, | |
3345 | _swigc__p_wxIndividualLayoutConstraint, | |
3346 | _swigc__p_wxInitDialogEvent, | |
3347 | _swigc__p_wxJPEGHandler, | |
3348 | _swigc__p_wxKeyEvent, | |
3349 | _swigc__p_wxLayoutConstraints, | |
3350 | _swigc__p_wxMaximizeEvent, | |
3351 | _swigc__p_wxMenu, | |
3352 | _swigc__p_wxMenuBar, | |
3353 | _swigc__p_wxMenuEvent, | |
3354 | _swigc__p_wxMenuItem, | |
3355 | _swigc__p_wxMouseCaptureChangedEvent, | |
3356 | _swigc__p_wxMouseEvent, | |
3357 | _swigc__p_wxMoveEvent, | |
3358 | _swigc__p_wxNavigationKeyEvent, | |
3359 | _swigc__p_wxNcPaintEvent, | |
3360 | _swigc__p_wxNotifyEvent, | |
3361 | _swigc__p_wxObject, | |
3362 | _swigc__p_wxPCXHandler, | |
3363 | _swigc__p_wxPNGHandler, | |
3364 | _swigc__p_wxPNMHandler, | |
3365 | _swigc__p_wxPaintEvent, | |
3366 | _swigc__p_wxPaletteChangedEvent, | |
3367 | _swigc__p_wxPaperSize, | |
3368 | _swigc__p_wxPyApp, | |
3369 | _swigc__p_wxPyCommandEvent, | |
3370 | _swigc__p_wxPyEvent, | |
3371 | _swigc__p_wxPyImageHandler, | |
3372 | _swigc__p_wxPySizer, | |
3373 | _swigc__p_wxPyValidator, | |
3374 | _swigc__p_wxQueryNewPaletteEvent, | |
3375 | _swigc__p_wxScrollEvent, | |
3376 | _swigc__p_wxScrollWinEvent, | |
3377 | _swigc__p_wxSetCursorEvent, | |
3378 | _swigc__p_wxShowEvent, | |
3379 | _swigc__p_wxSizeEvent, | |
3380 | _swigc__p_wxSizer, | |
3381 | _swigc__p_wxSizerItem, | |
3382 | _swigc__p_wxStaticBoxSizer, | |
3383 | _swigc__p_wxStdDialogButtonSizer, | |
3384 | _swigc__p_wxSysColourChangedEvent, | |
3385 | _swigc__p_wxTIFFHandler, | |
3386 | _swigc__p_wxUpdateUIEvent, | |
3387 | _swigc__p_wxValidator, | |
3388 | _swigc__p_wxWebKitCtrl, | |
3389 | _swigc__p_wxWebKitStateChangedEvent, | |
3390 | _swigc__p_wxWindow, | |
3391 | _swigc__p_wxWindowCreateEvent, | |
3392 | _swigc__p_wxWindowDestroyEvent, | |
3393 | _swigc__p_wxXPMHandler, | |
3394 | _swigc__ptrdiff_t, | |
3395 | _swigc__std__ptrdiff_t, | |
3396 | _swigc__unsigned_int, | |
3397 | }; | |
3398 | ||
3399 | ||
3400 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
3401 | ||
3402 | static swig_const_info swig_const_table[] = { | |
3403 | {0, 0, 0, 0.0, 0, 0}}; | |
3404 | ||
3405 | #ifdef __cplusplus | |
3406 | } | |
3407 | #endif | |
3408 | /************************************************************************* | |
3409 | * Type initialization: | |
3410 | * This problem is tough by the requirement that no dynamic | |
3411 | * memory is used. Also, since swig_type_info structures store pointers to | |
3412 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
3413 | * to swig_type_info structures, we need some lookup code at initialization. | |
3414 | * The idea is that swig generates all the structures that are needed. | |
3415 | * The runtime then collects these partially filled structures. | |
3416 | * The SWIG_InitializeModule function takes these initial arrays out of | |
3417 | * swig_module, and does all the lookup, filling in the swig_module.types | |
3418 | * array with the correct data and linking the correct swig_cast_info | |
3419 | * structures together. | |
3420 | ||
3421 | * The generated swig_type_info structures are assigned staticly to an initial | |
3422 | * array. We just loop though that array, and handle each type individually. | |
3423 | * First we lookup if this type has been already loaded, and if so, use the | |
3424 | * loaded structure instead of the generated one. Then we have to fill in the | |
3425 | * cast linked list. The cast data is initially stored in something like a | |
3426 | * two-dimensional array. Each row corresponds to a type (there are the same | |
3427 | * number of rows as there are in the swig_type_initial array). Each entry in | |
3428 | * a column is one of the swig_cast_info structures for that type. | |
3429 | * The cast_initial array is actually an array of arrays, because each row has | |
3430 | * a variable number of columns. So to actually build the cast linked list, | |
3431 | * we find the array of casts associated with the type, and loop through it | |
3432 | * adding the casts to the list. The one last trick we need to do is making | |
3433 | * sure the type pointer in the swig_cast_info struct is correct. | |
3434 | ||
3435 | * First off, we lookup the cast->type name to see if it is already loaded. | |
3436 | * There are three cases to handle: | |
3437 | * 1) If the cast->type has already been loaded AND the type we are adding | |
3438 | * casting info to has not been loaded (it is in this module), THEN we | |
3439 | * replace the cast->type pointer with the type pointer that has already | |
3440 | * been loaded. | |
3441 | * 2) If BOTH types (the one we are adding casting info to, and the | |
3442 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
3443 | * the previous module so we just ignore it. | |
3444 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
3445 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
3446 | * be correct. | |
3447 | **/ | |
3448 | ||
3449 | #ifdef __cplusplus | |
3450 | extern "C" { | |
3451 | #if 0 | |
3452 | } /* c-mode */ | |
3453 | #endif | |
3454 | #endif | |
3455 | ||
3456 | #if 0 | |
3457 | #define SWIGRUNTIME_DEBUG | |
3458 | #endif | |
3459 | ||
3460 | SWIGRUNTIME void | |
3461 | SWIG_InitializeModule(void *clientdata) { | |
3462 | size_t i; | |
3463 | swig_module_info *module_head; | |
3464 | static int init_run = 0; | |
3465 | ||
3466 | clientdata = clientdata; | |
3467 | ||
3468 | if (init_run) return; | |
3469 | init_run = 1; | |
3470 | ||
3471 | /* Initialize the swig_module */ | |
3472 | swig_module.type_initial = swig_type_initial; | |
3473 | swig_module.cast_initial = swig_cast_initial; | |
3474 | ||
3475 | /* Try and load any already created modules */ | |
3476 | module_head = SWIG_GetModule(clientdata); | |
3477 | if (module_head) { | |
3478 | swig_module.next = module_head->next; | |
3479 | module_head->next = &swig_module; | |
3480 | } else { | |
3481 | /* This is the first module loaded */ | |
3482 | swig_module.next = &swig_module; | |
3483 | SWIG_SetModule(clientdata, &swig_module); | |
3484 | } | |
3485 | ||
3486 | /* Now work on filling in swig_module.types */ | |
3487 | #ifdef SWIGRUNTIME_DEBUG | |
3488 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
3489 | #endif | |
3490 | for (i = 0; i < swig_module.size; ++i) { | |
3491 | swig_type_info *type = 0; | |
3492 | swig_type_info *ret; | |
3493 | swig_cast_info *cast; | |
3494 | ||
3495 | #ifdef SWIGRUNTIME_DEBUG | |
3496 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
3497 | #endif | |
3498 | ||
3499 | /* if there is another module already loaded */ | |
3500 | if (swig_module.next != &swig_module) { | |
3501 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
3502 | } | |
3503 | if (type) { | |
3504 | /* Overwrite clientdata field */ | |
3505 | #ifdef SWIGRUNTIME_DEBUG | |
3506 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
3507 | #endif | |
3508 | if (swig_module.type_initial[i]->clientdata) { | |
3509 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
3510 | #ifdef SWIGRUNTIME_DEBUG | |
3511 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
3512 | #endif | |
3513 | } | |
3514 | } else { | |
3515 | type = swig_module.type_initial[i]; | |
3516 | } | |
3517 | ||
3518 | /* Insert casting types */ | |
3519 | cast = swig_module.cast_initial[i]; | |
3520 | while (cast->type) { | |
3521 | /* Don't need to add information already in the list */ | |
3522 | ret = 0; | |
3523 | #ifdef SWIGRUNTIME_DEBUG | |
3524 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
3525 | #endif | |
3526 | if (swig_module.next != &swig_module) { | |
3527 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
3528 | #ifdef SWIGRUNTIME_DEBUG | |
3529 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
3530 | #endif | |
3531 | } | |
3532 | if (ret) { | |
3533 | if (type == swig_module.type_initial[i]) { | |
3534 | #ifdef SWIGRUNTIME_DEBUG | |
3535 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
3536 | #endif | |
3537 | cast->type = ret; | |
3538 | ret = 0; | |
3539 | } else { | |
3540 | /* Check for casting already in the list */ | |
3541 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
3542 | #ifdef SWIGRUNTIME_DEBUG | |
3543 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
3544 | #endif | |
3545 | if (!ocast) ret = 0; | |
3546 | } | |
3547 | } | |
3548 | ||
3549 | if (!ret) { | |
3550 | #ifdef SWIGRUNTIME_DEBUG | |
3551 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
3552 | #endif | |
3553 | if (type->cast) { | |
3554 | type->cast->prev = cast; | |
3555 | cast->next = type->cast; | |
3556 | } | |
3557 | type->cast = cast; | |
3558 | } | |
3559 | cast++; | |
3560 | } | |
3561 | /* Set entry in modules->types array equal to the type */ | |
3562 | swig_module.types[i] = type; | |
3563 | } | |
3564 | swig_module.types[i] = 0; | |
3565 | ||
3566 | #ifdef SWIGRUNTIME_DEBUG | |
3567 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
3568 | for (i = 0; i < swig_module.size; ++i) { | |
3569 | int j = 0; | |
3570 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
3571 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
3572 | while (cast->type) { | |
3573 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
3574 | cast++; | |
3575 | ++j; | |
3576 | } | |
3577 | printf("---- Total casts: %d\n",j); | |
3578 | } | |
3579 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
3580 | #endif | |
3581 | } | |
3582 | ||
3583 | /* This function will propagate the clientdata field of type to | |
3584 | * any new swig_type_info structures that have been added into the list | |
3585 | * of equivalent types. It is like calling | |
3586 | * SWIG_TypeClientData(type, clientdata) a second time. | |
3587 | */ | |
3588 | SWIGRUNTIME void | |
3589 | SWIG_PropagateClientData(void) { | |
3590 | size_t i; | |
3591 | swig_cast_info *equiv; | |
3592 | static int init_run = 0; | |
3593 | ||
3594 | if (init_run) return; | |
3595 | init_run = 1; | |
3596 | ||
3597 | for (i = 0; i < swig_module.size; i++) { | |
3598 | if (swig_module.types[i]->clientdata) { | |
3599 | equiv = swig_module.types[i]->cast; | |
3600 | while (equiv) { | |
3601 | if (!equiv->converter) { | |
3602 | if (equiv->type && !equiv->type->clientdata) | |
3603 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
3604 | } | |
3605 | equiv = equiv->next; | |
3606 | } | |
3607 | } | |
3608 | } | |
3609 | } | |
3610 | ||
3611 | #ifdef __cplusplus | |
3612 | #if 0 | |
3613 | { | |
3614 | /* c-mode */ | |
3615 | #endif | |
3616 | } | |
3617 | #endif | |
3618 | ||
3619 | ||
3620 | ||
3621 | #ifdef __cplusplus | |
3622 | extern "C" { | |
3623 | #endif | |
3624 | ||
3625 | /* Python-specific SWIG API */ | |
3626 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
3627 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
3628 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
3629 | ||
3630 | /* ----------------------------------------------------------------------------- | |
3631 | * global variable support code. | |
3632 | * ----------------------------------------------------------------------------- */ | |
3633 | ||
3634 | typedef struct swig_globalvar { | |
3635 | char *name; /* Name of global variable */ | |
3636 | PyObject *(*get_attr)(void); /* Return the current value */ | |
3637 | int (*set_attr)(PyObject *); /* Set the value */ | |
3638 | struct swig_globalvar *next; | |
3639 | } swig_globalvar; | |
3640 | ||
3641 | typedef struct swig_varlinkobject { | |
3642 | PyObject_HEAD | |
3643 | swig_globalvar *vars; | |
3644 | } swig_varlinkobject; | |
3645 | ||
3646 | SWIGINTERN PyObject * | |
3647 | swig_varlink_repr(swig_varlinkobject *v) { | |
3648 | v = v; | |
3649 | return PyString_FromString("<Swig global variables>"); | |
3650 | } | |
3651 | ||
3652 | SWIGINTERN int | |
3653 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
3654 | swig_globalvar *var; | |
3655 | flags = flags; | |
3656 | fprintf(fp,"Swig global variables { "); | |
3657 | for (var = v->vars; var; var=var->next) { | |
3658 | fprintf(fp,"%s", var->name); | |
3659 | if (var->next) fprintf(fp,", "); | |
3660 | } | |
3661 | fprintf(fp," }\n"); | |
3662 | return 0; | |
3663 | } | |
3664 | ||
3665 | SWIGINTERN PyObject * | |
3666 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
3667 | swig_globalvar *var = v->vars; | |
3668 | while (var) { | |
3669 | if (strcmp(var->name,n) == 0) { | |
3670 | return (*var->get_attr)(); | |
3671 | } | |
3672 | var = var->next; | |
3673 | } | |
3674 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
3675 | return NULL; | |
3676 | } | |
3677 | ||
3678 | SWIGINTERN int | |
3679 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
3680 | swig_globalvar *var = v->vars; | |
3681 | while (var) { | |
3682 | if (strcmp(var->name,n) == 0) { | |
3683 | return (*var->set_attr)(p); | |
3684 | } | |
3685 | var = var->next; | |
3686 | } | |
3687 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
3688 | return 1; | |
3689 | } | |
3690 | ||
3691 | SWIGINTERN PyTypeObject* | |
3692 | swig_varlink_type(void) { | |
3693 | static char varlink__doc__[] = "Swig var link object"; | |
3694 | static PyTypeObject varlink_type | |
3695 | #if !defined(__cplusplus) | |
3696 | ; | |
3697 | static int type_init = 0; | |
3698 | if (!type_init) { | |
3699 | PyTypeObject tmp | |
3700 | #endif | |
3701 | = { | |
3702 | PyObject_HEAD_INIT(&PyType_Type) | |
3703 | 0, /* Number of items in variable part (ob_size) */ | |
3704 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
3705 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
3706 | 0, /* Itemsize (tp_itemsize) */ | |
3707 | 0, /* Deallocator (tp_dealloc) */ | |
3708 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
3709 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
3710 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
3711 | 0, /* tp_compare */ | |
3712 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
3713 | 0, /* tp_as_number */ | |
3714 | 0, /* tp_as_sequence */ | |
3715 | 0, /* tp_as_mapping */ | |
3716 | 0, /* tp_hash */ | |
3717 | 0, /* tp_call */ | |
3718 | 0, /* tp_str */ | |
3719 | 0, /* tp_getattro */ | |
3720 | 0, /* tp_setattro */ | |
3721 | 0, /* tp_as_buffer */ | |
3722 | 0, /* tp_flags */ | |
3723 | varlink__doc__, /* tp_doc */ | |
3724 | #if PY_VERSION_HEX >= 0x02000000 | |
3725 | 0, /* tp_traverse */ | |
3726 | 0, /* tp_clear */ | |
3727 | #endif | |
3728 | #if PY_VERSION_HEX >= 0x02010000 | |
3729 | 0, /* tp_richcompare */ | |
3730 | 0, /* tp_weaklistoffset */ | |
3731 | #endif | |
3732 | #if PY_VERSION_HEX >= 0x02020000 | |
3733 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
3734 | #endif | |
3735 | #if PY_VERSION_HEX >= 0x02030000 | |
3736 | 0, /* tp_del */ | |
3737 | #endif | |
3738 | #ifdef COUNT_ALLOCS | |
3739 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
3740 | #endif | |
3741 | }; | |
3742 | #if !defined(__cplusplus) | |
3743 | varlink_type = tmp; | |
3744 | type_init = 1; | |
3745 | } | |
3746 | #endif | |
3747 | return &varlink_type; | |
3748 | } | |
3749 | ||
3750 | /* Create a variable linking object for use later */ | |
3751 | SWIGINTERN PyObject * | |
3752 | SWIG_Python_newvarlink(void) { | |
3753 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
3754 | if (result) { | |
3755 | result->vars = 0; | |
3756 | } | |
3757 | return ((PyObject*) result); | |
3758 | } | |
3759 | ||
3760 | SWIGINTERN void | |
3761 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
3762 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
3763 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
3764 | if (gv) { | |
3765 | size_t size = strlen(name)+1; | |
3766 | gv->name = (char *)malloc(size); | |
3767 | if (gv->name) { | |
3768 | strncpy(gv->name,name,size); | |
3769 | gv->get_attr = get_attr; | |
3770 | gv->set_attr = set_attr; | |
3771 | gv->next = v->vars; | |
3772 | } | |
3773 | } | |
3774 | v->vars = gv; | |
3775 | } | |
3776 | ||
3777 | /* ----------------------------------------------------------------------------- | |
3778 | * constants/methods manipulation | |
3779 | * ----------------------------------------------------------------------------- */ | |
3780 | ||
3781 | /* Install Constants */ | |
3782 | SWIGINTERN void | |
3783 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
3784 | PyObject *obj = 0; | |
3785 | size_t i; | |
3786 | for (i = 0; constants[i].type; ++i) { | |
3787 | switch(constants[i].type) { | |
3788 | case SWIG_PY_INT: | |
3789 | obj = PyInt_FromLong(constants[i].lvalue); | |
3790 | break; | |
3791 | case SWIG_PY_FLOAT: | |
3792 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
3793 | break; | |
3794 | case SWIG_PY_STRING: | |
3795 | if (constants[i].pvalue) { | |
3796 | obj = PyString_FromString((char *) constants[i].pvalue); | |
3797 | } else { | |
3798 | Py_INCREF(Py_None); | |
3799 | obj = Py_None; | |
3800 | } | |
3801 | break; | |
3802 | case SWIG_PY_POINTER: | |
3803 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
3804 | break; | |
3805 | case SWIG_PY_BINARY: | |
3806 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
3807 | break; | |
3808 | default: | |
3809 | obj = 0; | |
3810 | break; | |
3811 | } | |
3812 | if (obj) { | |
3813 | PyDict_SetItemString(d,constants[i].name,obj); | |
3814 | Py_DECREF(obj); | |
3815 | } | |
3816 | } | |
3817 | } | |
3818 | ||
3819 | /* -----------------------------------------------------------------------------*/ | |
3820 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
3821 | /* -----------------------------------------------------------------------------*/ | |
3822 | ||
3823 | SWIGINTERN void | |
3824 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
3825 | swig_const_info *const_table, | |
3826 | swig_type_info **types, | |
3827 | swig_type_info **types_initial) { | |
3828 | size_t i; | |
3829 | for (i = 0; methods[i].ml_name; ++i) { | |
3830 | char *c = methods[i].ml_doc; | |
3831 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
3832 | int j; | |
3833 | swig_const_info *ci = 0; | |
3834 | char *name = c + 10; | |
3835 | for (j = 0; const_table[j].type; ++j) { | |
3836 | if (strncmp(const_table[j].name, name, | |
3837 | strlen(const_table[j].name)) == 0) { | |
3838 | ci = &(const_table[j]); | |
3839 | break; | |
3840 | } | |
3841 | } | |
3842 | if (ci) { | |
3843 | size_t shift = (ci->ptype) - types; | |
3844 | swig_type_info *ty = types_initial[shift]; | |
3845 | size_t ldoc = (c - methods[i].ml_doc); | |
3846 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
3847 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
3848 | if (ndoc) { | |
3849 | char *buff = ndoc; | |
3850 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
3851 | if (ptr) { | |
3852 | strncpy(buff, methods[i].ml_doc, ldoc); | |
3853 | buff += ldoc; | |
3854 | strncpy(buff, "swig_ptr: ", 10); | |
3855 | buff += 10; | |
3856 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
3857 | methods[i].ml_doc = ndoc; | |
3858 | } | |
3859 | } | |
3860 | } | |
3861 | } | |
3862 | } | |
3863 | } | |
3864 | ||
3865 | /* -----------------------------------------------------------------------------* | |
3866 | * Initialize type list | |
3867 | * -----------------------------------------------------------------------------*/ | |
3868 | ||
3869 | #ifdef __cplusplus | |
3870 | } | |
3871 | #endif | |
3872 | ||
3873 | /* -----------------------------------------------------------------------------* | |
3874 | * Partial Init method | |
3875 | * -----------------------------------------------------------------------------*/ | |
3876 | ||
3877 | #ifdef __cplusplus | |
3878 | extern "C" | |
3879 | #endif | |
3880 | SWIGEXPORT void SWIG_init(void) { | |
3881 | static PyObject *SWIG_globals = 0; | |
3882 | PyObject *m, *d; | |
3883 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
3884 | ||
3885 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
3886 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
3887 | ||
3888 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
3889 | d = PyModule_GetDict(m); | |
3890 | ||
3891 | SWIG_InitializeModule(0); | |
3892 | SWIG_InstallConstants(d,swig_const_table); | |
3893 | ||
3894 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
3895 | SWIG_addvarlink(SWIG_globals,(char*)"WebKitNameStr",_wrap_WebKitNameStr_get, _wrap_WebKitNameStr_set); | |
3896 | { | |
3897 | PyDict_SetItemString(d,"WEBKIT_STATE_START", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_START))); | |
3898 | } | |
3899 | { | |
3900 | PyDict_SetItemString(d,"WEBKIT_STATE_NEGOTIATING", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_NEGOTIATING))); | |
3901 | } | |
3902 | { | |
3903 | PyDict_SetItemString(d,"WEBKIT_STATE_REDIRECTING", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_REDIRECTING))); | |
3904 | } | |
3905 | { | |
3906 | PyDict_SetItemString(d,"WEBKIT_STATE_TRANSFERRING", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_TRANSFERRING))); | |
3907 | } | |
3908 | { | |
3909 | PyDict_SetItemString(d,"WEBKIT_STATE_STOP", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_STOP))); | |
3910 | } | |
3911 | { | |
3912 | PyDict_SetItemString(d,"WEBKIT_STATE_FAILED", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_FAILED))); | |
3913 | } | |
3914 | PyDict_SetItemString(d, "wxEVT_WEBKIT_STATE_CHANGED", PyInt_FromLong(wxEVT_WEBKIT_STATE_CHANGED)); | |
3915 | ||
3916 | ||
3917 | ||
3918 | } | |
3919 |