]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
1bd55598 | 3 | * Version 1.3.29 |
d55e5bfc RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
1bd55598 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d55e5bfc RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
36ed4f51 | 27 | }; |
d55e5bfc RD |
28 | #endif |
29 | ||
1bd55598 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
1bd55598 | 33 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
1bd55598 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
36ed4f51 | 46 | #endif |
d55e5bfc | 47 | |
32fe5131 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
1bd55598 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
1bd55598 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
1bd55598 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
32fe5131 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
1bd55598 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
1bd55598 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
32fe5131 | 126 | |
d55e5bfc | 127 | |
1bd55598 | 128 | /* Python.h has to appear first */ |
36ed4f51 | 129 | #include <Python.h> |
d55e5bfc | 130 | |
1bd55598 | 131 | /* ----------------------------------------------------------------------------- |
36ed4f51 | 132 | * swigrun.swg |
d55e5bfc | 133 | * |
1bd55598 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 137 | |
36ed4f51 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 141 | |
36ed4f51 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
36ed4f51 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
36ed4f51 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
36ed4f51 | 162 | #endif |
32fe5131 | 163 | |
36ed4f51 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
166 | #endif |
167 | ||
1bd55598 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
32fe5131 RD |
309 | #include <string.h> |
310 | ||
d55e5bfc RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
d55e5bfc | 319 | typedef struct swig_type_info { |
32fe5131 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
1bd55598 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d55e5bfc RD |
326 | } swig_type_info; |
327 | ||
32fe5131 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
36ed4f51 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
1bd55598 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
36ed4f51 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
36ed4f51 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
36ed4f51 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
36ed4f51 | 388 | */ |
32fe5131 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
36ed4f51 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
36ed4f51 | 400 | } |
32fe5131 | 401 | return equiv; |
36ed4f51 RD |
402 | } |
403 | ||
32fe5131 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
36ed4f51 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
36ed4f51 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
36ed4f51 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
36ed4f51 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
1bd55598 | 481 | if (!type) return NULL; |
36ed4f51 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
36ed4f51 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
36ed4f51 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
36ed4f51 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
1bd55598 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
36ed4f51 | 556 | } |
32fe5131 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
36ed4f51 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
36ed4f51 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
36ed4f51 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
36ed4f51 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
36ed4f51 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
1bd55598 | 622 | register unsigned char uu; |
36ed4f51 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
36ed4f51 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d55e5bfc | 682 | |
36ed4f51 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d55e5bfc RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
1bd55598 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d55e5bfc | 714 | |
1bd55598 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
36ed4f51 | 764 | #endif |
1bd55598 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c370783e | 799 | |
36ed4f51 | 800 | /* ----------------------------------------------------------------------------- |
1bd55598 | 801 | * error manipulation |
36ed4f51 | 802 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 803 | |
1bd55598 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d55e5bfc | 846 | |
1bd55598 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
36ed4f51 | 935 | #endif |
d55e5bfc | 936 | |
1bd55598 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
36ed4f51 | 940 | |
1bd55598 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
36ed4f51 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 951 | |
36ed4f51 | 952 | /* Constant Types */ |
36ed4f51 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
1bd55598 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
36ed4f51 | 964 | } swig_const_info; |
d55e5bfc | 965 | |
d55e5bfc | 966 | #ifdef __cplusplus |
1bd55598 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
36ed4f51 RD |
970 | } |
971 | #endif | |
d55e5bfc | 972 | |
d55e5bfc | 973 | |
1bd55598 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
36ed4f51 RD |
978 | * pyrun.swg |
979 | * | |
1bd55598 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
36ed4f51 | 983 | * |
1bd55598 | 984 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 985 | |
36ed4f51 | 986 | /* Common SWIG API */ |
d55e5bfc | 987 | |
4f89b6b7 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
1bd55598 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
d55e5bfc | 1000 | |
1bd55598 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 1004 | |
1bd55598 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d55e5bfc | 1008 | |
1bd55598 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d55e5bfc | 1012 | |
1bd55598 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
d55e5bfc | 1017 | |
1bd55598 | 1018 | /* Runtime API */ |
d55e5bfc | 1019 | |
1bd55598 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
1bd55598 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
d55e5bfc | 1030 | |
1bd55598 | 1031 | /* Runtime API implementation */ |
d55e5bfc | 1032 | |
1bd55598 | 1033 | /* Error manipulation */ |
d55e5bfc | 1034 | |
1bd55598 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c370783e | 1041 | } |
d55e5bfc | 1042 | |
1bd55598 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
d55e5bfc RD |
1048 | } |
1049 | ||
1bd55598 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
1bd55598 | 1052 | /* Set a constant value */ |
d55e5bfc | 1053 | |
1bd55598 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
c370783e | 1058 | } |
d55e5bfc | 1059 | |
1bd55598 | 1060 | /* Append a value to the result obj */ |
d55e5bfc | 1061 | |
1bd55598 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
36ed4f51 | 1088 | } else { |
1bd55598 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
c370783e | 1100 | } |
1bd55598 RD |
1101 | return result; |
1102 | #endif | |
c370783e RD |
1103 | } |
1104 | ||
1bd55598 | 1105 | /* Unpack the argument tuple */ |
d55e5bfc | 1106 | |
1bd55598 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
36ed4f51 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
36ed4f51 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
36ed4f51 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
1bd55598 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
36ed4f51 | 1618 | if (!type_init) { |
1bd55598 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
36ed4f51 | 1632 | #endif |
1bd55598 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
36ed4f51 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
1bd55598 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
36ed4f51 RD |
1672 | #endif |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
1bd55598 | 1674 | 0, /* tp_del */ |
36ed4f51 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1678 | #endif |
1bd55598 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
1bd55598 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1682 | type_init = 1; |
1683 | } | |
32fe5131 | 1684 | return &pyswigobject_type; |
36ed4f51 RD |
1685 | } |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
1bd55598 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
c370783e | 1689 | { |
1bd55598 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
1bd55598 | 1697 | return (PyObject *)sobj; |
36ed4f51 | 1698 | } |
d55e5bfc | 1699 | |
36ed4f51 RD |
1700 | /* ----------------------------------------------------------------------------- |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 1703 | |
36ed4f51 RD |
1704 | typedef struct { |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
1bd55598 | 1707 | swig_type_info *ty; |
36ed4f51 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
c370783e | 1710 | |
36ed4f51 | 1711 | SWIGRUNTIME int |
1bd55598 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
d55e5bfc | 1713 | { |
36ed4f51 RD |
1714 | char result[SWIG_BUFFER_SIZE]; |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
1bd55598 | 1720 | fputs(v->ty->name,fp); |
36ed4f51 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
1724 | ||
1725 | SWIGRUNTIME PyObject * | |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
1727 | { | |
1728 | char result[SWIG_BUFFER_SIZE]; | |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1bd55598 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
36ed4f51 | 1731 | } else { |
1bd55598 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
36ed4f51 | 1733 | } |
d55e5bfc RD |
1734 | } |
1735 | ||
36ed4f51 RD |
1736 | SWIGRUNTIME PyObject * |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
1bd55598 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
36ed4f51 | 1742 | } else { |
1bd55598 | 1743 | return PyString_FromString(v->ty->name); |
36ed4f51 RD |
1744 | } |
1745 | } | |
d55e5bfc | 1746 | |
36ed4f51 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 1749 | { |
1bd55598 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c370783e RD |
1754 | } |
1755 | ||
1bd55598 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
d55e5bfc | 1757 | |
36ed4f51 | 1758 | SWIGRUNTIME PyTypeObject* |
32fe5131 | 1759 | PySwigPacked_type(void) { |
1bd55598 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
36ed4f51 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
1bd55598 | 1837 | 0, /* tp_del */ |
36ed4f51 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1841 | #endif |
1bd55598 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
1bd55598 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
36ed4f51 | 1848 | } |
d55e5bfc | 1849 | |
36ed4f51 | 1850 | SWIGRUNTIME PyObject * |
1bd55598 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
36ed4f51 | 1852 | { |
1bd55598 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
36ed4f51 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
1bd55598 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
36ed4f51 | 1865 | } |
1bd55598 | 1866 | return (PyObject *) sobj; |
36ed4f51 | 1867 | } |
d55e5bfc | 1868 | |
1bd55598 | 1869 | SWIGRUNTIME swig_type_info * |
36ed4f51 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
1bd55598 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
36ed4f51 | 1880 | } |
d55e5bfc | 1881 | |
36ed4f51 | 1882 | /* ----------------------------------------------------------------------------- |
1bd55598 | 1883 | * pointers/data manipulation |
36ed4f51 | 1884 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 1885 | |
1bd55598 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
d55e5bfc | 1891 | |
1bd55598 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
d55e5bfc | 1898 | |
1bd55598 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d55e5bfc | 1900 | |
1bd55598 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
36ed4f51 | 1903 | { |
1bd55598 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
36ed4f51 | 1926 | } else { |
1bd55598 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
36ed4f51 | 1929 | } |
36ed4f51 | 1930 | } |
1bd55598 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
36ed4f51 RD |
1947 | } |
1948 | } | |
d55e5bfc | 1949 | |
1bd55598 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
36ed4f51 | 1961 | } |
1bd55598 | 1962 | return 0; |
36ed4f51 | 1963 | } |
d55e5bfc | 1964 | |
1bd55598 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
36ed4f51 | 1967 | SWIGRUNTIME int |
1bd55598 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
36ed4f51 | 1992 | } else { |
1bd55598 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
36ed4f51 | 1995 | } |
36ed4f51 | 1996 | } |
1bd55598 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
36ed4f51 RD |
2042 | } |
2043 | } | |
d55e5bfc | 2044 | |
1bd55598 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
36ed4f51 | 2047 | SWIGRUNTIME int |
1bd55598 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
36ed4f51 | 2051 | } else { |
1bd55598 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
4f89b6b7 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
1bd55598 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
36ed4f51 RD |
2069 | } |
2070 | } | |
d55e5bfc | 2071 | |
1bd55598 | 2072 | /* Convert a packed value value */ |
d55e5bfc | 2073 | |
36ed4f51 | 2074 | SWIGRUNTIME int |
1bd55598 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
36ed4f51 | 2084 | } |
1bd55598 RD |
2085 | return SWIG_OK; |
2086 | } | |
d55e5bfc | 2087 | |
1bd55598 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 2091 | |
1bd55598 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d55e5bfc | 2096 | |
1bd55598 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
36ed4f51 | 2115 | } |
1bd55598 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
36ed4f51 | 2120 | } |
1bd55598 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
36ed4f51 | 2126 | } |
1bd55598 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
36ed4f51 | 2140 | } |
1bd55598 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
36ed4f51 | 2147 | } |
1bd55598 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
36ed4f51 | 2158 | } |
d55e5bfc | 2159 | |
1bd55598 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
36ed4f51 | 2175 | #endif |
1bd55598 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d55e5bfc | 2180 | |
1bd55598 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
36ed4f51 | 2191 | } else { |
1bd55598 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
36ed4f51 | 2193 | } |
1bd55598 | 2194 | return SWIG_Py_Void(); |
36ed4f51 | 2195 | } |
1bd55598 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
36ed4f51 | 2199 | |
36ed4f51 | 2200 | SWIGRUNTIME PyObject * |
1bd55598 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
36ed4f51 | 2202 | if (!ptr) { |
1bd55598 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
36ed4f51 | 2213 | } |
36ed4f51 | 2214 | } |
1bd55598 | 2215 | return robj; |
36ed4f51 | 2216 | } |
36ed4f51 RD |
2217 | } |
2218 | ||
1bd55598 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
36ed4f51 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
1bd55598 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
36ed4f51 RD |
2224 | } |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
36ed4f51 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2241 | #else | |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
36ed4f51 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
36ed4f51 RD |
2251 | } |
2252 | ||
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1bd55598 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
1bd55598 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
1bd55598 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
1bd55598 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
1bd55598 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
1bd55598 | 2281 | return SWIG_OK; |
36ed4f51 | 2282 | } |
32fe5131 | 2283 | #endif |
36ed4f51 | 2284 | |
1bd55598 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
1bd55598 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1bd55598 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
36ed4f51 | 2314 | |
1bd55598 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
36ed4f51 | 2320 | } |
36ed4f51 | 2321 | |
1bd55598 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
2131d850 RD |
2466 | #define SWIGTYPE_p_bool swig_types[0] |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
2468 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
2469 | #define SWIGTYPE_p_int swig_types[3] | |
2470 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
2473 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
2474 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
2475 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
2476 | #define SWIGTYPE_p_wxArrayInt swig_types[10] | |
2477 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
2478 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
2479 | #define SWIGTYPE_p_wxBoxSizer swig_types[13] | |
2480 | #define SWIGTYPE_p_wxCURHandler swig_types[14] | |
2481 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[15] | |
2482 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[16] | |
2483 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[17] | |
2484 | #define SWIGTYPE_p_wxCloseEvent swig_types[18] | |
2485 | #define SWIGTYPE_p_wxColour swig_types[19] | |
2486 | #define SWIGTYPE_p_wxColourData swig_types[20] | |
2487 | #define SWIGTYPE_p_wxColourDialog swig_types[21] | |
2488 | #define SWIGTYPE_p_wxCommandEvent swig_types[22] | |
2489 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[23] | |
2490 | #define SWIGTYPE_p_wxControl swig_types[24] | |
2491 | #define SWIGTYPE_p_wxControlWithItems swig_types[25] | |
2492 | #define SWIGTYPE_p_wxDC swig_types[26] | |
2493 | #define SWIGTYPE_p_wxDateEvent swig_types[27] | |
2494 | #define SWIGTYPE_p_wxDialog swig_types[28] | |
2495 | #define SWIGTYPE_p_wxDirDialog swig_types[29] | |
2496 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[30] | |
2497 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxDuplexMode swig_types[32] | |
2499 | #define SWIGTYPE_p_wxEraseEvent swig_types[33] | |
2500 | #define SWIGTYPE_p_wxEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxEvtHandler swig_types[35] | |
2502 | #define SWIGTYPE_p_wxFSFile swig_types[36] | |
2503 | #define SWIGTYPE_p_wxFileDialog swig_types[37] | |
2504 | #define SWIGTYPE_p_wxFileSystem swig_types[38] | |
2505 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[39] | |
2506 | #define SWIGTYPE_p_wxFindReplaceData swig_types[40] | |
2507 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[41] | |
2508 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[42] | |
2509 | #define SWIGTYPE_p_wxFocusEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxFont swig_types[44] | |
2511 | #define SWIGTYPE_p_wxFontData swig_types[45] | |
2512 | #define SWIGTYPE_p_wxFontDialog swig_types[46] | |
2513 | #define SWIGTYPE_p_wxFrame swig_types[47] | |
2514 | #define SWIGTYPE_p_wxGBSizerItem swig_types[48] | |
2515 | #define SWIGTYPE_p_wxGIFHandler swig_types[49] | |
2516 | #define SWIGTYPE_p_wxGridBagSizer swig_types[50] | |
2517 | #define SWIGTYPE_p_wxGridSizer swig_types[51] | |
2518 | #define SWIGTYPE_p_wxHtmlLinkInfo swig_types[52] | |
2519 | #define SWIGTYPE_p_wxICOHandler swig_types[53] | |
2520 | #define SWIGTYPE_p_wxIcon swig_types[54] | |
2521 | #define SWIGTYPE_p_wxIconBundle swig_types[55] | |
2522 | #define SWIGTYPE_p_wxIconizeEvent swig_types[56] | |
2523 | #define SWIGTYPE_p_wxIdleEvent swig_types[57] | |
2524 | #define SWIGTYPE_p_wxImage swig_types[58] | |
2525 | #define SWIGTYPE_p_wxImageHandler swig_types[59] | |
2526 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60] | |
2527 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[61] | |
2528 | #define SWIGTYPE_p_wxJPEGHandler swig_types[62] | |
2529 | #define SWIGTYPE_p_wxKeyEvent swig_types[63] | |
2530 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[64] | |
2531 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[65] | |
2532 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[66] | |
2533 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[67] | |
2534 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[68] | |
2535 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[69] | |
2536 | #define SWIGTYPE_p_wxMenu swig_types[70] | |
2537 | #define SWIGTYPE_p_wxMenuBar swig_types[71] | |
2538 | #define SWIGTYPE_p_wxMenuEvent swig_types[72] | |
2539 | #define SWIGTYPE_p_wxMenuItem swig_types[73] | |
2540 | #define SWIGTYPE_p_wxMessageDialog swig_types[74] | |
2541 | #define SWIGTYPE_p_wxMiniFrame swig_types[75] | |
2542 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[76] | |
34e0a3bb RD |
2543 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[77] |
2544 | #define SWIGTYPE_p_wxMouseEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxMoveEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[80] | |
2547 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[81] | |
2548 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[82] | |
2549 | #define SWIGTYPE_p_wxNotifyEvent swig_types[83] | |
2550 | #define SWIGTYPE_p_wxNumberEntryDialog swig_types[84] | |
2551 | #define SWIGTYPE_p_wxObject swig_types[85] | |
2552 | #define SWIGTYPE_p_wxPCXHandler swig_types[86] | |
2553 | #define SWIGTYPE_p_wxPNGHandler swig_types[87] | |
2554 | #define SWIGTYPE_p_wxPNMHandler swig_types[88] | |
2555 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[89] | |
2556 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[90] | |
2557 | #define SWIGTYPE_p_wxPaintEvent swig_types[91] | |
2558 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxPanel swig_types[93] | |
2560 | #define SWIGTYPE_p_wxPaperSize swig_types[94] | |
2561 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[95] | |
2562 | #define SWIGTYPE_p_wxPoint swig_types[96] | |
2563 | #define SWIGTYPE_p_wxPopupWindow swig_types[97] | |
2564 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[98] | |
2565 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[99] | |
2566 | #define SWIGTYPE_p_wxPreviewFrame swig_types[100] | |
2567 | #define SWIGTYPE_p_wxPrintData swig_types[101] | |
2568 | #define SWIGTYPE_p_wxPrintDialog swig_types[102] | |
2569 | #define SWIGTYPE_p_wxPrintDialogData swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPrintPreview swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPrinter swig_types[105] | |
2572 | #define SWIGTYPE_p_wxProgressDialog swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPyApp swig_types[107] | |
2574 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPyEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPyImageHandler swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPyPanel swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyPrintout swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPySizer swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPyVListBox swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPyValidator swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyWindow swig_types[124] | |
2591 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[125] | |
2592 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126] | |
2593 | #define SWIGTYPE_p_wxRect swig_types[127] | |
2594 | #define SWIGTYPE_p_wxRegion swig_types[128] | |
2595 | #define SWIGTYPE_p_wxSashEvent swig_types[129] | |
2596 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[130] | |
2597 | #define SWIGTYPE_p_wxSashWindow swig_types[131] | |
2598 | #define SWIGTYPE_p_wxScrollEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrolledWindow swig_types[134] | |
2601 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxShowEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSize swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSizeEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSizer swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSizerItem swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSplashScreen swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSplitterEvent swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSplitterWindow swig_types[145] | |
2612 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStatusBar swig_types[147] | |
2614 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[148] | |
2615 | #define SWIGTYPE_p_wxString swig_types[149] | |
2616 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[150] | |
2617 | #define SWIGTYPE_p_wxTIFFHandler swig_types[151] | |
2618 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[152] | |
2619 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[153] | |
2620 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTipWindow swig_types[155] | |
2622 | #define SWIGTYPE_p_wxToolBar swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[157] | |
2624 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[158] | |
2625 | #define SWIGTYPE_p_wxValidator swig_types[159] | |
2626 | #define SWIGTYPE_p_wxVisualAttributes swig_types[160] | |
2627 | #define SWIGTYPE_p_wxWindow swig_types[161] | |
2628 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[162] | |
2629 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[163] | |
2630 | #define SWIGTYPE_p_wxXPMHandler swig_types[164] | |
2631 | static swig_type_info *swig_types[166]; | |
2632 | static swig_module_info swig_module = {swig_types, 165, 0, 0, 0, 0}; | |
32fe5131 RD |
2633 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2634 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
36ed4f51 RD |
2635 | |
2636 | /* -------- TYPES TABLE (END) -------- */ | |
2637 | ||
1bd55598 RD |
2638 | #if (PY_VERSION_HEX <= 0x02000000) |
2639 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2640 | # error "This python version requires to use swig with the '-classic' option" | |
2641 | # endif | |
2642 | #endif | |
2643 | #if (PY_VERSION_HEX <= 0x02020000) | |
2644 | # error "This python version requires to use swig with the '-nomodern' option" | |
2645 | #endif | |
2646 | #if (PY_VERSION_HEX <= 0x02020000) | |
2647 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2648 | #endif | |
2649 | #ifndef METH_O | |
2650 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2651 | #endif | |
36ed4f51 RD |
2652 | |
2653 | /*----------------------------------------------- | |
2654 | @(target):= _windows_.so | |
2655 | ------------------------------------------------*/ | |
2656 | #define SWIG_init init_windows_ | |
2657 | ||
2658 | #define SWIG_name "_windows_" | |
2659 | ||
1bd55598 | 2660 | #define SWIGVERSION 0x010329 |
36ed4f51 | 2661 | |
36ed4f51 | 2662 | |
1bd55598 RD |
2663 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2664 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
36ed4f51 RD |
2665 | |
2666 | ||
1bd55598 | 2667 | #include <stdexcept> |
36ed4f51 RD |
2668 | |
2669 | ||
1bd55598 RD |
2670 | namespace swig { |
2671 | class PyObject_ptr { | |
2672 | protected: | |
2673 | PyObject *_obj; | |
36ed4f51 | 2674 | |
1bd55598 RD |
2675 | public: |
2676 | PyObject_ptr() :_obj(0) | |
2677 | { | |
2678 | } | |
36ed4f51 | 2679 | |
1bd55598 RD |
2680 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) |
2681 | { | |
2682 | Py_XINCREF(_obj); | |
36ed4f51 | 2683 | } |
1bd55598 RD |
2684 | |
2685 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2686 | { | |
2687 | if (initial_ref) Py_XINCREF(_obj); | |
36ed4f51 | 2688 | } |
1bd55598 RD |
2689 | |
2690 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2691 | { | |
2692 | Py_XINCREF(item._obj); | |
2693 | Py_XDECREF(_obj); | |
2694 | _obj = item._obj; | |
2695 | return *this; | |
2696 | } | |
2697 | ||
2698 | ~PyObject_ptr() | |
2699 | { | |
2700 | Py_XDECREF(_obj); | |
2701 | } | |
2702 | ||
2703 | operator PyObject *() const | |
2704 | { | |
2705 | return _obj; | |
2706 | } | |
2707 | ||
2708 | PyObject *operator->() const | |
2709 | { | |
2710 | return _obj; | |
2711 | } | |
2712 | }; | |
36ed4f51 RD |
2713 | } |
2714 | ||
2715 | ||
1bd55598 RD |
2716 | namespace swig { |
2717 | struct PyObject_var : PyObject_ptr { | |
2718 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2719 | ||
2720 | PyObject_var & operator = (PyObject* obj) | |
2721 | { | |
2722 | Py_XDECREF(_obj); | |
2723 | _obj = obj; | |
2724 | return *this; | |
36ed4f51 | 2725 | } |
1bd55598 | 2726 | }; |
36ed4f51 | 2727 | } |
36ed4f51 RD |
2728 | |
2729 | ||
1bd55598 RD |
2730 | #include "wx/wxPython/wxPython.h" |
2731 | #include "wx/wxPython/pyclasses.h" | |
2732 | ||
36ed4f51 | 2733 | |
1bd55598 RD |
2734 | static const wxString wxPyEmptyString(wxEmptyString); |
2735 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
36ed4f51 | 2736 | |
36ed4f51 | 2737 | |
1bd55598 RD |
2738 | |
2739 | #include <limits.h> | |
2740 | #ifndef LLONG_MIN | |
2741 | # define LLONG_MIN LONG_LONG_MIN | |
2742 | #endif | |
2743 | #ifndef LLONG_MAX | |
2744 | # define LLONG_MAX LONG_LONG_MAX | |
2745 | #endif | |
2746 | #ifndef ULLONG_MAX | |
2747 | # define ULLONG_MAX ULONG_LONG_MAX | |
2748 | #endif | |
2749 | ||
2750 | ||
2751 | SWIGINTERN int | |
2752 | SWIG_AsVal_long (PyObject* obj, long* val) | |
36ed4f51 | 2753 | { |
1bd55598 RD |
2754 | if (PyNumber_Check(obj)) { |
2755 | if (val) *val = PyInt_AsLong(obj); | |
2756 | return SWIG_OK; | |
2757 | } | |
2758 | return SWIG_TypeError; | |
36ed4f51 RD |
2759 | } |
2760 | ||
1bd55598 RD |
2761 | |
2762 | SWIGINTERN int | |
2763 | SWIG_AsVal_int (PyObject * obj, int *val) | |
36ed4f51 | 2764 | { |
1bd55598 RD |
2765 | long v; |
2766 | int res = SWIG_AsVal_long (obj, &v); | |
2767 | if (SWIG_IsOK(res)) { | |
2768 | if ((v < INT_MIN || v > INT_MAX)) { | |
2769 | return SWIG_OverflowError; | |
2770 | } else { | |
2771 | if (val) *val = static_cast< int >(v); | |
2772 | } | |
2773 | } | |
2774 | return res; | |
36ed4f51 RD |
2775 | } |
2776 | ||
2777 | ||
2778 | SWIGINTERN int | |
1bd55598 | 2779 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
36ed4f51 RD |
2780 | { |
2781 | if (obj == Py_True) { | |
2782 | if (val) *val = true; | |
1bd55598 RD |
2783 | return SWIG_OK; |
2784 | } else if (obj == Py_False) { | |
36ed4f51 | 2785 | if (val) *val = false; |
1bd55598 | 2786 | return SWIG_OK; |
36ed4f51 | 2787 | } else { |
1bd55598 RD |
2788 | long v = 0; |
2789 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2790 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2791 | return res; | |
36ed4f51 | 2792 | } |
36ed4f51 RD |
2793 | } |
2794 | ||
2795 | ||
1bd55598 | 2796 | #define SWIG_From_long PyInt_FromLong |
36ed4f51 RD |
2797 | |
2798 | ||
1bd55598 RD |
2799 | SWIGINTERNINLINE PyObject * |
2800 | SWIG_From_int (int value) | |
2801 | { | |
2802 | return SWIG_From_long (value); | |
2803 | } | |
36ed4f51 RD |
2804 | |
2805 | ||
2806 | SWIGINTERN int | |
1bd55598 | 2807 | SWIG_AsVal_double (PyObject *obj, double* val) |
36ed4f51 RD |
2808 | { |
2809 | if (PyNumber_Check(obj)) { | |
2810 | if (val) *val = PyFloat_AsDouble(obj); | |
1bd55598 | 2811 | return SWIG_OK; |
36ed4f51 | 2812 | } |
1bd55598 | 2813 | return SWIG_TypeError; |
36ed4f51 RD |
2814 | } |
2815 | ||
2816 | ||
1bd55598 | 2817 | #define SWIG_From_double PyFloat_FromDouble |
36ed4f51 RD |
2818 | |
2819 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
2820 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
2821 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
2822 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
1bd55598 RD |
2823 | SWIGINTERN void wxTopLevelWindow_MacSetMetalAppearance(wxTopLevelWindow *self,bool on){ |
2824 | int style = self->GetExtraStyle(); | |
2825 | if ( on ) | |
2826 | style |= wxFRAME_EX_METAL; | |
2827 | else | |
2828 | style &= ~wxFRAME_EX_METAL; | |
2829 | self->SetExtraStyle(style); | |
2830 | } | |
10044bf1 RD |
2831 | SWIGINTERN bool wxTopLevelWindow_EnableCloseButton(wxTopLevelWindow *self,bool enable=true){ return false; } |
2832 | ||
36ed4f51 | 2833 | |
1bd55598 | 2834 | SWIGINTERN wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ |
36ed4f51 RD |
2835 | wxRect r; |
2836 | self->GetFieldRect(i, r); | |
2837 | return r; | |
2838 | } | |
2839 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
2840 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
2841 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
2842 | ||
2843 | #include <wx/popupwin.h> | |
2844 | ||
2845 | ||
2846 | class wxPopupWindow : public wxWindow { | |
2847 | public: | |
2848 | wxPopupWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
2849 | wxPopupWindow() { wxPyRaiseNotImplemented(); } | |
2850 | }; | |
2851 | ||
2852 | class wxPyPopupTransientWindow : public wxPopupWindow | |
2853 | { | |
2854 | public: | |
2855 | wxPyPopupTransientWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
2856 | wxPyPopupTransientWindow() { wxPyRaiseNotImplemented(); } | |
2857 | }; | |
2858 | ||
2859 | ||
2860 | #include <wx/tipwin.h> | |
2861 | ||
1bd55598 | 2862 | SWIGINTERN wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength=100,wxRect *rectBound=NULL){ |
36ed4f51 RD |
2863 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); |
2864 | } | |
2865 | ||
2866 | #include <wx/tipwin.h> | |
2867 | ||
2868 | ||
2869 | #include <wx/vscroll.h> | |
2870 | ||
2871 | ||
2872 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
2873 | { | |
32fe5131 | 2874 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow) |
36ed4f51 RD |
2875 | public: |
2876 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
2877 | ||
2878 | wxPyVScrolledWindow(wxWindow *parent, | |
2879 | wxWindowID id = wxID_ANY, | |
2880 | const wxPoint& pos = wxDefaultPosition, | |
2881 | const wxSize& size = wxDefaultSize, | |
2882 | long style = 0, | |
2883 | const wxString& name = wxPyPanelNameStr) | |
2884 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
2885 | {} | |
2886 | ||
2887 | // Overridable virtuals | |
2888 | ||
2889 | // this function must be overridden in the derived class and it should | |
2890 | // return the height of the given line in pixels | |
2891 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
2892 | ||
2893 | ||
2894 | // this function doesn't have to be overridden but it may be useful to do | |
2895 | // it if calculating the lines heights is a relatively expensive operation | |
2896 | // as it gives the user code a possibility to calculate several of them at | |
2897 | // once | |
2898 | // | |
2899 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
2900 | // shouldn't rely on the latter being called for all lines in the interval | |
2901 | // specified here. It is also possible that OnGetLineHeight() will be | |
2902 | // called for the lines outside of this interval, so this is really just a | |
2903 | // hint, not a promise. | |
2904 | // | |
2905 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
2906 | // usual | |
2907 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
2908 | ||
2909 | ||
2910 | // when the number of lines changes, we try to estimate the total height | |
2911 | // of all lines which is a rather expensive operation in terms of lines | |
2912 | // access, so if the user code may estimate the average height | |
2913 | // better/faster than we do, it should override this function to implement | |
2914 | // its own logic | |
2915 | // | |
2916 | // this function should return the best guess for the total height it may | |
2917 | // make | |
2918 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
2919 | ||
2920 | ||
2921 | // Also expose some other interesting protected methods | |
2922 | ||
2923 | ||
2924 | // find the index of the line we need to show at the top of the window such | |
2925 | // that the last (fully or partially) visible line is the given one | |
2926 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = false) | |
2927 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
2928 | ||
2929 | // get the total height of the lines between lineMin (inclusive) and | |
2930 | // lineMax (exclusive) | |
2931 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
2932 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
2933 | ||
2131d850 RD |
2934 | // update the thumb size shown by the scrollbar |
2935 | void UpdateScrollbar() { wxVScrolledWindow::UpdateScrollbar(); } | |
2936 | ||
2937 | // remove the scrollbar completely because we don't need it | |
2938 | void RemoveScrollbar() { wxVScrolledWindow::RemoveScrollbar(); } | |
36ed4f51 RD |
2939 | |
2940 | PYPRIVATE; | |
2941 | }; | |
2942 | ||
2943 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
d55e5bfc RD |
2944 | |
2945 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
2946 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
2947 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
2948 | ||
2949 | ||
fc46b7f3 RD |
2950 | SWIGINTERN int |
2951 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2952 | { | |
2953 | long v = 0; | |
2954 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2955 | return SWIG_TypeError; | |
2956 | } | |
2957 | else if (val) | |
2958 | *val = (unsigned long)v; | |
2959 | return SWIG_OK; | |
2960 | } | |
2961 | ||
2962 | ||
32fe5131 | 2963 | SWIGINTERNINLINE int |
1bd55598 | 2964 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
c370783e | 2965 | { |
1bd55598 RD |
2966 | unsigned long v; |
2967 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
2968 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2969 | return res; | |
d55e5bfc RD |
2970 | } |
2971 | ||
2972 | ||
32fe5131 | 2973 | SWIGINTERNINLINE PyObject* |
1bd55598 | 2974 | SWIG_From_unsigned_SS_long (unsigned long value) |
d55e5bfc RD |
2975 | { |
2976 | return (value > LONG_MAX) ? | |
1bd55598 RD |
2977 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); |
2978 | } | |
2979 | ||
2980 | ||
2981 | SWIGINTERNINLINE PyObject * | |
2982 | SWIG_From_size_t (size_t value) | |
2983 | { | |
2984 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
d55e5bfc RD |
2985 | } |
2986 | ||
2987 | ||
2988 | #include <wx/vlbox.h> | |
2989 | ||
2990 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
2991 | ||
2992 | class wxPyVListBox : public wxVListBox | |
2993 | { | |
32fe5131 | 2994 | DECLARE_ABSTRACT_CLASS(wxPyVListBox) |
d55e5bfc RD |
2995 | public: |
2996 | wxPyVListBox() : wxVListBox() {} | |
2997 | ||
2998 | wxPyVListBox(wxWindow *parent, | |
2999 | wxWindowID id = wxID_ANY, | |
3000 | const wxPoint& pos = wxDefaultPosition, | |
3001 | const wxSize& size = wxDefaultSize, | |
3002 | long style = 0, | |
3003 | const wxString& name = wxPyVListBoxNameStr) | |
3004 | : wxVListBox(parent, id, pos, size, style, name) | |
3005 | {} | |
3006 | ||
3007 | // Overridable virtuals | |
3008 | ||
3009 | // the derived class must implement this function to actually draw the item | |
3010 | // with the given index on the provided DC | |
3011 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
3012 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
3013 | ||
3014 | ||
3015 | // the derived class must implement this method to return the height of the | |
3016 | // specified item | |
3017 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
3018 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
3019 | ||
3020 | ||
3021 | // this method may be used to draw separators between the lines; note that | |
3022 | // the rectangle may be modified, typically to deflate it a bit before | |
3023 | // passing to OnDrawItem() | |
3024 | // | |
3025 | // the base class version doesn't do anything | |
3026 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
1c71765a | 3027 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); |
d55e5bfc RD |
3028 | |
3029 | ||
3030 | // this method is used to draw the items background and, maybe, a border | |
3031 | // around it | |
3032 | // | |
3033 | // the base class version implements a reasonable default behaviour which | |
3034 | // consists in drawing the selected item with the standard background | |
3035 | // colour and drawing a border around the item if it is either selected or | |
3036 | // current | |
3037 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
3038 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3039 | ||
3040 | ||
3041 | PYPRIVATE; | |
3042 | }; | |
3043 | ||
3044 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
3045 | ||
3046 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
3047 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
1c71765a | 3048 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyVListBox, wxVListBox, OnDrawSeparator); |
d55e5bfc RD |
3049 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); |
3050 | ||
3051 | ||
1bd55598 | 3052 | SWIGINTERN PyObject *wxPyVListBox_GetFirstSelected(wxPyVListBox *self){ |
09c21d3b RD |
3053 | unsigned long cookie = 0; |
3054 | int selected = self->GetFirstSelected(cookie); | |
5a446332 | 3055 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3056 | PyObject* tup = PyTuple_New(2); |
3057 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3058 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3059 | wxPyEndBlockThreads(blocked); | |
3060 | return tup; | |
3061 | } | |
1bd55598 | 3062 | SWIGINTERN PyObject *wxPyVListBox_GetNextSelected(wxPyVListBox *self,unsigned long cookie){ |
09c21d3b | 3063 | int selected = self->GetNextSelected(cookie); |
5a446332 | 3064 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3065 | PyObject* tup = PyTuple_New(2); |
3066 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3067 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3068 | wxPyEndBlockThreads(blocked); | |
3069 | return tup; | |
3070 | } | |
d55e5bfc RD |
3071 | |
3072 | #include <wx/htmllbox.h> | |
3073 | ||
3074 | ||
3075 | class wxPyHtmlListBox : public wxHtmlListBox | |
3076 | { | |
32fe5131 | 3077 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox) |
d55e5bfc RD |
3078 | public: |
3079 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
3080 | ||
3081 | wxPyHtmlListBox(wxWindow *parent, | |
3082 | wxWindowID id = wxID_ANY, | |
3083 | const wxPoint& pos = wxDefaultPosition, | |
3084 | const wxSize& size = wxDefaultSize, | |
3085 | long style = 0, | |
3086 | const wxString& name = wxPyVListBoxNameStr) | |
3087 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
3088 | {} | |
3089 | ||
3090 | // Overridable virtuals | |
3091 | ||
3092 | // this method must be implemented in the derived class and should return | |
3093 | // the body (i.e. without <html>) of the HTML for the given item | |
3094 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
3095 | ||
3096 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
3097 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
3098 | ||
1c71765a RD |
3099 | // These are from wxVListBox |
3100 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); | |
3101 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3102 | ||
d55e5bfc RD |
3103 | // TODO: |
3104 | // // this method allows to customize the selection appearance: it may be used | |
3105 | // // to specify the colour of the text which normally has the given colour | |
3106 | // // colFg when it is inside the selection | |
3107 | // // | |
3108 | // // by default, the original colour is not used at all and all text has the | |
3109 | // // same (default for this system) colour inside selection | |
3110 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
3111 | ||
3112 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
3113 | // // background colour -- this is even more rarely used as you can change it | |
3114 | // // globally using SetSelectionBackground() | |
3115 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
3116 | ||
e9d6f3a4 RD |
3117 | |
3118 | // This method may be overriden to handle clicking on a link in | |
3119 | // the listbox. By default, clicking links is ignored. | |
3120 | virtual void OnLinkClicked(size_t n, | |
3121 | const wxHtmlLinkInfo& link); | |
d55e5bfc RD |
3122 | |
3123 | PYPRIVATE; | |
3124 | }; | |
3125 | ||
3126 | ||
3127 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
3128 | ||
3129 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
3130 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
1c71765a RD |
3131 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawSeparator); |
3132 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawBackground); | |
d55e5bfc RD |
3133 | |
3134 | ||
e9d6f3a4 RD |
3135 | void wxPyHtmlListBox::OnLinkClicked(size_t n, |
3136 | const wxHtmlLinkInfo& link) { | |
3137 | bool found; | |
3138 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3139 | if ((found = wxPyCBH_findCallback(m_myInst, "OnLinkClicked"))) { | |
3140 | PyObject* obj = wxPyConstructObject((void*)&link, wxT("wxHtmlLinkInfo"), 0); | |
3141 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", n, obj)); | |
3142 | Py_DECREF(obj); | |
3143 | } | |
3144 | wxPyEndBlockThreads(blocked); | |
3145 | if (! found) | |
3146 | wxPyHtmlListBox::OnLinkClicked(n, link); | |
3147 | } | |
3148 | ||
3149 | ||
d55e5bfc RD |
3150 | |
3151 | ||
3152 | ||
b411df4a RD |
3153 | #ifndef wxHAS_TASK_BAR_ICON |
3154 | // implement dummy classes for platforms that don't have it | |
d55e5bfc RD |
3155 | |
3156 | class wxTaskBarIcon : public wxEvtHandler | |
3157 | { | |
3158 | public: | |
3159 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
3160 | }; | |
09c21d3b | 3161 | |
d55e5bfc RD |
3162 | |
3163 | class wxTaskBarIconEvent : public wxEvent | |
3164 | { | |
3165 | public: | |
3166 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
3167 | { wxPyRaiseNotImplemented(); } | |
3168 | virtual wxEvent* Clone() const { return NULL; } | |
b411df4a RD |
3169 | bool IsOk() const { return false; } |
3170 | bool IsIconInstalled() const { return false; } | |
3171 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString) { return false; } | |
3172 | bool RemoveIcon() { return false; } | |
3173 | bool PopupMenu(wxMenu *menu) { return false; } | |
d55e5bfc RD |
3174 | }; |
3175 | ||
3176 | enum { | |
3177 | wxEVT_TASKBAR_MOVE = 0, | |
3178 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
3179 | wxEVT_TASKBAR_LEFT_UP = 0, | |
3180 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
3181 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
3182 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
3183 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
3184 | }; | |
09c21d3b RD |
3185 | |
3186 | ||
3187 | #else | |
5e483524 RD |
3188 | // Otherwise make a class that can virtualize CreatePopupMenu |
3189 | class wxPyTaskBarIcon : public wxTaskBarIcon | |
3190 | { | |
32fe5131 | 3191 | DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon) |
5e483524 RD |
3192 | public: |
3193 | wxPyTaskBarIcon() : wxTaskBarIcon() | |
3194 | {} | |
09c21d3b | 3195 | |
5e483524 RD |
3196 | wxMenu* CreatePopupMenu() { |
3197 | wxMenu *rval = NULL; | |
3198 | bool found; | |
5a446332 | 3199 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
5e483524 RD |
3200 | if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { |
3201 | PyObject* ro; | |
3202 | wxMenu* ptr; | |
3203 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3204 | if (ro) { | |
3205 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu"))) | |
3206 | rval = ptr; | |
3207 | Py_DECREF(ro); | |
3208 | } | |
3209 | } | |
3210 | wxPyEndBlockThreads(blocked); | |
3211 | if (! found) | |
3212 | rval = wxTaskBarIcon::CreatePopupMenu(); | |
3213 | return rval; | |
3214 | } | |
d55e5bfc | 3215 | |
5e483524 RD |
3216 | PYPRIVATE; |
3217 | }; | |
d55e5bfc | 3218 | |
5e483524 | 3219 | IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon); |
d55e5bfc | 3220 | |
5e483524 RD |
3221 | #endif |
3222 | ||
1bd55598 | 3223 | SWIGINTERN void wxPyTaskBarIcon_Destroy(wxPyTaskBarIcon *self){ |
5e483524 RD |
3224 | self->RemoveIcon(); |
3225 | delete self; | |
d55e5bfc RD |
3226 | } |
3227 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
3228 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3229 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
3230 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3231 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
3232 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
b02396e8 RD |
3233 | |
3234 | // for compatibility only | |
3235 | #define wxHIDE_READONLY 0 | |
3236 | ||
1bd55598 | 3237 | SWIGINTERN PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
d55e5bfc RD |
3238 | wxArrayString arr; |
3239 | self->GetFilenames(arr); | |
3240 | return wxArrayString2PyList_helper(arr); | |
3241 | } | |
1bd55598 | 3242 | SWIGINTERN PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ |
d55e5bfc RD |
3243 | wxArrayString arr; |
3244 | self->GetPaths(arr); | |
3245 | return wxArrayString2PyList_helper(arr); | |
3246 | } | |
1bd55598 | 3247 | SWIGINTERN PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ |
d55e5bfc RD |
3248 | return wxArrayInt2PyList_helper(self->GetSelections()); |
3249 | } | |
1bd55598 | 3250 | SWIGINTERN wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style=wxCHOICEDLG_STYLE,wxPoint const &pos=wxDefaultPosition){ |
d55e5bfc RD |
3251 | return new wxSingleChoiceDialog(parent, message, caption, |
3252 | choices, choices_array, NULL, style, pos); | |
3253 | } | |
070c48b4 | 3254 | static const wxString wxPyGetPasswordFromUserPromptStr(wxGetPasswordFromUserPromptStr); |
d55e5bfc | 3255 | |
2131d850 RD |
3256 | SWIGINTERNINLINE PyObject* |
3257 | SWIG_From_bool (bool value) | |
3258 | { | |
3259 | return PyBool_FromLong(value ? 1 : 0); | |
3260 | } | |
3261 | ||
3262 | ||
d55e5bfc RD |
3263 | #include <wx/mdi.h> |
3264 | ||
3265 | // C++ version of Python aware wxWindow | |
3266 | class wxPyWindow : public wxWindow | |
3267 | { | |
3268 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
3269 | public: | |
3270 | wxPyWindow() : wxWindow() {} | |
3271 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
3272 | const wxPoint& pos = wxDefaultPosition, | |
3273 | const wxSize& size = wxDefaultSize, | |
3274 | long style = 0, | |
3275 | const wxString& name = wxPyPanelNameStr) | |
3276 | : wxWindow(parent, id, pos, size, style, name) {} | |
3277 | ||
a5ee0656 | 3278 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d55e5bfc | 3279 | |
976dbff5 RD |
3280 | bool DoEraseBackground(wxDC* dc) { |
3281 | #ifdef __WXMSW__ | |
3282 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3283 | #else | |
3284 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3285 | dc->Clear(); | |
3286 | return true; | |
3287 | #endif | |
3288 | } | |
3289 | ||
d55e5bfc RD |
3290 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3291 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3292 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3293 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3294 | ||
3295 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3296 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3297 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3298 | ||
3299 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3300 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3301 | ||
3302 | DEC_PYCALLBACK__(InitDialog); | |
3303 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3304 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3305 | DEC_PYCALLBACK_BOOL_(Validate); | |
3306 | ||
3307 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3308 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3309 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3310 | ||
3311 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3312 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3313 | ||
a5ee0656 | 3314 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3315 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3316 | |
51b83b37 RD |
3317 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3318 | ||
8d38bd1d RD |
3319 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3320 | ||
d55e5bfc RD |
3321 | PYPRIVATE; |
3322 | }; | |
3323 | ||
3324 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
3325 | ||
3326 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
3327 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
3328 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
3329 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
3330 | ||
3331 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
3332 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
3333 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
3334 | ||
3335 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
3336 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
3337 | ||
3338 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
3339 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
3340 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
3341 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
3342 | ||
3343 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
3344 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
3345 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
3346 | ||
3347 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
3348 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
3349 | ||
a5ee0656 | 3350 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
a5ee0656 | 3351 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
51b83b37 RD |
3352 | |
3353 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground); | |
d55e5bfc | 3354 | |
8d38bd1d RD |
3355 | IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle); |
3356 | ||
d55e5bfc RD |
3357 | // C++ version of Python aware wxPanel |
3358 | class wxPyPanel : public wxPanel | |
3359 | { | |
3360 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
3361 | public: | |
3362 | wxPyPanel() : wxPanel() {} | |
3363 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
3364 | const wxPoint& pos = wxDefaultPosition, | |
3365 | const wxSize& size = wxDefaultSize, | |
3366 | long style = 0, | |
3367 | const wxString& name = wxPyPanelNameStr) | |
3368 | : wxPanel(parent, id, pos, size, style, name) {} | |
3369 | ||
a5ee0656 | 3370 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
976dbff5 RD |
3371 | bool DoEraseBackground(wxDC* dc) { |
3372 | #ifdef __WXMSW__ | |
3373 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3374 | #else | |
3375 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3376 | dc->Clear(); | |
3377 | return true; | |
3378 | #endif | |
3379 | } | |
a5ee0656 | 3380 | |
d55e5bfc RD |
3381 | |
3382 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3383 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3384 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3385 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3386 | ||
3387 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3388 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3389 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3390 | ||
3391 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3392 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3393 | ||
3394 | DEC_PYCALLBACK__(InitDialog); | |
3395 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3396 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3397 | DEC_PYCALLBACK_BOOL_(Validate); | |
3398 | ||
3399 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3400 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3401 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3402 | ||
3403 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3404 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3405 | ||
a5ee0656 | 3406 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3407 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3408 | |
51b83b37 RD |
3409 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3410 | ||
8d38bd1d RD |
3411 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3412 | ||
d55e5bfc RD |
3413 | PYPRIVATE; |
3414 | }; | |
3415 | ||
3416 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
3417 | ||
3418 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
3419 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
3420 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
3421 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
3422 | ||
3423 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
3424 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
3425 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
3426 | ||
3427 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
3428 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
3429 | ||
3430 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
3431 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
3432 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
3433 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
3434 | ||
3435 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
3436 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
3437 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
3438 | ||
3439 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
3440 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
3441 | ||
a5ee0656 | 3442 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
a5ee0656 | 3443 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
d55e5bfc | 3444 | |
51b83b37 RD |
3445 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground); |
3446 | ||
8d38bd1d RD |
3447 | IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle); |
3448 | ||
d55e5bfc RD |
3449 | // C++ version of Python aware wxScrolledWindow |
3450 | class wxPyScrolledWindow : public wxScrolledWindow | |
3451 | { | |
3452 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
3453 | public: | |
3454 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
3455 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
3456 | const wxPoint& pos = wxDefaultPosition, | |
3457 | const wxSize& size = wxDefaultSize, | |
3458 | long style = 0, | |
3459 | const wxString& name = wxPyPanelNameStr) | |
3460 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
3461 | ||
a5ee0656 | 3462 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
976dbff5 RD |
3463 | bool DoEraseBackground(wxDC* dc) { |
3464 | #ifdef __WXMSW__ | |
3465 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3466 | #else | |
3467 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3468 | dc->Clear(); | |
3469 | return true; | |
3470 | #endif | |
3471 | } | |
d55e5bfc RD |
3472 | |
3473 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3474 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3475 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3476 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3477 | ||
3478 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3479 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3480 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3481 | ||
3482 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3483 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3484 | ||
3485 | DEC_PYCALLBACK__(InitDialog); | |
3486 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3487 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3488 | DEC_PYCALLBACK_BOOL_(Validate); | |
3489 | ||
3490 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3491 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3492 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3493 | ||
3494 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3495 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3496 | ||
a5ee0656 | 3497 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3498 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3499 | |
51b83b37 RD |
3500 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3501 | ||
8d38bd1d RD |
3502 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3503 | ||
d55e5bfc RD |
3504 | PYPRIVATE; |
3505 | }; | |
3506 | ||
3507 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
3508 | ||
3509 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
3510 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
3511 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
3512 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
3513 | ||
3514 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
3515 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
3516 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
3517 | ||
3518 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
3519 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
3520 | ||
3521 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
3522 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
3523 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
3524 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
3525 | ||
3526 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
3527 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
3528 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
3529 | ||
3530 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
3531 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
3532 | ||
a5ee0656 | 3533 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
a5ee0656 RD |
3534 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
3535 | ||
51b83b37 | 3536 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground); |
d55e5bfc | 3537 | |
8d38bd1d RD |
3538 | IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle); |
3539 | ||
d55e5bfc RD |
3540 | |
3541 | #include "wx/wxPython/printfw.h" | |
3542 | ||
3543 | ||
3544 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
3545 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
1bd55598 | 3546 | SWIGINTERN PyObject *wxPrintData_GetPrivData(wxPrintData *self){ |
7fbf8399 | 3547 | PyObject* data; |
5a446332 | 3548 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7fbf8399 RD |
3549 | data = PyString_FromStringAndSize(self->GetPrivData(), |
3550 | self->GetPrivDataLen()); | |
3551 | wxPyEndBlockThreads(blocked); | |
3552 | return data; | |
3553 | } | |
1bd55598 | 3554 | SWIGINTERN void wxPrintData_SetPrivData(wxPrintData *self,PyObject *data){ |
7fbf8399 RD |
3555 | if (! PyString_Check(data)) { |
3556 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
3557 | "Expected string object")); | |
3558 | return /* NULL */ ; | |
3559 | } | |
3560 | ||
5a446332 | 3561 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7fbf8399 RD |
3562 | self->SetPrivData(PyString_AS_STRING(data), PyString_GET_SIZE(data)); |
3563 | wxPyEndBlockThreads(blocked); | |
3564 | } | |
d55e5bfc RD |
3565 | |
3566 | ||
070c48b4 | 3567 | IMPLEMENT_ABSTRACT_CLASS(wxPyPrintout, wxPrintout); |
d55e5bfc RD |
3568 | |
3569 | // Since this one would be tough and ugly to do with the Macros... | |
3570 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
b411df4a | 3571 | bool hadErr = false; |
d55e5bfc RD |
3572 | bool found; |
3573 | ||
5a446332 | 3574 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3575 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { |
3576 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3577 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
3578 | PyObject* val; | |
3579 | ||
3580 | val = PyTuple_GetItem(result, 0); | |
3581 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
b411df4a | 3582 | else hadErr = true; |
d55e5bfc RD |
3583 | |
3584 | val = PyTuple_GetItem(result, 1); | |
3585 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
b411df4a | 3586 | else hadErr = true; |
d55e5bfc RD |
3587 | |
3588 | val = PyTuple_GetItem(result, 2); | |
3589 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
b411df4a | 3590 | else hadErr = true; |
d55e5bfc RD |
3591 | |
3592 | val = PyTuple_GetItem(result, 3); | |
3593 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
b411df4a | 3594 | else hadErr = true; |
d55e5bfc RD |
3595 | } |
3596 | else | |
b411df4a | 3597 | hadErr = true; |
d55e5bfc RD |
3598 | |
3599 | if (hadErr) { | |
3600 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
3601 | PyErr_Print(); | |
3602 | } | |
3603 | Py_DECREF(result); | |
3604 | } | |
3605 | wxPyEndBlockThreads(blocked); | |
3606 | if (! found) | |
3607 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
3608 | } | |
3609 | ||
d55e5bfc RD |
3610 | |
3611 | ||
3612 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
3613 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
3614 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
3615 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
3616 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
3617 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
3618 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
3619 | ||
3620 | ||
3621 | ||
3622 | ||
3623 | ||
b411df4a | 3624 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ |
7f7aa166 | 3625 | bool CBNAME(wxPreviewCanvas* a, wxDC& b) |
d55e5bfc RD |
3626 | |
3627 | ||
b411df4a RD |
3628 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ |
3629 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
3630 | bool rval=false; \ | |
3631 | bool found; \ | |
32fe5131 | 3632 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); \ |
b411df4a RD |
3633 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
3634 | PyObject* win = wxPyMake_wxObject(a,false); \ | |
3635 | PyObject* dc = wxPyMake_wxObject(&b,false); \ | |
3636 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc)); \ | |
3637 | Py_DECREF(win); \ | |
3638 | Py_DECREF(dc); \ | |
3639 | } \ | |
3640 | wxPyEndBlockThreads(blocked); \ | |
3641 | if (! found) \ | |
3642 | rval = PCLASS::CBNAME(a, b); \ | |
3643 | return rval; \ | |
7f7aa166 | 3644 | } |
d55e5bfc RD |
3645 | |
3646 | ||
3647 | ||
3648 | ||
3649 | class wxPyPrintPreview : public wxPrintPreview | |
3650 | { | |
3651 | DECLARE_CLASS(wxPyPrintPreview) | |
3652 | public: | |
3653 | wxPyPrintPreview(wxPyPrintout* printout, | |
3654 | wxPyPrintout* printoutForPrinting, | |
3655 | wxPrintDialogData* data=NULL) | |
3656 | : wxPrintPreview(printout, printoutForPrinting, data) | |
3657 | {} | |
3658 | wxPyPrintPreview(wxPyPrintout* printout, | |
3659 | wxPyPrintout* printoutForPrinting, | |
32fe5131 | 3660 | wxPrintData* data) |
d55e5bfc RD |
3661 | : wxPrintPreview(printout, printoutForPrinting, data) |
3662 | {} | |
3663 | ||
3664 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
3665 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
3666 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
3667 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
3668 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
3669 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
3670 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
3671 | ||
3672 | PYPRIVATE; | |
3673 | }; | |
3674 | ||
3675 | // Stupid renamed classes... Fix this in 2.5... | |
3676 | #if defined(__WXMSW__) | |
3677 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
3678 | #elif defined(__WXMAC__) | |
3679 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
3680 | #else | |
3681 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
3682 | #endif | |
3683 | ||
3684 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
3685 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
3686 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
3687 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
3688 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
3689 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
3690 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
3691 | ||
3692 | ||
3693 | class wxPyPreviewFrame : public wxPreviewFrame | |
3694 | { | |
32fe5131 | 3695 | DECLARE_CLASS(wxPyPreviewFrame) |
d55e5bfc RD |
3696 | public: |
3697 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
3698 | const wxString& title, | |
3699 | const wxPoint& pos = wxDefaultPosition, | |
3700 | const wxSize& size = wxDefaultSize, | |
3701 | long style = wxDEFAULT_FRAME_STYLE, | |
3702 | const wxString& name = wxPyFrameNameStr) | |
3703 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
3704 | {} | |
3705 | ||
3706 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
3707 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
3708 | ||
3709 | DEC_PYCALLBACK_VOID_(Initialize); | |
3710 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
3711 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
3712 | ||
3713 | PYPRIVATE; | |
3714 | }; | |
3715 | ||
3716 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
3717 | ||
3718 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
3719 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
3720 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
3721 | ||
3722 | ||
3723 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
3724 | { | |
32fe5131 | 3725 | DECLARE_CLASS(wxPyPreviewControlBar) |
d55e5bfc RD |
3726 | public: |
3727 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
3728 | long buttons, | |
3729 | wxWindow *parent, | |
3730 | const wxPoint& pos = wxDefaultPosition, | |
3731 | const wxSize& size = wxDefaultSize, | |
3732 | long style = 0, | |
3733 | const wxString& name = wxPyPanelNameStr) | |
3734 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
3735 | {} | |
3736 | ||
3737 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
3738 | ||
3739 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
3740 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
3741 | ||
3742 | PYPRIVATE; | |
3743 | }; | |
3744 | ||
3745 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
3746 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
3747 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
3748 | ||
3749 | #ifdef __cplusplus | |
3750 | extern "C" { | |
3751 | #endif | |
1bd55598 RD |
3752 | SWIGINTERN PyObject *_wrap_new_Panel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3753 | PyObject *resultobj = 0; | |
3754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3755 | int arg2 = (int) (int)-1 ; | |
3756 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3757 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3758 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3759 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3760 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3761 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
3762 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3763 | wxPanel *result = 0 ; | |
3764 | void *argp1 = 0 ; | |
3765 | int res1 = 0 ; | |
3766 | int val2 ; | |
3767 | int ecode2 = 0 ; | |
3768 | wxPoint temp3 ; | |
3769 | wxSize temp4 ; | |
3770 | long val5 ; | |
3771 | int ecode5 = 0 ; | |
3772 | bool temp6 = false ; | |
3773 | PyObject * obj0 = 0 ; | |
3774 | PyObject * obj1 = 0 ; | |
3775 | PyObject * obj2 = 0 ; | |
3776 | PyObject * obj3 = 0 ; | |
3777 | PyObject * obj4 = 0 ; | |
3778 | PyObject * obj5 = 0 ; | |
3779 | char * kwnames[] = { | |
3780 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3781 | }; | |
3782 | ||
3783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
3784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3785 | if (!SWIG_IsOK(res1)) { | |
3786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Panel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3787 | } | |
3788 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3789 | if (obj1) { | |
3790 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3791 | if (!SWIG_IsOK(ecode2)) { | |
3792 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Panel" "', expected argument " "2"" of type '" "int""'"); | |
3793 | } | |
3794 | arg2 = static_cast< int >(val2); | |
3795 | } | |
3796 | if (obj2) { | |
d55e5bfc | 3797 | { |
1bd55598 RD |
3798 | arg3 = &temp3; |
3799 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 3800 | } |
1bd55598 RD |
3801 | } |
3802 | if (obj3) { | |
d55e5bfc | 3803 | { |
1bd55598 RD |
3804 | arg4 = &temp4; |
3805 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3806 | } |
1bd55598 RD |
3807 | } |
3808 | if (obj4) { | |
3809 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
3810 | if (!SWIG_IsOK(ecode5)) { | |
3811 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Panel" "', expected argument " "5"" of type '" "long""'"); | |
3812 | } | |
3813 | arg5 = static_cast< long >(val5); | |
3814 | } | |
3815 | if (obj5) { | |
d55e5bfc | 3816 | { |
1bd55598 RD |
3817 | arg6 = wxString_in_helper(obj5); |
3818 | if (arg6 == NULL) SWIG_fail; | |
3819 | temp6 = true; | |
3820 | } | |
3821 | } | |
3822 | { | |
3823 | if (!wxPyCheckForApp()) SWIG_fail; | |
3824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3825 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3826 | wxPyEndAllowThreads(__tstate); | |
3827 | if (PyErr_Occurred()) SWIG_fail; | |
3828 | } | |
3829 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_NEW | 0 ); | |
3830 | { | |
3831 | if (temp6) | |
3832 | delete arg6; | |
3833 | } | |
3834 | return resultobj; | |
3835 | fail: | |
3836 | { | |
3837 | if (temp6) | |
3838 | delete arg6; | |
3839 | } | |
3840 | return NULL; | |
d55e5bfc RD |
3841 | } |
3842 | ||
3843 | ||
1bd55598 RD |
3844 | SWIGINTERN PyObject *_wrap_new_PrePanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3845 | PyObject *resultobj = 0; | |
3846 | wxPanel *result = 0 ; | |
3847 | ||
3848 | if (!SWIG_Python_UnpackTuple(args,"new_PrePanel",0,0,0)) SWIG_fail; | |
3849 | { | |
3850 | if (!wxPyCheckForApp()) SWIG_fail; | |
3851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3852 | result = (wxPanel *)new wxPanel(); | |
3853 | wxPyEndAllowThreads(__tstate); | |
3854 | if (PyErr_Occurred()) SWIG_fail; | |
3855 | } | |
3856 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_OWN | 0 ); | |
3857 | return resultobj; | |
3858 | fail: | |
3859 | return NULL; | |
3860 | } | |
3861 | ||
3862 | ||
3863 | SWIGINTERN PyObject *_wrap_Panel_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3864 | PyObject *resultobj = 0; | |
3865 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3866 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3867 | int arg3 = (int) (int)-1 ; | |
3868 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3869 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3870 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3871 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3872 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3873 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
3874 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3875 | bool result; | |
3876 | void *argp1 = 0 ; | |
3877 | int res1 = 0 ; | |
3878 | void *argp2 = 0 ; | |
3879 | int res2 = 0 ; | |
3880 | int val3 ; | |
3881 | int ecode3 = 0 ; | |
3882 | wxPoint temp4 ; | |
3883 | wxSize temp5 ; | |
3884 | long val6 ; | |
3885 | int ecode6 = 0 ; | |
3886 | bool temp7 = false ; | |
3887 | PyObject * obj0 = 0 ; | |
3888 | PyObject * obj1 = 0 ; | |
3889 | PyObject * obj2 = 0 ; | |
3890 | PyObject * obj3 = 0 ; | |
3891 | PyObject * obj4 = 0 ; | |
3892 | PyObject * obj5 = 0 ; | |
3893 | PyObject * obj6 = 0 ; | |
3894 | char * kwnames[] = { | |
3895 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3896 | }; | |
3897 | ||
3898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
3899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3900 | if (!SWIG_IsOK(res1)) { | |
3901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_Create" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3902 | } | |
3903 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3904 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3905 | if (!SWIG_IsOK(res2)) { | |
3906 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Panel_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3907 | } | |
3908 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3909 | if (obj2) { | |
3910 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3911 | if (!SWIG_IsOK(ecode3)) { | |
3912 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Panel_Create" "', expected argument " "3"" of type '" "int""'"); | |
3913 | } | |
3914 | arg3 = static_cast< int >(val3); | |
3915 | } | |
3916 | if (obj3) { | |
d55e5bfc | 3917 | { |
1bd55598 RD |
3918 | arg4 = &temp4; |
3919 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3920 | } |
1bd55598 RD |
3921 | } |
3922 | if (obj4) { | |
d55e5bfc | 3923 | { |
1bd55598 RD |
3924 | arg5 = &temp5; |
3925 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3926 | } |
1bd55598 RD |
3927 | } |
3928 | if (obj5) { | |
3929 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3930 | if (!SWIG_IsOK(ecode6)) { | |
3931 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Panel_Create" "', expected argument " "6"" of type '" "long""'"); | |
3932 | } | |
3933 | arg6 = static_cast< long >(val6); | |
3934 | } | |
3935 | if (obj6) { | |
d55e5bfc | 3936 | { |
1bd55598 RD |
3937 | arg7 = wxString_in_helper(obj6); |
3938 | if (arg7 == NULL) SWIG_fail; | |
3939 | temp7 = true; | |
d55e5bfc | 3940 | } |
1bd55598 RD |
3941 | } |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3945 | wxPyEndAllowThreads(__tstate); | |
3946 | if (PyErr_Occurred()) SWIG_fail; | |
3947 | } | |
3948 | { | |
3949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3950 | } | |
3951 | { | |
3952 | if (temp7) | |
3953 | delete arg7; | |
3954 | } | |
3955 | return resultobj; | |
3956 | fail: | |
3957 | { | |
3958 | if (temp7) | |
3959 | delete arg7; | |
3960 | } | |
3961 | return NULL; | |
5cbf236d RD |
3962 | } |
3963 | ||
3964 | ||
1bd55598 RD |
3965 | SWIGINTERN PyObject *_wrap_Panel_SetFocusIgnoringChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3966 | PyObject *resultobj = 0; | |
3967 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3968 | void *argp1 = 0 ; | |
3969 | int res1 = 0 ; | |
3970 | PyObject *swig_obj[1] ; | |
3971 | ||
3972 | if (!args) SWIG_fail; | |
3973 | swig_obj[0] = args; | |
3974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3975 | if (!SWIG_IsOK(res1)) { | |
3976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_SetFocusIgnoringChildren" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3977 | } | |
3978 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3979 | { | |
3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3981 | (arg1)->SetFocusIgnoringChildren(); | |
3982 | wxPyEndAllowThreads(__tstate); | |
3983 | if (PyErr_Occurred()) SWIG_fail; | |
3984 | } | |
3985 | resultobj = SWIG_Py_Void(); | |
3986 | return resultobj; | |
3987 | fail: | |
3988 | return NULL; | |
3989 | } | |
3990 | ||
3991 | ||
3992 | SWIGINTERN PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3993 | PyObject *resultobj = 0; | |
3994 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3995 | SwigValueWrapper<wxVisualAttributes > result; | |
3996 | int val1 ; | |
3997 | int ecode1 = 0 ; | |
3998 | PyObject * obj0 = 0 ; | |
3999 | char * kwnames[] = { | |
4000 | (char *) "variant", NULL | |
4001 | }; | |
4002 | ||
4003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
4004 | if (obj0) { | |
4005 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4006 | if (!SWIG_IsOK(ecode1)) { | |
4007 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Panel_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
4008 | } | |
4009 | arg1 = static_cast< wxWindowVariant >(val1); | |
4010 | } | |
4011 | { | |
4012 | if (!wxPyCheckForApp()) SWIG_fail; | |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | result = wxPanel::GetClassDefaultAttributes(arg1); | |
4015 | wxPyEndAllowThreads(__tstate); | |
4016 | if (PyErr_Occurred()) SWIG_fail; | |
4017 | } | |
4018 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
4019 | return resultobj; | |
4020 | fail: | |
4021 | return NULL; | |
4022 | } | |
4023 | ||
4024 | ||
4025 | SWIGINTERN PyObject *Panel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4026 | PyObject *obj; | |
4027 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4028 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPanel, SWIG_NewClientData(obj)); | |
4029 | return SWIG_Py_Void(); | |
4030 | } | |
4031 | ||
4032 | SWIGINTERN PyObject *Panel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4033 | return SWIG_Python_InitShadowInstance(args); | |
4034 | } | |
4035 | ||
4036 | SWIGINTERN PyObject *_wrap_new_ScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4037 | PyObject *resultobj = 0; | |
4038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4039 | int arg2 = (int) (int)-1 ; | |
4040 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4041 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4042 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4043 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4044 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
4045 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
4046 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4047 | wxScrolledWindow *result = 0 ; | |
4048 | void *argp1 = 0 ; | |
4049 | int res1 = 0 ; | |
4050 | int val2 ; | |
4051 | int ecode2 = 0 ; | |
4052 | wxPoint temp3 ; | |
4053 | wxSize temp4 ; | |
4054 | long val5 ; | |
4055 | int ecode5 = 0 ; | |
4056 | bool temp6 = false ; | |
4057 | PyObject * obj0 = 0 ; | |
4058 | PyObject * obj1 = 0 ; | |
4059 | PyObject * obj2 = 0 ; | |
4060 | PyObject * obj3 = 0 ; | |
4061 | PyObject * obj4 = 0 ; | |
4062 | PyObject * obj5 = 0 ; | |
4063 | char * kwnames[] = { | |
4064 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4065 | }; | |
4066 | ||
4067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
4068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4069 | if (!SWIG_IsOK(res1)) { | |
4070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4071 | } | |
4072 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4073 | if (obj1) { | |
4074 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4075 | if (!SWIG_IsOK(ecode2)) { | |
4076 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
4077 | } | |
4078 | arg2 = static_cast< int >(val2); | |
4079 | } | |
4080 | if (obj2) { | |
5cbf236d | 4081 | { |
1bd55598 RD |
4082 | arg3 = &temp3; |
4083 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 4084 | } |
1bd55598 RD |
4085 | } |
4086 | if (obj3) { | |
f20a2e1f | 4087 | { |
1bd55598 RD |
4088 | arg4 = &temp4; |
4089 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 4090 | } |
1bd55598 RD |
4091 | } |
4092 | if (obj4) { | |
4093 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
4094 | if (!SWIG_IsOK(ecode5)) { | |
4095 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
4096 | } | |
4097 | arg5 = static_cast< long >(val5); | |
4098 | } | |
4099 | if (obj5) { | |
f20a2e1f | 4100 | { |
1bd55598 RD |
4101 | arg6 = wxString_in_helper(obj5); |
4102 | if (arg6 == NULL) SWIG_fail; | |
4103 | temp6 = true; | |
f20a2e1f | 4104 | } |
1bd55598 RD |
4105 | } |
4106 | { | |
4107 | if (!wxPyCheckForApp()) SWIG_fail; | |
4108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4109 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4110 | wxPyEndAllowThreads(__tstate); | |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
4112 | } | |
4113 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
4114 | { | |
4115 | if (temp6) | |
4116 | delete arg6; | |
4117 | } | |
4118 | return resultobj; | |
4119 | fail: | |
4120 | { | |
4121 | if (temp6) | |
4122 | delete arg6; | |
4123 | } | |
4124 | return NULL; | |
f20a2e1f RD |
4125 | } |
4126 | ||
4127 | ||
1bd55598 RD |
4128 | SWIGINTERN PyObject *_wrap_new_PreScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4129 | PyObject *resultobj = 0; | |
4130 | wxScrolledWindow *result = 0 ; | |
4131 | ||
4132 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrolledWindow",0,0,0)) SWIG_fail; | |
4133 | { | |
4134 | if (!wxPyCheckForApp()) SWIG_fail; | |
4135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4136 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
4137 | wxPyEndAllowThreads(__tstate); | |
4138 | if (PyErr_Occurred()) SWIG_fail; | |
4139 | } | |
4140 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
4141 | return resultobj; | |
4142 | fail: | |
4143 | return NULL; | |
4144 | } | |
4145 | ||
4146 | ||
4147 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4148 | PyObject *resultobj = 0; | |
4149 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4150 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4151 | int arg3 = (int) (int)-1 ; | |
4152 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4153 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4154 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4155 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4156 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
4157 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
4158 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4159 | bool result; | |
4160 | void *argp1 = 0 ; | |
4161 | int res1 = 0 ; | |
4162 | void *argp2 = 0 ; | |
4163 | int res2 = 0 ; | |
4164 | int val3 ; | |
4165 | int ecode3 = 0 ; | |
4166 | wxPoint temp4 ; | |
4167 | wxSize temp5 ; | |
4168 | long val6 ; | |
4169 | int ecode6 = 0 ; | |
4170 | bool temp7 = false ; | |
4171 | PyObject * obj0 = 0 ; | |
4172 | PyObject * obj1 = 0 ; | |
4173 | PyObject * obj2 = 0 ; | |
4174 | PyObject * obj3 = 0 ; | |
4175 | PyObject * obj4 = 0 ; | |
4176 | PyObject * obj5 = 0 ; | |
4177 | PyObject * obj6 = 0 ; | |
4178 | char * kwnames[] = { | |
4179 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4180 | }; | |
4181 | ||
4182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
4183 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4184 | if (!SWIG_IsOK(res1)) { | |
4185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Create" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4186 | } | |
4187 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4188 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4189 | if (!SWIG_IsOK(res2)) { | |
4190 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4191 | } | |
4192 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4193 | if (obj2) { | |
4194 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4195 | if (!SWIG_IsOK(ecode3)) { | |
4196 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
4197 | } | |
4198 | arg3 = static_cast< int >(val3); | |
4199 | } | |
4200 | if (obj3) { | |
d55e5bfc | 4201 | { |
1bd55598 RD |
4202 | arg4 = &temp4; |
4203 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 4204 | } |
1bd55598 RD |
4205 | } |
4206 | if (obj4) { | |
d55e5bfc | 4207 | { |
1bd55598 RD |
4208 | arg5 = &temp5; |
4209 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 4210 | } |
1bd55598 RD |
4211 | } |
4212 | if (obj5) { | |
4213 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4214 | if (!SWIG_IsOK(ecode6)) { | |
4215 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
4216 | } | |
4217 | arg6 = static_cast< long >(val6); | |
4218 | } | |
4219 | if (obj6) { | |
d55e5bfc | 4220 | { |
1bd55598 RD |
4221 | arg7 = wxString_in_helper(obj6); |
4222 | if (arg7 == NULL) SWIG_fail; | |
4223 | temp7 = true; | |
4224 | } | |
4225 | } | |
4226 | { | |
4227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4228 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4229 | wxPyEndAllowThreads(__tstate); | |
4230 | if (PyErr_Occurred()) SWIG_fail; | |
4231 | } | |
4232 | { | |
4233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4234 | } | |
4235 | { | |
4236 | if (temp7) | |
4237 | delete arg7; | |
4238 | } | |
4239 | return resultobj; | |
4240 | fail: | |
4241 | { | |
4242 | if (temp7) | |
4243 | delete arg7; | |
4244 | } | |
4245 | return NULL; | |
4246 | } | |
4247 | ||
4248 | ||
4249 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4250 | PyObject *resultobj = 0; | |
4251 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4252 | int arg2 ; | |
4253 | int arg3 ; | |
4254 | int arg4 ; | |
4255 | int arg5 ; | |
4256 | int arg6 = (int) 0 ; | |
4257 | int arg7 = (int) 0 ; | |
4258 | bool arg8 = (bool) false ; | |
4259 | void *argp1 = 0 ; | |
4260 | int res1 = 0 ; | |
4261 | int val2 ; | |
4262 | int ecode2 = 0 ; | |
4263 | int val3 ; | |
4264 | int ecode3 = 0 ; | |
4265 | int val4 ; | |
4266 | int ecode4 = 0 ; | |
4267 | int val5 ; | |
4268 | int ecode5 = 0 ; | |
4269 | int val6 ; | |
4270 | int ecode6 = 0 ; | |
4271 | int val7 ; | |
4272 | int ecode7 = 0 ; | |
4273 | bool val8 ; | |
4274 | int ecode8 = 0 ; | |
4275 | PyObject * obj0 = 0 ; | |
4276 | PyObject * obj1 = 0 ; | |
4277 | PyObject * obj2 = 0 ; | |
4278 | PyObject * obj3 = 0 ; | |
4279 | PyObject * obj4 = 0 ; | |
4280 | PyObject * obj5 = 0 ; | |
4281 | PyObject * obj6 = 0 ; | |
4282 | PyObject * obj7 = 0 ; | |
4283 | char * kwnames[] = { | |
4284 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
4285 | }; | |
4286 | ||
4287 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4289 | if (!SWIG_IsOK(res1)) { | |
4290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4291 | } | |
4292 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4293 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4294 | if (!SWIG_IsOK(ecode2)) { | |
4295 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "2"" of type '" "int""'"); | |
4296 | } | |
4297 | arg2 = static_cast< int >(val2); | |
4298 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4299 | if (!SWIG_IsOK(ecode3)) { | |
4300 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "3"" of type '" "int""'"); | |
4301 | } | |
4302 | arg3 = static_cast< int >(val3); | |
4303 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4304 | if (!SWIG_IsOK(ecode4)) { | |
4305 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "4"" of type '" "int""'"); | |
4306 | } | |
4307 | arg4 = static_cast< int >(val4); | |
4308 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4309 | if (!SWIG_IsOK(ecode5)) { | |
4310 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "5"" of type '" "int""'"); | |
4311 | } | |
4312 | arg5 = static_cast< int >(val5); | |
4313 | if (obj5) { | |
4314 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
4315 | if (!SWIG_IsOK(ecode6)) { | |
4316 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "6"" of type '" "int""'"); | |
4317 | } | |
4318 | arg6 = static_cast< int >(val6); | |
4319 | } | |
4320 | if (obj6) { | |
4321 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
4322 | if (!SWIG_IsOK(ecode7)) { | |
4323 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "7"" of type '" "int""'"); | |
4324 | } | |
4325 | arg7 = static_cast< int >(val7); | |
4326 | } | |
4327 | if (obj7) { | |
4328 | ecode8 = SWIG_AsVal_bool(obj7, &val8); | |
4329 | if (!SWIG_IsOK(ecode8)) { | |
4330 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "8"" of type '" "bool""'"); | |
4331 | } | |
4332 | arg8 = static_cast< bool >(val8); | |
4333 | } | |
4334 | { | |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4336 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
4337 | wxPyEndAllowThreads(__tstate); | |
4338 | if (PyErr_Occurred()) SWIG_fail; | |
4339 | } | |
4340 | resultobj = SWIG_Py_Void(); | |
4341 | return resultobj; | |
4342 | fail: | |
4343 | return NULL; | |
4344 | } | |
4345 | ||
4346 | ||
4347 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Scroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4348 | PyObject *resultobj = 0; | |
4349 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4350 | int arg2 ; | |
4351 | int arg3 ; | |
4352 | void *argp1 = 0 ; | |
4353 | int res1 = 0 ; | |
4354 | int val2 ; | |
4355 | int ecode2 = 0 ; | |
4356 | int val3 ; | |
4357 | int ecode3 = 0 ; | |
4358 | PyObject * obj0 = 0 ; | |
4359 | PyObject * obj1 = 0 ; | |
4360 | PyObject * obj2 = 0 ; | |
4361 | char * kwnames[] = { | |
4362 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4363 | }; | |
4364 | ||
4365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4367 | if (!SWIG_IsOK(res1)) { | |
4368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Scroll" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4369 | } | |
4370 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4371 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4372 | if (!SWIG_IsOK(ecode2)) { | |
4373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_Scroll" "', expected argument " "2"" of type '" "int""'"); | |
4374 | } | |
4375 | arg2 = static_cast< int >(val2); | |
4376 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4377 | if (!SWIG_IsOK(ecode3)) { | |
4378 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Scroll" "', expected argument " "3"" of type '" "int""'"); | |
4379 | } | |
4380 | arg3 = static_cast< int >(val3); | |
4381 | { | |
4382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4383 | (arg1)->Scroll(arg2,arg3); | |
4384 | wxPyEndAllowThreads(__tstate); | |
4385 | if (PyErr_Occurred()) SWIG_fail; | |
4386 | } | |
4387 | resultobj = SWIG_Py_Void(); | |
4388 | return resultobj; | |
4389 | fail: | |
4390 | return NULL; | |
4391 | } | |
4392 | ||
4393 | ||
4394 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4395 | PyObject *resultobj = 0; | |
4396 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4397 | int arg2 ; | |
4398 | int result; | |
4399 | void *argp1 = 0 ; | |
4400 | int res1 = 0 ; | |
4401 | int val2 ; | |
4402 | int ecode2 = 0 ; | |
4403 | PyObject * obj0 = 0 ; | |
4404 | PyObject * obj1 = 0 ; | |
4405 | char * kwnames[] = { | |
4406 | (char *) "self",(char *) "orient", NULL | |
4407 | }; | |
4408 | ||
4409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
4410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4411 | if (!SWIG_IsOK(res1)) { | |
4412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4413 | } | |
4414 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4415 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4416 | if (!SWIG_IsOK(ecode2)) { | |
4417 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4418 | } | |
4419 | arg2 = static_cast< int >(val2); | |
4420 | { | |
4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4422 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
4423 | wxPyEndAllowThreads(__tstate); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4427 | return resultobj; | |
4428 | fail: | |
4429 | return NULL; | |
4430 | } | |
4431 | ||
4432 | ||
4433 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4434 | PyObject *resultobj = 0; | |
4435 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4436 | int arg2 ; | |
4437 | int arg3 ; | |
4438 | void *argp1 = 0 ; | |
4439 | int res1 = 0 ; | |
4440 | int val2 ; | |
4441 | int ecode2 = 0 ; | |
4442 | int val3 ; | |
4443 | int ecode3 = 0 ; | |
4444 | PyObject * obj0 = 0 ; | |
4445 | PyObject * obj1 = 0 ; | |
4446 | PyObject * obj2 = 0 ; | |
4447 | char * kwnames[] = { | |
4448 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
4449 | }; | |
4450 | ||
4451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4453 | if (!SWIG_IsOK(res1)) { | |
4454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4455 | } | |
4456 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4457 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4458 | if (!SWIG_IsOK(ecode2)) { | |
4459 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4460 | } | |
4461 | arg2 = static_cast< int >(val2); | |
4462 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4463 | if (!SWIG_IsOK(ecode3)) { | |
4464 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "3"" of type '" "int""'"); | |
4465 | } | |
4466 | arg3 = static_cast< int >(val3); | |
4467 | { | |
4468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4469 | (arg1)->SetScrollPageSize(arg2,arg3); | |
4470 | wxPyEndAllowThreads(__tstate); | |
4471 | if (PyErr_Occurred()) SWIG_fail; | |
4472 | } | |
4473 | resultobj = SWIG_Py_Void(); | |
4474 | return resultobj; | |
4475 | fail: | |
4476 | return NULL; | |
4477 | } | |
4478 | ||
4479 | ||
4480 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4481 | PyObject *resultobj = 0; | |
4482 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4483 | int arg2 ; | |
4484 | int arg3 ; | |
4485 | void *argp1 = 0 ; | |
4486 | int res1 = 0 ; | |
4487 | int val2 ; | |
4488 | int ecode2 = 0 ; | |
4489 | int val3 ; | |
4490 | int ecode3 = 0 ; | |
4491 | PyObject * obj0 = 0 ; | |
4492 | PyObject * obj1 = 0 ; | |
4493 | PyObject * obj2 = 0 ; | |
4494 | char * kwnames[] = { | |
4495 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
4496 | }; | |
4497 | ||
4498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4500 | if (!SWIG_IsOK(res1)) { | |
4501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4502 | } | |
4503 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4504 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4505 | if (!SWIG_IsOK(ecode2)) { | |
4506 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "2"" of type '" "int""'"); | |
4507 | } | |
4508 | arg2 = static_cast< int >(val2); | |
4509 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4510 | if (!SWIG_IsOK(ecode3)) { | |
4511 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "3"" of type '" "int""'"); | |
4512 | } | |
4513 | arg3 = static_cast< int >(val3); | |
4514 | { | |
4515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4516 | (arg1)->SetScrollRate(arg2,arg3); | |
4517 | wxPyEndAllowThreads(__tstate); | |
4518 | if (PyErr_Occurred()) SWIG_fail; | |
4519 | } | |
4520 | resultobj = SWIG_Py_Void(); | |
4521 | return resultobj; | |
4522 | fail: | |
4523 | return NULL; | |
4524 | } | |
4525 | ||
4526 | ||
4527 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4528 | PyObject *resultobj = 0; | |
4529 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4530 | int *arg2 = (int *) 0 ; | |
4531 | int *arg3 = (int *) 0 ; | |
4532 | void *argp1 = 0 ; | |
4533 | int res1 = 0 ; | |
4534 | int temp2 ; | |
4535 | int res2 = SWIG_TMPOBJ ; | |
4536 | int temp3 ; | |
4537 | int res3 = SWIG_TMPOBJ ; | |
4538 | PyObject *swig_obj[1] ; | |
4539 | ||
4540 | arg2 = &temp2; | |
4541 | arg3 = &temp3; | |
4542 | if (!args) SWIG_fail; | |
4543 | swig_obj[0] = args; | |
4544 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4545 | if (!SWIG_IsOK(res1)) { | |
4546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPixelsPerUnit" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4547 | } | |
4548 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4549 | { | |
4550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4551 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
4552 | wxPyEndAllowThreads(__tstate); | |
4553 | if (PyErr_Occurred()) SWIG_fail; | |
4554 | } | |
4555 | resultobj = SWIG_Py_Void(); | |
4556 | if (SWIG_IsTmpObj(res2)) { | |
4557 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4558 | } else { | |
4559 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4560 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4561 | } | |
4562 | if (SWIG_IsTmpObj(res3)) { | |
4563 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4564 | } else { | |
4565 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4566 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4567 | } | |
4568 | return resultobj; | |
4569 | fail: | |
4570 | return NULL; | |
4571 | } | |
4572 | ||
4573 | ||
4574 | SWIGINTERN PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4575 | PyObject *resultobj = 0; | |
4576 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4577 | bool arg2 ; | |
4578 | bool arg3 ; | |
4579 | void *argp1 = 0 ; | |
4580 | int res1 = 0 ; | |
4581 | bool val2 ; | |
4582 | int ecode2 = 0 ; | |
4583 | bool val3 ; | |
4584 | int ecode3 = 0 ; | |
4585 | PyObject * obj0 = 0 ; | |
4586 | PyObject * obj1 = 0 ; | |
4587 | PyObject * obj2 = 0 ; | |
4588 | char * kwnames[] = { | |
4589 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
4590 | }; | |
4591 | ||
4592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4594 | if (!SWIG_IsOK(res1)) { | |
4595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4596 | } | |
4597 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4598 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4599 | if (!SWIG_IsOK(ecode2)) { | |
4600 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "2"" of type '" "bool""'"); | |
4601 | } | |
4602 | arg2 = static_cast< bool >(val2); | |
4603 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
4604 | if (!SWIG_IsOK(ecode3)) { | |
4605 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "3"" of type '" "bool""'"); | |
4606 | } | |
4607 | arg3 = static_cast< bool >(val3); | |
4608 | { | |
4609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4610 | (arg1)->EnableScrolling(arg2,arg3); | |
4611 | wxPyEndAllowThreads(__tstate); | |
4612 | if (PyErr_Occurred()) SWIG_fail; | |
4613 | } | |
4614 | resultobj = SWIG_Py_Void(); | |
4615 | return resultobj; | |
4616 | fail: | |
4617 | return NULL; | |
4618 | } | |
4619 | ||
4620 | ||
4621 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4622 | PyObject *resultobj = 0; | |
4623 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4624 | int *arg2 = (int *) 0 ; | |
4625 | int *arg3 = (int *) 0 ; | |
4626 | void *argp1 = 0 ; | |
4627 | int res1 = 0 ; | |
4628 | int temp2 ; | |
4629 | int res2 = SWIG_TMPOBJ ; | |
4630 | int temp3 ; | |
4631 | int res3 = SWIG_TMPOBJ ; | |
4632 | PyObject *swig_obj[1] ; | |
4633 | ||
4634 | arg2 = &temp2; | |
4635 | arg3 = &temp3; | |
4636 | if (!args) SWIG_fail; | |
4637 | swig_obj[0] = args; | |
4638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4639 | if (!SWIG_IsOK(res1)) { | |
4640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetViewStart" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4641 | } | |
4642 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4643 | { | |
4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4645 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
4646 | wxPyEndAllowThreads(__tstate); | |
4647 | if (PyErr_Occurred()) SWIG_fail; | |
4648 | } | |
4649 | resultobj = SWIG_Py_Void(); | |
4650 | if (SWIG_IsTmpObj(res2)) { | |
4651 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4652 | } else { | |
4653 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4654 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4655 | } | |
4656 | if (SWIG_IsTmpObj(res3)) { | |
4657 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4658 | } else { | |
4659 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4660 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4661 | } | |
4662 | return resultobj; | |
4663 | fail: | |
4664 | return NULL; | |
4665 | } | |
4666 | ||
4667 | ||
4668 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4669 | PyObject *resultobj = 0; | |
4670 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4671 | double arg2 ; | |
4672 | double arg3 ; | |
4673 | void *argp1 = 0 ; | |
4674 | int res1 = 0 ; | |
4675 | double val2 ; | |
4676 | int ecode2 = 0 ; | |
4677 | double val3 ; | |
4678 | int ecode3 = 0 ; | |
4679 | PyObject * obj0 = 0 ; | |
4680 | PyObject * obj1 = 0 ; | |
4681 | PyObject * obj2 = 0 ; | |
4682 | char * kwnames[] = { | |
4683 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
4684 | }; | |
4685 | ||
4686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4688 | if (!SWIG_IsOK(res1)) { | |
4689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScale" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4690 | } | |
4691 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4692 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
4693 | if (!SWIG_IsOK(ecode2)) { | |
4694 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScale" "', expected argument " "2"" of type '" "double""'"); | |
4695 | } | |
4696 | arg2 = static_cast< double >(val2); | |
4697 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
4698 | if (!SWIG_IsOK(ecode3)) { | |
4699 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScale" "', expected argument " "3"" of type '" "double""'"); | |
4700 | } | |
4701 | arg3 = static_cast< double >(val3); | |
4702 | { | |
4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4704 | (arg1)->SetScale(arg2,arg3); | |
4705 | wxPyEndAllowThreads(__tstate); | |
4706 | if (PyErr_Occurred()) SWIG_fail; | |
4707 | } | |
4708 | resultobj = SWIG_Py_Void(); | |
4709 | return resultobj; | |
4710 | fail: | |
4711 | return NULL; | |
d55e5bfc RD |
4712 | } |
4713 | ||
4714 | ||
1bd55598 RD |
4715 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4716 | PyObject *resultobj = 0; | |
4717 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4718 | double result; | |
4719 | void *argp1 = 0 ; | |
4720 | int res1 = 0 ; | |
4721 | PyObject *swig_obj[1] ; | |
4722 | ||
4723 | if (!args) SWIG_fail; | |
4724 | swig_obj[0] = args; | |
4725 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4726 | if (!SWIG_IsOK(res1)) { | |
4727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleX" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4728 | } | |
4729 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4730 | { | |
4731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4732 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
4733 | wxPyEndAllowThreads(__tstate); | |
4734 | if (PyErr_Occurred()) SWIG_fail; | |
4735 | } | |
4736 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4737 | return resultobj; | |
4738 | fail: | |
4739 | return NULL; | |
d55e5bfc RD |
4740 | } |
4741 | ||
4742 | ||
1bd55598 RD |
4743 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4744 | PyObject *resultobj = 0; | |
4745 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4746 | double result; | |
4747 | void *argp1 = 0 ; | |
4748 | int res1 = 0 ; | |
4749 | PyObject *swig_obj[1] ; | |
4750 | ||
4751 | if (!args) SWIG_fail; | |
4752 | swig_obj[0] = args; | |
4753 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4754 | if (!SWIG_IsOK(res1)) { | |
4755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleY" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4756 | } | |
4757 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4758 | { | |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
4761 | wxPyEndAllowThreads(__tstate); | |
4762 | if (PyErr_Occurred()) SWIG_fail; | |
4763 | } | |
4764 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4765 | return resultobj; | |
4766 | fail: | |
4767 | return NULL; | |
d55e5bfc RD |
4768 | } |
4769 | ||
4770 | ||
1bd55598 RD |
4771 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4772 | PyObject *resultobj = 0; | |
4773 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4774 | wxPoint *arg2 = 0 ; | |
4775 | wxPoint result; | |
4776 | void *argp1 = 0 ; | |
4777 | int res1 = 0 ; | |
4778 | wxPoint temp2 ; | |
4779 | ||
4780 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4782 | if (!SWIG_IsOK(res1)) { | |
4783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4784 | } | |
4785 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4786 | { | |
4787 | arg2 = &temp2; | |
4788 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4789 | } | |
4790 | { | |
4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4792 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
4793 | wxPyEndAllowThreads(__tstate); | |
4794 | if (PyErr_Occurred()) SWIG_fail; | |
4795 | } | |
4796 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4797 | return resultobj; | |
4798 | fail: | |
4799 | return NULL; | |
4800 | } | |
4801 | ||
4802 | ||
4803 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4804 | PyObject *resultobj = 0; | |
4805 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4806 | int arg2 ; | |
4807 | int arg3 ; | |
4808 | int *arg4 = (int *) 0 ; | |
4809 | int *arg5 = (int *) 0 ; | |
4810 | void *argp1 = 0 ; | |
4811 | int res1 = 0 ; | |
4812 | int val2 ; | |
4813 | int ecode2 = 0 ; | |
4814 | int val3 ; | |
4815 | int ecode3 = 0 ; | |
4816 | int temp4 ; | |
4817 | int res4 = SWIG_TMPOBJ ; | |
4818 | int temp5 ; | |
4819 | int res5 = SWIG_TMPOBJ ; | |
4820 | ||
4821 | arg4 = &temp4; | |
4822 | arg5 = &temp5; | |
4823 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4825 | if (!SWIG_IsOK(res1)) { | |
4826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4827 | } | |
4828 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4829 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4830 | if (!SWIG_IsOK(ecode2)) { | |
4831 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4832 | } | |
4833 | arg2 = static_cast< int >(val2); | |
4834 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4835 | if (!SWIG_IsOK(ecode3)) { | |
4836 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4837 | } | |
4838 | arg3 = static_cast< int >(val3); | |
4839 | { | |
4840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4841 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
4842 | wxPyEndAllowThreads(__tstate); | |
4843 | if (PyErr_Occurred()) SWIG_fail; | |
4844 | } | |
4845 | resultobj = SWIG_Py_Void(); | |
4846 | if (SWIG_IsTmpObj(res4)) { | |
4847 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4848 | } else { | |
4849 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4850 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4851 | } | |
4852 | if (SWIG_IsTmpObj(res5)) { | |
4853 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4854 | } else { | |
4855 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4856 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4857 | } | |
4858 | return resultobj; | |
4859 | fail: | |
4860 | return NULL; | |
d55e5bfc RD |
4861 | } |
4862 | ||
4863 | ||
1bd55598 RD |
4864 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { |
4865 | int argc; | |
4866 | PyObject *argv[4]; | |
4867 | ||
4868 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcScrolledPosition",0,3,argv))) SWIG_fail; | |
4869 | --argc; | |
4870 | if (argc == 2) { | |
4871 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self, argc, argv); | |
4872 | } | |
4873 | if (argc == 3) { | |
4874 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self, argc, argv); | |
4875 | } | |
4876 | ||
4877 | fail: | |
4878 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
4879 | return NULL; | |
d55e5bfc RD |
4880 | } |
4881 | ||
4882 | ||
1bd55598 RD |
4883 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4884 | PyObject *resultobj = 0; | |
4885 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4886 | wxPoint *arg2 = 0 ; | |
4887 | wxPoint result; | |
4888 | void *argp1 = 0 ; | |
4889 | int res1 = 0 ; | |
4890 | wxPoint temp2 ; | |
4891 | ||
4892 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4893 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4894 | if (!SWIG_IsOK(res1)) { | |
4895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4896 | } | |
4897 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4898 | { | |
4899 | arg2 = &temp2; | |
4900 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4901 | } | |
4902 | { | |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
4905 | wxPyEndAllowThreads(__tstate); | |
4906 | if (PyErr_Occurred()) SWIG_fail; | |
4907 | } | |
4908 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4909 | return resultobj; | |
4910 | fail: | |
4911 | return NULL; | |
4912 | } | |
4913 | ||
4914 | ||
4915 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4916 | PyObject *resultobj = 0; | |
4917 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4918 | int arg2 ; | |
4919 | int arg3 ; | |
4920 | int *arg4 = (int *) 0 ; | |
4921 | int *arg5 = (int *) 0 ; | |
4922 | void *argp1 = 0 ; | |
4923 | int res1 = 0 ; | |
4924 | int val2 ; | |
4925 | int ecode2 = 0 ; | |
4926 | int val3 ; | |
4927 | int ecode3 = 0 ; | |
4928 | int temp4 ; | |
4929 | int res4 = SWIG_TMPOBJ ; | |
4930 | int temp5 ; | |
4931 | int res5 = SWIG_TMPOBJ ; | |
4932 | ||
4933 | arg4 = &temp4; | |
4934 | arg5 = &temp5; | |
4935 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4937 | if (!SWIG_IsOK(res1)) { | |
4938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4939 | } | |
4940 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4941 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4942 | if (!SWIG_IsOK(ecode2)) { | |
4943 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4944 | } | |
4945 | arg2 = static_cast< int >(val2); | |
4946 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4947 | if (!SWIG_IsOK(ecode3)) { | |
4948 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4949 | } | |
4950 | arg3 = static_cast< int >(val3); | |
4951 | { | |
4952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4953 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
4954 | wxPyEndAllowThreads(__tstate); | |
4955 | if (PyErr_Occurred()) SWIG_fail; | |
4956 | } | |
4957 | resultobj = SWIG_Py_Void(); | |
4958 | if (SWIG_IsTmpObj(res4)) { | |
4959 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4960 | } else { | |
4961 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4962 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4963 | } | |
4964 | if (SWIG_IsTmpObj(res5)) { | |
4965 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4966 | } else { | |
4967 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4968 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4969 | } | |
4970 | return resultobj; | |
4971 | fail: | |
4972 | return NULL; | |
d55e5bfc RD |
4973 | } |
4974 | ||
4975 | ||
1bd55598 RD |
4976 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { |
4977 | int argc; | |
4978 | PyObject *argv[4]; | |
4979 | ||
4980 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcUnscrolledPosition",0,3,argv))) SWIG_fail; | |
4981 | --argc; | |
4982 | if (argc == 2) { | |
4983 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self, argc, argv); | |
4984 | } | |
4985 | if (argc == 3) { | |
4986 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self, argc, argv); | |
4987 | } | |
4988 | ||
4989 | fail: | |
4990 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
4991 | return NULL; | |
d55e5bfc RD |
4992 | } |
4993 | ||
4994 | ||
1bd55598 RD |
4995 | SWIGINTERN PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4996 | PyObject *resultobj = 0; | |
4997 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4998 | void *argp1 = 0 ; | |
4999 | int res1 = 0 ; | |
5000 | PyObject *swig_obj[1] ; | |
5001 | ||
5002 | if (!args) SWIG_fail; | |
5003 | swig_obj[0] = args; | |
5004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5005 | if (!SWIG_IsOK(res1)) { | |
5006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_AdjustScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5007 | } | |
5008 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5009 | { | |
5010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5011 | (arg1)->AdjustScrollbars(); | |
5012 | wxPyEndAllowThreads(__tstate); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
5014 | } | |
5015 | resultobj = SWIG_Py_Void(); | |
5016 | return resultobj; | |
5017 | fail: | |
5018 | return NULL; | |
5019 | } | |
5020 | ||
5021 | ||
5022 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5023 | PyObject *resultobj = 0; | |
5024 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5025 | wxScrollWinEvent *arg2 = 0 ; | |
5026 | int result; | |
5027 | void *argp1 = 0 ; | |
5028 | int res1 = 0 ; | |
5029 | void *argp2 = 0 ; | |
5030 | int res2 = 0 ; | |
5031 | PyObject * obj0 = 0 ; | |
5032 | PyObject * obj1 = 0 ; | |
5033 | char * kwnames[] = { | |
5034 | (char *) "self",(char *) "event", NULL | |
5035 | }; | |
5036 | ||
5037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) SWIG_fail; | |
5038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5039 | if (!SWIG_IsOK(res1)) { | |
5040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5041 | } | |
5042 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5043 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxScrollWinEvent, 0 ); | |
5044 | if (!SWIG_IsOK(res2)) { | |
5045 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5046 | } | |
5047 | if (!argp2) { | |
5048 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5049 | } | |
5050 | arg2 = reinterpret_cast< wxScrollWinEvent * >(argp2); | |
5051 | { | |
5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5053 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
5054 | wxPyEndAllowThreads(__tstate); | |
5055 | if (PyErr_Occurred()) SWIG_fail; | |
5056 | } | |
5057 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5058 | return resultobj; | |
5059 | fail: | |
5060 | return NULL; | |
5061 | } | |
5062 | ||
5063 | ||
5064 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5065 | PyObject *resultobj = 0; | |
5066 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5067 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5068 | void *argp1 = 0 ; | |
5069 | int res1 = 0 ; | |
5070 | void *argp2 = 0 ; | |
5071 | int res2 = 0 ; | |
5072 | PyObject * obj0 = 0 ; | |
5073 | PyObject * obj1 = 0 ; | |
5074 | char * kwnames[] = { | |
5075 | (char *) "self",(char *) "target", NULL | |
5076 | }; | |
5077 | ||
5078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
5079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5080 | if (!SWIG_IsOK(res1)) { | |
5081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5082 | } | |
5083 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5084 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5085 | if (!SWIG_IsOK(res2)) { | |
5086 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5087 | } | |
5088 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5089 | { | |
5090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5091 | (arg1)->SetTargetWindow(arg2); | |
5092 | wxPyEndAllowThreads(__tstate); | |
5093 | if (PyErr_Occurred()) SWIG_fail; | |
5094 | } | |
5095 | resultobj = SWIG_Py_Void(); | |
5096 | return resultobj; | |
5097 | fail: | |
5098 | return NULL; | |
d55e5bfc RD |
5099 | } |
5100 | ||
5101 | ||
1bd55598 RD |
5102 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5103 | PyObject *resultobj = 0; | |
5104 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5105 | wxWindow *result = 0 ; | |
5106 | void *argp1 = 0 ; | |
5107 | int res1 = 0 ; | |
5108 | PyObject *swig_obj[1] ; | |
5109 | ||
5110 | if (!args) SWIG_fail; | |
5111 | swig_obj[0] = args; | |
5112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5113 | if (!SWIG_IsOK(res1)) { | |
5114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5115 | } | |
5116 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5117 | { | |
5118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5119 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
5120 | wxPyEndAllowThreads(__tstate); | |
5121 | if (PyErr_Occurred()) SWIG_fail; | |
5122 | } | |
5123 | { | |
5124 | resultobj = wxPyMake_wxObject(result, 0); | |
5125 | } | |
5126 | return resultobj; | |
5127 | fail: | |
5128 | return NULL; | |
5129 | } | |
5130 | ||
5131 | ||
5132 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5133 | PyObject *resultobj = 0; | |
5134 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5135 | wxRect *arg2 = 0 ; | |
5136 | void *argp1 = 0 ; | |
5137 | int res1 = 0 ; | |
5138 | wxRect temp2 ; | |
5139 | PyObject * obj0 = 0 ; | |
5140 | PyObject * obj1 = 0 ; | |
5141 | char * kwnames[] = { | |
5142 | (char *) "self",(char *) "rect", NULL | |
5143 | }; | |
5144 | ||
5145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
5146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5147 | if (!SWIG_IsOK(res1)) { | |
5148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetRect" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5149 | } | |
5150 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5151 | { | |
5152 | arg2 = &temp2; | |
5153 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5154 | } | |
5155 | { | |
5156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5157 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
5158 | wxPyEndAllowThreads(__tstate); | |
5159 | if (PyErr_Occurred()) SWIG_fail; | |
5160 | } | |
5161 | resultobj = SWIG_Py_Void(); | |
5162 | return resultobj; | |
5163 | fail: | |
5164 | return NULL; | |
d55e5bfc RD |
5165 | } |
5166 | ||
5167 | ||
1bd55598 RD |
5168 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5169 | PyObject *resultobj = 0; | |
5170 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5171 | wxRect result; | |
5172 | void *argp1 = 0 ; | |
5173 | int res1 = 0 ; | |
5174 | PyObject *swig_obj[1] ; | |
5175 | ||
5176 | if (!args) SWIG_fail; | |
5177 | swig_obj[0] = args; | |
5178 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5179 | if (!SWIG_IsOK(res1)) { | |
5180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetRect" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5181 | } | |
5182 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5183 | { | |
5184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5185 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
5186 | wxPyEndAllowThreads(__tstate); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
5189 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
5190 | return resultobj; | |
5191 | fail: | |
5192 | return NULL; | |
5193 | } | |
5194 | ||
5195 | ||
5196 | SWIGINTERN PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5197 | PyObject *resultobj = 0; | |
5198 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5199 | wxDC *arg2 = 0 ; | |
5200 | void *argp1 = 0 ; | |
5201 | int res1 = 0 ; | |
5202 | void *argp2 = 0 ; | |
5203 | int res2 = 0 ; | |
5204 | PyObject * obj0 = 0 ; | |
5205 | PyObject * obj1 = 0 ; | |
5206 | char * kwnames[] = { | |
5207 | (char *) "self",(char *) "dc", NULL | |
5208 | }; | |
5209 | ||
5210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
5211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5212 | if (!SWIG_IsOK(res1)) { | |
5213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5214 | } | |
5215 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5216 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
5217 | if (!SWIG_IsOK(res2)) { | |
5218 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5219 | } | |
5220 | if (!argp2) { | |
5221 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5222 | } | |
5223 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
5224 | { | |
5225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5226 | (arg1)->DoPrepareDC(*arg2); | |
5227 | wxPyEndAllowThreads(__tstate); | |
5228 | if (PyErr_Occurred()) SWIG_fail; | |
5229 | } | |
5230 | resultobj = SWIG_Py_Void(); | |
5231 | return resultobj; | |
5232 | fail: | |
5233 | return NULL; | |
5234 | } | |
5235 | ||
5236 | ||
5237 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5238 | PyObject *resultobj = 0; | |
5239 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5240 | SwigValueWrapper<wxVisualAttributes > result; | |
5241 | int val1 ; | |
5242 | int ecode1 = 0 ; | |
5243 | PyObject * obj0 = 0 ; | |
5244 | char * kwnames[] = { | |
5245 | (char *) "variant", NULL | |
5246 | }; | |
5247 | ||
5248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5249 | if (obj0) { | |
5250 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5251 | if (!SWIG_IsOK(ecode1)) { | |
5252 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrolledWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5253 | } | |
5254 | arg1 = static_cast< wxWindowVariant >(val1); | |
5255 | } | |
5256 | { | |
5257 | if (!wxPyCheckForApp()) SWIG_fail; | |
5258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5259 | result = wxScrolledWindow::GetClassDefaultAttributes(arg1); | |
5260 | wxPyEndAllowThreads(__tstate); | |
5261 | if (PyErr_Occurred()) SWIG_fail; | |
5262 | } | |
5263 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5264 | return resultobj; | |
5265 | fail: | |
5266 | return NULL; | |
d55e5bfc RD |
5267 | } |
5268 | ||
5269 | ||
1bd55598 RD |
5270 | SWIGINTERN PyObject *ScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5271 | PyObject *obj; | |
5272 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5273 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrolledWindow, SWIG_NewClientData(obj)); | |
5274 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5275 | } |
5276 | ||
1bd55598 RD |
5277 | SWIGINTERN PyObject *ScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5278 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
5279 | } |
5280 | ||
1bd55598 RD |
5281 | SWIGINTERN int FrameNameStr_set(PyObject *) { |
5282 | SWIG_Error(SWIG_AttributeError,"Variable FrameNameStr is read-only."); | |
5283 | return 1; | |
d55e5bfc RD |
5284 | } |
5285 | ||
5286 | ||
1bd55598 RD |
5287 | SWIGINTERN PyObject *FrameNameStr_get(void) { |
5288 | PyObject *pyobj = 0; | |
5289 | ||
5290 | { | |
5291 | #if wxUSE_UNICODE | |
5292 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5293 | #else | |
5294 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5295 | #endif | |
5296 | } | |
5297 | return pyobj; | |
d55e5bfc RD |
5298 | } |
5299 | ||
5300 | ||
1bd55598 RD |
5301 | SWIGINTERN int DialogNameStr_set(PyObject *) { |
5302 | SWIG_Error(SWIG_AttributeError,"Variable DialogNameStr is read-only."); | |
5303 | return 1; | |
d55e5bfc RD |
5304 | } |
5305 | ||
5306 | ||
1bd55598 RD |
5307 | SWIGINTERN PyObject *DialogNameStr_get(void) { |
5308 | PyObject *pyobj = 0; | |
5309 | ||
5310 | { | |
5311 | #if wxUSE_UNICODE | |
5312 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5313 | #else | |
5314 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5315 | #endif | |
5316 | } | |
5317 | return pyobj; | |
d55e5bfc RD |
5318 | } |
5319 | ||
5320 | ||
1bd55598 RD |
5321 | SWIGINTERN int StatusLineNameStr_set(PyObject *) { |
5322 | SWIG_Error(SWIG_AttributeError,"Variable StatusLineNameStr is read-only."); | |
5323 | return 1; | |
d55e5bfc RD |
5324 | } |
5325 | ||
5326 | ||
1bd55598 RD |
5327 | SWIGINTERN PyObject *StatusLineNameStr_get(void) { |
5328 | PyObject *pyobj = 0; | |
5329 | ||
5330 | { | |
5331 | #if wxUSE_UNICODE | |
5332 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5333 | #else | |
5334 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5335 | #endif | |
5336 | } | |
5337 | return pyobj; | |
d55e5bfc RD |
5338 | } |
5339 | ||
5340 | ||
1bd55598 RD |
5341 | SWIGINTERN int ToolBarNameStr_set(PyObject *) { |
5342 | SWIG_Error(SWIG_AttributeError,"Variable ToolBarNameStr is read-only."); | |
5343 | return 1; | |
d55e5bfc RD |
5344 | } |
5345 | ||
5346 | ||
1bd55598 RD |
5347 | SWIGINTERN PyObject *ToolBarNameStr_get(void) { |
5348 | PyObject *pyobj = 0; | |
5349 | ||
5350 | { | |
5351 | #if wxUSE_UNICODE | |
5352 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5353 | #else | |
5354 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5355 | #endif | |
5356 | } | |
5357 | return pyobj; | |
5358 | } | |
5359 | ||
5360 | ||
5361 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5362 | PyObject *resultobj = 0; | |
5363 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5364 | bool arg2 = (bool) true ; | |
5365 | void *argp1 = 0 ; | |
5366 | int res1 = 0 ; | |
5367 | bool val2 ; | |
5368 | int ecode2 = 0 ; | |
5369 | PyObject * obj0 = 0 ; | |
5370 | PyObject * obj1 = 0 ; | |
5371 | char * kwnames[] = { | |
5372 | (char *) "self",(char *) "maximize", NULL | |
5373 | }; | |
5374 | ||
5375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5376 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5377 | if (!SWIG_IsOK(res1)) { | |
5378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Maximize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5379 | } | |
5380 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5381 | if (obj1) { | |
5382 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5383 | if (!SWIG_IsOK(ecode2)) { | |
5384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Maximize" "', expected argument " "2"" of type '" "bool""'"); | |
5385 | } | |
5386 | arg2 = static_cast< bool >(val2); | |
5387 | } | |
5388 | { | |
5389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5390 | (arg1)->Maximize(arg2); | |
5391 | wxPyEndAllowThreads(__tstate); | |
5392 | if (PyErr_Occurred()) SWIG_fail; | |
5393 | } | |
5394 | resultobj = SWIG_Py_Void(); | |
5395 | return resultobj; | |
5396 | fail: | |
5397 | return NULL; | |
d55e5bfc RD |
5398 | } |
5399 | ||
5400 | ||
1bd55598 RD |
5401 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5402 | PyObject *resultobj = 0; | |
5403 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5404 | void *argp1 = 0 ; | |
5405 | int res1 = 0 ; | |
5406 | PyObject *swig_obj[1] ; | |
5407 | ||
5408 | if (!args) SWIG_fail; | |
5409 | swig_obj[0] = args; | |
5410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5411 | if (!SWIG_IsOK(res1)) { | |
5412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Restore" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5413 | } | |
5414 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5415 | { | |
5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5417 | (arg1)->Restore(); | |
5418 | wxPyEndAllowThreads(__tstate); | |
5419 | if (PyErr_Occurred()) SWIG_fail; | |
5420 | } | |
5421 | resultobj = SWIG_Py_Void(); | |
5422 | return resultobj; | |
5423 | fail: | |
5424 | return NULL; | |
5425 | } | |
5426 | ||
5427 | ||
5428 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Iconize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5429 | PyObject *resultobj = 0; | |
5430 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5431 | bool arg2 = (bool) true ; | |
5432 | void *argp1 = 0 ; | |
5433 | int res1 = 0 ; | |
5434 | bool val2 ; | |
5435 | int ecode2 = 0 ; | |
5436 | PyObject * obj0 = 0 ; | |
5437 | PyObject * obj1 = 0 ; | |
5438 | char * kwnames[] = { | |
5439 | (char *) "self",(char *) "iconize", NULL | |
5440 | }; | |
5441 | ||
5442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5444 | if (!SWIG_IsOK(res1)) { | |
5445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Iconize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5446 | } | |
5447 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5448 | if (obj1) { | |
5449 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5450 | if (!SWIG_IsOK(ecode2)) { | |
5451 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Iconize" "', expected argument " "2"" of type '" "bool""'"); | |
5452 | } | |
5453 | arg2 = static_cast< bool >(val2); | |
5454 | } | |
5455 | { | |
5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5457 | (arg1)->Iconize(arg2); | |
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) SWIG_fail; | |
5460 | } | |
5461 | resultobj = SWIG_Py_Void(); | |
5462 | return resultobj; | |
5463 | fail: | |
5464 | return NULL; | |
d55e5bfc RD |
5465 | } |
5466 | ||
5467 | ||
1bd55598 RD |
5468 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5469 | PyObject *resultobj = 0; | |
5470 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5471 | bool result; | |
5472 | void *argp1 = 0 ; | |
5473 | int res1 = 0 ; | |
5474 | PyObject *swig_obj[1] ; | |
5475 | ||
5476 | if (!args) SWIG_fail; | |
5477 | swig_obj[0] = args; | |
5478 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5479 | if (!SWIG_IsOK(res1)) { | |
5480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5481 | } | |
5482 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5483 | { | |
5484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5485 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
5486 | wxPyEndAllowThreads(__tstate); | |
5487 | if (PyErr_Occurred()) SWIG_fail; | |
5488 | } | |
5489 | { | |
5490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5491 | } | |
5492 | return resultobj; | |
5493 | fail: | |
5494 | return NULL; | |
d55e5bfc RD |
5495 | } |
5496 | ||
5497 | ||
2131d850 RD |
5498 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsAlwaysMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5499 | PyObject *resultobj = 0; | |
5500 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5501 | bool result; | |
5502 | void *argp1 = 0 ; | |
5503 | int res1 = 0 ; | |
5504 | PyObject *swig_obj[1] ; | |
5505 | ||
5506 | if (!args) SWIG_fail; | |
5507 | swig_obj[0] = args; | |
5508 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5509 | if (!SWIG_IsOK(res1)) { | |
5510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsAlwaysMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5511 | } | |
5512 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5513 | { | |
5514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5515 | result = (bool)((wxTopLevelWindow const *)arg1)->IsAlwaysMaximized(); | |
5516 | wxPyEndAllowThreads(__tstate); | |
5517 | if (PyErr_Occurred()) SWIG_fail; | |
5518 | } | |
5519 | { | |
5520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5521 | } | |
5522 | return resultobj; | |
5523 | fail: | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
1bd55598 RD |
5528 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5529 | PyObject *resultobj = 0; | |
5530 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5531 | bool result; | |
5532 | void *argp1 = 0 ; | |
5533 | int res1 = 0 ; | |
5534 | PyObject *swig_obj[1] ; | |
5535 | ||
5536 | if (!args) SWIG_fail; | |
5537 | swig_obj[0] = args; | |
5538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5539 | if (!SWIG_IsOK(res1)) { | |
5540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsIconized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5541 | } | |
5542 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5543 | { | |
5544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5545 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
5546 | wxPyEndAllowThreads(__tstate); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | } | |
5549 | { | |
5550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5551 | } | |
5552 | return resultobj; | |
5553 | fail: | |
5554 | return NULL; | |
f5b96ee1 RD |
5555 | } |
5556 | ||
5557 | ||
1bd55598 RD |
5558 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5559 | PyObject *resultobj = 0; | |
5560 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5561 | wxIcon result; | |
5562 | void *argp1 = 0 ; | |
5563 | int res1 = 0 ; | |
5564 | PyObject *swig_obj[1] ; | |
5565 | ||
5566 | if (!args) SWIG_fail; | |
5567 | swig_obj[0] = args; | |
5568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5569 | if (!SWIG_IsOK(res1)) { | |
5570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5571 | } | |
5572 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5573 | { | |
5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5575 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
5576 | wxPyEndAllowThreads(__tstate); | |
5577 | if (PyErr_Occurred()) SWIG_fail; | |
5578 | } | |
5579 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
5580 | return resultobj; | |
5581 | fail: | |
5582 | return NULL; | |
5583 | } | |
5584 | ||
5585 | ||
5586 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5587 | PyObject *resultobj = 0; | |
5588 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5589 | wxIcon *arg2 = 0 ; | |
5590 | void *argp1 = 0 ; | |
5591 | int res1 = 0 ; | |
5592 | void *argp2 = 0 ; | |
5593 | int res2 = 0 ; | |
5594 | PyObject * obj0 = 0 ; | |
5595 | PyObject * obj1 = 0 ; | |
5596 | char * kwnames[] = { | |
5597 | (char *) "self",(char *) "icon", NULL | |
5598 | }; | |
5599 | ||
5600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
5601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5602 | if (!SWIG_IsOK(res1)) { | |
5603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5604 | } | |
5605 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5606 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
5607 | if (!SWIG_IsOK(res2)) { | |
5608 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5609 | } | |
5610 | if (!argp2) { | |
5611 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5612 | } | |
5613 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
5614 | { | |
5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5616 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5617 | wxPyEndAllowThreads(__tstate); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | } | |
5620 | resultobj = SWIG_Py_Void(); | |
5621 | return resultobj; | |
5622 | fail: | |
5623 | return NULL; | |
5624 | } | |
5625 | ||
5626 | ||
5627 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5628 | PyObject *resultobj = 0; | |
5629 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5630 | wxIconBundle *arg2 = 0 ; | |
5631 | void *argp1 = 0 ; | |
5632 | int res1 = 0 ; | |
5633 | void *argp2 = 0 ; | |
5634 | int res2 = 0 ; | |
5635 | PyObject * obj0 = 0 ; | |
5636 | PyObject * obj1 = 0 ; | |
5637 | char * kwnames[] = { | |
5638 | (char *) "self",(char *) "icons", NULL | |
5639 | }; | |
5640 | ||
5641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) SWIG_fail; | |
5642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5643 | if (!SWIG_IsOK(res1)) { | |
5644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5645 | } | |
5646 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5647 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIconBundle, 0 | 0); | |
5648 | if (!SWIG_IsOK(res2)) { | |
5649 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5650 | } | |
5651 | if (!argp2) { | |
5652 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5653 | } | |
5654 | arg2 = reinterpret_cast< wxIconBundle * >(argp2); | |
5655 | { | |
5656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5657 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
5658 | wxPyEndAllowThreads(__tstate); | |
5659 | if (PyErr_Occurred()) SWIG_fail; | |
5660 | } | |
5661 | resultobj = SWIG_Py_Void(); | |
5662 | return resultobj; | |
5663 | fail: | |
5664 | return NULL; | |
5665 | } | |
5666 | ||
5667 | ||
5668 | SWIGINTERN PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5669 | PyObject *resultobj = 0; | |
5670 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5671 | bool arg2 ; | |
5672 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
5673 | bool result; | |
5674 | void *argp1 = 0 ; | |
5675 | int res1 = 0 ; | |
5676 | bool val2 ; | |
5677 | int ecode2 = 0 ; | |
5678 | long val3 ; | |
5679 | int ecode3 = 0 ; | |
5680 | PyObject * obj0 = 0 ; | |
5681 | PyObject * obj1 = 0 ; | |
5682 | PyObject * obj2 = 0 ; | |
5683 | char * kwnames[] = { | |
5684 | (char *) "self",(char *) "show",(char *) "style", NULL | |
5685 | }; | |
5686 | ||
5687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5689 | if (!SWIG_IsOK(res1)) { | |
5690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5691 | } | |
5692 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5693 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5694 | if (!SWIG_IsOK(ecode2)) { | |
5695 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "2"" of type '" "bool""'"); | |
5696 | } | |
5697 | arg2 = static_cast< bool >(val2); | |
5698 | if (obj2) { | |
5699 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
5700 | if (!SWIG_IsOK(ecode3)) { | |
5701 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "3"" of type '" "long""'"); | |
5702 | } | |
5703 | arg3 = static_cast< long >(val3); | |
5704 | } | |
5705 | { | |
5706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5707 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
5708 | wxPyEndAllowThreads(__tstate); | |
5709 | if (PyErr_Occurred()) SWIG_fail; | |
5710 | } | |
5711 | { | |
5712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5713 | } | |
5714 | return resultobj; | |
5715 | fail: | |
5716 | return NULL; | |
f20a2e1f RD |
5717 | } |
5718 | ||
5719 | ||
1bd55598 RD |
5720 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5721 | PyObject *resultobj = 0; | |
5722 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5723 | bool result; | |
5724 | void *argp1 = 0 ; | |
5725 | int res1 = 0 ; | |
5726 | PyObject *swig_obj[1] ; | |
5727 | ||
5728 | if (!args) SWIG_fail; | |
5729 | swig_obj[0] = args; | |
5730 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5731 | if (!SWIG_IsOK(res1)) { | |
5732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5733 | } | |
5734 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5735 | { | |
5736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5737 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
5738 | wxPyEndAllowThreads(__tstate); | |
5739 | if (PyErr_Occurred()) SWIG_fail; | |
5740 | } | |
5741 | { | |
5742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5743 | } | |
5744 | return resultobj; | |
5745 | fail: | |
5746 | return NULL; | |
5747 | } | |
5748 | ||
5749 | ||
5750 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5751 | PyObject *resultobj = 0; | |
5752 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5753 | wxString *arg2 = 0 ; | |
5754 | void *argp1 = 0 ; | |
5755 | int res1 = 0 ; | |
5756 | bool temp2 = false ; | |
5757 | PyObject * obj0 = 0 ; | |
5758 | PyObject * obj1 = 0 ; | |
5759 | char * kwnames[] = { | |
5760 | (char *) "self",(char *) "title", NULL | |
5761 | }; | |
5762 | ||
5763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5764 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5765 | if (!SWIG_IsOK(res1)) { | |
5766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5767 | } | |
5768 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5769 | { | |
5770 | arg2 = wxString_in_helper(obj1); | |
5771 | if (arg2 == NULL) SWIG_fail; | |
5772 | temp2 = true; | |
5773 | } | |
5774 | { | |
5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5776 | (arg1)->SetTitle((wxString const &)*arg2); | |
5777 | wxPyEndAllowThreads(__tstate); | |
5778 | if (PyErr_Occurred()) SWIG_fail; | |
5779 | } | |
5780 | resultobj = SWIG_Py_Void(); | |
5781 | { | |
5782 | if (temp2) | |
5783 | delete arg2; | |
5784 | } | |
5785 | return resultobj; | |
5786 | fail: | |
5787 | { | |
5788 | if (temp2) | |
5789 | delete arg2; | |
5790 | } | |
5791 | return NULL; | |
d55e5bfc RD |
5792 | } |
5793 | ||
5794 | ||
1bd55598 RD |
5795 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5796 | PyObject *resultobj = 0; | |
5797 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5798 | wxString result; | |
5799 | void *argp1 = 0 ; | |
5800 | int res1 = 0 ; | |
5801 | PyObject *swig_obj[1] ; | |
5802 | ||
5803 | if (!args) SWIG_fail; | |
5804 | swig_obj[0] = args; | |
5805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5806 | if (!SWIG_IsOK(res1)) { | |
5807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5808 | } | |
5809 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5810 | { | |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5812 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
5813 | wxPyEndAllowThreads(__tstate); | |
5814 | if (PyErr_Occurred()) SWIG_fail; | |
5815 | } | |
5816 | { | |
d55e5bfc | 5817 | #if wxUSE_UNICODE |
1bd55598 | 5818 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5819 | #else |
1bd55598 | 5820 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5821 | #endif |
1bd55598 RD |
5822 | } |
5823 | return resultobj; | |
5824 | fail: | |
5825 | return NULL; | |
5826 | } | |
5827 | ||
5828 | ||
5829 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5830 | PyObject *resultobj = 0; | |
5831 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5832 | wxRegion *arg2 = 0 ; | |
5833 | bool result; | |
5834 | void *argp1 = 0 ; | |
5835 | int res1 = 0 ; | |
5836 | void *argp2 = 0 ; | |
5837 | int res2 = 0 ; | |
5838 | PyObject * obj0 = 0 ; | |
5839 | PyObject * obj1 = 0 ; | |
5840 | char * kwnames[] = { | |
5841 | (char *) "self",(char *) "region", NULL | |
5842 | }; | |
5843 | ||
5844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) SWIG_fail; | |
5845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5846 | if (!SWIG_IsOK(res1)) { | |
5847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetShape" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5848 | } | |
5849 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5850 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
5851 | if (!SWIG_IsOK(res2)) { | |
5852 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5853 | } | |
5854 | if (!argp2) { | |
5855 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5856 | } | |
5857 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
5858 | { | |
5859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5860 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
5861 | wxPyEndAllowThreads(__tstate); | |
5862 | if (PyErr_Occurred()) SWIG_fail; | |
5863 | } | |
5864 | { | |
5865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5866 | } | |
5867 | return resultobj; | |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
5873 | SWIGINTERN PyObject *_wrap_TopLevelWindow_RequestUserAttention(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5874 | PyObject *resultobj = 0; | |
5875 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5876 | int arg2 = (int) wxUSER_ATTENTION_INFO ; | |
5877 | void *argp1 = 0 ; | |
5878 | int res1 = 0 ; | |
5879 | int val2 ; | |
5880 | int ecode2 = 0 ; | |
5881 | PyObject * obj0 = 0 ; | |
5882 | PyObject * obj1 = 0 ; | |
5883 | char * kwnames[] = { | |
5884 | (char *) "self",(char *) "flags", NULL | |
5885 | }; | |
5886 | ||
5887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_RequestUserAttention",kwnames,&obj0,&obj1)) SWIG_fail; | |
5888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5889 | if (!SWIG_IsOK(res1)) { | |
5890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5891 | } | |
5892 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5893 | if (obj1) { | |
5894 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5895 | if (!SWIG_IsOK(ecode2)) { | |
5896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "2"" of type '" "int""'"); | |
5897 | } | |
5898 | arg2 = static_cast< int >(val2); | |
5899 | } | |
5900 | { | |
5901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5902 | (arg1)->RequestUserAttention(arg2); | |
5903 | wxPyEndAllowThreads(__tstate); | |
5904 | if (PyErr_Occurred()) SWIG_fail; | |
5905 | } | |
5906 | resultobj = SWIG_Py_Void(); | |
5907 | return resultobj; | |
5908 | fail: | |
5909 | return NULL; | |
d55e5bfc RD |
5910 | } |
5911 | ||
5912 | ||
1bd55598 RD |
5913 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5914 | PyObject *resultobj = 0; | |
5915 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5916 | bool result; | |
5917 | void *argp1 = 0 ; | |
5918 | int res1 = 0 ; | |
5919 | PyObject *swig_obj[1] ; | |
5920 | ||
5921 | if (!args) SWIG_fail; | |
5922 | swig_obj[0] = args; | |
5923 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5924 | if (!SWIG_IsOK(res1)) { | |
5925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsActive" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5926 | } | |
5927 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5928 | { | |
5929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5930 | result = (bool)(arg1)->IsActive(); | |
5931 | wxPyEndAllowThreads(__tstate); | |
5932 | if (PyErr_Occurred()) SWIG_fail; | |
5933 | } | |
5934 | { | |
5935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5936 | } | |
5937 | return resultobj; | |
5938 | fail: | |
5939 | return NULL; | |
5940 | } | |
5941 | ||
5942 | ||
5943 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5944 | PyObject *resultobj = 0; | |
5945 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5946 | bool arg2 ; | |
5947 | void *argp1 = 0 ; | |
5948 | int res1 = 0 ; | |
5949 | bool val2 ; | |
5950 | int ecode2 = 0 ; | |
5951 | PyObject * obj0 = 0 ; | |
5952 | PyObject * obj1 = 0 ; | |
5953 | char * kwnames[] = { | |
5954 | (char *) "self",(char *) "on", NULL | |
5955 | }; | |
5956 | ||
5957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) SWIG_fail; | |
5958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5959 | if (!SWIG_IsOK(res1)) { | |
5960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5961 | } | |
5962 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5963 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5964 | if (!SWIG_IsOK(ecode2)) { | |
5965 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "2"" of type '" "bool""'"); | |
5966 | } | |
5967 | arg2 = static_cast< bool >(val2); | |
5968 | { | |
5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5970 | wxTopLevelWindow_MacSetMetalAppearance(arg1,arg2); | |
5971 | wxPyEndAllowThreads(__tstate); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
5974 | resultobj = SWIG_Py_Void(); | |
5975 | return resultobj; | |
5976 | fail: | |
5977 | return NULL; | |
d55e5bfc RD |
5978 | } |
5979 | ||
5980 | ||
1bd55598 RD |
5981 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5982 | PyObject *resultobj = 0; | |
5983 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5984 | bool result; | |
5985 | void *argp1 = 0 ; | |
5986 | int res1 = 0 ; | |
5987 | PyObject *swig_obj[1] ; | |
5988 | ||
5989 | if (!args) SWIG_fail; | |
5990 | swig_obj[0] = args; | |
5991 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5992 | if (!SWIG_IsOK(res1)) { | |
5993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacGetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5994 | } | |
5995 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5996 | { | |
5997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5998 | result = (bool)((wxTopLevelWindow const *)arg1)->MacGetMetalAppearance(); | |
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | { | |
6003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6004 | } | |
6005 | return resultobj; | |
6006 | fail: | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
6011 | SWIGINTERN PyObject *_wrap_TopLevelWindow_CenterOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj = 0; | |
6013 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6014 | int arg2 = (int) wxBOTH ; | |
6015 | void *argp1 = 0 ; | |
6016 | int res1 = 0 ; | |
6017 | int val2 ; | |
6018 | int ecode2 = 0 ; | |
6019 | PyObject * obj0 = 0 ; | |
6020 | PyObject * obj1 = 0 ; | |
6021 | char * kwnames[] = { | |
6022 | (char *) "self",(char *) "dir", NULL | |
6023 | }; | |
6024 | ||
6025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_CenterOnScreen",kwnames,&obj0,&obj1)) SWIG_fail; | |
6026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6027 | if (!SWIG_IsOK(res1)) { | |
6028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6029 | } | |
6030 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6031 | if (obj1) { | |
6032 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6033 | if (!SWIG_IsOK(ecode2)) { | |
6034 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "2"" of type '" "int""'"); | |
6035 | } | |
6036 | arg2 = static_cast< int >(val2); | |
6037 | } | |
6038 | { | |
6039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6040 | (arg1)->CenterOnScreen(arg2); | |
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) SWIG_fail; | |
6043 | } | |
6044 | resultobj = SWIG_Py_Void(); | |
6045 | return resultobj; | |
6046 | fail: | |
6047 | return NULL; | |
6048 | } | |
6049 | ||
6050 | ||
10044bf1 RD |
6051 | SWIGINTERN PyObject *_wrap_TopLevelWindow_EnableCloseButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6052 | PyObject *resultobj = 0; | |
6053 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6054 | bool arg2 = (bool) true ; | |
6055 | bool result; | |
6056 | void *argp1 = 0 ; | |
6057 | int res1 = 0 ; | |
6058 | bool val2 ; | |
6059 | int ecode2 = 0 ; | |
6060 | PyObject * obj0 = 0 ; | |
6061 | PyObject * obj1 = 0 ; | |
6062 | char * kwnames[] = { | |
6063 | (char *) "self",(char *) "enable", NULL | |
6064 | }; | |
6065 | ||
6066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_EnableCloseButton",kwnames,&obj0,&obj1)) SWIG_fail; | |
6067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6068 | if (!SWIG_IsOK(res1)) { | |
6069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_EnableCloseButton" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6070 | } | |
6071 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6072 | if (obj1) { | |
6073 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
6074 | if (!SWIG_IsOK(ecode2)) { | |
6075 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_EnableCloseButton" "', expected argument " "2"" of type '" "bool""'"); | |
6076 | } | |
6077 | arg2 = static_cast< bool >(val2); | |
6078 | } | |
6079 | { | |
6080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6081 | result = (bool)wxTopLevelWindow_EnableCloseButton(arg1,arg2); | |
6082 | wxPyEndAllowThreads(__tstate); | |
6083 | if (PyErr_Occurred()) SWIG_fail; | |
6084 | } | |
6085 | { | |
6086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6087 | } | |
6088 | return resultobj; | |
6089 | fail: | |
6090 | return NULL; | |
6091 | } | |
6092 | ||
6093 | ||
1eeb270e RD |
6094 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6095 | PyObject *resultobj = 0; | |
6096 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6097 | wxWindow *result = 0 ; | |
6098 | void *argp1 = 0 ; | |
6099 | int res1 = 0 ; | |
6100 | PyObject *swig_obj[1] ; | |
6101 | ||
6102 | if (!args) SWIG_fail; | |
6103 | swig_obj[0] = args; | |
6104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6105 | if (!SWIG_IsOK(res1)) { | |
6106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
6107 | } | |
6108 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6109 | { | |
6110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6111 | result = (wxWindow *)((wxTopLevelWindow const *)arg1)->GetDefaultItem(); | |
6112 | wxPyEndAllowThreads(__tstate); | |
6113 | if (PyErr_Occurred()) SWIG_fail; | |
6114 | } | |
6115 | { | |
6116 | resultobj = wxPyMake_wxObject(result, 0); | |
6117 | } | |
6118 | return resultobj; | |
6119 | fail: | |
6120 | return NULL; | |
6121 | } | |
6122 | ||
6123 | ||
6124 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6125 | PyObject *resultobj = 0; | |
6126 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6127 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6128 | wxWindow *result = 0 ; | |
6129 | void *argp1 = 0 ; | |
6130 | int res1 = 0 ; | |
6131 | void *argp2 = 0 ; | |
6132 | int res2 = 0 ; | |
6133 | PyObject * obj0 = 0 ; | |
6134 | PyObject * obj1 = 0 ; | |
6135 | char * kwnames[] = { | |
6136 | (char *) "self",(char *) "child", NULL | |
6137 | }; | |
6138 | ||
6139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetDefaultItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
6140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6141 | if (!SWIG_IsOK(res1)) { | |
6142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6143 | } | |
6144 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6145 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6146 | if (!SWIG_IsOK(res2)) { | |
6147 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetDefaultItem" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6148 | } | |
6149 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6150 | { | |
6151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6152 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
6153 | wxPyEndAllowThreads(__tstate); | |
6154 | if (PyErr_Occurred()) SWIG_fail; | |
6155 | } | |
6156 | { | |
6157 | resultobj = wxPyMake_wxObject(result, 0); | |
6158 | } | |
6159 | return resultobj; | |
6160 | fail: | |
6161 | return NULL; | |
6162 | } | |
6163 | ||
6164 | ||
6165 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTmpDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6166 | PyObject *resultobj = 0; | |
6167 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6168 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6169 | void *argp1 = 0 ; | |
6170 | int res1 = 0 ; | |
6171 | void *argp2 = 0 ; | |
6172 | int res2 = 0 ; | |
6173 | PyObject * obj0 = 0 ; | |
6174 | PyObject * obj1 = 0 ; | |
6175 | char * kwnames[] = { | |
6176 | (char *) "self",(char *) "win", NULL | |
6177 | }; | |
6178 | ||
6179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTmpDefaultItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
6180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6181 | if (!SWIG_IsOK(res1)) { | |
6182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTmpDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6183 | } | |
6184 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6185 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6186 | if (!SWIG_IsOK(res2)) { | |
6187 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetTmpDefaultItem" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6188 | } | |
6189 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6190 | { | |
6191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6192 | (arg1)->SetTmpDefaultItem(arg2); | |
6193 | wxPyEndAllowThreads(__tstate); | |
6194 | if (PyErr_Occurred()) SWIG_fail; | |
6195 | } | |
6196 | resultobj = SWIG_Py_Void(); | |
6197 | return resultobj; | |
6198 | fail: | |
6199 | return NULL; | |
6200 | } | |
6201 | ||
6202 | ||
6203 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTmpDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6204 | PyObject *resultobj = 0; | |
6205 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6206 | wxWindow *result = 0 ; | |
6207 | void *argp1 = 0 ; | |
6208 | int res1 = 0 ; | |
6209 | PyObject *swig_obj[1] ; | |
6210 | ||
6211 | if (!args) SWIG_fail; | |
6212 | swig_obj[0] = args; | |
6213 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6214 | if (!SWIG_IsOK(res1)) { | |
6215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTmpDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
6216 | } | |
6217 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6218 | { | |
6219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6220 | result = (wxWindow *)((wxTopLevelWindow const *)arg1)->GetTmpDefaultItem(); | |
6221 | wxPyEndAllowThreads(__tstate); | |
6222 | if (PyErr_Occurred()) SWIG_fail; | |
6223 | } | |
6224 | { | |
6225 | resultobj = wxPyMake_wxObject(result, 0); | |
6226 | } | |
6227 | return resultobj; | |
6228 | fail: | |
6229 | return NULL; | |
6230 | } | |
6231 | ||
6232 | ||
1bd55598 RD |
6233 | SWIGINTERN PyObject *TopLevelWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6234 | PyObject *obj; | |
6235 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6236 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTopLevelWindow, SWIG_NewClientData(obj)); | |
6237 | return SWIG_Py_Void(); | |
6238 | } | |
6239 | ||
6240 | SWIGINTERN PyObject *_wrap_new_Frame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6241 | PyObject *resultobj = 0; | |
6242 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6243 | int arg2 = (int) (int)-1 ; | |
6244 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6245 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6246 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6247 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6248 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6249 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6250 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
6251 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
6252 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6253 | wxFrame *result = 0 ; | |
6254 | void *argp1 = 0 ; | |
6255 | int res1 = 0 ; | |
6256 | int val2 ; | |
6257 | int ecode2 = 0 ; | |
6258 | bool temp3 = false ; | |
6259 | wxPoint temp4 ; | |
6260 | wxSize temp5 ; | |
6261 | long val6 ; | |
6262 | int ecode6 = 0 ; | |
6263 | bool temp7 = false ; | |
6264 | PyObject * obj0 = 0 ; | |
6265 | PyObject * obj1 = 0 ; | |
6266 | PyObject * obj2 = 0 ; | |
6267 | PyObject * obj3 = 0 ; | |
6268 | PyObject * obj4 = 0 ; | |
6269 | PyObject * obj5 = 0 ; | |
6270 | PyObject * obj6 = 0 ; | |
6271 | char * kwnames[] = { | |
6272 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6273 | }; | |
6274 | ||
6275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
6276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6277 | if (!SWIG_IsOK(res1)) { | |
6278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Frame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6279 | } | |
6280 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6281 | if (obj1) { | |
6282 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6283 | if (!SWIG_IsOK(ecode2)) { | |
6284 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Frame" "', expected argument " "2"" of type '" "int""'"); | |
6285 | } | |
6286 | arg2 = static_cast< int >(val2); | |
6287 | } | |
6288 | if (obj2) { | |
d55e5bfc | 6289 | { |
1bd55598 RD |
6290 | arg3 = wxString_in_helper(obj2); |
6291 | if (arg3 == NULL) SWIG_fail; | |
6292 | temp3 = true; | |
d55e5bfc | 6293 | } |
1bd55598 RD |
6294 | } |
6295 | if (obj3) { | |
d55e5bfc | 6296 | { |
1bd55598 RD |
6297 | arg4 = &temp4; |
6298 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 6299 | } |
1bd55598 RD |
6300 | } |
6301 | if (obj4) { | |
d55e5bfc | 6302 | { |
1bd55598 RD |
6303 | arg5 = &temp5; |
6304 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 6305 | } |
1bd55598 RD |
6306 | } |
6307 | if (obj5) { | |
6308 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6309 | if (!SWIG_IsOK(ecode6)) { | |
6310 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Frame" "', expected argument " "6"" of type '" "long""'"); | |
6311 | } | |
6312 | arg6 = static_cast< long >(val6); | |
6313 | } | |
6314 | if (obj6) { | |
d55e5bfc | 6315 | { |
1bd55598 RD |
6316 | arg7 = wxString_in_helper(obj6); |
6317 | if (arg7 == NULL) SWIG_fail; | |
6318 | temp7 = true; | |
6319 | } | |
6320 | } | |
6321 | { | |
6322 | if (!wxPyCheckForApp()) SWIG_fail; | |
6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6324 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6325 | wxPyEndAllowThreads(__tstate); | |
6326 | if (PyErr_Occurred()) SWIG_fail; | |
6327 | } | |
6328 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_NEW | 0 ); | |
6329 | { | |
6330 | if (temp3) | |
6331 | delete arg3; | |
6332 | } | |
6333 | { | |
6334 | if (temp7) | |
6335 | delete arg7; | |
6336 | } | |
6337 | return resultobj; | |
6338 | fail: | |
6339 | { | |
6340 | if (temp3) | |
6341 | delete arg3; | |
6342 | } | |
6343 | { | |
6344 | if (temp7) | |
6345 | delete arg7; | |
6346 | } | |
6347 | return NULL; | |
d55e5bfc RD |
6348 | } |
6349 | ||
6350 | ||
1bd55598 RD |
6351 | SWIGINTERN PyObject *_wrap_new_PreFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6352 | PyObject *resultobj = 0; | |
6353 | wxFrame *result = 0 ; | |
6354 | ||
6355 | if (!SWIG_Python_UnpackTuple(args,"new_PreFrame",0,0,0)) SWIG_fail; | |
6356 | { | |
6357 | if (!wxPyCheckForApp()) SWIG_fail; | |
6358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6359 | result = (wxFrame *)new wxFrame(); | |
6360 | wxPyEndAllowThreads(__tstate); | |
6361 | if (PyErr_Occurred()) SWIG_fail; | |
6362 | } | |
6363 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_OWN | 0 ); | |
6364 | return resultobj; | |
6365 | fail: | |
6366 | return NULL; | |
6367 | } | |
6368 | ||
6369 | ||
6370 | SWIGINTERN PyObject *_wrap_Frame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6371 | PyObject *resultobj = 0; | |
6372 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6373 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6374 | int arg3 = (int) (int)-1 ; | |
6375 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6376 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6377 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6378 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6379 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6380 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6381 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
6382 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
6383 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6384 | bool result; | |
6385 | void *argp1 = 0 ; | |
6386 | int res1 = 0 ; | |
6387 | void *argp2 = 0 ; | |
6388 | int res2 = 0 ; | |
6389 | int val3 ; | |
6390 | int ecode3 = 0 ; | |
6391 | bool temp4 = false ; | |
6392 | wxPoint temp5 ; | |
6393 | wxSize temp6 ; | |
6394 | long val7 ; | |
6395 | int ecode7 = 0 ; | |
6396 | bool temp8 = false ; | |
6397 | PyObject * obj0 = 0 ; | |
6398 | PyObject * obj1 = 0 ; | |
6399 | PyObject * obj2 = 0 ; | |
6400 | PyObject * obj3 = 0 ; | |
6401 | PyObject * obj4 = 0 ; | |
6402 | PyObject * obj5 = 0 ; | |
6403 | PyObject * obj6 = 0 ; | |
6404 | PyObject * obj7 = 0 ; | |
6405 | char * kwnames[] = { | |
6406 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6407 | }; | |
6408 | ||
6409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6411 | if (!SWIG_IsOK(res1)) { | |
6412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_Create" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6413 | } | |
6414 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6415 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6416 | if (!SWIG_IsOK(res2)) { | |
6417 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6418 | } | |
6419 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6420 | if (obj2) { | |
6421 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6422 | if (!SWIG_IsOK(ecode3)) { | |
6423 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_Create" "', expected argument " "3"" of type '" "int""'"); | |
6424 | } | |
6425 | arg3 = static_cast< int >(val3); | |
6426 | } | |
6427 | if (obj3) { | |
d55e5bfc | 6428 | { |
1bd55598 RD |
6429 | arg4 = wxString_in_helper(obj3); |
6430 | if (arg4 == NULL) SWIG_fail; | |
6431 | temp4 = true; | |
d55e5bfc | 6432 | } |
1bd55598 RD |
6433 | } |
6434 | if (obj4) { | |
d55e5bfc | 6435 | { |
1bd55598 RD |
6436 | arg5 = &temp5; |
6437 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6438 | } | |
6439 | } | |
6440 | if (obj5) { | |
d55e5bfc | 6441 | { |
1bd55598 RD |
6442 | arg6 = &temp6; |
6443 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 6444 | } |
1bd55598 RD |
6445 | } |
6446 | if (obj6) { | |
6447 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6448 | if (!SWIG_IsOK(ecode7)) { | |
6449 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Frame_Create" "', expected argument " "7"" of type '" "long""'"); | |
6450 | } | |
6451 | arg7 = static_cast< long >(val7); | |
6452 | } | |
6453 | if (obj7) { | |
d55e5bfc | 6454 | { |
1bd55598 RD |
6455 | arg8 = wxString_in_helper(obj7); |
6456 | if (arg8 == NULL) SWIG_fail; | |
6457 | temp8 = true; | |
d55e5bfc | 6458 | } |
1bd55598 RD |
6459 | } |
6460 | { | |
6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6462 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6463 | wxPyEndAllowThreads(__tstate); | |
6464 | if (PyErr_Occurred()) SWIG_fail; | |
6465 | } | |
6466 | { | |
6467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6468 | } | |
6469 | { | |
6470 | if (temp4) | |
6471 | delete arg4; | |
6472 | } | |
6473 | { | |
6474 | if (temp8) | |
6475 | delete arg8; | |
6476 | } | |
6477 | return resultobj; | |
6478 | fail: | |
6479 | { | |
6480 | if (temp4) | |
6481 | delete arg4; | |
6482 | } | |
6483 | { | |
6484 | if (temp8) | |
6485 | delete arg8; | |
6486 | } | |
6487 | return NULL; | |
d55e5bfc RD |
6488 | } |
6489 | ||
6490 | ||
1bd55598 RD |
6491 | SWIGINTERN PyObject *_wrap_Frame_SendSizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6492 | PyObject *resultobj = 0; | |
6493 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6494 | void *argp1 = 0 ; | |
6495 | int res1 = 0 ; | |
6496 | PyObject *swig_obj[1] ; | |
6497 | ||
6498 | if (!args) SWIG_fail; | |
6499 | swig_obj[0] = args; | |
6500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6501 | if (!SWIG_IsOK(res1)) { | |
6502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SendSizeEvent" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6503 | } | |
6504 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6505 | { | |
6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6507 | (arg1)->SendSizeEvent(); | |
6508 | wxPyEndAllowThreads(__tstate); | |
6509 | if (PyErr_Occurred()) SWIG_fail; | |
6510 | } | |
6511 | resultobj = SWIG_Py_Void(); | |
6512 | return resultobj; | |
6513 | fail: | |
6514 | return NULL; | |
6515 | } | |
6516 | ||
6517 | ||
6518 | SWIGINTERN PyObject *_wrap_Frame_SetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6519 | PyObject *resultobj = 0; | |
6520 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6521 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
6522 | void *argp1 = 0 ; | |
6523 | int res1 = 0 ; | |
6524 | void *argp2 = 0 ; | |
6525 | int res2 = 0 ; | |
6526 | PyObject * obj0 = 0 ; | |
6527 | PyObject * obj1 = 0 ; | |
6528 | char * kwnames[] = { | |
6529 | (char *) "self",(char *) "menubar", NULL | |
6530 | }; | |
6531 | ||
6532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6533 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6534 | if (!SWIG_IsOK(res1)) { | |
6535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetMenuBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6536 | } | |
6537 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6538 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBar, 0 | 0 ); | |
6539 | if (!SWIG_IsOK(res2)) { | |
6540 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetMenuBar" "', expected argument " "2"" of type '" "wxMenuBar *""'"); | |
6541 | } | |
6542 | arg2 = reinterpret_cast< wxMenuBar * >(argp2); | |
6543 | { | |
6544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6545 | (arg1)->SetMenuBar(arg2); | |
6546 | wxPyEndAllowThreads(__tstate); | |
6547 | if (PyErr_Occurred()) SWIG_fail; | |
6548 | } | |
6549 | resultobj = SWIG_Py_Void(); | |
6550 | return resultobj; | |
6551 | fail: | |
6552 | return NULL; | |
d55e5bfc RD |
6553 | } |
6554 | ||
6555 | ||
1bd55598 RD |
6556 | SWIGINTERN PyObject *_wrap_Frame_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6557 | PyObject *resultobj = 0; | |
6558 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6559 | wxMenuBar *result = 0 ; | |
6560 | void *argp1 = 0 ; | |
6561 | int res1 = 0 ; | |
6562 | PyObject *swig_obj[1] ; | |
6563 | ||
6564 | if (!args) SWIG_fail; | |
6565 | swig_obj[0] = args; | |
6566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6567 | if (!SWIG_IsOK(res1)) { | |
6568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetMenuBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6569 | } | |
6570 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6571 | { | |
6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6573 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
6574 | wxPyEndAllowThreads(__tstate); | |
6575 | if (PyErr_Occurred()) SWIG_fail; | |
6576 | } | |
6577 | { | |
6578 | resultobj = wxPyMake_wxObject(result, 0); | |
6579 | } | |
6580 | return resultobj; | |
6581 | fail: | |
6582 | return NULL; | |
6583 | } | |
6584 | ||
6585 | ||
6586 | SWIGINTERN PyObject *_wrap_Frame_ProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6587 | PyObject *resultobj = 0; | |
6588 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6589 | int arg2 ; | |
6590 | bool result; | |
6591 | void *argp1 = 0 ; | |
6592 | int res1 = 0 ; | |
6593 | int val2 ; | |
6594 | int ecode2 = 0 ; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | PyObject * obj1 = 0 ; | |
6597 | char * kwnames[] = { | |
6598 | (char *) "self",(char *) "winid", NULL | |
6599 | }; | |
6600 | ||
6601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) SWIG_fail; | |
6602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6603 | if (!SWIG_IsOK(res1)) { | |
6604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_ProcessCommand" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6605 | } | |
6606 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6607 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6608 | if (!SWIG_IsOK(ecode2)) { | |
6609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_ProcessCommand" "', expected argument " "2"" of type '" "int""'"); | |
6610 | } | |
6611 | arg2 = static_cast< int >(val2); | |
6612 | { | |
6613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6614 | result = (bool)(arg1)->ProcessCommand(arg2); | |
6615 | wxPyEndAllowThreads(__tstate); | |
6616 | if (PyErr_Occurred()) SWIG_fail; | |
6617 | } | |
6618 | { | |
6619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6620 | } | |
6621 | return resultobj; | |
6622 | fail: | |
6623 | return NULL; | |
6624 | } | |
6625 | ||
6626 | ||
6627 | SWIGINTERN PyObject *_wrap_Frame_CreateStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6628 | PyObject *resultobj = 0; | |
6629 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6630 | int arg2 = (int) 1 ; | |
6631 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
6632 | int arg4 = (int) 0 ; | |
6633 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
6634 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
6635 | wxStatusBar *result = 0 ; | |
6636 | void *argp1 = 0 ; | |
6637 | int res1 = 0 ; | |
6638 | int val2 ; | |
6639 | int ecode2 = 0 ; | |
6640 | long val3 ; | |
6641 | int ecode3 = 0 ; | |
6642 | int val4 ; | |
6643 | int ecode4 = 0 ; | |
6644 | bool temp5 = false ; | |
6645 | PyObject * obj0 = 0 ; | |
6646 | PyObject * obj1 = 0 ; | |
6647 | PyObject * obj2 = 0 ; | |
6648 | PyObject * obj3 = 0 ; | |
6649 | PyObject * obj4 = 0 ; | |
6650 | char * kwnames[] = { | |
6651 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6652 | }; | |
6653 | ||
6654 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
6655 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6656 | if (!SWIG_IsOK(res1)) { | |
6657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6658 | } | |
6659 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6660 | if (obj1) { | |
6661 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6662 | if (!SWIG_IsOK(ecode2)) { | |
6663 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateStatusBar" "', expected argument " "2"" of type '" "int""'"); | |
6664 | } | |
6665 | arg2 = static_cast< int >(val2); | |
6666 | } | |
6667 | if (obj2) { | |
6668 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6669 | if (!SWIG_IsOK(ecode3)) { | |
6670 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateStatusBar" "', expected argument " "3"" of type '" "long""'"); | |
6671 | } | |
6672 | arg3 = static_cast< long >(val3); | |
6673 | } | |
6674 | if (obj3) { | |
6675 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6676 | if (!SWIG_IsOK(ecode4)) { | |
6677 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Frame_CreateStatusBar" "', expected argument " "4"" of type '" "int""'"); | |
6678 | } | |
6679 | arg4 = static_cast< int >(val4); | |
6680 | } | |
6681 | if (obj4) { | |
d55e5bfc | 6682 | { |
1bd55598 RD |
6683 | arg5 = wxString_in_helper(obj4); |
6684 | if (arg5 == NULL) SWIG_fail; | |
6685 | temp5 = true; | |
d55e5bfc | 6686 | } |
1bd55598 RD |
6687 | } |
6688 | { | |
6689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6690 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
6691 | wxPyEndAllowThreads(__tstate); | |
6692 | if (PyErr_Occurred()) SWIG_fail; | |
6693 | } | |
6694 | { | |
6695 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6696 | } | |
6697 | { | |
6698 | if (temp5) | |
6699 | delete arg5; | |
6700 | } | |
6701 | return resultobj; | |
6702 | fail: | |
6703 | { | |
6704 | if (temp5) | |
6705 | delete arg5; | |
6706 | } | |
6707 | return NULL; | |
d55e5bfc RD |
6708 | } |
6709 | ||
6710 | ||
1bd55598 RD |
6711 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6712 | PyObject *resultobj = 0; | |
6713 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6714 | wxStatusBar *result = 0 ; | |
6715 | void *argp1 = 0 ; | |
6716 | int res1 = 0 ; | |
6717 | PyObject *swig_obj[1] ; | |
6718 | ||
6719 | if (!args) SWIG_fail; | |
6720 | swig_obj[0] = args; | |
6721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6722 | if (!SWIG_IsOK(res1)) { | |
6723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6724 | } | |
6725 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6726 | { | |
6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6728 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
6729 | wxPyEndAllowThreads(__tstate); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
6731 | } | |
6732 | { | |
6733 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6734 | } | |
6735 | return resultobj; | |
6736 | fail: | |
6737 | return NULL; | |
6738 | } | |
6739 | ||
6740 | ||
6741 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6742 | PyObject *resultobj = 0; | |
6743 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6744 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
6745 | void *argp1 = 0 ; | |
6746 | int res1 = 0 ; | |
6747 | void *argp2 = 0 ; | |
6748 | int res2 = 0 ; | |
6749 | PyObject * obj0 = 0 ; | |
6750 | PyObject * obj1 = 0 ; | |
6751 | char * kwnames[] = { | |
6752 | (char *) "self",(char *) "statBar", NULL | |
6753 | }; | |
6754 | ||
6755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6757 | if (!SWIG_IsOK(res1)) { | |
6758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6759 | } | |
6760 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6761 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
6762 | if (!SWIG_IsOK(res2)) { | |
6763 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetStatusBar" "', expected argument " "2"" of type '" "wxStatusBar *""'"); | |
6764 | } | |
6765 | arg2 = reinterpret_cast< wxStatusBar * >(argp2); | |
6766 | { | |
6767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6768 | (arg1)->SetStatusBar(arg2); | |
6769 | wxPyEndAllowThreads(__tstate); | |
6770 | if (PyErr_Occurred()) SWIG_fail; | |
6771 | } | |
6772 | resultobj = SWIG_Py_Void(); | |
6773 | return resultobj; | |
6774 | fail: | |
6775 | return NULL; | |
6776 | } | |
6777 | ||
6778 | ||
6779 | SWIGINTERN PyObject *_wrap_Frame_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6780 | PyObject *resultobj = 0; | |
6781 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6782 | wxString *arg2 = 0 ; | |
6783 | int arg3 = (int) 0 ; | |
6784 | void *argp1 = 0 ; | |
6785 | int res1 = 0 ; | |
6786 | bool temp2 = false ; | |
6787 | int val3 ; | |
6788 | int ecode3 = 0 ; | |
6789 | PyObject * obj0 = 0 ; | |
6790 | PyObject * obj1 = 0 ; | |
6791 | PyObject * obj2 = 0 ; | |
6792 | char * kwnames[] = { | |
6793 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6794 | }; | |
6795 | ||
6796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6798 | if (!SWIG_IsOK(res1)) { | |
6799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6800 | } | |
6801 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6802 | { | |
6803 | arg2 = wxString_in_helper(obj1); | |
6804 | if (arg2 == NULL) SWIG_fail; | |
6805 | temp2 = true; | |
6806 | } | |
6807 | if (obj2) { | |
6808 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6809 | if (!SWIG_IsOK(ecode3)) { | |
6810 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6811 | } | |
6812 | arg3 = static_cast< int >(val3); | |
6813 | } | |
6814 | { | |
6815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6816 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
6817 | wxPyEndAllowThreads(__tstate); | |
6818 | if (PyErr_Occurred()) SWIG_fail; | |
6819 | } | |
6820 | resultobj = SWIG_Py_Void(); | |
6821 | { | |
6822 | if (temp2) | |
6823 | delete arg2; | |
6824 | } | |
6825 | return resultobj; | |
6826 | fail: | |
6827 | { | |
6828 | if (temp2) | |
6829 | delete arg2; | |
6830 | } | |
6831 | return NULL; | |
d55e5bfc RD |
6832 | } |
6833 | ||
6834 | ||
1bd55598 RD |
6835 | SWIGINTERN PyObject *_wrap_Frame_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6836 | PyObject *resultobj = 0; | |
6837 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6838 | int arg2 ; | |
6839 | int *arg3 = (int *) 0 ; | |
6840 | void *argp1 = 0 ; | |
6841 | int res1 = 0 ; | |
6842 | PyObject * obj0 = 0 ; | |
6843 | PyObject * obj1 = 0 ; | |
6844 | char * kwnames[] = { | |
6845 | (char *) "self",(char *) "widths", NULL | |
6846 | }; | |
6847 | ||
6848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
6849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6850 | if (!SWIG_IsOK(res1)) { | |
6851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusWidths" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6852 | } | |
6853 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6854 | { | |
6855 | arg2 = PyList_Size(obj1); | |
6856 | arg3 = int_LIST_helper(obj1); | |
6857 | if (arg3 == NULL) SWIG_fail; | |
6858 | } | |
6859 | { | |
6860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6861 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
6862 | wxPyEndAllowThreads(__tstate); | |
6863 | if (PyErr_Occurred()) SWIG_fail; | |
6864 | } | |
6865 | resultobj = SWIG_Py_Void(); | |
6866 | { | |
6867 | if (arg3) delete [] arg3; | |
6868 | } | |
6869 | return resultobj; | |
6870 | fail: | |
6871 | { | |
6872 | if (arg3) delete [] arg3; | |
6873 | } | |
6874 | return NULL; | |
6875 | } | |
6876 | ||
6877 | ||
6878 | SWIGINTERN PyObject *_wrap_Frame_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6879 | PyObject *resultobj = 0; | |
6880 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6881 | wxString *arg2 = 0 ; | |
6882 | int arg3 = (int) 0 ; | |
6883 | void *argp1 = 0 ; | |
6884 | int res1 = 0 ; | |
6885 | bool temp2 = false ; | |
6886 | int val3 ; | |
6887 | int ecode3 = 0 ; | |
6888 | PyObject * obj0 = 0 ; | |
6889 | PyObject * obj1 = 0 ; | |
6890 | PyObject * obj2 = 0 ; | |
6891 | char * kwnames[] = { | |
6892 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6893 | }; | |
6894 | ||
6895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6897 | if (!SWIG_IsOK(res1)) { | |
6898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PushStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6899 | } | |
6900 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6901 | { | |
6902 | arg2 = wxString_in_helper(obj1); | |
6903 | if (arg2 == NULL) SWIG_fail; | |
6904 | temp2 = true; | |
6905 | } | |
6906 | if (obj2) { | |
6907 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6908 | if (!SWIG_IsOK(ecode3)) { | |
6909 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6910 | } | |
6911 | arg3 = static_cast< int >(val3); | |
6912 | } | |
6913 | { | |
6914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6915 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
6916 | wxPyEndAllowThreads(__tstate); | |
6917 | if (PyErr_Occurred()) SWIG_fail; | |
6918 | } | |
6919 | resultobj = SWIG_Py_Void(); | |
6920 | { | |
6921 | if (temp2) | |
6922 | delete arg2; | |
6923 | } | |
6924 | return resultobj; | |
6925 | fail: | |
6926 | { | |
6927 | if (temp2) | |
6928 | delete arg2; | |
6929 | } | |
6930 | return NULL; | |
6931 | } | |
6932 | ||
6933 | ||
6934 | SWIGINTERN PyObject *_wrap_Frame_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6935 | PyObject *resultobj = 0; | |
6936 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6937 | int arg2 = (int) 0 ; | |
6938 | void *argp1 = 0 ; | |
6939 | int res1 = 0 ; | |
6940 | int val2 ; | |
6941 | int ecode2 = 0 ; | |
6942 | PyObject * obj0 = 0 ; | |
6943 | PyObject * obj1 = 0 ; | |
6944 | char * kwnames[] = { | |
6945 | (char *) "self",(char *) "number", NULL | |
6946 | }; | |
6947 | ||
6948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6950 | if (!SWIG_IsOK(res1)) { | |
6951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PopStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6952 | } | |
6953 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6954 | if (obj1) { | |
6955 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6956 | if (!SWIG_IsOK(ecode2)) { | |
6957 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
6958 | } | |
6959 | arg2 = static_cast< int >(val2); | |
6960 | } | |
6961 | { | |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | (arg1)->PopStatusText(arg2); | |
6964 | wxPyEndAllowThreads(__tstate); | |
6965 | if (PyErr_Occurred()) SWIG_fail; | |
6966 | } | |
6967 | resultobj = SWIG_Py_Void(); | |
6968 | return resultobj; | |
6969 | fail: | |
6970 | return NULL; | |
6971 | } | |
6972 | ||
6973 | ||
6974 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6975 | PyObject *resultobj = 0; | |
6976 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6977 | int arg2 ; | |
6978 | void *argp1 = 0 ; | |
6979 | int res1 = 0 ; | |
6980 | int val2 ; | |
6981 | int ecode2 = 0 ; | |
6982 | PyObject * obj0 = 0 ; | |
6983 | PyObject * obj1 = 0 ; | |
6984 | char * kwnames[] = { | |
6985 | (char *) "self",(char *) "n", NULL | |
6986 | }; | |
6987 | ||
6988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) SWIG_fail; | |
6989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6990 | if (!SWIG_IsOK(res1)) { | |
6991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6992 | } | |
6993 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6994 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6995 | if (!SWIG_IsOK(ecode2)) { | |
6996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_SetStatusBarPane" "', expected argument " "2"" of type '" "int""'"); | |
6997 | } | |
6998 | arg2 = static_cast< int >(val2); | |
6999 | { | |
7000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7001 | (arg1)->SetStatusBarPane(arg2); | |
7002 | wxPyEndAllowThreads(__tstate); | |
7003 | if (PyErr_Occurred()) SWIG_fail; | |
7004 | } | |
7005 | resultobj = SWIG_Py_Void(); | |
7006 | return resultobj; | |
7007 | fail: | |
7008 | return NULL; | |
d55e5bfc RD |
7009 | } |
7010 | ||
7011 | ||
1bd55598 RD |
7012 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7013 | PyObject *resultobj = 0; | |
7014 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7015 | int result; | |
7016 | void *argp1 = 0 ; | |
7017 | int res1 = 0 ; | |
7018 | PyObject *swig_obj[1] ; | |
7019 | ||
7020 | if (!args) SWIG_fail; | |
7021 | swig_obj[0] = args; | |
7022 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7023 | if (!SWIG_IsOK(res1)) { | |
7024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
7025 | } | |
7026 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7027 | { | |
7028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7029 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
7030 | wxPyEndAllowThreads(__tstate); | |
7031 | if (PyErr_Occurred()) SWIG_fail; | |
7032 | } | |
7033 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7034 | return resultobj; | |
7035 | fail: | |
7036 | return NULL; | |
7037 | } | |
7038 | ||
7039 | ||
7040 | SWIGINTERN PyObject *_wrap_Frame_CreateToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7041 | PyObject *resultobj = 0; | |
7042 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7043 | long arg2 = (long) -1 ; | |
7044 | int arg3 = (int) -1 ; | |
7045 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
7046 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7047 | wxToolBar *result = 0 ; | |
7048 | void *argp1 = 0 ; | |
7049 | int res1 = 0 ; | |
7050 | long val2 ; | |
7051 | int ecode2 = 0 ; | |
7052 | int val3 ; | |
7053 | int ecode3 = 0 ; | |
7054 | bool temp4 = false ; | |
7055 | PyObject * obj0 = 0 ; | |
7056 | PyObject * obj1 = 0 ; | |
7057 | PyObject * obj2 = 0 ; | |
7058 | PyObject * obj3 = 0 ; | |
7059 | char * kwnames[] = { | |
7060 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
7061 | }; | |
7062 | ||
7063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7065 | if (!SWIG_IsOK(res1)) { | |
7066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7067 | } | |
7068 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7069 | if (obj1) { | |
7070 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7071 | if (!SWIG_IsOK(ecode2)) { | |
7072 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateToolBar" "', expected argument " "2"" of type '" "long""'"); | |
7073 | } | |
7074 | arg2 = static_cast< long >(val2); | |
7075 | } | |
7076 | if (obj2) { | |
7077 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7078 | if (!SWIG_IsOK(ecode3)) { | |
7079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateToolBar" "', expected argument " "3"" of type '" "int""'"); | |
7080 | } | |
7081 | arg3 = static_cast< int >(val3); | |
7082 | } | |
7083 | if (obj3) { | |
d55e5bfc | 7084 | { |
1bd55598 RD |
7085 | arg4 = wxString_in_helper(obj3); |
7086 | if (arg4 == NULL) SWIG_fail; | |
7087 | temp4 = true; | |
d55e5bfc | 7088 | } |
1bd55598 RD |
7089 | } |
7090 | { | |
7091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7092 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
7093 | wxPyEndAllowThreads(__tstate); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
7096 | { | |
7097 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7098 | } | |
7099 | { | |
7100 | if (temp4) | |
7101 | delete arg4; | |
7102 | } | |
7103 | return resultobj; | |
7104 | fail: | |
7105 | { | |
7106 | if (temp4) | |
7107 | delete arg4; | |
7108 | } | |
7109 | return NULL; | |
d55e5bfc RD |
7110 | } |
7111 | ||
7112 | ||
1bd55598 RD |
7113 | SWIGINTERN PyObject *_wrap_Frame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7114 | PyObject *resultobj = 0; | |
7115 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7116 | wxToolBar *result = 0 ; | |
7117 | void *argp1 = 0 ; | |
7118 | int res1 = 0 ; | |
7119 | PyObject *swig_obj[1] ; | |
7120 | ||
7121 | if (!args) SWIG_fail; | |
7122 | swig_obj[0] = args; | |
7123 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7124 | if (!SWIG_IsOK(res1)) { | |
7125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetToolBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
7126 | } | |
7127 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
7131 | wxPyEndAllowThreads(__tstate); | |
7132 | if (PyErr_Occurred()) SWIG_fail; | |
7133 | } | |
7134 | { | |
7135 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7136 | } | |
7137 | return resultobj; | |
7138 | fail: | |
7139 | return NULL; | |
7140 | } | |
7141 | ||
7142 | ||
7143 | SWIGINTERN PyObject *_wrap_Frame_SetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7144 | PyObject *resultobj = 0; | |
7145 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7146 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
7147 | void *argp1 = 0 ; | |
7148 | int res1 = 0 ; | |
7149 | void *argp2 = 0 ; | |
7150 | int res2 = 0 ; | |
7151 | PyObject * obj0 = 0 ; | |
7152 | PyObject * obj1 = 0 ; | |
7153 | char * kwnames[] = { | |
7154 | (char *) "self",(char *) "toolbar", NULL | |
7155 | }; | |
7156 | ||
7157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
7158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7159 | if (!SWIG_IsOK(res1)) { | |
7160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7161 | } | |
7162 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7163 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
7164 | if (!SWIG_IsOK(res2)) { | |
7165 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetToolBar" "', expected argument " "2"" of type '" "wxToolBar *""'"); | |
7166 | } | |
7167 | arg2 = reinterpret_cast< wxToolBar * >(argp2); | |
7168 | { | |
7169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7170 | (arg1)->SetToolBar(arg2); | |
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | resultobj = SWIG_Py_Void(); | |
7175 | return resultobj; | |
7176 | fail: | |
7177 | return NULL; | |
7178 | } | |
7179 | ||
7180 | ||
7181 | SWIGINTERN PyObject *_wrap_Frame_DoGiveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7182 | PyObject *resultobj = 0; | |
7183 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7184 | wxString *arg2 = 0 ; | |
7185 | bool arg3 ; | |
7186 | void *argp1 = 0 ; | |
7187 | int res1 = 0 ; | |
7188 | bool temp2 = false ; | |
7189 | bool val3 ; | |
7190 | int ecode3 = 0 ; | |
7191 | PyObject * obj0 = 0 ; | |
7192 | PyObject * obj1 = 0 ; | |
7193 | PyObject * obj2 = 0 ; | |
7194 | char * kwnames[] = { | |
7195 | (char *) "self",(char *) "text",(char *) "show", NULL | |
7196 | }; | |
7197 | ||
7198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7200 | if (!SWIG_IsOK(res1)) { | |
7201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoGiveHelp" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7202 | } | |
7203 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7204 | { | |
7205 | arg2 = wxString_in_helper(obj1); | |
7206 | if (arg2 == NULL) SWIG_fail; | |
7207 | temp2 = true; | |
7208 | } | |
7209 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7210 | if (!SWIG_IsOK(ecode3)) { | |
7211 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_DoGiveHelp" "', expected argument " "3"" of type '" "bool""'"); | |
7212 | } | |
7213 | arg3 = static_cast< bool >(val3); | |
7214 | { | |
7215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7216 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
7217 | wxPyEndAllowThreads(__tstate); | |
7218 | if (PyErr_Occurred()) SWIG_fail; | |
7219 | } | |
7220 | resultobj = SWIG_Py_Void(); | |
7221 | { | |
7222 | if (temp2) | |
7223 | delete arg2; | |
7224 | } | |
7225 | return resultobj; | |
7226 | fail: | |
7227 | { | |
7228 | if (temp2) | |
7229 | delete arg2; | |
7230 | } | |
7231 | return NULL; | |
7232 | } | |
7233 | ||
7234 | ||
7235 | SWIGINTERN PyObject *_wrap_Frame_DoMenuUpdates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7236 | PyObject *resultobj = 0; | |
7237 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7238 | wxMenu *arg2 = (wxMenu *) NULL ; | |
7239 | void *argp1 = 0 ; | |
7240 | int res1 = 0 ; | |
7241 | void *argp2 = 0 ; | |
7242 | int res2 = 0 ; | |
7243 | PyObject * obj0 = 0 ; | |
7244 | PyObject * obj1 = 0 ; | |
7245 | char * kwnames[] = { | |
7246 | (char *) "self",(char *) "menu", NULL | |
7247 | }; | |
7248 | ||
7249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) SWIG_fail; | |
7250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7251 | if (!SWIG_IsOK(res1)) { | |
7252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoMenuUpdates" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7253 | } | |
7254 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7255 | if (obj1) { | |
7256 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
7257 | if (!SWIG_IsOK(res2)) { | |
7258 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_DoMenuUpdates" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
d55e5bfc | 7259 | } |
1bd55598 RD |
7260 | arg2 = reinterpret_cast< wxMenu * >(argp2); |
7261 | } | |
7262 | { | |
7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7264 | (arg1)->DoMenuUpdates(arg2); | |
7265 | wxPyEndAllowThreads(__tstate); | |
7266 | if (PyErr_Occurred()) SWIG_fail; | |
7267 | } | |
7268 | resultobj = SWIG_Py_Void(); | |
7269 | return resultobj; | |
7270 | fail: | |
7271 | return NULL; | |
7272 | } | |
7273 | ||
7274 | ||
7275 | SWIGINTERN PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7276 | PyObject *resultobj = 0; | |
7277 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7278 | SwigValueWrapper<wxVisualAttributes > result; | |
7279 | int val1 ; | |
7280 | int ecode1 = 0 ; | |
7281 | PyObject * obj0 = 0 ; | |
7282 | char * kwnames[] = { | |
7283 | (char *) "variant", NULL | |
7284 | }; | |
7285 | ||
7286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7287 | if (obj0) { | |
7288 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7289 | if (!SWIG_IsOK(ecode1)) { | |
7290 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Frame_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7291 | } | |
7292 | arg1 = static_cast< wxWindowVariant >(val1); | |
7293 | } | |
7294 | { | |
7295 | if (!wxPyCheckForApp()) SWIG_fail; | |
7296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7297 | result = wxFrame::GetClassDefaultAttributes(arg1); | |
7298 | wxPyEndAllowThreads(__tstate); | |
7299 | if (PyErr_Occurred()) SWIG_fail; | |
7300 | } | |
7301 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7302 | return resultobj; | |
7303 | fail: | |
7304 | return NULL; | |
7305 | } | |
7306 | ||
7307 | ||
7308 | SWIGINTERN PyObject *Frame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7309 | PyObject *obj; | |
7310 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7311 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFrame, SWIG_NewClientData(obj)); | |
7312 | return SWIG_Py_Void(); | |
7313 | } | |
7314 | ||
7315 | SWIGINTERN PyObject *Frame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7316 | return SWIG_Python_InitShadowInstance(args); | |
7317 | } | |
7318 | ||
7319 | SWIGINTERN PyObject *_wrap_new_Dialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7320 | PyObject *resultobj = 0; | |
7321 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7322 | int arg2 = (int) (int)-1 ; | |
7323 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7324 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7325 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7326 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7327 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7328 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7329 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7330 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
7331 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7332 | wxDialog *result = 0 ; | |
7333 | void *argp1 = 0 ; | |
7334 | int res1 = 0 ; | |
7335 | int val2 ; | |
7336 | int ecode2 = 0 ; | |
7337 | bool temp3 = false ; | |
7338 | wxPoint temp4 ; | |
7339 | wxSize temp5 ; | |
7340 | long val6 ; | |
7341 | int ecode6 = 0 ; | |
7342 | bool temp7 = false ; | |
7343 | PyObject * obj0 = 0 ; | |
7344 | PyObject * obj1 = 0 ; | |
7345 | PyObject * obj2 = 0 ; | |
7346 | PyObject * obj3 = 0 ; | |
7347 | PyObject * obj4 = 0 ; | |
7348 | PyObject * obj5 = 0 ; | |
7349 | PyObject * obj6 = 0 ; | |
7350 | char * kwnames[] = { | |
7351 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7352 | }; | |
7353 | ||
7354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7356 | if (!SWIG_IsOK(res1)) { | |
7357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Dialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7358 | } | |
7359 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7360 | if (obj1) { | |
7361 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7362 | if (!SWIG_IsOK(ecode2)) { | |
7363 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Dialog" "', expected argument " "2"" of type '" "int""'"); | |
7364 | } | |
7365 | arg2 = static_cast< int >(val2); | |
7366 | } | |
7367 | if (obj2) { | |
d55e5bfc | 7368 | { |
1bd55598 RD |
7369 | arg3 = wxString_in_helper(obj2); |
7370 | if (arg3 == NULL) SWIG_fail; | |
7371 | temp3 = true; | |
d55e5bfc | 7372 | } |
1bd55598 RD |
7373 | } |
7374 | if (obj3) { | |
d55e5bfc | 7375 | { |
1bd55598 RD |
7376 | arg4 = &temp4; |
7377 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7378 | } |
1bd55598 RD |
7379 | } |
7380 | if (obj4) { | |
d55e5bfc | 7381 | { |
1bd55598 RD |
7382 | arg5 = &temp5; |
7383 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7384 | } |
1bd55598 RD |
7385 | } |
7386 | if (obj5) { | |
7387 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7388 | if (!SWIG_IsOK(ecode6)) { | |
7389 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Dialog" "', expected argument " "6"" of type '" "long""'"); | |
7390 | } | |
7391 | arg6 = static_cast< long >(val6); | |
7392 | } | |
7393 | if (obj6) { | |
d55e5bfc | 7394 | { |
1bd55598 RD |
7395 | arg7 = wxString_in_helper(obj6); |
7396 | if (arg7 == NULL) SWIG_fail; | |
7397 | temp7 = true; | |
d55e5bfc | 7398 | } |
1bd55598 RD |
7399 | } |
7400 | { | |
7401 | if (!wxPyCheckForApp()) SWIG_fail; | |
7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7403 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7404 | wxPyEndAllowThreads(__tstate); | |
7405 | if (PyErr_Occurred()) SWIG_fail; | |
7406 | } | |
7407 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_NEW | 0 ); | |
7408 | { | |
7409 | if (temp3) | |
7410 | delete arg3; | |
7411 | } | |
7412 | { | |
7413 | if (temp7) | |
7414 | delete arg7; | |
7415 | } | |
7416 | return resultobj; | |
7417 | fail: | |
7418 | { | |
7419 | if (temp3) | |
7420 | delete arg3; | |
7421 | } | |
7422 | { | |
7423 | if (temp7) | |
7424 | delete arg7; | |
7425 | } | |
7426 | return NULL; | |
d55e5bfc RD |
7427 | } |
7428 | ||
7429 | ||
1bd55598 RD |
7430 | SWIGINTERN PyObject *_wrap_new_PreDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7431 | PyObject *resultobj = 0; | |
7432 | wxDialog *result = 0 ; | |
7433 | ||
7434 | if (!SWIG_Python_UnpackTuple(args,"new_PreDialog",0,0,0)) SWIG_fail; | |
7435 | { | |
7436 | if (!wxPyCheckForApp()) SWIG_fail; | |
7437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7438 | result = (wxDialog *)new wxDialog(); | |
7439 | wxPyEndAllowThreads(__tstate); | |
7440 | if (PyErr_Occurred()) SWIG_fail; | |
7441 | } | |
7442 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_OWN | 0 ); | |
7443 | return resultobj; | |
7444 | fail: | |
7445 | return NULL; | |
7446 | } | |
7447 | ||
7448 | ||
7449 | SWIGINTERN PyObject *_wrap_Dialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7450 | PyObject *resultobj = 0; | |
7451 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7452 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7453 | int arg3 = (int) (int)-1 ; | |
7454 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7455 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7456 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7457 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7458 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7459 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7460 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7461 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
7462 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7463 | bool result; | |
7464 | void *argp1 = 0 ; | |
7465 | int res1 = 0 ; | |
7466 | void *argp2 = 0 ; | |
7467 | int res2 = 0 ; | |
7468 | int val3 ; | |
7469 | int ecode3 = 0 ; | |
7470 | bool temp4 = false ; | |
7471 | wxPoint temp5 ; | |
7472 | wxSize temp6 ; | |
7473 | long val7 ; | |
7474 | int ecode7 = 0 ; | |
7475 | bool temp8 = false ; | |
7476 | PyObject * obj0 = 0 ; | |
7477 | PyObject * obj1 = 0 ; | |
7478 | PyObject * obj2 = 0 ; | |
7479 | PyObject * obj3 = 0 ; | |
7480 | PyObject * obj4 = 0 ; | |
7481 | PyObject * obj5 = 0 ; | |
7482 | PyObject * obj6 = 0 ; | |
7483 | PyObject * obj7 = 0 ; | |
7484 | char * kwnames[] = { | |
7485 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7486 | }; | |
7487 | ||
7488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7490 | if (!SWIG_IsOK(res1)) { | |
7491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_Create" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7492 | } | |
7493 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7494 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7495 | if (!SWIG_IsOK(res2)) { | |
7496 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Dialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7497 | } | |
7498 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7499 | if (obj2) { | |
7500 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7501 | if (!SWIG_IsOK(ecode3)) { | |
7502 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_Create" "', expected argument " "3"" of type '" "int""'"); | |
7503 | } | |
7504 | arg3 = static_cast< int >(val3); | |
7505 | } | |
7506 | if (obj3) { | |
d55e5bfc | 7507 | { |
1bd55598 RD |
7508 | arg4 = wxString_in_helper(obj3); |
7509 | if (arg4 == NULL) SWIG_fail; | |
7510 | temp4 = true; | |
d55e5bfc | 7511 | } |
1bd55598 RD |
7512 | } |
7513 | if (obj4) { | |
36ed4f51 | 7514 | { |
1bd55598 RD |
7515 | arg5 = &temp5; |
7516 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7517 | } |
1bd55598 RD |
7518 | } |
7519 | if (obj5) { | |
d55e5bfc | 7520 | { |
1bd55598 RD |
7521 | arg6 = &temp6; |
7522 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 7523 | } |
1bd55598 RD |
7524 | } |
7525 | if (obj6) { | |
7526 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7527 | if (!SWIG_IsOK(ecode7)) { | |
7528 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Dialog_Create" "', expected argument " "7"" of type '" "long""'"); | |
7529 | } | |
7530 | arg7 = static_cast< long >(val7); | |
7531 | } | |
7532 | if (obj7) { | |
d55e5bfc | 7533 | { |
1bd55598 RD |
7534 | arg8 = wxString_in_helper(obj7); |
7535 | if (arg8 == NULL) SWIG_fail; | |
7536 | temp8 = true; | |
d55e5bfc | 7537 | } |
1bd55598 RD |
7538 | } |
7539 | { | |
7540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7541 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7542 | wxPyEndAllowThreads(__tstate); | |
7543 | if (PyErr_Occurred()) SWIG_fail; | |
7544 | } | |
7545 | { | |
7546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7547 | } | |
7548 | { | |
7549 | if (temp4) | |
7550 | delete arg4; | |
7551 | } | |
7552 | { | |
7553 | if (temp8) | |
7554 | delete arg8; | |
7555 | } | |
7556 | return resultobj; | |
7557 | fail: | |
7558 | { | |
7559 | if (temp4) | |
7560 | delete arg4; | |
7561 | } | |
7562 | { | |
7563 | if (temp8) | |
7564 | delete arg8; | |
7565 | } | |
7566 | return NULL; | |
7567 | } | |
7568 | ||
7569 | ||
7570 | SWIGINTERN PyObject *_wrap_Dialog_SetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7571 | PyObject *resultobj = 0; | |
7572 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7573 | int arg2 ; | |
7574 | void *argp1 = 0 ; | |
7575 | int res1 = 0 ; | |
7576 | int val2 ; | |
7577 | int ecode2 = 0 ; | |
7578 | PyObject * obj0 = 0 ; | |
7579 | PyObject * obj1 = 0 ; | |
7580 | char * kwnames[] = { | |
7581 | (char *) "self",(char *) "returnCode", NULL | |
7582 | }; | |
7583 | ||
7584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7586 | if (!SWIG_IsOK(res1)) { | |
7587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetReturnCode" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7588 | } | |
7589 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7590 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7591 | if (!SWIG_IsOK(ecode2)) { | |
7592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetReturnCode" "', expected argument " "2"" of type '" "int""'"); | |
7593 | } | |
7594 | arg2 = static_cast< int >(val2); | |
7595 | { | |
7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7597 | (arg1)->SetReturnCode(arg2); | |
7598 | wxPyEndAllowThreads(__tstate); | |
7599 | if (PyErr_Occurred()) SWIG_fail; | |
7600 | } | |
7601 | resultobj = SWIG_Py_Void(); | |
7602 | return resultobj; | |
7603 | fail: | |
7604 | return NULL; | |
c370783e RD |
7605 | } |
7606 | ||
7607 | ||
1bd55598 RD |
7608 | SWIGINTERN PyObject *_wrap_Dialog_GetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7609 | PyObject *resultobj = 0; | |
7610 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7611 | int result; | |
7612 | void *argp1 = 0 ; | |
7613 | int res1 = 0 ; | |
7614 | PyObject *swig_obj[1] ; | |
7615 | ||
7616 | if (!args) SWIG_fail; | |
7617 | swig_obj[0] = args; | |
7618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7619 | if (!SWIG_IsOK(res1)) { | |
7620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetReturnCode" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7621 | } | |
7622 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7623 | { | |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
7626 | wxPyEndAllowThreads(__tstate); | |
7627 | if (PyErr_Occurred()) SWIG_fail; | |
7628 | } | |
7629 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7630 | return resultobj; | |
7631 | fail: | |
7632 | return NULL; | |
7633 | } | |
7634 | ||
7635 | ||
7636 | SWIGINTERN PyObject *_wrap_Dialog_SetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7637 | PyObject *resultobj = 0; | |
7638 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7639 | int arg2 ; | |
7640 | void *argp1 = 0 ; | |
7641 | int res1 = 0 ; | |
7642 | int val2 ; | |
7643 | int ecode2 = 0 ; | |
7644 | PyObject * obj0 = 0 ; | |
7645 | PyObject * obj1 = 0 ; | |
7646 | char * kwnames[] = { | |
7647 | (char *) "self",(char *) "affirmativeId", NULL | |
7648 | }; | |
7649 | ||
7650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetAffirmativeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7652 | if (!SWIG_IsOK(res1)) { | |
7653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7654 | } | |
7655 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7656 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7657 | if (!SWIG_IsOK(ecode2)) { | |
7658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "2"" of type '" "int""'"); | |
7659 | } | |
7660 | arg2 = static_cast< int >(val2); | |
7661 | { | |
7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7663 | (arg1)->SetAffirmativeId(arg2); | |
7664 | wxPyEndAllowThreads(__tstate); | |
7665 | if (PyErr_Occurred()) SWIG_fail; | |
7666 | } | |
7667 | resultobj = SWIG_Py_Void(); | |
7668 | return resultobj; | |
7669 | fail: | |
7670 | return NULL; | |
5e483524 RD |
7671 | } |
7672 | ||
7673 | ||
1bd55598 RD |
7674 | SWIGINTERN PyObject *_wrap_Dialog_GetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7675 | PyObject *resultobj = 0; | |
7676 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7677 | int result; | |
7678 | void *argp1 = 0 ; | |
7679 | int res1 = 0 ; | |
7680 | PyObject *swig_obj[1] ; | |
7681 | ||
7682 | if (!args) SWIG_fail; | |
7683 | swig_obj[0] = args; | |
7684 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7685 | if (!SWIG_IsOK(res1)) { | |
7686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7687 | } | |
7688 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7689 | { | |
7690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7691 | result = (int)((wxDialog const *)arg1)->GetAffirmativeId(); | |
7692 | wxPyEndAllowThreads(__tstate); | |
7693 | if (PyErr_Occurred()) SWIG_fail; | |
7694 | } | |
7695 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7696 | return resultobj; | |
7697 | fail: | |
7698 | return NULL; | |
7699 | } | |
7700 | ||
7701 | ||
7702 | SWIGINTERN PyObject *_wrap_Dialog_SetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7703 | PyObject *resultobj = 0; | |
7704 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7705 | int arg2 ; | |
7706 | void *argp1 = 0 ; | |
7707 | int res1 = 0 ; | |
7708 | int val2 ; | |
7709 | int ecode2 = 0 ; | |
7710 | PyObject * obj0 = 0 ; | |
7711 | PyObject * obj1 = 0 ; | |
7712 | char * kwnames[] = { | |
7713 | (char *) "self",(char *) "escapeId", NULL | |
7714 | }; | |
7715 | ||
7716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetEscapeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7718 | if (!SWIG_IsOK(res1)) { | |
7719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetEscapeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7720 | } | |
7721 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7722 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7723 | if (!SWIG_IsOK(ecode2)) { | |
7724 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetEscapeId" "', expected argument " "2"" of type '" "int""'"); | |
7725 | } | |
7726 | arg2 = static_cast< int >(val2); | |
7727 | { | |
7728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7729 | (arg1)->SetEscapeId(arg2); | |
7730 | wxPyEndAllowThreads(__tstate); | |
7731 | if (PyErr_Occurred()) SWIG_fail; | |
7732 | } | |
7733 | resultobj = SWIG_Py_Void(); | |
7734 | return resultobj; | |
7735 | fail: | |
7736 | return NULL; | |
d55e5bfc RD |
7737 | } |
7738 | ||
7739 | ||
1bd55598 RD |
7740 | SWIGINTERN PyObject *_wrap_Dialog_GetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7741 | PyObject *resultobj = 0; | |
7742 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7743 | int result; | |
7744 | void *argp1 = 0 ; | |
7745 | int res1 = 0 ; | |
7746 | PyObject *swig_obj[1] ; | |
7747 | ||
7748 | if (!args) SWIG_fail; | |
7749 | swig_obj[0] = args; | |
7750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7751 | if (!SWIG_IsOK(res1)) { | |
7752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetEscapeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7753 | } | |
7754 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7755 | { | |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | result = (int)((wxDialog const *)arg1)->GetEscapeId(); | |
7758 | wxPyEndAllowThreads(__tstate); | |
7759 | if (PyErr_Occurred()) SWIG_fail; | |
7760 | } | |
7761 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7762 | return resultobj; | |
7763 | fail: | |
7764 | return NULL; | |
7765 | } | |
7766 | ||
7767 | ||
7768 | SWIGINTERN PyObject *_wrap_Dialog_CreateTextSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7769 | PyObject *resultobj = 0; | |
7770 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7771 | wxString *arg2 = 0 ; | |
7772 | wxSizer *result = 0 ; | |
7773 | void *argp1 = 0 ; | |
7774 | int res1 = 0 ; | |
7775 | bool temp2 = false ; | |
7776 | PyObject * obj0 = 0 ; | |
7777 | PyObject * obj1 = 0 ; | |
7778 | char * kwnames[] = { | |
7779 | (char *) "self",(char *) "message", NULL | |
7780 | }; | |
7781 | ||
7782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7784 | if (!SWIG_IsOK(res1)) { | |
7785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateTextSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7786 | } | |
7787 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7788 | { | |
7789 | arg2 = wxString_in_helper(obj1); | |
7790 | if (arg2 == NULL) SWIG_fail; | |
7791 | temp2 = true; | |
7792 | } | |
7793 | { | |
7794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7795 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
7796 | wxPyEndAllowThreads(__tstate); | |
7797 | if (PyErr_Occurred()) SWIG_fail; | |
7798 | } | |
7799 | { | |
7800 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7801 | } | |
7802 | { | |
7803 | if (temp2) | |
7804 | delete arg2; | |
7805 | } | |
7806 | return resultobj; | |
7807 | fail: | |
7808 | { | |
7809 | if (temp2) | |
7810 | delete arg2; | |
7811 | } | |
7812 | return NULL; | |
7813 | } | |
7814 | ||
7815 | ||
b39fe951 | 7816 | SWIGINTERN PyObject *_wrap_Dialog__CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
1bd55598 RD |
7817 | PyObject *resultobj = 0; |
7818 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7819 | long arg2 ; | |
1bd55598 RD |
7820 | wxSizer *result = 0 ; |
7821 | void *argp1 = 0 ; | |
7822 | int res1 = 0 ; | |
7823 | long val2 ; | |
7824 | int ecode2 = 0 ; | |
1bd55598 RD |
7825 | PyObject * obj0 = 0 ; |
7826 | PyObject * obj1 = 0 ; | |
1bd55598 | 7827 | char * kwnames[] = { |
b39fe951 | 7828 | (char *) "self",(char *) "flags", NULL |
1bd55598 RD |
7829 | }; |
7830 | ||
b39fe951 | 7831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog__CreateButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; |
1bd55598 RD |
7832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); |
7833 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 7834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog__CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); |
1bd55598 RD |
7835 | } |
7836 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7837 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7838 | if (!SWIG_IsOK(ecode2)) { | |
b39fe951 | 7839 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog__CreateButtonSizer" "', expected argument " "2"" of type '" "long""'"); |
1bd55598 RD |
7840 | } |
7841 | arg2 = static_cast< long >(val2); | |
b39fe951 RD |
7842 | { |
7843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7844 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
7845 | wxPyEndAllowThreads(__tstate); | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
1bd55598 | 7847 | } |
b39fe951 RD |
7848 | { |
7849 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
1bd55598 | 7850 | } |
b39fe951 RD |
7851 | return resultobj; |
7852 | fail: | |
7853 | return NULL; | |
7854 | } | |
7855 | ||
7856 | ||
7857 | SWIGINTERN PyObject *_wrap_Dialog_CreateSeparatedButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7858 | PyObject *resultobj = 0; | |
7859 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7860 | long arg2 ; | |
7861 | wxSizer *result = 0 ; | |
7862 | void *argp1 = 0 ; | |
7863 | int res1 = 0 ; | |
7864 | long val2 ; | |
7865 | int ecode2 = 0 ; | |
7866 | PyObject * obj0 = 0 ; | |
7867 | PyObject * obj1 = 0 ; | |
7868 | char * kwnames[] = { | |
7869 | (char *) "self",(char *) "flags", NULL | |
7870 | }; | |
7871 | ||
7872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateSeparatedButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7874 | if (!SWIG_IsOK(res1)) { | |
7875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateSeparatedButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7876 | } | |
7877 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7878 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7879 | if (!SWIG_IsOK(ecode2)) { | |
7880 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateSeparatedButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7881 | } | |
7882 | arg2 = static_cast< long >(val2); | |
1bd55598 RD |
7883 | { |
7884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 7885 | result = (wxSizer *)(arg1)->CreateSeparatedButtonSizer(arg2); |
1bd55598 RD |
7886 | wxPyEndAllowThreads(__tstate); |
7887 | if (PyErr_Occurred()) SWIG_fail; | |
7888 | } | |
7889 | { | |
7890 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7891 | } | |
7892 | return resultobj; | |
7893 | fail: | |
7894 | return NULL; | |
7895 | } | |
7896 | ||
7897 | ||
7898 | SWIGINTERN PyObject *_wrap_Dialog_CreateStdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7899 | PyObject *resultobj = 0; | |
7900 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7901 | long arg2 ; | |
7902 | wxStdDialogButtonSizer *result = 0 ; | |
7903 | void *argp1 = 0 ; | |
7904 | int res1 = 0 ; | |
7905 | long val2 ; | |
7906 | int ecode2 = 0 ; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | PyObject * obj1 = 0 ; | |
7909 | char * kwnames[] = { | |
7910 | (char *) "self",(char *) "flags", NULL | |
7911 | }; | |
7912 | ||
7913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateStdDialogButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7915 | if (!SWIG_IsOK(res1)) { | |
7916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7917 | } | |
7918 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7919 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7920 | if (!SWIG_IsOK(ecode2)) { | |
7921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7922 | } | |
7923 | arg2 = static_cast< long >(val2); | |
7924 | { | |
7925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7926 | result = (wxStdDialogButtonSizer *)(arg1)->CreateStdDialogButtonSizer(arg2); | |
7927 | wxPyEndAllowThreads(__tstate); | |
7928 | if (PyErr_Occurred()) SWIG_fail; | |
7929 | } | |
7930 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 ); | |
7931 | return resultobj; | |
7932 | fail: | |
7933 | return NULL; | |
d55e5bfc RD |
7934 | } |
7935 | ||
7936 | ||
1bd55598 RD |
7937 | SWIGINTERN PyObject *_wrap_Dialog_IsModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7938 | PyObject *resultobj = 0; | |
7939 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7940 | bool result; | |
7941 | void *argp1 = 0 ; | |
7942 | int res1 = 0 ; | |
7943 | PyObject *swig_obj[1] ; | |
7944 | ||
7945 | if (!args) SWIG_fail; | |
7946 | swig_obj[0] = args; | |
7947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7948 | if (!SWIG_IsOK(res1)) { | |
7949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_IsModal" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7950 | } | |
7951 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7952 | { | |
7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7954 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
7955 | wxPyEndAllowThreads(__tstate); | |
7956 | if (PyErr_Occurred()) SWIG_fail; | |
7957 | } | |
7958 | { | |
7959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7960 | } | |
7961 | return resultobj; | |
7962 | fail: | |
7963 | return NULL; | |
b1fcee84 RD |
7964 | } |
7965 | ||
7966 | ||
1bd55598 RD |
7967 | SWIGINTERN PyObject *_wrap_Dialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7968 | PyObject *resultobj = 0; | |
7969 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7970 | int result; | |
7971 | void *argp1 = 0 ; | |
7972 | int res1 = 0 ; | |
7973 | PyObject *swig_obj[1] ; | |
7974 | ||
7975 | if (!args) SWIG_fail; | |
7976 | swig_obj[0] = args; | |
7977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7978 | if (!SWIG_IsOK(res1)) { | |
7979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_ShowModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7980 | } | |
7981 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7982 | { | |
7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7984 | result = (int)(arg1)->ShowModal(); | |
7985 | wxPyEndAllowThreads(__tstate); | |
7986 | if (PyErr_Occurred()) SWIG_fail; | |
7987 | } | |
7988 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7989 | return resultobj; | |
7990 | fail: | |
7991 | return NULL; | |
7992 | } | |
7993 | ||
7994 | ||
7995 | SWIGINTERN PyObject *_wrap_Dialog_EndModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7996 | PyObject *resultobj = 0; | |
7997 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7998 | int arg2 ; | |
7999 | void *argp1 = 0 ; | |
8000 | int res1 = 0 ; | |
8001 | int val2 ; | |
8002 | int ecode2 = 0 ; | |
8003 | PyObject * obj0 = 0 ; | |
8004 | PyObject * obj1 = 0 ; | |
8005 | char * kwnames[] = { | |
8006 | (char *) "self",(char *) "retCode", NULL | |
8007 | }; | |
8008 | ||
8009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) SWIG_fail; | |
8010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
8011 | if (!SWIG_IsOK(res1)) { | |
8012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_EndModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
8013 | } | |
8014 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
8015 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8016 | if (!SWIG_IsOK(ecode2)) { | |
8017 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_EndModal" "', expected argument " "2"" of type '" "int""'"); | |
8018 | } | |
8019 | arg2 = static_cast< int >(val2); | |
8020 | { | |
8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8022 | (arg1)->EndModal(arg2); | |
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | resultobj = SWIG_Py_Void(); | |
8027 | return resultobj; | |
8028 | fail: | |
8029 | return NULL; | |
8030 | } | |
8031 | ||
8032 | ||
8033 | SWIGINTERN PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8034 | PyObject *resultobj = 0; | |
8035 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8036 | SwigValueWrapper<wxVisualAttributes > result; | |
8037 | int val1 ; | |
8038 | int ecode1 = 0 ; | |
8039 | PyObject * obj0 = 0 ; | |
8040 | char * kwnames[] = { | |
8041 | (char *) "variant", NULL | |
8042 | }; | |
8043 | ||
8044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8045 | if (obj0) { | |
8046 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8047 | if (!SWIG_IsOK(ecode1)) { | |
8048 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Dialog_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8049 | } | |
8050 | arg1 = static_cast< wxWindowVariant >(val1); | |
8051 | } | |
8052 | { | |
8053 | if (!wxPyCheckForApp()) SWIG_fail; | |
8054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8055 | result = wxDialog::GetClassDefaultAttributes(arg1); | |
8056 | wxPyEndAllowThreads(__tstate); | |
8057 | if (PyErr_Occurred()) SWIG_fail; | |
8058 | } | |
8059 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8060 | return resultobj; | |
8061 | fail: | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
8066 | SWIGINTERN PyObject *Dialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8067 | PyObject *obj; | |
8068 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8069 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDialog, SWIG_NewClientData(obj)); | |
8070 | return SWIG_Py_Void(); | |
8071 | } | |
8072 | ||
8073 | SWIGINTERN PyObject *Dialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8074 | return SWIG_Python_InitShadowInstance(args); | |
8075 | } | |
8076 | ||
8077 | SWIGINTERN PyObject *_wrap_new_MiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8078 | PyObject *resultobj = 0; | |
8079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8080 | int arg2 = (int) (int)-1 ; | |
8081 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8082 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8083 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8084 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8085 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8086 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8087 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
8088 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
8089 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8090 | wxMiniFrame *result = 0 ; | |
8091 | void *argp1 = 0 ; | |
8092 | int res1 = 0 ; | |
8093 | int val2 ; | |
8094 | int ecode2 = 0 ; | |
8095 | bool temp3 = false ; | |
8096 | wxPoint temp4 ; | |
8097 | wxSize temp5 ; | |
8098 | long val6 ; | |
8099 | int ecode6 = 0 ; | |
8100 | bool temp7 = false ; | |
8101 | PyObject * obj0 = 0 ; | |
8102 | PyObject * obj1 = 0 ; | |
8103 | PyObject * obj2 = 0 ; | |
8104 | PyObject * obj3 = 0 ; | |
8105 | PyObject * obj4 = 0 ; | |
8106 | PyObject * obj5 = 0 ; | |
8107 | PyObject * obj6 = 0 ; | |
8108 | char * kwnames[] = { | |
8109 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8110 | }; | |
8111 | ||
8112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8114 | if (!SWIG_IsOK(res1)) { | |
8115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MiniFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8116 | } | |
8117 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8118 | if (obj1) { | |
8119 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8120 | if (!SWIG_IsOK(ecode2)) { | |
8121 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MiniFrame" "', expected argument " "2"" of type '" "int""'"); | |
8122 | } | |
8123 | arg2 = static_cast< int >(val2); | |
8124 | } | |
8125 | if (obj2) { | |
d55e5bfc | 8126 | { |
1bd55598 RD |
8127 | arg3 = wxString_in_helper(obj2); |
8128 | if (arg3 == NULL) SWIG_fail; | |
8129 | temp3 = true; | |
d55e5bfc | 8130 | } |
1bd55598 RD |
8131 | } |
8132 | if (obj3) { | |
d55e5bfc | 8133 | { |
1bd55598 RD |
8134 | arg4 = &temp4; |
8135 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8136 | } |
1bd55598 RD |
8137 | } |
8138 | if (obj4) { | |
d55e5bfc | 8139 | { |
1bd55598 RD |
8140 | arg5 = &temp5; |
8141 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8142 | } |
1bd55598 RD |
8143 | } |
8144 | if (obj5) { | |
8145 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8146 | if (!SWIG_IsOK(ecode6)) { | |
8147 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MiniFrame" "', expected argument " "6"" of type '" "long""'"); | |
8148 | } | |
8149 | arg6 = static_cast< long >(val6); | |
8150 | } | |
8151 | if (obj6) { | |
d55e5bfc | 8152 | { |
1bd55598 RD |
8153 | arg7 = wxString_in_helper(obj6); |
8154 | if (arg7 == NULL) SWIG_fail; | |
8155 | temp7 = true; | |
d55e5bfc | 8156 | } |
1bd55598 RD |
8157 | } |
8158 | { | |
8159 | if (!wxPyCheckForApp()) SWIG_fail; | |
8160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8161 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8162 | wxPyEndAllowThreads(__tstate); | |
8163 | if (PyErr_Occurred()) SWIG_fail; | |
8164 | } | |
8165 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_NEW | 0 ); | |
8166 | { | |
8167 | if (temp3) | |
8168 | delete arg3; | |
8169 | } | |
8170 | { | |
8171 | if (temp7) | |
8172 | delete arg7; | |
8173 | } | |
8174 | return resultobj; | |
8175 | fail: | |
8176 | { | |
8177 | if (temp3) | |
8178 | delete arg3; | |
8179 | } | |
8180 | { | |
8181 | if (temp7) | |
8182 | delete arg7; | |
8183 | } | |
8184 | return NULL; | |
d55e5bfc RD |
8185 | } |
8186 | ||
8187 | ||
1bd55598 RD |
8188 | SWIGINTERN PyObject *_wrap_new_PreMiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8189 | PyObject *resultobj = 0; | |
8190 | wxMiniFrame *result = 0 ; | |
8191 | ||
8192 | if (!SWIG_Python_UnpackTuple(args,"new_PreMiniFrame",0,0,0)) SWIG_fail; | |
8193 | { | |
8194 | if (!wxPyCheckForApp()) SWIG_fail; | |
8195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8196 | result = (wxMiniFrame *)new wxMiniFrame(); | |
8197 | wxPyEndAllowThreads(__tstate); | |
8198 | if (PyErr_Occurred()) SWIG_fail; | |
8199 | } | |
8200 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_OWN | 0 ); | |
8201 | return resultobj; | |
8202 | fail: | |
8203 | return NULL; | |
8204 | } | |
8205 | ||
8206 | ||
8207 | SWIGINTERN PyObject *_wrap_MiniFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8208 | PyObject *resultobj = 0; | |
8209 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
8210 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8211 | int arg3 = (int) (int)-1 ; | |
8212 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8213 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8214 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8215 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8216 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8217 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8218 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
8219 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
8220 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8221 | bool result; | |
8222 | void *argp1 = 0 ; | |
8223 | int res1 = 0 ; | |
8224 | void *argp2 = 0 ; | |
8225 | int res2 = 0 ; | |
8226 | int val3 ; | |
8227 | int ecode3 = 0 ; | |
8228 | bool temp4 = false ; | |
8229 | wxPoint temp5 ; | |
8230 | wxSize temp6 ; | |
8231 | long val7 ; | |
8232 | int ecode7 = 0 ; | |
8233 | bool temp8 = false ; | |
8234 | PyObject * obj0 = 0 ; | |
8235 | PyObject * obj1 = 0 ; | |
8236 | PyObject * obj2 = 0 ; | |
8237 | PyObject * obj3 = 0 ; | |
8238 | PyObject * obj4 = 0 ; | |
8239 | PyObject * obj5 = 0 ; | |
8240 | PyObject * obj6 = 0 ; | |
8241 | PyObject * obj7 = 0 ; | |
8242 | char * kwnames[] = { | |
8243 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8244 | }; | |
8245 | ||
8246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMiniFrame, 0 | 0 ); | |
8248 | if (!SWIG_IsOK(res1)) { | |
8249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MiniFrame_Create" "', expected argument " "1"" of type '" "wxMiniFrame *""'"); | |
8250 | } | |
8251 | arg1 = reinterpret_cast< wxMiniFrame * >(argp1); | |
8252 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8253 | if (!SWIG_IsOK(res2)) { | |
8254 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MiniFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8255 | } | |
8256 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8257 | if (obj2) { | |
8258 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8259 | if (!SWIG_IsOK(ecode3)) { | |
8260 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MiniFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
8261 | } | |
8262 | arg3 = static_cast< int >(val3); | |
8263 | } | |
8264 | if (obj3) { | |
d55e5bfc | 8265 | { |
1bd55598 RD |
8266 | arg4 = wxString_in_helper(obj3); |
8267 | if (arg4 == NULL) SWIG_fail; | |
8268 | temp4 = true; | |
d55e5bfc | 8269 | } |
1bd55598 RD |
8270 | } |
8271 | if (obj4) { | |
d55e5bfc | 8272 | { |
1bd55598 RD |
8273 | arg5 = &temp5; |
8274 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8275 | } |
1bd55598 RD |
8276 | } |
8277 | if (obj5) { | |
d55e5bfc | 8278 | { |
1bd55598 RD |
8279 | arg6 = &temp6; |
8280 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8281 | } |
1bd55598 RD |
8282 | } |
8283 | if (obj6) { | |
8284 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8285 | if (!SWIG_IsOK(ecode7)) { | |
8286 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MiniFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
8287 | } | |
8288 | arg7 = static_cast< long >(val7); | |
8289 | } | |
8290 | if (obj7) { | |
d55e5bfc | 8291 | { |
1bd55598 RD |
8292 | arg8 = wxString_in_helper(obj7); |
8293 | if (arg8 == NULL) SWIG_fail; | |
8294 | temp8 = true; | |
d55e5bfc | 8295 | } |
1bd55598 RD |
8296 | } |
8297 | { | |
8298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8299 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8300 | wxPyEndAllowThreads(__tstate); | |
8301 | if (PyErr_Occurred()) SWIG_fail; | |
8302 | } | |
8303 | { | |
8304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8305 | } | |
8306 | { | |
8307 | if (temp4) | |
8308 | delete arg4; | |
8309 | } | |
8310 | { | |
8311 | if (temp8) | |
8312 | delete arg8; | |
8313 | } | |
8314 | return resultobj; | |
8315 | fail: | |
8316 | { | |
8317 | if (temp4) | |
8318 | delete arg4; | |
8319 | } | |
8320 | { | |
8321 | if (temp8) | |
8322 | delete arg8; | |
8323 | } | |
8324 | return NULL; | |
8325 | } | |
8326 | ||
8327 | ||
8328 | SWIGINTERN PyObject *MiniFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8329 | PyObject *obj; | |
8330 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8331 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMiniFrame, SWIG_NewClientData(obj)); | |
8332 | return SWIG_Py_Void(); | |
8333 | } | |
8334 | ||
8335 | SWIGINTERN PyObject *MiniFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8336 | return SWIG_Python_InitShadowInstance(args); | |
8337 | } | |
8338 | ||
8339 | SWIGINTERN PyObject *_wrap_new_SplashScreenWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8340 | PyObject *resultobj = 0; | |
8341 | wxBitmap *arg1 = 0 ; | |
8342 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8343 | int arg3 ; | |
8344 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8345 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8346 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8347 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8348 | long arg6 = (long) wxNO_BORDER ; | |
8349 | wxSplashScreenWindow *result = 0 ; | |
8350 | void *argp1 = 0 ; | |
8351 | int res1 = 0 ; | |
8352 | void *argp2 = 0 ; | |
8353 | int res2 = 0 ; | |
8354 | int val3 ; | |
8355 | int ecode3 = 0 ; | |
8356 | wxPoint temp4 ; | |
8357 | wxSize temp5 ; | |
8358 | long val6 ; | |
8359 | int ecode6 = 0 ; | |
8360 | PyObject * obj0 = 0 ; | |
8361 | PyObject * obj1 = 0 ; | |
8362 | PyObject * obj2 = 0 ; | |
8363 | PyObject * obj3 = 0 ; | |
8364 | PyObject * obj4 = 0 ; | |
8365 | PyObject * obj5 = 0 ; | |
8366 | char * kwnames[] = { | |
8367 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8368 | }; | |
8369 | ||
8370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
8371 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8372 | if (!SWIG_IsOK(res1)) { | |
8373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8374 | } | |
8375 | if (!argp1) { | |
8376 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8377 | } | |
8378 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8379 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8380 | if (!SWIG_IsOK(res2)) { | |
8381 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplashScreenWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8382 | } | |
8383 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8384 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8385 | if (!SWIG_IsOK(ecode3)) { | |
8386 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreenWindow" "', expected argument " "3"" of type '" "int""'"); | |
8387 | } | |
8388 | arg3 = static_cast< int >(val3); | |
8389 | if (obj3) { | |
d55e5bfc | 8390 | { |
1bd55598 RD |
8391 | arg4 = &temp4; |
8392 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8393 | } |
1bd55598 RD |
8394 | } |
8395 | if (obj4) { | |
d55e5bfc | 8396 | { |
1bd55598 RD |
8397 | arg5 = &temp5; |
8398 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8399 | } |
1bd55598 RD |
8400 | } |
8401 | if (obj5) { | |
8402 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8403 | if (!SWIG_IsOK(ecode6)) { | |
8404 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SplashScreenWindow" "', expected argument " "6"" of type '" "long""'"); | |
8405 | } | |
8406 | arg6 = static_cast< long >(val6); | |
8407 | } | |
8408 | { | |
8409 | if (!wxPyCheckForApp()) SWIG_fail; | |
8410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8411 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
8412 | wxPyEndAllowThreads(__tstate); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
8415 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, SWIG_POINTER_NEW | 0 ); | |
8416 | return resultobj; | |
8417 | fail: | |
8418 | return NULL; | |
8419 | } | |
8420 | ||
8421 | ||
8422 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8423 | PyObject *resultobj = 0; | |
8424 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8425 | wxBitmap *arg2 = 0 ; | |
8426 | void *argp1 = 0 ; | |
8427 | int res1 = 0 ; | |
8428 | void *argp2 = 0 ; | |
8429 | int res2 = 0 ; | |
8430 | PyObject * obj0 = 0 ; | |
8431 | PyObject * obj1 = 0 ; | |
8432 | char * kwnames[] = { | |
8433 | (char *) "self",(char *) "bitmap", NULL | |
8434 | }; | |
8435 | ||
8436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8438 | if (!SWIG_IsOK(res1)) { | |
8439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8440 | } | |
8441 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8442 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8443 | if (!SWIG_IsOK(res2)) { | |
8444 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8445 | } | |
8446 | if (!argp2) { | |
8447 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8448 | } | |
8449 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8450 | { | |
8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8452 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8453 | wxPyEndAllowThreads(__tstate); | |
8454 | if (PyErr_Occurred()) SWIG_fail; | |
8455 | } | |
8456 | resultobj = SWIG_Py_Void(); | |
8457 | return resultobj; | |
8458 | fail: | |
8459 | return NULL; | |
d55e5bfc RD |
8460 | } |
8461 | ||
8462 | ||
1bd55598 RD |
8463 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8464 | PyObject *resultobj = 0; | |
8465 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8466 | wxBitmap *result = 0 ; | |
8467 | void *argp1 = 0 ; | |
8468 | int res1 = 0 ; | |
8469 | PyObject *swig_obj[1] ; | |
8470 | ||
8471 | if (!args) SWIG_fail; | |
8472 | swig_obj[0] = args; | |
8473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8474 | if (!SWIG_IsOK(res1)) { | |
8475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_GetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8476 | } | |
8477 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8478 | { | |
8479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8480 | { | |
8481 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
8482 | result = (wxBitmap *) &_result_ref; | |
8483 | } | |
8484 | wxPyEndAllowThreads(__tstate); | |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
8486 | } | |
8487 | { | |
8488 | wxBitmap* resultptr = new wxBitmap(*result); | |
8489 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
8490 | } | |
8491 | return resultobj; | |
8492 | fail: | |
8493 | return NULL; | |
8494 | } | |
8495 | ||
8496 | ||
8497 | SWIGINTERN PyObject *SplashScreenWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8498 | PyObject *obj; | |
8499 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8500 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreenWindow, SWIG_NewClientData(obj)); | |
8501 | return SWIG_Py_Void(); | |
8502 | } | |
8503 | ||
8504 | SWIGINTERN PyObject *SplashScreenWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8505 | return SWIG_Python_InitShadowInstance(args); | |
8506 | } | |
8507 | ||
8508 | SWIGINTERN PyObject *_wrap_new_SplashScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8509 | PyObject *resultobj = 0; | |
8510 | wxBitmap *arg1 = 0 ; | |
8511 | long arg2 ; | |
8512 | int arg3 ; | |
8513 | wxWindow *arg4 = (wxWindow *) 0 ; | |
8514 | int arg5 = (int) -1 ; | |
8515 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
8516 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
8517 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
8518 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
8519 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
8520 | wxSplashScreen *result = 0 ; | |
8521 | void *argp1 = 0 ; | |
8522 | int res1 = 0 ; | |
8523 | long val2 ; | |
8524 | int ecode2 = 0 ; | |
8525 | int val3 ; | |
8526 | int ecode3 = 0 ; | |
8527 | void *argp4 = 0 ; | |
8528 | int res4 = 0 ; | |
8529 | int val5 ; | |
8530 | int ecode5 = 0 ; | |
8531 | wxPoint temp6 ; | |
8532 | wxSize temp7 ; | |
8533 | long val8 ; | |
8534 | int ecode8 = 0 ; | |
8535 | PyObject * obj0 = 0 ; | |
8536 | PyObject * obj1 = 0 ; | |
8537 | PyObject * obj2 = 0 ; | |
8538 | PyObject * obj3 = 0 ; | |
8539 | PyObject * obj4 = 0 ; | |
8540 | PyObject * obj5 = 0 ; | |
8541 | PyObject * obj6 = 0 ; | |
8542 | PyObject * obj7 = 0 ; | |
8543 | char * kwnames[] = { | |
8544 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8545 | }; | |
8546 | ||
8547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8548 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8549 | if (!SWIG_IsOK(res1)) { | |
8550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8551 | } | |
8552 | if (!argp1) { | |
8553 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8554 | } | |
8555 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8556 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8557 | if (!SWIG_IsOK(ecode2)) { | |
8558 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplashScreen" "', expected argument " "2"" of type '" "long""'"); | |
8559 | } | |
8560 | arg2 = static_cast< long >(val2); | |
8561 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8562 | if (!SWIG_IsOK(ecode3)) { | |
8563 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreen" "', expected argument " "3"" of type '" "int""'"); | |
8564 | } | |
8565 | arg3 = static_cast< int >(val3); | |
8566 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8567 | if (!SWIG_IsOK(res4)) { | |
8568 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SplashScreen" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
8569 | } | |
8570 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
8571 | if (obj4) { | |
8572 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8573 | if (!SWIG_IsOK(ecode5)) { | |
8574 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplashScreen" "', expected argument " "5"" of type '" "int""'"); | |
8575 | } | |
8576 | arg5 = static_cast< int >(val5); | |
8577 | } | |
8578 | if (obj5) { | |
d55e5bfc | 8579 | { |
1bd55598 RD |
8580 | arg6 = &temp6; |
8581 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8582 | } |
1bd55598 RD |
8583 | } |
8584 | if (obj6) { | |
d55e5bfc | 8585 | { |
1bd55598 RD |
8586 | arg7 = &temp7; |
8587 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 8588 | } |
1bd55598 RD |
8589 | } |
8590 | if (obj7) { | |
8591 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
8592 | if (!SWIG_IsOK(ecode8)) { | |
8593 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SplashScreen" "', expected argument " "8"" of type '" "long""'"); | |
8594 | } | |
8595 | arg8 = static_cast< long >(val8); | |
8596 | } | |
8597 | { | |
8598 | if (!wxPyCheckForApp()) SWIG_fail; | |
8599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8600 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
8601 | wxPyEndAllowThreads(__tstate); | |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
8603 | } | |
8604 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreen, SWIG_POINTER_NEW | 0 ); | |
8605 | return resultobj; | |
8606 | fail: | |
8607 | return NULL; | |
d55e5bfc RD |
8608 | } |
8609 | ||
8610 | ||
1bd55598 RD |
8611 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8612 | PyObject *resultobj = 0; | |
8613 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8614 | long result; | |
8615 | void *argp1 = 0 ; | |
8616 | int res1 = 0 ; | |
8617 | PyObject *swig_obj[1] ; | |
8618 | ||
8619 | if (!args) SWIG_fail; | |
8620 | swig_obj[0] = args; | |
8621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8622 | if (!SWIG_IsOK(res1)) { | |
8623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashStyle" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8624 | } | |
8625 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8626 | { | |
8627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8628 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
8629 | wxPyEndAllowThreads(__tstate); | |
8630 | if (PyErr_Occurred()) SWIG_fail; | |
8631 | } | |
8632 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8633 | return resultobj; | |
8634 | fail: | |
8635 | return NULL; | |
d55e5bfc RD |
8636 | } |
8637 | ||
8638 | ||
1bd55598 RD |
8639 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8640 | PyObject *resultobj = 0; | |
8641 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8642 | wxSplashScreenWindow *result = 0 ; | |
8643 | void *argp1 = 0 ; | |
8644 | int res1 = 0 ; | |
8645 | PyObject *swig_obj[1] ; | |
8646 | ||
8647 | if (!args) SWIG_fail; | |
8648 | swig_obj[0] = args; | |
8649 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8650 | if (!SWIG_IsOK(res1)) { | |
8651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashWindow" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8652 | } | |
8653 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8654 | { | |
8655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8656 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
8657 | wxPyEndAllowThreads(__tstate); | |
8658 | if (PyErr_Occurred()) SWIG_fail; | |
8659 | } | |
8660 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8661 | return resultobj; | |
8662 | fail: | |
8663 | return NULL; | |
d55e5bfc RD |
8664 | } |
8665 | ||
8666 | ||
1bd55598 RD |
8667 | SWIGINTERN PyObject *_wrap_SplashScreen_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8668 | PyObject *resultobj = 0; | |
8669 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8670 | int result; | |
8671 | void *argp1 = 0 ; | |
8672 | int res1 = 0 ; | |
8673 | PyObject *swig_obj[1] ; | |
8674 | ||
8675 | if (!args) SWIG_fail; | |
8676 | swig_obj[0] = args; | |
8677 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8678 | if (!SWIG_IsOK(res1)) { | |
8679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetTimeout" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8680 | } | |
8681 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8682 | { | |
8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8684 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
8685 | wxPyEndAllowThreads(__tstate); | |
8686 | if (PyErr_Occurred()) SWIG_fail; | |
8687 | } | |
8688 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8689 | return resultobj; | |
8690 | fail: | |
8691 | return NULL; | |
8692 | } | |
8693 | ||
8694 | ||
8695 | SWIGINTERN PyObject *SplashScreen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8696 | PyObject *obj; | |
8697 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8698 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreen, SWIG_NewClientData(obj)); | |
8699 | return SWIG_Py_Void(); | |
8700 | } | |
8701 | ||
8702 | SWIGINTERN PyObject *SplashScreen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8703 | return SWIG_Python_InitShadowInstance(args); | |
8704 | } | |
8705 | ||
8706 | SWIGINTERN PyObject *_wrap_new_StatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8707 | PyObject *resultobj = 0; | |
8708 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8709 | int arg2 = (int) -1 ; | |
8710 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
8711 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
8712 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8713 | wxStatusBar *result = 0 ; | |
8714 | void *argp1 = 0 ; | |
8715 | int res1 = 0 ; | |
8716 | int val2 ; | |
8717 | int ecode2 = 0 ; | |
8718 | long val3 ; | |
8719 | int ecode3 = 0 ; | |
8720 | bool temp4 = false ; | |
8721 | PyObject * obj0 = 0 ; | |
8722 | PyObject * obj1 = 0 ; | |
8723 | PyObject * obj2 = 0 ; | |
8724 | PyObject * obj3 = 0 ; | |
8725 | char * kwnames[] = { | |
8726 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8727 | }; | |
8728 | ||
8729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8731 | if (!SWIG_IsOK(res1)) { | |
8732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StatusBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8733 | } | |
8734 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8735 | if (obj1) { | |
8736 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8737 | if (!SWIG_IsOK(ecode2)) { | |
8738 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StatusBar" "', expected argument " "2"" of type '" "int""'"); | |
8739 | } | |
8740 | arg2 = static_cast< int >(val2); | |
8741 | } | |
8742 | if (obj2) { | |
8743 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8744 | if (!SWIG_IsOK(ecode3)) { | |
8745 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StatusBar" "', expected argument " "3"" of type '" "long""'"); | |
8746 | } | |
8747 | arg3 = static_cast< long >(val3); | |
8748 | } | |
8749 | if (obj3) { | |
d55e5bfc | 8750 | { |
1bd55598 RD |
8751 | arg4 = wxString_in_helper(obj3); |
8752 | if (arg4 == NULL) SWIG_fail; | |
8753 | temp4 = true; | |
d55e5bfc | 8754 | } |
1bd55598 RD |
8755 | } |
8756 | { | |
8757 | if (!wxPyCheckForApp()) SWIG_fail; | |
8758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8759 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
8760 | wxPyEndAllowThreads(__tstate); | |
8761 | if (PyErr_Occurred()) SWIG_fail; | |
8762 | } | |
8763 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_NEW | 0 ); | |
8764 | { | |
8765 | if (temp4) | |
8766 | delete arg4; | |
8767 | } | |
8768 | return resultobj; | |
8769 | fail: | |
8770 | { | |
8771 | if (temp4) | |
8772 | delete arg4; | |
8773 | } | |
8774 | return NULL; | |
d55e5bfc RD |
8775 | } |
8776 | ||
8777 | ||
1bd55598 RD |
8778 | SWIGINTERN PyObject *_wrap_new_PreStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8779 | PyObject *resultobj = 0; | |
8780 | wxStatusBar *result = 0 ; | |
8781 | ||
8782 | if (!SWIG_Python_UnpackTuple(args,"new_PreStatusBar",0,0,0)) SWIG_fail; | |
8783 | { | |
8784 | if (!wxPyCheckForApp()) SWIG_fail; | |
8785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8786 | result = (wxStatusBar *)new wxStatusBar(); | |
8787 | wxPyEndAllowThreads(__tstate); | |
8788 | if (PyErr_Occurred()) SWIG_fail; | |
8789 | } | |
8790 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_OWN | 0 ); | |
8791 | return resultobj; | |
8792 | fail: | |
8793 | return NULL; | |
8794 | } | |
8795 | ||
8796 | ||
8797 | SWIGINTERN PyObject *_wrap_StatusBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8798 | PyObject *resultobj = 0; | |
8799 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8800 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8801 | int arg3 = (int) -1 ; | |
8802 | long arg4 = (long) wxST_SIZEGRIP ; | |
8803 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
8804 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
8805 | bool result; | |
8806 | void *argp1 = 0 ; | |
8807 | int res1 = 0 ; | |
8808 | void *argp2 = 0 ; | |
8809 | int res2 = 0 ; | |
8810 | int val3 ; | |
8811 | int ecode3 = 0 ; | |
8812 | long val4 ; | |
8813 | int ecode4 = 0 ; | |
8814 | bool temp5 = false ; | |
8815 | PyObject * obj0 = 0 ; | |
8816 | PyObject * obj1 = 0 ; | |
8817 | PyObject * obj2 = 0 ; | |
8818 | PyObject * obj3 = 0 ; | |
8819 | PyObject * obj4 = 0 ; | |
8820 | char * kwnames[] = { | |
8821 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8822 | }; | |
8823 | ||
8824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8826 | if (!SWIG_IsOK(res1)) { | |
8827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_Create" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8828 | } | |
8829 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8830 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8831 | if (!SWIG_IsOK(res2)) { | |
8832 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StatusBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8833 | } | |
8834 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8835 | if (obj2) { | |
8836 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8837 | if (!SWIG_IsOK(ecode3)) { | |
8838 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
8839 | } | |
8840 | arg3 = static_cast< int >(val3); | |
8841 | } | |
8842 | if (obj3) { | |
8843 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
8844 | if (!SWIG_IsOK(ecode4)) { | |
8845 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StatusBar_Create" "', expected argument " "4"" of type '" "long""'"); | |
8846 | } | |
8847 | arg4 = static_cast< long >(val4); | |
8848 | } | |
8849 | if (obj4) { | |
d55e5bfc | 8850 | { |
1bd55598 RD |
8851 | arg5 = wxString_in_helper(obj4); |
8852 | if (arg5 == NULL) SWIG_fail; | |
8853 | temp5 = true; | |
d55e5bfc | 8854 | } |
1bd55598 RD |
8855 | } |
8856 | { | |
8857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8858 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
8859 | wxPyEndAllowThreads(__tstate); | |
8860 | if (PyErr_Occurred()) SWIG_fail; | |
8861 | } | |
8862 | { | |
8863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8864 | } | |
8865 | { | |
8866 | if (temp5) | |
8867 | delete arg5; | |
8868 | } | |
8869 | return resultobj; | |
8870 | fail: | |
8871 | { | |
8872 | if (temp5) | |
8873 | delete arg5; | |
8874 | } | |
8875 | return NULL; | |
8876 | } | |
8877 | ||
8878 | ||
8879 | SWIGINTERN PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8880 | PyObject *resultobj = 0; | |
8881 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8882 | int arg2 = (int) 1 ; | |
8883 | void *argp1 = 0 ; | |
8884 | int res1 = 0 ; | |
8885 | int val2 ; | |
8886 | int ecode2 = 0 ; | |
8887 | PyObject * obj0 = 0 ; | |
8888 | PyObject * obj1 = 0 ; | |
8889 | char * kwnames[] = { | |
8890 | (char *) "self",(char *) "number", NULL | |
8891 | }; | |
8892 | ||
8893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
8894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8895 | if (!SWIG_IsOK(res1)) { | |
8896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8897 | } | |
8898 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8899 | if (obj1) { | |
8900 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8901 | if (!SWIG_IsOK(ecode2)) { | |
8902 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "2"" of type '" "int""'"); | |
8903 | } | |
8904 | arg2 = static_cast< int >(val2); | |
8905 | } | |
8906 | { | |
8907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8908 | (arg1)->SetFieldsCount(arg2); | |
8909 | wxPyEndAllowThreads(__tstate); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | } | |
8912 | resultobj = SWIG_Py_Void(); | |
8913 | return resultobj; | |
8914 | fail: | |
8915 | return NULL; | |
d55e5bfc RD |
8916 | } |
8917 | ||
8918 | ||
1bd55598 RD |
8919 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8920 | PyObject *resultobj = 0; | |
8921 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8922 | int result; | |
8923 | void *argp1 = 0 ; | |
8924 | int res1 = 0 ; | |
8925 | PyObject *swig_obj[1] ; | |
8926 | ||
8927 | if (!args) SWIG_fail; | |
8928 | swig_obj[0] = args; | |
8929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8930 | if (!SWIG_IsOK(res1)) { | |
8931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8932 | } | |
8933 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8934 | { | |
8935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8936 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
8940 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8941 | return resultobj; | |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
8947 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8948 | PyObject *resultobj = 0; | |
8949 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8950 | wxString *arg2 = 0 ; | |
8951 | int arg3 = (int) 0 ; | |
8952 | void *argp1 = 0 ; | |
8953 | int res1 = 0 ; | |
8954 | bool temp2 = false ; | |
8955 | int val3 ; | |
8956 | int ecode3 = 0 ; | |
8957 | PyObject * obj0 = 0 ; | |
8958 | PyObject * obj1 = 0 ; | |
8959 | PyObject * obj2 = 0 ; | |
8960 | char * kwnames[] = { | |
8961 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8962 | }; | |
8963 | ||
8964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8966 | if (!SWIG_IsOK(res1)) { | |
8967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8968 | } | |
8969 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8970 | { | |
8971 | arg2 = wxString_in_helper(obj1); | |
8972 | if (arg2 == NULL) SWIG_fail; | |
8973 | temp2 = true; | |
8974 | } | |
8975 | if (obj2) { | |
8976 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8977 | if (!SWIG_IsOK(ecode3)) { | |
8978 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8979 | } | |
8980 | arg3 = static_cast< int >(val3); | |
8981 | } | |
8982 | { | |
8983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8984 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
8985 | wxPyEndAllowThreads(__tstate); | |
8986 | if (PyErr_Occurred()) SWIG_fail; | |
8987 | } | |
8988 | resultobj = SWIG_Py_Void(); | |
8989 | { | |
8990 | if (temp2) | |
8991 | delete arg2; | |
8992 | } | |
8993 | return resultobj; | |
8994 | fail: | |
8995 | { | |
8996 | if (temp2) | |
8997 | delete arg2; | |
8998 | } | |
8999 | return NULL; | |
9000 | } | |
9001 | ||
9002 | ||
9003 | SWIGINTERN PyObject *_wrap_StatusBar_GetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9004 | PyObject *resultobj = 0; | |
9005 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9006 | int arg2 = (int) 0 ; | |
9007 | wxString result; | |
9008 | void *argp1 = 0 ; | |
9009 | int res1 = 0 ; | |
9010 | int val2 ; | |
9011 | int ecode2 = 0 ; | |
9012 | PyObject * obj0 = 0 ; | |
9013 | PyObject * obj1 = 0 ; | |
9014 | char * kwnames[] = { | |
9015 | (char *) "self",(char *) "number", NULL | |
9016 | }; | |
9017 | ||
9018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
9019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9020 | if (!SWIG_IsOK(res1)) { | |
9021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetStatusText" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9022 | } | |
9023 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9024 | if (obj1) { | |
9025 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9026 | if (!SWIG_IsOK(ecode2)) { | |
9027 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetStatusText" "', expected argument " "2"" of type '" "int""'"); | |
9028 | } | |
9029 | arg2 = static_cast< int >(val2); | |
9030 | } | |
9031 | { | |
9032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9033 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | { | |
9038 | #if wxUSE_UNICODE | |
9039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9040 | #else | |
9041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9042 | #endif | |
9043 | } | |
9044 | return resultobj; | |
9045 | fail: | |
9046 | return NULL; | |
9047 | } | |
9048 | ||
9049 | ||
9050 | SWIGINTERN PyObject *_wrap_StatusBar_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9051 | PyObject *resultobj = 0; | |
9052 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9053 | wxString *arg2 = 0 ; | |
9054 | int arg3 = (int) 0 ; | |
9055 | void *argp1 = 0 ; | |
9056 | int res1 = 0 ; | |
9057 | bool temp2 = false ; | |
9058 | int val3 ; | |
9059 | int ecode3 = 0 ; | |
9060 | PyObject * obj0 = 0 ; | |
9061 | PyObject * obj1 = 0 ; | |
9062 | PyObject * obj2 = 0 ; | |
9063 | char * kwnames[] = { | |
9064 | (char *) "self",(char *) "text",(char *) "number", NULL | |
9065 | }; | |
9066 | ||
9067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9069 | if (!SWIG_IsOK(res1)) { | |
9070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PushStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9071 | } | |
9072 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9073 | { | |
9074 | arg2 = wxString_in_helper(obj1); | |
9075 | if (arg2 == NULL) SWIG_fail; | |
9076 | temp2 = true; | |
9077 | } | |
9078 | if (obj2) { | |
9079 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9080 | if (!SWIG_IsOK(ecode3)) { | |
9081 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
9082 | } | |
9083 | arg3 = static_cast< int >(val3); | |
9084 | } | |
9085 | { | |
9086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9087 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
9088 | wxPyEndAllowThreads(__tstate); | |
9089 | if (PyErr_Occurred()) SWIG_fail; | |
9090 | } | |
9091 | resultobj = SWIG_Py_Void(); | |
9092 | { | |
9093 | if (temp2) | |
9094 | delete arg2; | |
9095 | } | |
9096 | return resultobj; | |
9097 | fail: | |
9098 | { | |
9099 | if (temp2) | |
9100 | delete arg2; | |
9101 | } | |
9102 | return NULL; | |
9103 | } | |
9104 | ||
9105 | ||
9106 | SWIGINTERN PyObject *_wrap_StatusBar_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9107 | PyObject *resultobj = 0; | |
9108 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9109 | int arg2 = (int) 0 ; | |
9110 | void *argp1 = 0 ; | |
9111 | int res1 = 0 ; | |
9112 | int val2 ; | |
9113 | int ecode2 = 0 ; | |
9114 | PyObject * obj0 = 0 ; | |
9115 | PyObject * obj1 = 0 ; | |
9116 | char * kwnames[] = { | |
9117 | (char *) "self",(char *) "number", NULL | |
9118 | }; | |
9119 | ||
9120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
9121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9122 | if (!SWIG_IsOK(res1)) { | |
9123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PopStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9124 | } | |
9125 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9126 | if (obj1) { | |
9127 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9128 | if (!SWIG_IsOK(ecode2)) { | |
9129 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
9130 | } | |
9131 | arg2 = static_cast< int >(val2); | |
9132 | } | |
9133 | { | |
9134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9135 | (arg1)->PopStatusText(arg2); | |
9136 | wxPyEndAllowThreads(__tstate); | |
9137 | if (PyErr_Occurred()) SWIG_fail; | |
9138 | } | |
9139 | resultobj = SWIG_Py_Void(); | |
9140 | return resultobj; | |
9141 | fail: | |
9142 | return NULL; | |
9143 | } | |
9144 | ||
9145 | ||
9146 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9147 | PyObject *resultobj = 0; | |
9148 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9149 | int arg2 ; | |
9150 | int *arg3 = (int *) 0 ; | |
9151 | void *argp1 = 0 ; | |
9152 | int res1 = 0 ; | |
9153 | PyObject * obj0 = 0 ; | |
9154 | PyObject * obj1 = 0 ; | |
9155 | char * kwnames[] = { | |
9156 | (char *) "self",(char *) "widths", NULL | |
9157 | }; | |
9158 | ||
9159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
9160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9161 | if (!SWIG_IsOK(res1)) { | |
9162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusWidths" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9163 | } | |
9164 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9165 | { | |
9166 | arg2 = PyList_Size(obj1); | |
9167 | arg3 = int_LIST_helper(obj1); | |
9168 | if (arg3 == NULL) SWIG_fail; | |
9169 | } | |
9170 | { | |
9171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9172 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
9173 | wxPyEndAllowThreads(__tstate); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | } | |
9176 | resultobj = SWIG_Py_Void(); | |
9177 | { | |
9178 | if (arg3) delete [] arg3; | |
9179 | } | |
9180 | return resultobj; | |
9181 | fail: | |
9182 | { | |
9183 | if (arg3) delete [] arg3; | |
9184 | } | |
9185 | return NULL; | |
d55e5bfc RD |
9186 | } |
9187 | ||
9188 | ||
1bd55598 RD |
9189 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9190 | PyObject *resultobj = 0; | |
9191 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9192 | int arg2 ; | |
9193 | int *arg3 = (int *) 0 ; | |
9194 | void *argp1 = 0 ; | |
9195 | int res1 = 0 ; | |
9196 | PyObject * obj0 = 0 ; | |
9197 | PyObject * obj1 = 0 ; | |
9198 | char * kwnames[] = { | |
9199 | (char *) "self",(char *) "styles", NULL | |
9200 | }; | |
9201 | ||
9202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) SWIG_fail; | |
9203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9204 | if (!SWIG_IsOK(res1)) { | |
9205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusStyles" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9206 | } | |
9207 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9208 | { | |
9209 | arg2 = PyList_Size(obj1); | |
9210 | arg3 = int_LIST_helper(obj1); | |
9211 | if (arg3 == NULL) SWIG_fail; | |
9212 | } | |
9213 | { | |
9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9215 | (arg1)->SetStatusStyles(arg2,(int const *)arg3); | |
9216 | wxPyEndAllowThreads(__tstate); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | } | |
9219 | resultobj = SWIG_Py_Void(); | |
9220 | { | |
9221 | if (arg3) delete [] arg3; | |
9222 | } | |
9223 | return resultobj; | |
9224 | fail: | |
9225 | { | |
9226 | if (arg3) delete [] arg3; | |
9227 | } | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
9232 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9233 | PyObject *resultobj = 0; | |
9234 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9235 | int arg2 ; | |
9236 | wxRect result; | |
9237 | void *argp1 = 0 ; | |
9238 | int res1 = 0 ; | |
9239 | int val2 ; | |
9240 | int ecode2 = 0 ; | |
9241 | PyObject * obj0 = 0 ; | |
9242 | PyObject * obj1 = 0 ; | |
9243 | char * kwnames[] = { | |
9244 | (char *) "self",(char *) "i", NULL | |
9245 | }; | |
9246 | ||
9247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9249 | if (!SWIG_IsOK(res1)) { | |
9250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldRect" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9251 | } | |
9252 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9253 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9254 | if (!SWIG_IsOK(ecode2)) { | |
9255 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetFieldRect" "', expected argument " "2"" of type '" "int""'"); | |
9256 | } | |
9257 | arg2 = static_cast< int >(val2); | |
9258 | { | |
9259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9260 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
9261 | wxPyEndAllowThreads(__tstate); | |
9262 | if (PyErr_Occurred()) SWIG_fail; | |
9263 | } | |
9264 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9265 | return resultobj; | |
9266 | fail: | |
9267 | return NULL; | |
9268 | } | |
9269 | ||
9270 | ||
9271 | SWIGINTERN PyObject *_wrap_StatusBar_SetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9272 | PyObject *resultobj = 0; | |
9273 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9274 | int arg2 ; | |
9275 | void *argp1 = 0 ; | |
9276 | int res1 = 0 ; | |
9277 | int val2 ; | |
9278 | int ecode2 = 0 ; | |
9279 | PyObject * obj0 = 0 ; | |
9280 | PyObject * obj1 = 0 ; | |
9281 | char * kwnames[] = { | |
9282 | (char *) "self",(char *) "height", NULL | |
9283 | }; | |
9284 | ||
9285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9287 | if (!SWIG_IsOK(res1)) { | |
9288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetMinHeight" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9289 | } | |
9290 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9291 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9292 | if (!SWIG_IsOK(ecode2)) { | |
9293 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetMinHeight" "', expected argument " "2"" of type '" "int""'"); | |
9294 | } | |
9295 | arg2 = static_cast< int >(val2); | |
9296 | { | |
9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9298 | (arg1)->SetMinHeight(arg2); | |
9299 | wxPyEndAllowThreads(__tstate); | |
9300 | if (PyErr_Occurred()) SWIG_fail; | |
9301 | } | |
9302 | resultobj = SWIG_Py_Void(); | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | return NULL; | |
d55e5bfc RD |
9306 | } |
9307 | ||
9308 | ||
1bd55598 RD |
9309 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9310 | PyObject *resultobj = 0; | |
9311 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9312 | int result; | |
9313 | void *argp1 = 0 ; | |
9314 | int res1 = 0 ; | |
9315 | PyObject *swig_obj[1] ; | |
9316 | ||
9317 | if (!args) SWIG_fail; | |
9318 | swig_obj[0] = args; | |
9319 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9320 | if (!SWIG_IsOK(res1)) { | |
9321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderX" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9322 | } | |
9323 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9324 | { | |
9325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9326 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
9327 | wxPyEndAllowThreads(__tstate); | |
9328 | if (PyErr_Occurred()) SWIG_fail; | |
9329 | } | |
9330 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9331 | return resultobj; | |
9332 | fail: | |
9333 | return NULL; | |
d55e5bfc RD |
9334 | } |
9335 | ||
9336 | ||
1bd55598 RD |
9337 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9338 | PyObject *resultobj = 0; | |
9339 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9340 | int result; | |
9341 | void *argp1 = 0 ; | |
9342 | int res1 = 0 ; | |
9343 | PyObject *swig_obj[1] ; | |
9344 | ||
9345 | if (!args) SWIG_fail; | |
9346 | swig_obj[0] = args; | |
9347 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9348 | if (!SWIG_IsOK(res1)) { | |
9349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderY" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9350 | } | |
9351 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9352 | { | |
9353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9354 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
9355 | wxPyEndAllowThreads(__tstate); | |
9356 | if (PyErr_Occurred()) SWIG_fail; | |
9357 | } | |
9358 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9359 | return resultobj; | |
9360 | fail: | |
9361 | return NULL; | |
9362 | } | |
9363 | ||
9364 | ||
9365 | SWIGINTERN PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9366 | PyObject *resultobj = 0; | |
9367 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9368 | SwigValueWrapper<wxVisualAttributes > result; | |
9369 | int val1 ; | |
9370 | int ecode1 = 0 ; | |
9371 | PyObject * obj0 = 0 ; | |
9372 | char * kwnames[] = { | |
9373 | (char *) "variant", NULL | |
9374 | }; | |
9375 | ||
9376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9377 | if (obj0) { | |
9378 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9379 | if (!SWIG_IsOK(ecode1)) { | |
9380 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StatusBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9381 | } | |
9382 | arg1 = static_cast< wxWindowVariant >(val1); | |
9383 | } | |
9384 | { | |
9385 | if (!wxPyCheckForApp()) SWIG_fail; | |
9386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9387 | result = wxStatusBar::GetClassDefaultAttributes(arg1); | |
9388 | wxPyEndAllowThreads(__tstate); | |
9389 | if (PyErr_Occurred()) SWIG_fail; | |
9390 | } | |
9391 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9392 | return resultobj; | |
9393 | fail: | |
9394 | return NULL; | |
d55e5bfc RD |
9395 | } |
9396 | ||
9397 | ||
1bd55598 RD |
9398 | SWIGINTERN PyObject *StatusBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9399 | PyObject *obj; | |
9400 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9401 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStatusBar, SWIG_NewClientData(obj)); | |
9402 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9403 | } |
9404 | ||
1bd55598 RD |
9405 | SWIGINTERN PyObject *StatusBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9406 | return SWIG_Python_InitShadowInstance(args); | |
9407 | } | |
d55e5bfc | 9408 | |
1bd55598 RD |
9409 | SWIGINTERN int SplitterNameStr_set(PyObject *) { |
9410 | SWIG_Error(SWIG_AttributeError,"Variable SplitterNameStr is read-only."); | |
9411 | return 1; | |
d55e5bfc RD |
9412 | } |
9413 | ||
9414 | ||
1bd55598 RD |
9415 | SWIGINTERN PyObject *SplitterNameStr_get(void) { |
9416 | PyObject *pyobj = 0; | |
9417 | ||
9418 | { | |
9419 | #if wxUSE_UNICODE | |
9420 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9421 | #else | |
9422 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9423 | #endif | |
9424 | } | |
9425 | return pyobj; | |
9426 | } | |
9427 | ||
9428 | ||
9429 | SWIGINTERN PyObject *_wrap_new_SplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9430 | PyObject *resultobj = 0; | |
9431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9432 | int arg2 = (int) -1 ; | |
9433 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9434 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9435 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9436 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9437 | long arg5 = (long) wxSP_3D ; | |
9438 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
9439 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9440 | wxSplitterWindow *result = 0 ; | |
9441 | void *argp1 = 0 ; | |
9442 | int res1 = 0 ; | |
9443 | int val2 ; | |
9444 | int ecode2 = 0 ; | |
9445 | wxPoint temp3 ; | |
9446 | wxSize temp4 ; | |
9447 | long val5 ; | |
9448 | int ecode5 = 0 ; | |
9449 | bool temp6 = false ; | |
9450 | PyObject * obj0 = 0 ; | |
9451 | PyObject * obj1 = 0 ; | |
9452 | PyObject * obj2 = 0 ; | |
9453 | PyObject * obj3 = 0 ; | |
9454 | PyObject * obj4 = 0 ; | |
9455 | PyObject * obj5 = 0 ; | |
9456 | char * kwnames[] = { | |
9457 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9458 | }; | |
9459 | ||
9460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
9461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9462 | if (!SWIG_IsOK(res1)) { | |
9463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplitterWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
9464 | } | |
9465 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
9466 | if (obj1) { | |
9467 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9468 | if (!SWIG_IsOK(ecode2)) { | |
9469 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterWindow" "', expected argument " "2"" of type '" "int""'"); | |
9470 | } | |
9471 | arg2 = static_cast< int >(val2); | |
9472 | } | |
9473 | if (obj2) { | |
36ed4f51 | 9474 | { |
1bd55598 RD |
9475 | arg3 = &temp3; |
9476 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 9477 | } |
1bd55598 RD |
9478 | } |
9479 | if (obj3) { | |
d55e5bfc | 9480 | { |
1bd55598 RD |
9481 | arg4 = &temp4; |
9482 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9483 | } |
1bd55598 RD |
9484 | } |
9485 | if (obj4) { | |
9486 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
9487 | if (!SWIG_IsOK(ecode5)) { | |
9488 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplitterWindow" "', expected argument " "5"" of type '" "long""'"); | |
9489 | } | |
9490 | arg5 = static_cast< long >(val5); | |
9491 | } | |
9492 | if (obj5) { | |
36ed4f51 | 9493 | { |
1bd55598 RD |
9494 | arg6 = wxString_in_helper(obj5); |
9495 | if (arg6 == NULL) SWIG_fail; | |
9496 | temp6 = true; | |
36ed4f51 | 9497 | } |
1bd55598 RD |
9498 | } |
9499 | { | |
9500 | if (!wxPyCheckForApp()) SWIG_fail; | |
9501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9502 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9503 | wxPyEndAllowThreads(__tstate); | |
9504 | if (PyErr_Occurred()) SWIG_fail; | |
9505 | } | |
9506 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_NEW | 0 ); | |
9507 | { | |
9508 | if (temp6) | |
9509 | delete arg6; | |
9510 | } | |
9511 | return resultobj; | |
9512 | fail: | |
9513 | { | |
9514 | if (temp6) | |
9515 | delete arg6; | |
9516 | } | |
9517 | return NULL; | |
d55e5bfc RD |
9518 | } |
9519 | ||
9520 | ||
1bd55598 RD |
9521 | SWIGINTERN PyObject *_wrap_new_PreSplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9522 | PyObject *resultobj = 0; | |
9523 | wxSplitterWindow *result = 0 ; | |
9524 | ||
9525 | if (!SWIG_Python_UnpackTuple(args,"new_PreSplitterWindow",0,0,0)) SWIG_fail; | |
9526 | { | |
9527 | if (!wxPyCheckForApp()) SWIG_fail; | |
9528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9529 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
9530 | wxPyEndAllowThreads(__tstate); | |
9531 | if (PyErr_Occurred()) SWIG_fail; | |
9532 | } | |
9533 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_OWN | 0 ); | |
9534 | return resultobj; | |
9535 | fail: | |
9536 | return NULL; | |
9537 | } | |
9538 | ||
9539 | ||
9540 | SWIGINTERN PyObject *_wrap_SplitterWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9541 | PyObject *resultobj = 0; | |
9542 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9543 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9544 | int arg3 = (int) -1 ; | |
9545 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9546 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9547 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9548 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9549 | long arg6 = (long) wxSP_3D ; | |
9550 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
9551 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9552 | bool result; | |
9553 | void *argp1 = 0 ; | |
9554 | int res1 = 0 ; | |
9555 | void *argp2 = 0 ; | |
9556 | int res2 = 0 ; | |
9557 | int val3 ; | |
9558 | int ecode3 = 0 ; | |
9559 | wxPoint temp4 ; | |
9560 | wxSize temp5 ; | |
9561 | long val6 ; | |
9562 | int ecode6 = 0 ; | |
9563 | bool temp7 = false ; | |
9564 | PyObject * obj0 = 0 ; | |
9565 | PyObject * obj1 = 0 ; | |
9566 | PyObject * obj2 = 0 ; | |
9567 | PyObject * obj3 = 0 ; | |
9568 | PyObject * obj4 = 0 ; | |
9569 | PyObject * obj5 = 0 ; | |
9570 | PyObject * obj6 = 0 ; | |
9571 | char * kwnames[] = { | |
9572 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9573 | }; | |
9574 | ||
9575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9577 | if (!SWIG_IsOK(res1)) { | |
9578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Create" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9579 | } | |
9580 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9581 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9582 | if (!SWIG_IsOK(res2)) { | |
9583 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9584 | } | |
9585 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9586 | if (obj2) { | |
9587 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9588 | if (!SWIG_IsOK(ecode3)) { | |
9589 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
9590 | } | |
9591 | arg3 = static_cast< int >(val3); | |
9592 | } | |
9593 | if (obj3) { | |
d55e5bfc | 9594 | { |
1bd55598 RD |
9595 | arg4 = &temp4; |
9596 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9597 | } |
1bd55598 RD |
9598 | } |
9599 | if (obj4) { | |
d55e5bfc | 9600 | { |
1bd55598 RD |
9601 | arg5 = &temp5; |
9602 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 9603 | } |
1bd55598 RD |
9604 | } |
9605 | if (obj5) { | |
9606 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
9607 | if (!SWIG_IsOK(ecode6)) { | |
9608 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SplitterWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
9609 | } | |
9610 | arg6 = static_cast< long >(val6); | |
9611 | } | |
9612 | if (obj6) { | |
d55e5bfc | 9613 | { |
1bd55598 RD |
9614 | arg7 = wxString_in_helper(obj6); |
9615 | if (arg7 == NULL) SWIG_fail; | |
9616 | temp7 = true; | |
d55e5bfc | 9617 | } |
1bd55598 RD |
9618 | } |
9619 | { | |
9620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9621 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | { | |
9626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9627 | } | |
9628 | { | |
9629 | if (temp7) | |
9630 | delete arg7; | |
9631 | } | |
9632 | return resultobj; | |
9633 | fail: | |
9634 | { | |
9635 | if (temp7) | |
9636 | delete arg7; | |
9637 | } | |
9638 | return NULL; | |
d55e5bfc RD |
9639 | } |
9640 | ||
9641 | ||
1bd55598 RD |
9642 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9643 | PyObject *resultobj = 0; | |
9644 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9645 | wxWindow *result = 0 ; | |
9646 | void *argp1 = 0 ; | |
9647 | int res1 = 0 ; | |
9648 | PyObject *swig_obj[1] ; | |
9649 | ||
9650 | if (!args) SWIG_fail; | |
9651 | swig_obj[0] = args; | |
9652 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9653 | if (!SWIG_IsOK(res1)) { | |
9654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow1" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9655 | } | |
9656 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9657 | { | |
9658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9659 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
9660 | wxPyEndAllowThreads(__tstate); | |
9661 | if (PyErr_Occurred()) SWIG_fail; | |
9662 | } | |
9663 | { | |
9664 | resultobj = wxPyMake_wxObject(result, 0); | |
9665 | } | |
9666 | return resultobj; | |
9667 | fail: | |
9668 | return NULL; | |
d55e5bfc RD |
9669 | } |
9670 | ||
9671 | ||
1bd55598 RD |
9672 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9673 | PyObject *resultobj = 0; | |
9674 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9675 | wxWindow *result = 0 ; | |
9676 | void *argp1 = 0 ; | |
9677 | int res1 = 0 ; | |
9678 | PyObject *swig_obj[1] ; | |
9679 | ||
9680 | if (!args) SWIG_fail; | |
9681 | swig_obj[0] = args; | |
9682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9683 | if (!SWIG_IsOK(res1)) { | |
9684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow2" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9685 | } | |
9686 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9687 | { | |
9688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9689 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
9693 | { | |
9694 | resultobj = wxPyMake_wxObject(result, 0); | |
9695 | } | |
9696 | return resultobj; | |
9697 | fail: | |
9698 | return NULL; | |
9699 | } | |
9700 | ||
9701 | ||
9702 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9703 | PyObject *resultobj = 0; | |
9704 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9705 | int arg2 ; | |
9706 | void *argp1 = 0 ; | |
9707 | int res1 = 0 ; | |
9708 | int val2 ; | |
9709 | int ecode2 = 0 ; | |
9710 | PyObject * obj0 = 0 ; | |
9711 | PyObject * obj1 = 0 ; | |
9712 | char * kwnames[] = { | |
9713 | (char *) "self",(char *) "mode", NULL | |
9714 | }; | |
9715 | ||
9716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
9717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9718 | if (!SWIG_IsOK(res1)) { | |
9719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9720 | } | |
9721 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9722 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9723 | if (!SWIG_IsOK(ecode2)) { | |
9724 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "2"" of type '" "int""'"); | |
9725 | } | |
9726 | arg2 = static_cast< int >(val2); | |
9727 | { | |
9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9729 | (arg1)->SetSplitMode(arg2); | |
9730 | wxPyEndAllowThreads(__tstate); | |
9731 | if (PyErr_Occurred()) SWIG_fail; | |
9732 | } | |
9733 | resultobj = SWIG_Py_Void(); | |
9734 | return resultobj; | |
9735 | fail: | |
9736 | return NULL; | |
d55e5bfc RD |
9737 | } |
9738 | ||
9739 | ||
1bd55598 RD |
9740 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9741 | PyObject *resultobj = 0; | |
9742 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9743 | wxSplitMode result; | |
9744 | void *argp1 = 0 ; | |
9745 | int res1 = 0 ; | |
9746 | PyObject *swig_obj[1] ; | |
9747 | ||
9748 | if (!args) SWIG_fail; | |
9749 | swig_obj[0] = args; | |
9750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9751 | if (!SWIG_IsOK(res1)) { | |
9752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9753 | } | |
9754 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9755 | { | |
9756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9757 | result = (wxSplitMode)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
9761 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9762 | return resultobj; | |
9763 | fail: | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
9768 | SWIGINTERN PyObject *_wrap_SplitterWindow_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9769 | PyObject *resultobj = 0; | |
9770 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9771 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9772 | void *argp1 = 0 ; | |
9773 | int res1 = 0 ; | |
9774 | void *argp2 = 0 ; | |
9775 | int res2 = 0 ; | |
9776 | PyObject * obj0 = 0 ; | |
9777 | PyObject * obj1 = 0 ; | |
9778 | char * kwnames[] = { | |
9779 | (char *) "self",(char *) "window", NULL | |
9780 | }; | |
9781 | ||
9782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9784 | if (!SWIG_IsOK(res1)) { | |
9785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Initialize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9786 | } | |
9787 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9788 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9789 | if (!SWIG_IsOK(res2)) { | |
9790 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Initialize" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9791 | } | |
9792 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9793 | { | |
9794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9795 | (arg1)->Initialize(arg2); | |
9796 | wxPyEndAllowThreads(__tstate); | |
9797 | if (PyErr_Occurred()) SWIG_fail; | |
9798 | } | |
9799 | resultobj = SWIG_Py_Void(); | |
9800 | return resultobj; | |
9801 | fail: | |
9802 | return NULL; | |
9803 | } | |
9804 | ||
9805 | ||
9806 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9807 | PyObject *resultobj = 0; | |
9808 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9809 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9810 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9811 | int arg4 = (int) 0 ; | |
9812 | bool result; | |
9813 | void *argp1 = 0 ; | |
9814 | int res1 = 0 ; | |
9815 | void *argp2 = 0 ; | |
9816 | int res2 = 0 ; | |
9817 | void *argp3 = 0 ; | |
9818 | int res3 = 0 ; | |
9819 | int val4 ; | |
9820 | int ecode4 = 0 ; | |
9821 | PyObject * obj0 = 0 ; | |
9822 | PyObject * obj1 = 0 ; | |
9823 | PyObject * obj2 = 0 ; | |
9824 | PyObject * obj3 = 0 ; | |
9825 | char * kwnames[] = { | |
9826 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9827 | }; | |
9828 | ||
9829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9831 | if (!SWIG_IsOK(res1)) { | |
9832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9833 | } | |
9834 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9835 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9836 | if (!SWIG_IsOK(res2)) { | |
9837 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9838 | } | |
9839 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9840 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9841 | if (!SWIG_IsOK(res3)) { | |
9842 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9843 | } | |
9844 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9845 | if (obj3) { | |
9846 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9847 | if (!SWIG_IsOK(ecode4)) { | |
9848 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "4"" of type '" "int""'"); | |
9849 | } | |
9850 | arg4 = static_cast< int >(val4); | |
9851 | } | |
9852 | { | |
9853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9854 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
9855 | wxPyEndAllowThreads(__tstate); | |
9856 | if (PyErr_Occurred()) SWIG_fail; | |
9857 | } | |
9858 | { | |
9859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9860 | } | |
9861 | return resultobj; | |
9862 | fail: | |
9863 | return NULL; | |
9864 | } | |
9865 | ||
9866 | ||
9867 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9868 | PyObject *resultobj = 0; | |
9869 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9870 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9871 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9872 | int arg4 = (int) 0 ; | |
9873 | bool result; | |
9874 | void *argp1 = 0 ; | |
9875 | int res1 = 0 ; | |
9876 | void *argp2 = 0 ; | |
9877 | int res2 = 0 ; | |
9878 | void *argp3 = 0 ; | |
9879 | int res3 = 0 ; | |
9880 | int val4 ; | |
9881 | int ecode4 = 0 ; | |
9882 | PyObject * obj0 = 0 ; | |
9883 | PyObject * obj1 = 0 ; | |
9884 | PyObject * obj2 = 0 ; | |
9885 | PyObject * obj3 = 0 ; | |
9886 | char * kwnames[] = { | |
9887 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9888 | }; | |
9889 | ||
9890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9891 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9892 | if (!SWIG_IsOK(res1)) { | |
9893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9894 | } | |
9895 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9896 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9897 | if (!SWIG_IsOK(res2)) { | |
9898 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9899 | } | |
9900 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9901 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9902 | if (!SWIG_IsOK(res3)) { | |
9903 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9904 | } | |
9905 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9906 | if (obj3) { | |
9907 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9908 | if (!SWIG_IsOK(ecode4)) { | |
9909 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "4"" of type '" "int""'"); | |
9910 | } | |
9911 | arg4 = static_cast< int >(val4); | |
9912 | } | |
9913 | { | |
9914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9915 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
9919 | { | |
9920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9921 | } | |
9922 | return resultobj; | |
9923 | fail: | |
9924 | return NULL; | |
9925 | } | |
9926 | ||
9927 | ||
9928 | SWIGINTERN PyObject *_wrap_SplitterWindow_Unsplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9929 | PyObject *resultobj = 0; | |
9930 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9931 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9932 | bool result; | |
9933 | void *argp1 = 0 ; | |
9934 | int res1 = 0 ; | |
9935 | void *argp2 = 0 ; | |
9936 | int res2 = 0 ; | |
9937 | PyObject * obj0 = 0 ; | |
9938 | PyObject * obj1 = 0 ; | |
9939 | char * kwnames[] = { | |
9940 | (char *) "self",(char *) "toRemove", NULL | |
9941 | }; | |
9942 | ||
9943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) SWIG_fail; | |
9944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9945 | if (!SWIG_IsOK(res1)) { | |
9946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Unsplit" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9947 | } | |
9948 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9949 | if (obj1) { | |
9950 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9951 | if (!SWIG_IsOK(res2)) { | |
9952 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Unsplit" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
f20a2e1f | 9953 | } |
1bd55598 RD |
9954 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
9955 | } | |
9956 | { | |
9957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9958 | result = (bool)(arg1)->Unsplit(arg2); | |
9959 | wxPyEndAllowThreads(__tstate); | |
9960 | if (PyErr_Occurred()) SWIG_fail; | |
9961 | } | |
9962 | { | |
9963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9964 | } | |
9965 | return resultobj; | |
9966 | fail: | |
9967 | return NULL; | |
9968 | } | |
9969 | ||
9970 | ||
9971 | SWIGINTERN PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9972 | PyObject *resultobj = 0; | |
9973 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9974 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9975 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9976 | bool result; | |
9977 | void *argp1 = 0 ; | |
9978 | int res1 = 0 ; | |
9979 | void *argp2 = 0 ; | |
9980 | int res2 = 0 ; | |
9981 | void *argp3 = 0 ; | |
9982 | int res3 = 0 ; | |
9983 | PyObject * obj0 = 0 ; | |
9984 | PyObject * obj1 = 0 ; | |
9985 | PyObject * obj2 = 0 ; | |
9986 | char * kwnames[] = { | |
9987 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
9988 | }; | |
9989 | ||
9990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9992 | if (!SWIG_IsOK(res1)) { | |
9993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9994 | } | |
9995 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9996 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9997 | if (!SWIG_IsOK(res2)) { | |
9998 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9999 | } | |
10000 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10001 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10002 | if (!SWIG_IsOK(res3)) { | |
10003 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
10004 | } | |
10005 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
10006 | { | |
10007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10008 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
10009 | wxPyEndAllowThreads(__tstate); | |
10010 | if (PyErr_Occurred()) SWIG_fail; | |
10011 | } | |
10012 | { | |
10013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10014 | } | |
10015 | return resultobj; | |
10016 | fail: | |
10017 | return NULL; | |
f20a2e1f RD |
10018 | } |
10019 | ||
10020 | ||
1bd55598 RD |
10021 | SWIGINTERN PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10022 | PyObject *resultobj = 0; | |
10023 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10024 | void *argp1 = 0 ; | |
10025 | int res1 = 0 ; | |
10026 | PyObject *swig_obj[1] ; | |
10027 | ||
10028 | if (!args) SWIG_fail; | |
10029 | swig_obj[0] = args; | |
10030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10031 | if (!SWIG_IsOK(res1)) { | |
10032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_UpdateSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10033 | } | |
10034 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10035 | { | |
10036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10037 | (arg1)->UpdateSize(); | |
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) SWIG_fail; | |
10040 | } | |
10041 | resultobj = SWIG_Py_Void(); | |
10042 | return resultobj; | |
10043 | fail: | |
10044 | return NULL; | |
d55e5bfc RD |
10045 | } |
10046 | ||
10047 | ||
1bd55598 RD |
10048 | SWIGINTERN PyObject *_wrap_SplitterWindow_IsSplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10049 | PyObject *resultobj = 0; | |
10050 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10051 | bool result; | |
10052 | void *argp1 = 0 ; | |
10053 | int res1 = 0 ; | |
10054 | PyObject *swig_obj[1] ; | |
10055 | ||
10056 | if (!args) SWIG_fail; | |
10057 | swig_obj[0] = args; | |
10058 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10059 | if (!SWIG_IsOK(res1)) { | |
10060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_IsSplit" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10061 | } | |
10062 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10063 | { | |
10064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10065 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
10066 | wxPyEndAllowThreads(__tstate); | |
10067 | if (PyErr_Occurred()) SWIG_fail; | |
10068 | } | |
10069 | { | |
10070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10071 | } | |
10072 | return resultobj; | |
10073 | fail: | |
10074 | return NULL; | |
10075 | } | |
10076 | ||
10077 | ||
10078 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10079 | PyObject *resultobj = 0; | |
10080 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10081 | int arg2 ; | |
10082 | void *argp1 = 0 ; | |
10083 | int res1 = 0 ; | |
10084 | int val2 ; | |
10085 | int ecode2 = 0 ; | |
10086 | PyObject * obj0 = 0 ; | |
10087 | PyObject * obj1 = 0 ; | |
10088 | char * kwnames[] = { | |
10089 | (char *) "self",(char *) "width", NULL | |
10090 | }; | |
10091 | ||
10092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10094 | if (!SWIG_IsOK(res1)) { | |
10095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10096 | } | |
10097 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10098 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10099 | if (!SWIG_IsOK(ecode2)) { | |
10100 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "2"" of type '" "int""'"); | |
10101 | } | |
10102 | arg2 = static_cast< int >(val2); | |
10103 | { | |
10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10105 | (arg1)->SetSashSize(arg2); | |
10106 | wxPyEndAllowThreads(__tstate); | |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | } | |
10109 | resultobj = SWIG_Py_Void(); | |
10110 | return resultobj; | |
10111 | fail: | |
10112 | return NULL; | |
10113 | } | |
10114 | ||
10115 | ||
10116 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10117 | PyObject *resultobj = 0; | |
10118 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10119 | int arg2 ; | |
10120 | void *argp1 = 0 ; | |
10121 | int res1 = 0 ; | |
10122 | int val2 ; | |
10123 | int ecode2 = 0 ; | |
10124 | PyObject * obj0 = 0 ; | |
10125 | PyObject * obj1 = 0 ; | |
10126 | char * kwnames[] = { | |
10127 | (char *) "self",(char *) "width", NULL | |
10128 | }; | |
10129 | ||
10130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10132 | if (!SWIG_IsOK(res1)) { | |
10133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10134 | } | |
10135 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10136 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10137 | if (!SWIG_IsOK(ecode2)) { | |
10138 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
10139 | } | |
10140 | arg2 = static_cast< int >(val2); | |
10141 | { | |
10142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10143 | (arg1)->SetBorderSize(arg2); | |
10144 | wxPyEndAllowThreads(__tstate); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
10147 | resultobj = SWIG_Py_Void(); | |
10148 | return resultobj; | |
10149 | fail: | |
10150 | return NULL; | |
d55e5bfc RD |
10151 | } |
10152 | ||
10153 | ||
1bd55598 RD |
10154 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10155 | PyObject *resultobj = 0; | |
10156 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10157 | int result; | |
10158 | void *argp1 = 0 ; | |
10159 | int res1 = 0 ; | |
10160 | PyObject *swig_obj[1] ; | |
10161 | ||
10162 | if (!args) SWIG_fail; | |
10163 | swig_obj[0] = args; | |
10164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10165 | if (!SWIG_IsOK(res1)) { | |
10166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10167 | } | |
10168 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10169 | { | |
10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10171 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
10172 | wxPyEndAllowThreads(__tstate); | |
10173 | if (PyErr_Occurred()) SWIG_fail; | |
10174 | } | |
10175 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10176 | return resultobj; | |
10177 | fail: | |
10178 | return NULL; | |
d55e5bfc RD |
10179 | } |
10180 | ||
10181 | ||
1bd55598 RD |
10182 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10183 | PyObject *resultobj = 0; | |
10184 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10185 | int result; | |
10186 | void *argp1 = 0 ; | |
10187 | int res1 = 0 ; | |
10188 | PyObject *swig_obj[1] ; | |
10189 | ||
10190 | if (!args) SWIG_fail; | |
10191 | swig_obj[0] = args; | |
10192 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10193 | if (!SWIG_IsOK(res1)) { | |
10194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10195 | } | |
10196 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10197 | { | |
10198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10199 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
10200 | wxPyEndAllowThreads(__tstate); | |
10201 | if (PyErr_Occurred()) SWIG_fail; | |
10202 | } | |
10203 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10204 | return resultobj; | |
10205 | fail: | |
10206 | return NULL; | |
10207 | } | |
10208 | ||
10209 | ||
10210 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10211 | PyObject *resultobj = 0; | |
10212 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10213 | int arg2 ; | |
10214 | bool arg3 = (bool) true ; | |
10215 | void *argp1 = 0 ; | |
10216 | int res1 = 0 ; | |
10217 | int val2 ; | |
10218 | int ecode2 = 0 ; | |
10219 | bool val3 ; | |
10220 | int ecode3 = 0 ; | |
10221 | PyObject * obj0 = 0 ; | |
10222 | PyObject * obj1 = 0 ; | |
10223 | PyObject * obj2 = 0 ; | |
10224 | char * kwnames[] = { | |
10225 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
10226 | }; | |
10227 | ||
10228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10230 | if (!SWIG_IsOK(res1)) { | |
10231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10232 | } | |
10233 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10234 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10235 | if (!SWIG_IsOK(ecode2)) { | |
10236 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10237 | } | |
10238 | arg2 = static_cast< int >(val2); | |
10239 | if (obj2) { | |
10240 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10241 | if (!SWIG_IsOK(ecode3)) { | |
10242 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "3"" of type '" "bool""'"); | |
10243 | } | |
10244 | arg3 = static_cast< bool >(val3); | |
10245 | } | |
10246 | { | |
10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10248 | (arg1)->SetSashPosition(arg2,arg3); | |
10249 | wxPyEndAllowThreads(__tstate); | |
10250 | if (PyErr_Occurred()) SWIG_fail; | |
10251 | } | |
10252 | resultobj = SWIG_Py_Void(); | |
10253 | return resultobj; | |
10254 | fail: | |
10255 | return NULL; | |
d55e5bfc RD |
10256 | } |
10257 | ||
10258 | ||
1bd55598 RD |
10259 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10260 | PyObject *resultobj = 0; | |
10261 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10262 | int result; | |
10263 | void *argp1 = 0 ; | |
10264 | int res1 = 0 ; | |
10265 | PyObject *swig_obj[1] ; | |
10266 | ||
10267 | if (!args) SWIG_fail; | |
10268 | swig_obj[0] = args; | |
10269 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10270 | if (!SWIG_IsOK(res1)) { | |
10271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10272 | } | |
10273 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10274 | { | |
10275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10276 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
10277 | wxPyEndAllowThreads(__tstate); | |
10278 | if (PyErr_Occurred()) SWIG_fail; | |
10279 | } | |
10280 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10281 | return resultobj; | |
10282 | fail: | |
10283 | return NULL; | |
10284 | } | |
10285 | ||
10286 | ||
10287 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10288 | PyObject *resultobj = 0; | |
10289 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10290 | double arg2 ; | |
10291 | void *argp1 = 0 ; | |
10292 | int res1 = 0 ; | |
10293 | double val2 ; | |
10294 | int ecode2 = 0 ; | |
10295 | PyObject * obj0 = 0 ; | |
10296 | PyObject * obj1 = 0 ; | |
10297 | char * kwnames[] = { | |
10298 | (char *) "self",(char *) "gravity", NULL | |
10299 | }; | |
10300 | ||
10301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashGravity",kwnames,&obj0,&obj1)) SWIG_fail; | |
10302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10303 | if (!SWIG_IsOK(res1)) { | |
10304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10305 | } | |
10306 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10307 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
10308 | if (!SWIG_IsOK(ecode2)) { | |
10309 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "2"" of type '" "double""'"); | |
10310 | } | |
10311 | arg2 = static_cast< double >(val2); | |
10312 | { | |
10313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10314 | (arg1)->SetSashGravity(arg2); | |
10315 | wxPyEndAllowThreads(__tstate); | |
10316 | if (PyErr_Occurred()) SWIG_fail; | |
10317 | } | |
10318 | resultobj = SWIG_Py_Void(); | |
10319 | return resultobj; | |
10320 | fail: | |
10321 | return NULL; | |
d55e5bfc RD |
10322 | } |
10323 | ||
10324 | ||
1bd55598 RD |
10325 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10326 | PyObject *resultobj = 0; | |
10327 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10328 | double result; | |
10329 | void *argp1 = 0 ; | |
10330 | int res1 = 0 ; | |
10331 | PyObject *swig_obj[1] ; | |
10332 | ||
10333 | if (!args) SWIG_fail; | |
10334 | swig_obj[0] = args; | |
10335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10336 | if (!SWIG_IsOK(res1)) { | |
10337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10338 | } | |
10339 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10340 | { | |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = (double)((wxSplitterWindow const *)arg1)->GetSashGravity(); | |
10343 | wxPyEndAllowThreads(__tstate); | |
10344 | if (PyErr_Occurred()) SWIG_fail; | |
10345 | } | |
10346 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
10347 | return resultobj; | |
10348 | fail: | |
10349 | return NULL; | |
10350 | } | |
10351 | ||
10352 | ||
10353 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10354 | PyObject *resultobj = 0; | |
10355 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10356 | int arg2 ; | |
10357 | void *argp1 = 0 ; | |
10358 | int res1 = 0 ; | |
10359 | int val2 ; | |
10360 | int ecode2 = 0 ; | |
10361 | PyObject * obj0 = 0 ; | |
10362 | PyObject * obj1 = 0 ; | |
10363 | char * kwnames[] = { | |
10364 | (char *) "self",(char *) "min", NULL | |
10365 | }; | |
10366 | ||
10367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10369 | if (!SWIG_IsOK(res1)) { | |
10370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10371 | } | |
10372 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10373 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10374 | if (!SWIG_IsOK(ecode2)) { | |
10375 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "2"" of type '" "int""'"); | |
10376 | } | |
10377 | arg2 = static_cast< int >(val2); | |
10378 | { | |
10379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10380 | (arg1)->SetMinimumPaneSize(arg2); | |
10381 | wxPyEndAllowThreads(__tstate); | |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
10383 | } | |
10384 | resultobj = SWIG_Py_Void(); | |
10385 | return resultobj; | |
10386 | fail: | |
10387 | return NULL; | |
b1fcee84 RD |
10388 | } |
10389 | ||
10390 | ||
1bd55598 RD |
10391 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10392 | PyObject *resultobj = 0; | |
10393 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10394 | int result; | |
10395 | void *argp1 = 0 ; | |
10396 | int res1 = 0 ; | |
10397 | PyObject *swig_obj[1] ; | |
10398 | ||
10399 | if (!args) SWIG_fail; | |
10400 | swig_obj[0] = args; | |
10401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10402 | if (!SWIG_IsOK(res1)) { | |
10403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10404 | } | |
10405 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10406 | { | |
10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10408 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10413 | return resultobj; | |
10414 | fail: | |
10415 | return NULL; | |
10416 | } | |
10417 | ||
10418 | ||
10419 | SWIGINTERN PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10420 | PyObject *resultobj = 0; | |
10421 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10422 | int arg2 ; | |
10423 | int arg3 ; | |
10424 | int arg4 = (int) 5 ; | |
10425 | bool result; | |
10426 | void *argp1 = 0 ; | |
10427 | int res1 = 0 ; | |
10428 | int val2 ; | |
10429 | int ecode2 = 0 ; | |
10430 | int val3 ; | |
10431 | int ecode3 = 0 ; | |
10432 | int val4 ; | |
10433 | int ecode4 = 0 ; | |
10434 | PyObject * obj0 = 0 ; | |
10435 | PyObject * obj1 = 0 ; | |
10436 | PyObject * obj2 = 0 ; | |
10437 | PyObject * obj3 = 0 ; | |
10438 | char * kwnames[] = { | |
10439 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
10440 | }; | |
10441 | ||
10442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10444 | if (!SWIG_IsOK(res1)) { | |
10445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10446 | } | |
10447 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10448 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10449 | if (!SWIG_IsOK(ecode2)) { | |
10450 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
10451 | } | |
10452 | arg2 = static_cast< int >(val2); | |
10453 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10454 | if (!SWIG_IsOK(ecode3)) { | |
10455 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
10456 | } | |
10457 | arg3 = static_cast< int >(val3); | |
10458 | if (obj3) { | |
10459 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10460 | if (!SWIG_IsOK(ecode4)) { | |
10461 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
10462 | } | |
10463 | arg4 = static_cast< int >(val4); | |
10464 | } | |
10465 | { | |
10466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10467 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
10468 | wxPyEndAllowThreads(__tstate); | |
10469 | if (PyErr_Occurred()) SWIG_fail; | |
10470 | } | |
10471 | { | |
10472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10473 | } | |
10474 | return resultobj; | |
10475 | fail: | |
10476 | return NULL; | |
b1fcee84 RD |
10477 | } |
10478 | ||
10479 | ||
1bd55598 RD |
10480 | SWIGINTERN PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10481 | PyObject *resultobj = 0; | |
10482 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10483 | void *argp1 = 0 ; | |
10484 | int res1 = 0 ; | |
10485 | PyObject *swig_obj[1] ; | |
10486 | ||
10487 | if (!args) SWIG_fail; | |
10488 | swig_obj[0] = args; | |
10489 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10490 | if (!SWIG_IsOK(res1)) { | |
10491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10492 | } | |
10493 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10494 | { | |
10495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10496 | (arg1)->SizeWindows(); | |
10497 | wxPyEndAllowThreads(__tstate); | |
10498 | if (PyErr_Occurred()) SWIG_fail; | |
10499 | } | |
10500 | resultobj = SWIG_Py_Void(); | |
10501 | return resultobj; | |
10502 | fail: | |
10503 | return NULL; | |
10504 | } | |
10505 | ||
10506 | ||
10507 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10508 | PyObject *resultobj = 0; | |
10509 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10510 | bool arg2 ; | |
10511 | void *argp1 = 0 ; | |
10512 | int res1 = 0 ; | |
10513 | bool val2 ; | |
10514 | int ecode2 = 0 ; | |
10515 | PyObject * obj0 = 0 ; | |
10516 | PyObject * obj1 = 0 ; | |
10517 | char * kwnames[] = { | |
10518 | (char *) "self",(char *) "needUpdating", NULL | |
10519 | }; | |
10520 | ||
10521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) SWIG_fail; | |
10522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10523 | if (!SWIG_IsOK(res1)) { | |
10524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10525 | } | |
10526 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10527 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10528 | if (!SWIG_IsOK(ecode2)) { | |
10529 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "2"" of type '" "bool""'"); | |
10530 | } | |
10531 | arg2 = static_cast< bool >(val2); | |
10532 | { | |
10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10534 | (arg1)->SetNeedUpdating(arg2); | |
10535 | wxPyEndAllowThreads(__tstate); | |
10536 | if (PyErr_Occurred()) SWIG_fail; | |
10537 | } | |
10538 | resultobj = SWIG_Py_Void(); | |
10539 | return resultobj; | |
10540 | fail: | |
10541 | return NULL; | |
b1fcee84 RD |
10542 | } |
10543 | ||
10544 | ||
1bd55598 RD |
10545 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10546 | PyObject *resultobj = 0; | |
10547 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10548 | bool result; | |
10549 | void *argp1 = 0 ; | |
10550 | int res1 = 0 ; | |
10551 | PyObject *swig_obj[1] ; | |
10552 | ||
10553 | if (!args) SWIG_fail; | |
10554 | swig_obj[0] = args; | |
10555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10556 | if (!SWIG_IsOK(res1)) { | |
10557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10558 | } | |
10559 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10560 | { | |
10561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10562 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
10563 | wxPyEndAllowThreads(__tstate); | |
10564 | if (PyErr_Occurred()) SWIG_fail; | |
10565 | } | |
10566 | { | |
10567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10568 | } | |
10569 | return resultobj; | |
10570 | fail: | |
10571 | return NULL; | |
b1fcee84 RD |
10572 | } |
10573 | ||
10574 | ||
1bd55598 RD |
10575 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10576 | PyObject *resultobj = 0; | |
10577 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
10578 | SwigValueWrapper<wxVisualAttributes > result; | |
10579 | int val1 ; | |
10580 | int ecode1 = 0 ; | |
10581 | PyObject * obj0 = 0 ; | |
10582 | char * kwnames[] = { | |
10583 | (char *) "variant", NULL | |
10584 | }; | |
10585 | ||
10586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
10587 | if (obj0) { | |
10588 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10589 | if (!SWIG_IsOK(ecode1)) { | |
10590 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SplitterWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10591 | } | |
10592 | arg1 = static_cast< wxWindowVariant >(val1); | |
10593 | } | |
10594 | { | |
10595 | if (!wxPyCheckForApp()) SWIG_fail; | |
10596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10597 | result = wxSplitterWindow::GetClassDefaultAttributes(arg1); | |
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
10600 | } | |
10601 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | return NULL; | |
d55e5bfc RD |
10605 | } |
10606 | ||
10607 | ||
1bd55598 RD |
10608 | SWIGINTERN PyObject *SplitterWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10609 | PyObject *obj; | |
10610 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10611 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterWindow, SWIG_NewClientData(obj)); | |
10612 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10613 | } |
10614 | ||
1bd55598 RD |
10615 | SWIGINTERN PyObject *SplitterWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10616 | return SWIG_Python_InitShadowInstance(args); | |
62d32a5f RD |
10617 | } |
10618 | ||
1bd55598 RD |
10619 | SWIGINTERN PyObject *_wrap_new_SplitterEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10620 | PyObject *resultobj = 0; | |
10621 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10622 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
10623 | wxSplitterEvent *result = 0 ; | |
10624 | int val1 ; | |
10625 | int ecode1 = 0 ; | |
10626 | void *argp2 = 0 ; | |
10627 | int res2 = 0 ; | |
10628 | PyObject * obj0 = 0 ; | |
10629 | PyObject * obj1 = 0 ; | |
10630 | char * kwnames[] = { | |
10631 | (char *) "type",(char *) "splitter", NULL | |
10632 | }; | |
10633 | ||
10634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10635 | if (obj0) { | |
10636 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10637 | if (!SWIG_IsOK(ecode1)) { | |
10638 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
10639 | } | |
10640 | arg1 = static_cast< wxEventType >(val1); | |
10641 | } | |
10642 | if (obj1) { | |
10643 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10644 | if (!SWIG_IsOK(res2)) { | |
10645 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplitterEvent" "', expected argument " "2"" of type '" "wxSplitterWindow *""'"); | |
d55e5bfc | 10646 | } |
1bd55598 RD |
10647 | arg2 = reinterpret_cast< wxSplitterWindow * >(argp2); |
10648 | } | |
10649 | { | |
10650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10651 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
10652 | wxPyEndAllowThreads(__tstate); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | } | |
10655 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterEvent, SWIG_POINTER_NEW | 0 ); | |
10656 | return resultobj; | |
10657 | fail: | |
10658 | return NULL; | |
10659 | } | |
10660 | ||
10661 | ||
10662 | SWIGINTERN PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10663 | PyObject *resultobj = 0; | |
10664 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10665 | int arg2 ; | |
10666 | void *argp1 = 0 ; | |
10667 | int res1 = 0 ; | |
10668 | int val2 ; | |
10669 | int ecode2 = 0 ; | |
10670 | PyObject * obj0 = 0 ; | |
10671 | PyObject * obj1 = 0 ; | |
10672 | char * kwnames[] = { | |
10673 | (char *) "self",(char *) "pos", NULL | |
10674 | }; | |
10675 | ||
10676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
10677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10678 | if (!SWIG_IsOK(res1)) { | |
10679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent *""'"); | |
10680 | } | |
10681 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10682 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10683 | if (!SWIG_IsOK(ecode2)) { | |
10684 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10685 | } | |
10686 | arg2 = static_cast< int >(val2); | |
10687 | { | |
10688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10689 | (arg1)->SetSashPosition(arg2); | |
10690 | wxPyEndAllowThreads(__tstate); | |
10691 | if (PyErr_Occurred()) SWIG_fail; | |
10692 | } | |
10693 | resultobj = SWIG_Py_Void(); | |
10694 | return resultobj; | |
10695 | fail: | |
10696 | return NULL; | |
d55e5bfc RD |
10697 | } |
10698 | ||
10699 | ||
1bd55598 RD |
10700 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10701 | PyObject *resultobj = 0; | |
10702 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10703 | int result; | |
10704 | void *argp1 = 0 ; | |
10705 | int res1 = 0 ; | |
10706 | PyObject *swig_obj[1] ; | |
10707 | ||
10708 | if (!args) SWIG_fail; | |
10709 | swig_obj[0] = args; | |
10710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10711 | if (!SWIG_IsOK(res1)) { | |
10712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10713 | } | |
10714 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10715 | { | |
10716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10717 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
10718 | wxPyEndAllowThreads(__tstate); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | } | |
10721 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10722 | return resultobj; | |
10723 | fail: | |
10724 | return NULL; | |
d55e5bfc RD |
10725 | } |
10726 | ||
10727 | ||
1bd55598 RD |
10728 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10729 | PyObject *resultobj = 0; | |
10730 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10731 | wxWindow *result = 0 ; | |
10732 | void *argp1 = 0 ; | |
10733 | int res1 = 0 ; | |
10734 | PyObject *swig_obj[1] ; | |
10735 | ||
10736 | if (!args) SWIG_fail; | |
10737 | swig_obj[0] = args; | |
10738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10739 | if (!SWIG_IsOK(res1)) { | |
10740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetWindowBeingRemoved" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10741 | } | |
10742 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10743 | { | |
10744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10745 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
10749 | { | |
10750 | resultobj = wxPyMake_wxObject(result, 0); | |
10751 | } | |
10752 | return resultobj; | |
10753 | fail: | |
10754 | return NULL; | |
d55e5bfc RD |
10755 | } |
10756 | ||
10757 | ||
1bd55598 RD |
10758 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10759 | PyObject *resultobj = 0; | |
10760 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10761 | int result; | |
10762 | void *argp1 = 0 ; | |
10763 | int res1 = 0 ; | |
10764 | PyObject *swig_obj[1] ; | |
10765 | ||
10766 | if (!args) SWIG_fail; | |
10767 | swig_obj[0] = args; | |
10768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10769 | if (!SWIG_IsOK(res1)) { | |
10770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetX" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10771 | } | |
10772 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10773 | { | |
10774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10775 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
10776 | wxPyEndAllowThreads(__tstate); | |
10777 | if (PyErr_Occurred()) SWIG_fail; | |
10778 | } | |
10779 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10780 | return resultobj; | |
10781 | fail: | |
10782 | return NULL; | |
f20a2e1f RD |
10783 | } |
10784 | ||
10785 | ||
1bd55598 RD |
10786 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10787 | PyObject *resultobj = 0; | |
10788 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10789 | int result; | |
10790 | void *argp1 = 0 ; | |
10791 | int res1 = 0 ; | |
10792 | PyObject *swig_obj[1] ; | |
10793 | ||
10794 | if (!args) SWIG_fail; | |
10795 | swig_obj[0] = args; | |
10796 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10797 | if (!SWIG_IsOK(res1)) { | |
10798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetY" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10799 | } | |
10800 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10801 | { | |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10808 | return resultobj; | |
10809 | fail: | |
10810 | return NULL; | |
d55e5bfc RD |
10811 | } |
10812 | ||
10813 | ||
1bd55598 RD |
10814 | SWIGINTERN PyObject *SplitterEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10815 | PyObject *obj; | |
10816 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10817 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterEvent, SWIG_NewClientData(obj)); | |
10818 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10819 | } |
10820 | ||
1bd55598 RD |
10821 | SWIGINTERN PyObject *SplitterEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10822 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
10823 | } |
10824 | ||
1bd55598 RD |
10825 | SWIGINTERN int SashNameStr_set(PyObject *) { |
10826 | SWIG_Error(SWIG_AttributeError,"Variable SashNameStr is read-only."); | |
10827 | return 1; | |
d55e5bfc RD |
10828 | } |
10829 | ||
10830 | ||
1bd55598 RD |
10831 | SWIGINTERN PyObject *SashNameStr_get(void) { |
10832 | PyObject *pyobj = 0; | |
10833 | ||
10834 | { | |
10835 | #if wxUSE_UNICODE | |
10836 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10837 | #else | |
10838 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10839 | #endif | |
10840 | } | |
10841 | return pyobj; | |
d55e5bfc RD |
10842 | } |
10843 | ||
10844 | ||
1bd55598 RD |
10845 | SWIGINTERN int SashLayoutNameStr_set(PyObject *) { |
10846 | SWIG_Error(SWIG_AttributeError,"Variable SashLayoutNameStr is read-only."); | |
10847 | return 1; | |
d55e5bfc RD |
10848 | } |
10849 | ||
10850 | ||
1bd55598 RD |
10851 | SWIGINTERN PyObject *SashLayoutNameStr_get(void) { |
10852 | PyObject *pyobj = 0; | |
10853 | ||
10854 | { | |
10855 | #if wxUSE_UNICODE | |
10856 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10857 | #else | |
10858 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10859 | #endif | |
10860 | } | |
10861 | return pyobj; | |
10862 | } | |
10863 | ||
10864 | ||
10865 | SWIGINTERN PyObject *_wrap_new_SashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10866 | PyObject *resultobj = 0; | |
10867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10868 | int arg2 = (int) -1 ; | |
10869 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10870 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10871 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10872 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10873 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10874 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
10875 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10876 | wxSashWindow *result = 0 ; | |
10877 | void *argp1 = 0 ; | |
10878 | int res1 = 0 ; | |
10879 | int val2 ; | |
10880 | int ecode2 = 0 ; | |
10881 | wxPoint temp3 ; | |
10882 | wxSize temp4 ; | |
10883 | long val5 ; | |
10884 | int ecode5 = 0 ; | |
10885 | bool temp6 = false ; | |
10886 | PyObject * obj0 = 0 ; | |
10887 | PyObject * obj1 = 0 ; | |
10888 | PyObject * obj2 = 0 ; | |
10889 | PyObject * obj3 = 0 ; | |
10890 | PyObject * obj4 = 0 ; | |
10891 | PyObject * obj5 = 0 ; | |
10892 | char * kwnames[] = { | |
10893 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10894 | }; | |
10895 | ||
10896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
10897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10898 | if (!SWIG_IsOK(res1)) { | |
10899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10900 | } | |
10901 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10902 | if (obj1) { | |
10903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10904 | if (!SWIG_IsOK(ecode2)) { | |
10905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashWindow" "', expected argument " "2"" of type '" "int""'"); | |
10906 | } | |
10907 | arg2 = static_cast< int >(val2); | |
10908 | } | |
10909 | if (obj2) { | |
36ed4f51 | 10910 | { |
1bd55598 RD |
10911 | arg3 = &temp3; |
10912 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 10913 | } |
1bd55598 RD |
10914 | } |
10915 | if (obj3) { | |
36ed4f51 | 10916 | { |
1bd55598 RD |
10917 | arg4 = &temp4; |
10918 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 10919 | } |
1bd55598 RD |
10920 | } |
10921 | if (obj4) { | |
10922 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
10923 | if (!SWIG_IsOK(ecode5)) { | |
10924 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashWindow" "', expected argument " "5"" of type '" "long""'"); | |
10925 | } | |
10926 | arg5 = static_cast< long >(val5); | |
10927 | } | |
10928 | if (obj5) { | |
36ed4f51 | 10929 | { |
1bd55598 RD |
10930 | arg6 = wxString_in_helper(obj5); |
10931 | if (arg6 == NULL) SWIG_fail; | |
10932 | temp6 = true; | |
d55e5bfc | 10933 | } |
1bd55598 RD |
10934 | } |
10935 | { | |
10936 | if (!wxPyCheckForApp()) SWIG_fail; | |
10937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10938 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_NEW | 0 ); | |
10943 | { | |
10944 | if (temp6) | |
10945 | delete arg6; | |
10946 | } | |
10947 | return resultobj; | |
10948 | fail: | |
10949 | { | |
10950 | if (temp6) | |
10951 | delete arg6; | |
10952 | } | |
10953 | return NULL; | |
d55e5bfc RD |
10954 | } |
10955 | ||
10956 | ||
1bd55598 RD |
10957 | SWIGINTERN PyObject *_wrap_new_PreSashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10958 | PyObject *resultobj = 0; | |
10959 | wxSashWindow *result = 0 ; | |
10960 | ||
10961 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashWindow",0,0,0)) SWIG_fail; | |
10962 | { | |
10963 | if (!wxPyCheckForApp()) SWIG_fail; | |
10964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10965 | result = (wxSashWindow *)new wxSashWindow(); | |
10966 | wxPyEndAllowThreads(__tstate); | |
10967 | if (PyErr_Occurred()) SWIG_fail; | |
10968 | } | |
10969 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_OWN | 0 ); | |
10970 | return resultobj; | |
10971 | fail: | |
10972 | return NULL; | |
10973 | } | |
10974 | ||
10975 | ||
10976 | SWIGINTERN PyObject *_wrap_SashWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10977 | PyObject *resultobj = 0; | |
10978 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10979 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10980 | int arg3 = (int) -1 ; | |
10981 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10982 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10983 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10984 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10985 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10986 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
10987 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10988 | bool result; | |
10989 | void *argp1 = 0 ; | |
10990 | int res1 = 0 ; | |
10991 | void *argp2 = 0 ; | |
10992 | int res2 = 0 ; | |
10993 | int val3 ; | |
10994 | int ecode3 = 0 ; | |
10995 | wxPoint temp4 ; | |
10996 | wxSize temp5 ; | |
10997 | long val6 ; | |
10998 | int ecode6 = 0 ; | |
10999 | bool temp7 = false ; | |
11000 | PyObject * obj0 = 0 ; | |
11001 | PyObject * obj1 = 0 ; | |
11002 | PyObject * obj2 = 0 ; | |
11003 | PyObject * obj3 = 0 ; | |
11004 | PyObject * obj4 = 0 ; | |
11005 | PyObject * obj5 = 0 ; | |
11006 | PyObject * obj6 = 0 ; | |
11007 | char * kwnames[] = { | |
11008 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11009 | }; | |
11010 | ||
11011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
11012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11013 | if (!SWIG_IsOK(res1)) { | |
11014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_Create" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11015 | } | |
11016 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11017 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11018 | if (!SWIG_IsOK(res2)) { | |
11019 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11020 | } | |
11021 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11022 | if (obj2) { | |
11023 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11024 | if (!SWIG_IsOK(ecode3)) { | |
11025 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
11026 | } | |
11027 | arg3 = static_cast< int >(val3); | |
11028 | } | |
11029 | if (obj3) { | |
d55e5bfc | 11030 | { |
1bd55598 RD |
11031 | arg4 = &temp4; |
11032 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 11033 | } |
1bd55598 RD |
11034 | } |
11035 | if (obj4) { | |
36ed4f51 | 11036 | { |
1bd55598 RD |
11037 | arg5 = &temp5; |
11038 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 11039 | } |
1bd55598 RD |
11040 | } |
11041 | if (obj5) { | |
11042 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
11043 | if (!SWIG_IsOK(ecode6)) { | |
11044 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
11045 | } | |
11046 | arg6 = static_cast< long >(val6); | |
11047 | } | |
11048 | if (obj6) { | |
d55e5bfc | 11049 | { |
1bd55598 RD |
11050 | arg7 = wxString_in_helper(obj6); |
11051 | if (arg7 == NULL) SWIG_fail; | |
11052 | temp7 = true; | |
36ed4f51 | 11053 | } |
1bd55598 RD |
11054 | } |
11055 | { | |
11056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11057 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
11058 | wxPyEndAllowThreads(__tstate); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | { | |
11062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11063 | } | |
11064 | { | |
11065 | if (temp7) | |
11066 | delete arg7; | |
11067 | } | |
11068 | return resultobj; | |
11069 | fail: | |
11070 | { | |
11071 | if (temp7) | |
11072 | delete arg7; | |
11073 | } | |
11074 | return NULL; | |
11075 | } | |
11076 | ||
11077 | ||
11078 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11079 | PyObject *resultobj = 0; | |
11080 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11081 | wxSashEdgePosition arg2 ; | |
11082 | bool arg3 ; | |
11083 | void *argp1 = 0 ; | |
11084 | int res1 = 0 ; | |
11085 | int val2 ; | |
11086 | int ecode2 = 0 ; | |
11087 | bool val3 ; | |
11088 | int ecode3 = 0 ; | |
11089 | PyObject * obj0 = 0 ; | |
11090 | PyObject * obj1 = 0 ; | |
11091 | PyObject * obj2 = 0 ; | |
11092 | char * kwnames[] = { | |
11093 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
11094 | }; | |
11095 | ||
11096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11097 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11098 | if (!SWIG_IsOK(res1)) { | |
11099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11100 | } | |
11101 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11102 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11103 | if (!SWIG_IsOK(ecode2)) { | |
11104 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11105 | } | |
11106 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11107 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11108 | if (!SWIG_IsOK(ecode3)) { | |
11109 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashVisible" "', expected argument " "3"" of type '" "bool""'"); | |
11110 | } | |
11111 | arg3 = static_cast< bool >(val3); | |
11112 | { | |
11113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11114 | (arg1)->SetSashVisible(arg2,arg3); | |
11115 | wxPyEndAllowThreads(__tstate); | |
11116 | if (PyErr_Occurred()) SWIG_fail; | |
11117 | } | |
11118 | resultobj = SWIG_Py_Void(); | |
11119 | return resultobj; | |
11120 | fail: | |
11121 | return NULL; | |
11122 | } | |
11123 | ||
11124 | ||
11125 | SWIGINTERN PyObject *_wrap_SashWindow_GetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11126 | PyObject *resultobj = 0; | |
11127 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11128 | wxSashEdgePosition arg2 ; | |
11129 | bool result; | |
11130 | void *argp1 = 0 ; | |
11131 | int res1 = 0 ; | |
11132 | int val2 ; | |
11133 | int ecode2 = 0 ; | |
11134 | PyObject * obj0 = 0 ; | |
11135 | PyObject * obj1 = 0 ; | |
11136 | char * kwnames[] = { | |
11137 | (char *) "self",(char *) "edge", NULL | |
11138 | }; | |
11139 | ||
11140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
11141 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11142 | if (!SWIG_IsOK(res1)) { | |
11143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11144 | } | |
11145 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11146 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11147 | if (!SWIG_IsOK(ecode2)) { | |
11148 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11149 | } | |
11150 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11151 | { | |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11153 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible(arg2); | |
11154 | wxPyEndAllowThreads(__tstate); | |
11155 | if (PyErr_Occurred()) SWIG_fail; | |
11156 | } | |
11157 | { | |
11158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11159 | } | |
11160 | return resultobj; | |
11161 | fail: | |
11162 | return NULL; | |
11163 | } | |
11164 | ||
11165 | ||
11166 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11167 | PyObject *resultobj = 0; | |
11168 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11169 | wxSashEdgePosition arg2 ; | |
11170 | bool arg3 ; | |
11171 | void *argp1 = 0 ; | |
11172 | int res1 = 0 ; | |
11173 | int val2 ; | |
11174 | int ecode2 = 0 ; | |
11175 | bool val3 ; | |
11176 | int ecode3 = 0 ; | |
11177 | PyObject * obj0 = 0 ; | |
11178 | PyObject * obj1 = 0 ; | |
11179 | PyObject * obj2 = 0 ; | |
11180 | char * kwnames[] = { | |
11181 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
11182 | }; | |
11183 | ||
11184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11186 | if (!SWIG_IsOK(res1)) { | |
11187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashBorder" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11188 | } | |
11189 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11190 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11191 | if (!SWIG_IsOK(ecode2)) { | |
11192 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11193 | } | |
11194 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11195 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11196 | if (!SWIG_IsOK(ecode3)) { | |
11197 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashBorder" "', expected argument " "3"" of type '" "bool""'"); | |
11198 | } | |
11199 | arg3 = static_cast< bool >(val3); | |
11200 | { | |
11201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11202 | (arg1)->SetSashBorder(arg2,arg3); | |
11203 | wxPyEndAllowThreads(__tstate); | |
11204 | if (PyErr_Occurred()) SWIG_fail; | |
11205 | } | |
11206 | resultobj = SWIG_Py_Void(); | |
11207 | return resultobj; | |
11208 | fail: | |
11209 | return NULL; | |
11210 | } | |
11211 | ||
11212 | ||
11213 | SWIGINTERN PyObject *_wrap_SashWindow_HasBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11214 | PyObject *resultobj = 0; | |
11215 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11216 | wxSashEdgePosition arg2 ; | |
11217 | bool result; | |
11218 | void *argp1 = 0 ; | |
11219 | int res1 = 0 ; | |
11220 | int val2 ; | |
11221 | int ecode2 = 0 ; | |
11222 | PyObject * obj0 = 0 ; | |
11223 | PyObject * obj1 = 0 ; | |
11224 | char * kwnames[] = { | |
11225 | (char *) "self",(char *) "edge", NULL | |
11226 | }; | |
11227 | ||
11228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
11229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11230 | if (!SWIG_IsOK(res1)) { | |
11231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_HasBorder" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11232 | } | |
11233 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11234 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11235 | if (!SWIG_IsOK(ecode2)) { | |
11236 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_HasBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11237 | } | |
11238 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11239 | { | |
11240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11241 | result = (bool)((wxSashWindow const *)arg1)->HasBorder(arg2); | |
11242 | wxPyEndAllowThreads(__tstate); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | } | |
11245 | { | |
11246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11247 | } | |
11248 | return resultobj; | |
11249 | fail: | |
11250 | return NULL; | |
11251 | } | |
11252 | ||
11253 | ||
11254 | SWIGINTERN PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11255 | PyObject *resultobj = 0; | |
11256 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11257 | wxSashEdgePosition arg2 ; | |
11258 | int result; | |
11259 | void *argp1 = 0 ; | |
11260 | int res1 = 0 ; | |
11261 | int val2 ; | |
11262 | int ecode2 = 0 ; | |
11263 | PyObject * obj0 = 0 ; | |
11264 | PyObject * obj1 = 0 ; | |
11265 | char * kwnames[] = { | |
11266 | (char *) "self",(char *) "edge", NULL | |
11267 | }; | |
11268 | ||
11269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
11270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11271 | if (!SWIG_IsOK(res1)) { | |
11272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11273 | } | |
11274 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11275 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11276 | if (!SWIG_IsOK(ecode2)) { | |
11277 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11278 | } | |
11279 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11280 | { | |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin(arg2); | |
11283 | wxPyEndAllowThreads(__tstate); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
11286 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11287 | return resultobj; | |
11288 | fail: | |
11289 | return NULL; | |
11290 | } | |
11291 | ||
11292 | ||
11293 | SWIGINTERN PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11294 | PyObject *resultobj = 0; | |
11295 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11296 | int arg2 ; | |
11297 | void *argp1 = 0 ; | |
11298 | int res1 = 0 ; | |
11299 | int val2 ; | |
11300 | int ecode2 = 0 ; | |
11301 | PyObject * obj0 = 0 ; | |
11302 | PyObject * obj1 = 0 ; | |
11303 | char * kwnames[] = { | |
11304 | (char *) "self",(char *) "width", NULL | |
11305 | }; | |
11306 | ||
11307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11309 | if (!SWIG_IsOK(res1)) { | |
11310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11311 | } | |
11312 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11313 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11314 | if (!SWIG_IsOK(ecode2)) { | |
11315 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11316 | } | |
11317 | arg2 = static_cast< int >(val2); | |
11318 | { | |
11319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11320 | (arg1)->SetDefaultBorderSize(arg2); | |
11321 | wxPyEndAllowThreads(__tstate); | |
11322 | if (PyErr_Occurred()) SWIG_fail; | |
11323 | } | |
11324 | resultobj = SWIG_Py_Void(); | |
11325 | return resultobj; | |
11326 | fail: | |
11327 | return NULL; | |
d55e5bfc RD |
11328 | } |
11329 | ||
11330 | ||
1bd55598 RD |
11331 | SWIGINTERN PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11332 | PyObject *resultobj = 0; | |
11333 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11334 | int result; | |
11335 | void *argp1 = 0 ; | |
11336 | int res1 = 0 ; | |
11337 | PyObject *swig_obj[1] ; | |
11338 | ||
11339 | if (!args) SWIG_fail; | |
11340 | swig_obj[0] = args; | |
11341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11342 | if (!SWIG_IsOK(res1)) { | |
11343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11344 | } | |
11345 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11346 | { | |
11347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11348 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
11349 | wxPyEndAllowThreads(__tstate); | |
11350 | if (PyErr_Occurred()) SWIG_fail; | |
11351 | } | |
11352 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11353 | return resultobj; | |
11354 | fail: | |
11355 | return NULL; | |
11356 | } | |
11357 | ||
11358 | ||
11359 | SWIGINTERN PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11360 | PyObject *resultobj = 0; | |
11361 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11362 | int arg2 ; | |
11363 | void *argp1 = 0 ; | |
11364 | int res1 = 0 ; | |
11365 | int val2 ; | |
11366 | int ecode2 = 0 ; | |
11367 | PyObject * obj0 = 0 ; | |
11368 | PyObject * obj1 = 0 ; | |
11369 | char * kwnames[] = { | |
11370 | (char *) "self",(char *) "width", NULL | |
11371 | }; | |
11372 | ||
11373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11375 | if (!SWIG_IsOK(res1)) { | |
11376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11377 | } | |
11378 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11379 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11380 | if (!SWIG_IsOK(ecode2)) { | |
11381 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11382 | } | |
11383 | arg2 = static_cast< int >(val2); | |
11384 | { | |
11385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11386 | (arg1)->SetExtraBorderSize(arg2); | |
11387 | wxPyEndAllowThreads(__tstate); | |
11388 | if (PyErr_Occurred()) SWIG_fail; | |
11389 | } | |
11390 | resultobj = SWIG_Py_Void(); | |
11391 | return resultobj; | |
11392 | fail: | |
11393 | return NULL; | |
d55e5bfc RD |
11394 | } |
11395 | ||
11396 | ||
1bd55598 RD |
11397 | SWIGINTERN PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11398 | PyObject *resultobj = 0; | |
11399 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11400 | int result; | |
11401 | void *argp1 = 0 ; | |
11402 | int res1 = 0 ; | |
11403 | PyObject *swig_obj[1] ; | |
11404 | ||
11405 | if (!args) SWIG_fail; | |
11406 | swig_obj[0] = args; | |
11407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11408 | if (!SWIG_IsOK(res1)) { | |
11409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11410 | } | |
11411 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11412 | { | |
11413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11414 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
11415 | wxPyEndAllowThreads(__tstate); | |
11416 | if (PyErr_Occurred()) SWIG_fail; | |
11417 | } | |
11418 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11419 | return resultobj; | |
11420 | fail: | |
11421 | return NULL; | |
11422 | } | |
11423 | ||
11424 | ||
11425 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11426 | PyObject *resultobj = 0; | |
11427 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11428 | int arg2 ; | |
11429 | void *argp1 = 0 ; | |
11430 | int res1 = 0 ; | |
11431 | int val2 ; | |
11432 | int ecode2 = 0 ; | |
11433 | PyObject * obj0 = 0 ; | |
11434 | PyObject * obj1 = 0 ; | |
11435 | char * kwnames[] = { | |
11436 | (char *) "self",(char *) "min", NULL | |
11437 | }; | |
11438 | ||
11439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11441 | if (!SWIG_IsOK(res1)) { | |
11442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11443 | } | |
11444 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11445 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11446 | if (!SWIG_IsOK(ecode2)) { | |
11447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11448 | } | |
11449 | arg2 = static_cast< int >(val2); | |
11450 | { | |
11451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11452 | (arg1)->SetMinimumSizeX(arg2); | |
11453 | wxPyEndAllowThreads(__tstate); | |
11454 | if (PyErr_Occurred()) SWIG_fail; | |
11455 | } | |
11456 | resultobj = SWIG_Py_Void(); | |
11457 | return resultobj; | |
11458 | fail: | |
11459 | return NULL; | |
11460 | } | |
11461 | ||
11462 | ||
11463 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11464 | PyObject *resultobj = 0; | |
11465 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11466 | int arg2 ; | |
11467 | void *argp1 = 0 ; | |
11468 | int res1 = 0 ; | |
11469 | int val2 ; | |
11470 | int ecode2 = 0 ; | |
11471 | PyObject * obj0 = 0 ; | |
11472 | PyObject * obj1 = 0 ; | |
11473 | char * kwnames[] = { | |
11474 | (char *) "self",(char *) "min", NULL | |
11475 | }; | |
11476 | ||
11477 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11478 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11479 | if (!SWIG_IsOK(res1)) { | |
11480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11481 | } | |
11482 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11483 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11484 | if (!SWIG_IsOK(ecode2)) { | |
11485 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11486 | } | |
11487 | arg2 = static_cast< int >(val2); | |
11488 | { | |
11489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11490 | (arg1)->SetMinimumSizeY(arg2); | |
11491 | wxPyEndAllowThreads(__tstate); | |
11492 | if (PyErr_Occurred()) SWIG_fail; | |
11493 | } | |
11494 | resultobj = SWIG_Py_Void(); | |
11495 | return resultobj; | |
11496 | fail: | |
11497 | return NULL; | |
d55e5bfc RD |
11498 | } |
11499 | ||
11500 | ||
1bd55598 RD |
11501 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11502 | PyObject *resultobj = 0; | |
11503 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11504 | int result; | |
11505 | void *argp1 = 0 ; | |
11506 | int res1 = 0 ; | |
11507 | PyObject *swig_obj[1] ; | |
11508 | ||
11509 | if (!args) SWIG_fail; | |
11510 | swig_obj[0] = args; | |
11511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11512 | if (!SWIG_IsOK(res1)) { | |
11513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11514 | } | |
11515 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11516 | { | |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
11519 | wxPyEndAllowThreads(__tstate); | |
11520 | if (PyErr_Occurred()) SWIG_fail; | |
11521 | } | |
11522 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11523 | return resultobj; | |
11524 | fail: | |
11525 | return NULL; | |
d55e5bfc RD |
11526 | } |
11527 | ||
11528 | ||
1bd55598 RD |
11529 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11530 | PyObject *resultobj = 0; | |
11531 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11532 | int result; | |
11533 | void *argp1 = 0 ; | |
11534 | int res1 = 0 ; | |
11535 | PyObject *swig_obj[1] ; | |
11536 | ||
11537 | if (!args) SWIG_fail; | |
11538 | swig_obj[0] = args; | |
11539 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11540 | if (!SWIG_IsOK(res1)) { | |
11541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11542 | } | |
11543 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11544 | { | |
11545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11546 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
11547 | wxPyEndAllowThreads(__tstate); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
11550 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11551 | return resultobj; | |
11552 | fail: | |
11553 | return NULL; | |
11554 | } | |
11555 | ||
11556 | ||
11557 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11558 | PyObject *resultobj = 0; | |
11559 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11560 | int arg2 ; | |
11561 | void *argp1 = 0 ; | |
11562 | int res1 = 0 ; | |
11563 | int val2 ; | |
11564 | int ecode2 = 0 ; | |
11565 | PyObject * obj0 = 0 ; | |
11566 | PyObject * obj1 = 0 ; | |
11567 | char * kwnames[] = { | |
11568 | (char *) "self",(char *) "max", NULL | |
11569 | }; | |
11570 | ||
11571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11572 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11573 | if (!SWIG_IsOK(res1)) { | |
11574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11575 | } | |
11576 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11577 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11578 | if (!SWIG_IsOK(ecode2)) { | |
11579 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11580 | } | |
11581 | arg2 = static_cast< int >(val2); | |
11582 | { | |
11583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11584 | (arg1)->SetMaximumSizeX(arg2); | |
11585 | wxPyEndAllowThreads(__tstate); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | } | |
11588 | resultobj = SWIG_Py_Void(); | |
11589 | return resultobj; | |
11590 | fail: | |
11591 | return NULL; | |
11592 | } | |
11593 | ||
11594 | ||
11595 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11596 | PyObject *resultobj = 0; | |
11597 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11598 | int arg2 ; | |
11599 | void *argp1 = 0 ; | |
11600 | int res1 = 0 ; | |
11601 | int val2 ; | |
11602 | int ecode2 = 0 ; | |
11603 | PyObject * obj0 = 0 ; | |
11604 | PyObject * obj1 = 0 ; | |
11605 | char * kwnames[] = { | |
11606 | (char *) "self",(char *) "max", NULL | |
11607 | }; | |
11608 | ||
11609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11611 | if (!SWIG_IsOK(res1)) { | |
11612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11613 | } | |
11614 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11615 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11616 | if (!SWIG_IsOK(ecode2)) { | |
11617 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11618 | } | |
11619 | arg2 = static_cast< int >(val2); | |
11620 | { | |
11621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11622 | (arg1)->SetMaximumSizeY(arg2); | |
11623 | wxPyEndAllowThreads(__tstate); | |
11624 | if (PyErr_Occurred()) SWIG_fail; | |
11625 | } | |
11626 | resultobj = SWIG_Py_Void(); | |
11627 | return resultobj; | |
11628 | fail: | |
11629 | return NULL; | |
d55e5bfc RD |
11630 | } |
11631 | ||
11632 | ||
1bd55598 RD |
11633 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11634 | PyObject *resultobj = 0; | |
11635 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11636 | int result; | |
11637 | void *argp1 = 0 ; | |
11638 | int res1 = 0 ; | |
11639 | PyObject *swig_obj[1] ; | |
11640 | ||
11641 | if (!args) SWIG_fail; | |
11642 | swig_obj[0] = args; | |
11643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11644 | if (!SWIG_IsOK(res1)) { | |
11645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11646 | } | |
11647 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11648 | { | |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
11651 | wxPyEndAllowThreads(__tstate); | |
11652 | if (PyErr_Occurred()) SWIG_fail; | |
11653 | } | |
11654 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11655 | return resultobj; | |
11656 | fail: | |
11657 | return NULL; | |
d55e5bfc RD |
11658 | } |
11659 | ||
11660 | ||
1bd55598 RD |
11661 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11662 | PyObject *resultobj = 0; | |
11663 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11664 | int result; | |
11665 | void *argp1 = 0 ; | |
11666 | int res1 = 0 ; | |
11667 | PyObject *swig_obj[1] ; | |
11668 | ||
11669 | if (!args) SWIG_fail; | |
11670 | swig_obj[0] = args; | |
11671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11672 | if (!SWIG_IsOK(res1)) { | |
11673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11674 | } | |
11675 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11676 | { | |
11677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11678 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
11679 | wxPyEndAllowThreads(__tstate); | |
11680 | if (PyErr_Occurred()) SWIG_fail; | |
11681 | } | |
11682 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11683 | return resultobj; | |
11684 | fail: | |
11685 | return NULL; | |
11686 | } | |
11687 | ||
11688 | ||
11689 | SWIGINTERN PyObject *_wrap_SashWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11690 | PyObject *resultobj = 0; | |
11691 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11692 | int arg2 ; | |
11693 | int arg3 ; | |
11694 | int arg4 = (int) 2 ; | |
11695 | wxSashEdgePosition result; | |
11696 | void *argp1 = 0 ; | |
11697 | int res1 = 0 ; | |
11698 | int val2 ; | |
11699 | int ecode2 = 0 ; | |
11700 | int val3 ; | |
11701 | int ecode3 = 0 ; | |
11702 | int val4 ; | |
11703 | int ecode4 = 0 ; | |
11704 | PyObject * obj0 = 0 ; | |
11705 | PyObject * obj1 = 0 ; | |
11706 | PyObject * obj2 = 0 ; | |
11707 | PyObject * obj3 = 0 ; | |
11708 | char * kwnames[] = { | |
11709 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
11710 | }; | |
11711 | ||
11712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11714 | if (!SWIG_IsOK(res1)) { | |
11715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11716 | } | |
11717 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11718 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11719 | if (!SWIG_IsOK(ecode2)) { | |
11720 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
11721 | } | |
11722 | arg2 = static_cast< int >(val2); | |
11723 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11724 | if (!SWIG_IsOK(ecode3)) { | |
11725 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
11726 | } | |
11727 | arg3 = static_cast< int >(val3); | |
11728 | if (obj3) { | |
11729 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11730 | if (!SWIG_IsOK(ecode4)) { | |
11731 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SashWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
11732 | } | |
11733 | arg4 = static_cast< int >(val4); | |
11734 | } | |
11735 | { | |
11736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11737 | result = (wxSashEdgePosition)(arg1)->SashHitTest(arg2,arg3,arg4); | |
11738 | wxPyEndAllowThreads(__tstate); | |
11739 | if (PyErr_Occurred()) SWIG_fail; | |
11740 | } | |
11741 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11742 | return resultobj; | |
11743 | fail: | |
11744 | return NULL; | |
d55e5bfc RD |
11745 | } |
11746 | ||
11747 | ||
1bd55598 RD |
11748 | SWIGINTERN PyObject *_wrap_SashWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11749 | PyObject *resultobj = 0; | |
11750 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11751 | void *argp1 = 0 ; | |
11752 | int res1 = 0 ; | |
11753 | PyObject *swig_obj[1] ; | |
11754 | ||
11755 | if (!args) SWIG_fail; | |
11756 | swig_obj[0] = args; | |
11757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11758 | if (!SWIG_IsOK(res1)) { | |
11759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11760 | } | |
11761 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11762 | { | |
11763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11764 | (arg1)->SizeWindows(); | |
11765 | wxPyEndAllowThreads(__tstate); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | } | |
11768 | resultobj = SWIG_Py_Void(); | |
11769 | return resultobj; | |
11770 | fail: | |
11771 | return NULL; | |
d55e5bfc RD |
11772 | } |
11773 | ||
11774 | ||
1bd55598 RD |
11775 | SWIGINTERN PyObject *SashWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11776 | PyObject *obj; | |
11777 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11778 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashWindow, SWIG_NewClientData(obj)); | |
11779 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11780 | } |
11781 | ||
1bd55598 RD |
11782 | SWIGINTERN PyObject *SashWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11783 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
11784 | } |
11785 | ||
1bd55598 RD |
11786 | SWIGINTERN PyObject *_wrap_new_SashEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11787 | PyObject *resultobj = 0; | |
11788 | int arg1 = (int) 0 ; | |
11789 | wxSashEdgePosition arg2 = (wxSashEdgePosition) wxSASH_NONE ; | |
11790 | wxSashEvent *result = 0 ; | |
11791 | int val1 ; | |
11792 | int ecode1 = 0 ; | |
11793 | int val2 ; | |
11794 | int ecode2 = 0 ; | |
11795 | PyObject * obj0 = 0 ; | |
11796 | PyObject * obj1 = 0 ; | |
11797 | char * kwnames[] = { | |
11798 | (char *) "id",(char *) "edge", NULL | |
11799 | }; | |
11800 | ||
11801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11802 | if (obj0) { | |
11803 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11804 | if (!SWIG_IsOK(ecode1)) { | |
11805 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SashEvent" "', expected argument " "1"" of type '" "int""'"); | |
11806 | } | |
11807 | arg1 = static_cast< int >(val1); | |
11808 | } | |
11809 | if (obj1) { | |
11810 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11811 | if (!SWIG_IsOK(ecode2)) { | |
11812 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashEvent" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11813 | } | |
11814 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11815 | } | |
11816 | { | |
11817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11818 | result = (wxSashEvent *)new wxSashEvent(arg1,arg2); | |
11819 | wxPyEndAllowThreads(__tstate); | |
11820 | if (PyErr_Occurred()) SWIG_fail; | |
11821 | } | |
11822 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashEvent, SWIG_POINTER_NEW | 0 ); | |
11823 | return resultobj; | |
11824 | fail: | |
11825 | return NULL; | |
11826 | } | |
11827 | ||
11828 | ||
11829 | SWIGINTERN PyObject *_wrap_SashEvent_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11830 | PyObject *resultobj = 0; | |
11831 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11832 | wxSashEdgePosition arg2 ; | |
11833 | void *argp1 = 0 ; | |
11834 | int res1 = 0 ; | |
11835 | int val2 ; | |
11836 | int ecode2 = 0 ; | |
11837 | PyObject * obj0 = 0 ; | |
11838 | PyObject * obj1 = 0 ; | |
11839 | char * kwnames[] = { | |
11840 | (char *) "self",(char *) "edge", NULL | |
11841 | }; | |
11842 | ||
11843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail; | |
11844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11845 | if (!SWIG_IsOK(res1)) { | |
11846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetEdge" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11847 | } | |
11848 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11849 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11850 | if (!SWIG_IsOK(ecode2)) { | |
11851 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetEdge" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11852 | } | |
11853 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11854 | { | |
11855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11856 | (arg1)->SetEdge(arg2); | |
11857 | wxPyEndAllowThreads(__tstate); | |
11858 | if (PyErr_Occurred()) SWIG_fail; | |
11859 | } | |
11860 | resultobj = SWIG_Py_Void(); | |
11861 | return resultobj; | |
11862 | fail: | |
11863 | return NULL; | |
d55e5bfc RD |
11864 | } |
11865 | ||
11866 | ||
1bd55598 RD |
11867 | SWIGINTERN PyObject *_wrap_SashEvent_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11868 | PyObject *resultobj = 0; | |
11869 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11870 | wxSashEdgePosition result; | |
11871 | void *argp1 = 0 ; | |
11872 | int res1 = 0 ; | |
11873 | PyObject *swig_obj[1] ; | |
11874 | ||
11875 | if (!args) SWIG_fail; | |
11876 | swig_obj[0] = args; | |
11877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11878 | if (!SWIG_IsOK(res1)) { | |
11879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetEdge" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11880 | } | |
11881 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11882 | { | |
11883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11884 | result = (wxSashEdgePosition)((wxSashEvent const *)arg1)->GetEdge(); | |
11885 | wxPyEndAllowThreads(__tstate); | |
11886 | if (PyErr_Occurred()) SWIG_fail; | |
11887 | } | |
11888 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11889 | return resultobj; | |
11890 | fail: | |
11891 | return NULL; | |
11892 | } | |
11893 | ||
11894 | ||
11895 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11896 | PyObject *resultobj = 0; | |
11897 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11898 | wxRect *arg2 = 0 ; | |
11899 | void *argp1 = 0 ; | |
11900 | int res1 = 0 ; | |
11901 | wxRect temp2 ; | |
11902 | PyObject * obj0 = 0 ; | |
11903 | PyObject * obj1 = 0 ; | |
11904 | char * kwnames[] = { | |
11905 | (char *) "self",(char *) "rect", NULL | |
11906 | }; | |
11907 | ||
11908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11910 | if (!SWIG_IsOK(res1)) { | |
11911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragRect" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11912 | } | |
11913 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11914 | { | |
11915 | arg2 = &temp2; | |
11916 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11917 | } | |
11918 | { | |
11919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11920 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
11921 | wxPyEndAllowThreads(__tstate); | |
11922 | if (PyErr_Occurred()) SWIG_fail; | |
11923 | } | |
11924 | resultobj = SWIG_Py_Void(); | |
11925 | return resultobj; | |
11926 | fail: | |
11927 | return NULL; | |
03837c5c RD |
11928 | } |
11929 | ||
11930 | ||
1bd55598 RD |
11931 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11932 | PyObject *resultobj = 0; | |
11933 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11934 | wxRect result; | |
11935 | void *argp1 = 0 ; | |
11936 | int res1 = 0 ; | |
11937 | PyObject *swig_obj[1] ; | |
11938 | ||
11939 | if (!args) SWIG_fail; | |
11940 | swig_obj[0] = args; | |
11941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11942 | if (!SWIG_IsOK(res1)) { | |
11943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragRect" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11944 | } | |
11945 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11946 | { | |
11947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11948 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
11949 | wxPyEndAllowThreads(__tstate); | |
11950 | if (PyErr_Occurred()) SWIG_fail; | |
11951 | } | |
11952 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11953 | return resultobj; | |
11954 | fail: | |
11955 | return NULL; | |
11956 | } | |
11957 | ||
11958 | ||
11959 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11960 | PyObject *resultobj = 0; | |
11961 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11962 | wxSashDragStatus arg2 ; | |
11963 | void *argp1 = 0 ; | |
11964 | int res1 = 0 ; | |
11965 | int val2 ; | |
11966 | int ecode2 = 0 ; | |
11967 | PyObject * obj0 = 0 ; | |
11968 | PyObject * obj1 = 0 ; | |
11969 | char * kwnames[] = { | |
11970 | (char *) "self",(char *) "status", NULL | |
11971 | }; | |
11972 | ||
11973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) SWIG_fail; | |
11974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11975 | if (!SWIG_IsOK(res1)) { | |
11976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11977 | } | |
11978 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11979 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11980 | if (!SWIG_IsOK(ecode2)) { | |
11981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetDragStatus" "', expected argument " "2"" of type '" "wxSashDragStatus""'"); | |
11982 | } | |
11983 | arg2 = static_cast< wxSashDragStatus >(val2); | |
11984 | { | |
11985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11986 | (arg1)->SetDragStatus(arg2); | |
11987 | wxPyEndAllowThreads(__tstate); | |
11988 | if (PyErr_Occurred()) SWIG_fail; | |
11989 | } | |
11990 | resultobj = SWIG_Py_Void(); | |
11991 | return resultobj; | |
11992 | fail: | |
11993 | return NULL; | |
d55e5bfc RD |
11994 | } |
11995 | ||
11996 | ||
1bd55598 RD |
11997 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11998 | PyObject *resultobj = 0; | |
11999 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
12000 | wxSashDragStatus result; | |
12001 | void *argp1 = 0 ; | |
12002 | int res1 = 0 ; | |
12003 | PyObject *swig_obj[1] ; | |
12004 | ||
12005 | if (!args) SWIG_fail; | |
12006 | swig_obj[0] = args; | |
12007 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
12008 | if (!SWIG_IsOK(res1)) { | |
12009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
12010 | } | |
12011 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
12012 | { | |
12013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12014 | result = (wxSashDragStatus)((wxSashEvent const *)arg1)->GetDragStatus(); | |
12015 | wxPyEndAllowThreads(__tstate); | |
12016 | if (PyErr_Occurred()) SWIG_fail; | |
12017 | } | |
12018 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12019 | return resultobj; | |
12020 | fail: | |
12021 | return NULL; | |
d55e5bfc RD |
12022 | } |
12023 | ||
12024 | ||
1bd55598 RD |
12025 | SWIGINTERN PyObject *SashEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12026 | PyObject *obj; | |
12027 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12028 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashEvent, SWIG_NewClientData(obj)); | |
12029 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12030 | } |
12031 | ||
1bd55598 RD |
12032 | SWIGINTERN PyObject *SashEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12033 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12034 | } |
12035 | ||
1bd55598 RD |
12036 | SWIGINTERN PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12037 | PyObject *resultobj = 0; | |
12038 | int arg1 = (int) 0 ; | |
12039 | wxQueryLayoutInfoEvent *result = 0 ; | |
12040 | int val1 ; | |
12041 | int ecode1 = 0 ; | |
12042 | PyObject * obj0 = 0 ; | |
12043 | char * kwnames[] = { | |
12044 | (char *) "id", NULL | |
12045 | }; | |
12046 | ||
12047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) SWIG_fail; | |
12048 | if (obj0) { | |
12049 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12050 | if (!SWIG_IsOK(ecode1)) { | |
12051 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryLayoutInfoEvent" "', expected argument " "1"" of type '" "int""'"); | |
12052 | } | |
12053 | arg1 = static_cast< int >(val1); | |
12054 | } | |
12055 | { | |
12056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12057 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
12058 | wxPyEndAllowThreads(__tstate); | |
12059 | if (PyErr_Occurred()) SWIG_fail; | |
12060 | } | |
12061 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_POINTER_NEW | 0 ); | |
12062 | return resultobj; | |
12063 | fail: | |
12064 | return NULL; | |
12065 | } | |
12066 | ||
12067 | ||
12068 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12069 | PyObject *resultobj = 0; | |
12070 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12071 | int arg2 ; | |
12072 | void *argp1 = 0 ; | |
12073 | int res1 = 0 ; | |
12074 | int val2 ; | |
12075 | int ecode2 = 0 ; | |
12076 | PyObject * obj0 = 0 ; | |
12077 | PyObject * obj1 = 0 ; | |
12078 | char * kwnames[] = { | |
12079 | (char *) "self",(char *) "length", NULL | |
12080 | }; | |
12081 | ||
12082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12084 | if (!SWIG_IsOK(res1)) { | |
12085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12086 | } | |
12087 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12088 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12089 | if (!SWIG_IsOK(ecode2)) { | |
12090 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "2"" of type '" "int""'"); | |
12091 | } | |
12092 | arg2 = static_cast< int >(val2); | |
12093 | { | |
12094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12095 | (arg1)->SetRequestedLength(arg2); | |
12096 | wxPyEndAllowThreads(__tstate); | |
12097 | if (PyErr_Occurred()) SWIG_fail; | |
12098 | } | |
12099 | resultobj = SWIG_Py_Void(); | |
12100 | return resultobj; | |
12101 | fail: | |
12102 | return NULL; | |
f20a2e1f RD |
12103 | } |
12104 | ||
12105 | ||
1bd55598 RD |
12106 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12107 | PyObject *resultobj = 0; | |
12108 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12109 | int result; | |
12110 | void *argp1 = 0 ; | |
12111 | int res1 = 0 ; | |
12112 | PyObject *swig_obj[1] ; | |
12113 | ||
12114 | if (!args) SWIG_fail; | |
12115 | swig_obj[0] = args; | |
12116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12117 | if (!SWIG_IsOK(res1)) { | |
12118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12119 | } | |
12120 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12121 | { | |
12122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12123 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
12124 | wxPyEndAllowThreads(__tstate); | |
12125 | if (PyErr_Occurred()) SWIG_fail; | |
12126 | } | |
12127 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12128 | return resultobj; | |
12129 | fail: | |
12130 | return NULL; | |
12131 | } | |
12132 | ||
12133 | ||
12134 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12135 | PyObject *resultobj = 0; | |
12136 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12137 | int arg2 ; | |
12138 | void *argp1 = 0 ; | |
12139 | int res1 = 0 ; | |
12140 | int val2 ; | |
12141 | int ecode2 = 0 ; | |
12142 | PyObject * obj0 = 0 ; | |
12143 | PyObject * obj1 = 0 ; | |
12144 | char * kwnames[] = { | |
12145 | (char *) "self",(char *) "flags", NULL | |
12146 | }; | |
12147 | ||
12148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12150 | if (!SWIG_IsOK(res1)) { | |
12151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12152 | } | |
12153 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12154 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12155 | if (!SWIG_IsOK(ecode2)) { | |
12156 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12157 | } | |
12158 | arg2 = static_cast< int >(val2); | |
12159 | { | |
12160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12161 | (arg1)->SetFlags(arg2); | |
12162 | wxPyEndAllowThreads(__tstate); | |
12163 | if (PyErr_Occurred()) SWIG_fail; | |
12164 | } | |
12165 | resultobj = SWIG_Py_Void(); | |
12166 | return resultobj; | |
12167 | fail: | |
12168 | return NULL; | |
d55e5bfc RD |
12169 | } |
12170 | ||
12171 | ||
1bd55598 RD |
12172 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12173 | PyObject *resultobj = 0; | |
12174 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12175 | int result; | |
12176 | void *argp1 = 0 ; | |
12177 | int res1 = 0 ; | |
12178 | PyObject *swig_obj[1] ; | |
12179 | ||
12180 | if (!args) SWIG_fail; | |
12181 | swig_obj[0] = args; | |
12182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12183 | if (!SWIG_IsOK(res1)) { | |
12184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12185 | } | |
12186 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
12190 | wxPyEndAllowThreads(__tstate); | |
12191 | if (PyErr_Occurred()) SWIG_fail; | |
12192 | } | |
12193 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12194 | return resultobj; | |
12195 | fail: | |
12196 | return NULL; | |
12197 | } | |
12198 | ||
12199 | ||
12200 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12201 | PyObject *resultobj = 0; | |
12202 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12203 | wxSize *arg2 = 0 ; | |
12204 | void *argp1 = 0 ; | |
12205 | int res1 = 0 ; | |
12206 | wxSize temp2 ; | |
12207 | PyObject * obj0 = 0 ; | |
12208 | PyObject * obj1 = 0 ; | |
12209 | char * kwnames[] = { | |
12210 | (char *) "self",(char *) "size", NULL | |
12211 | }; | |
12212 | ||
12213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12215 | if (!SWIG_IsOK(res1)) { | |
12216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12217 | } | |
12218 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12219 | { | |
12220 | arg2 = &temp2; | |
12221 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12222 | } | |
12223 | { | |
12224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12225 | (arg1)->SetSize((wxSize const &)*arg2); | |
12226 | wxPyEndAllowThreads(__tstate); | |
12227 | if (PyErr_Occurred()) SWIG_fail; | |
12228 | } | |
12229 | resultobj = SWIG_Py_Void(); | |
12230 | return resultobj; | |
12231 | fail: | |
12232 | return NULL; | |
d55e5bfc RD |
12233 | } |
12234 | ||
12235 | ||
1bd55598 RD |
12236 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12237 | PyObject *resultobj = 0; | |
12238 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12239 | wxSize result; | |
12240 | void *argp1 = 0 ; | |
12241 | int res1 = 0 ; | |
12242 | PyObject *swig_obj[1] ; | |
12243 | ||
12244 | if (!args) SWIG_fail; | |
12245 | swig_obj[0] = args; | |
12246 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12247 | if (!SWIG_IsOK(res1)) { | |
12248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12249 | } | |
12250 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12251 | { | |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
12254 | wxPyEndAllowThreads(__tstate); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12258 | return resultobj; | |
12259 | fail: | |
12260 | return NULL; | |
12261 | } | |
12262 | ||
12263 | ||
12264 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12265 | PyObject *resultobj = 0; | |
12266 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12267 | wxLayoutOrientation arg2 ; | |
12268 | void *argp1 = 0 ; | |
12269 | int res1 = 0 ; | |
12270 | int val2 ; | |
12271 | int ecode2 = 0 ; | |
12272 | PyObject * obj0 = 0 ; | |
12273 | PyObject * obj1 = 0 ; | |
12274 | char * kwnames[] = { | |
12275 | (char *) "self",(char *) "orient", NULL | |
12276 | }; | |
12277 | ||
12278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12280 | if (!SWIG_IsOK(res1)) { | |
12281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12282 | } | |
12283 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12284 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12285 | if (!SWIG_IsOK(ecode2)) { | |
12286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12287 | } | |
12288 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12289 | { | |
12290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12291 | (arg1)->SetOrientation(arg2); | |
12292 | wxPyEndAllowThreads(__tstate); | |
12293 | if (PyErr_Occurred()) SWIG_fail; | |
12294 | } | |
12295 | resultobj = SWIG_Py_Void(); | |
12296 | return resultobj; | |
12297 | fail: | |
12298 | return NULL; | |
d55e5bfc RD |
12299 | } |
12300 | ||
12301 | ||
1bd55598 RD |
12302 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12303 | PyObject *resultobj = 0; | |
12304 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12305 | wxLayoutOrientation result; | |
12306 | void *argp1 = 0 ; | |
12307 | int res1 = 0 ; | |
12308 | PyObject *swig_obj[1] ; | |
12309 | ||
12310 | if (!args) SWIG_fail; | |
12311 | swig_obj[0] = args; | |
12312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12313 | if (!SWIG_IsOK(res1)) { | |
12314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12315 | } | |
12316 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12317 | { | |
12318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12319 | result = (wxLayoutOrientation)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
12320 | wxPyEndAllowThreads(__tstate); | |
12321 | if (PyErr_Occurred()) SWIG_fail; | |
12322 | } | |
12323 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12324 | return resultobj; | |
12325 | fail: | |
12326 | return NULL; | |
12327 | } | |
12328 | ||
12329 | ||
12330 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12331 | PyObject *resultobj = 0; | |
12332 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12333 | wxLayoutAlignment arg2 ; | |
12334 | void *argp1 = 0 ; | |
12335 | int res1 = 0 ; | |
12336 | int val2 ; | |
12337 | int ecode2 = 0 ; | |
12338 | PyObject * obj0 = 0 ; | |
12339 | PyObject * obj1 = 0 ; | |
12340 | char * kwnames[] = { | |
12341 | (char *) "self",(char *) "align", NULL | |
12342 | }; | |
12343 | ||
12344 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12346 | if (!SWIG_IsOK(res1)) { | |
12347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12348 | } | |
12349 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12350 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12351 | if (!SWIG_IsOK(ecode2)) { | |
12352 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12353 | } | |
12354 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12355 | { | |
12356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12357 | (arg1)->SetAlignment(arg2); | |
12358 | wxPyEndAllowThreads(__tstate); | |
12359 | if (PyErr_Occurred()) SWIG_fail; | |
12360 | } | |
12361 | resultobj = SWIG_Py_Void(); | |
12362 | return resultobj; | |
12363 | fail: | |
12364 | return NULL; | |
d55e5bfc RD |
12365 | } |
12366 | ||
12367 | ||
1bd55598 RD |
12368 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12369 | PyObject *resultobj = 0; | |
12370 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12371 | wxLayoutAlignment result; | |
12372 | void *argp1 = 0 ; | |
12373 | int res1 = 0 ; | |
12374 | PyObject *swig_obj[1] ; | |
12375 | ||
12376 | if (!args) SWIG_fail; | |
12377 | swig_obj[0] = args; | |
12378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12379 | if (!SWIG_IsOK(res1)) { | |
12380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12381 | } | |
12382 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12383 | { | |
12384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12385 | result = (wxLayoutAlignment)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
12386 | wxPyEndAllowThreads(__tstate); | |
12387 | if (PyErr_Occurred()) SWIG_fail; | |
12388 | } | |
12389 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12390 | return resultobj; | |
12391 | fail: | |
12392 | return NULL; | |
d55e5bfc RD |
12393 | } |
12394 | ||
12395 | ||
1bd55598 RD |
12396 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12397 | PyObject *obj; | |
12398 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12399 | SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_NewClientData(obj)); | |
12400 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12401 | } |
12402 | ||
1bd55598 RD |
12403 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12404 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12405 | } |
12406 | ||
1bd55598 RD |
12407 | SWIGINTERN PyObject *_wrap_new_CalculateLayoutEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12408 | PyObject *resultobj = 0; | |
12409 | int arg1 = (int) 0 ; | |
12410 | wxCalculateLayoutEvent *result = 0 ; | |
12411 | int val1 ; | |
12412 | int ecode1 = 0 ; | |
12413 | PyObject * obj0 = 0 ; | |
12414 | char * kwnames[] = { | |
12415 | (char *) "id", NULL | |
12416 | }; | |
12417 | ||
12418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) SWIG_fail; | |
12419 | if (obj0) { | |
12420 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12421 | if (!SWIG_IsOK(ecode1)) { | |
12422 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalculateLayoutEvent" "', expected argument " "1"" of type '" "int""'"); | |
12423 | } | |
12424 | arg1 = static_cast< int >(val1); | |
12425 | } | |
12426 | { | |
12427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12428 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
12429 | wxPyEndAllowThreads(__tstate); | |
12430 | if (PyErr_Occurred()) SWIG_fail; | |
12431 | } | |
12432 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_POINTER_NEW | 0 ); | |
12433 | return resultobj; | |
12434 | fail: | |
12435 | return NULL; | |
12436 | } | |
12437 | ||
12438 | ||
12439 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12440 | PyObject *resultobj = 0; | |
12441 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12442 | int arg2 ; | |
12443 | void *argp1 = 0 ; | |
12444 | int res1 = 0 ; | |
12445 | int val2 ; | |
12446 | int ecode2 = 0 ; | |
12447 | PyObject * obj0 = 0 ; | |
12448 | PyObject * obj1 = 0 ; | |
12449 | char * kwnames[] = { | |
12450 | (char *) "self",(char *) "flags", NULL | |
12451 | }; | |
12452 | ||
12453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12455 | if (!SWIG_IsOK(res1)) { | |
12456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12457 | } | |
12458 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12459 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12460 | if (!SWIG_IsOK(ecode2)) { | |
12461 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12462 | } | |
12463 | arg2 = static_cast< int >(val2); | |
12464 | { | |
12465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12466 | (arg1)->SetFlags(arg2); | |
12467 | wxPyEndAllowThreads(__tstate); | |
12468 | if (PyErr_Occurred()) SWIG_fail; | |
12469 | } | |
12470 | resultobj = SWIG_Py_Void(); | |
12471 | return resultobj; | |
12472 | fail: | |
12473 | return NULL; | |
d55e5bfc RD |
12474 | } |
12475 | ||
12476 | ||
1bd55598 RD |
12477 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12478 | PyObject *resultobj = 0; | |
12479 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12480 | int result; | |
12481 | void *argp1 = 0 ; | |
12482 | int res1 = 0 ; | |
12483 | PyObject *swig_obj[1] ; | |
12484 | ||
12485 | if (!args) SWIG_fail; | |
12486 | swig_obj[0] = args; | |
12487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12488 | if (!SWIG_IsOK(res1)) { | |
12489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12490 | } | |
12491 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12492 | { | |
12493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12494 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
12495 | wxPyEndAllowThreads(__tstate); | |
12496 | if (PyErr_Occurred()) SWIG_fail; | |
12497 | } | |
12498 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12499 | return resultobj; | |
12500 | fail: | |
12501 | return NULL; | |
12502 | } | |
12503 | ||
12504 | ||
12505 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12506 | PyObject *resultobj = 0; | |
12507 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12508 | wxRect *arg2 = 0 ; | |
12509 | void *argp1 = 0 ; | |
12510 | int res1 = 0 ; | |
12511 | wxRect temp2 ; | |
12512 | PyObject * obj0 = 0 ; | |
12513 | PyObject * obj1 = 0 ; | |
12514 | char * kwnames[] = { | |
12515 | (char *) "self",(char *) "rect", NULL | |
12516 | }; | |
12517 | ||
12518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12519 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12520 | if (!SWIG_IsOK(res1)) { | |
12521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12522 | } | |
12523 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12524 | { | |
12525 | arg2 = &temp2; | |
12526 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12527 | } | |
12528 | { | |
12529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12530 | (arg1)->SetRect((wxRect const &)*arg2); | |
12531 | wxPyEndAllowThreads(__tstate); | |
12532 | if (PyErr_Occurred()) SWIG_fail; | |
12533 | } | |
12534 | resultobj = SWIG_Py_Void(); | |
12535 | return resultobj; | |
12536 | fail: | |
12537 | return NULL; | |
d55e5bfc RD |
12538 | } |
12539 | ||
12540 | ||
1bd55598 RD |
12541 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12542 | PyObject *resultobj = 0; | |
12543 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12544 | wxRect result; | |
12545 | void *argp1 = 0 ; | |
12546 | int res1 = 0 ; | |
12547 | PyObject *swig_obj[1] ; | |
12548 | ||
12549 | if (!args) SWIG_fail; | |
12550 | swig_obj[0] = args; | |
12551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12552 | if (!SWIG_IsOK(res1)) { | |
12553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12554 | } | |
12555 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12556 | { | |
12557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12558 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
12559 | wxPyEndAllowThreads(__tstate); | |
12560 | if (PyErr_Occurred()) SWIG_fail; | |
12561 | } | |
12562 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
12569 | SWIGINTERN PyObject *CalculateLayoutEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12570 | PyObject *obj; | |
12571 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12572 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_NewClientData(obj)); | |
12573 | return SWIG_Py_Void(); | |
12574 | } | |
12575 | ||
12576 | SWIGINTERN PyObject *CalculateLayoutEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12577 | return SWIG_Python_InitShadowInstance(args); | |
12578 | } | |
12579 | ||
12580 | SWIGINTERN PyObject *_wrap_new_SashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12581 | PyObject *resultobj = 0; | |
12582 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12583 | int arg2 = (int) -1 ; | |
12584 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12585 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12586 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12587 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12588 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12589 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
12590 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12591 | wxSashLayoutWindow *result = 0 ; | |
12592 | void *argp1 = 0 ; | |
12593 | int res1 = 0 ; | |
12594 | int val2 ; | |
12595 | int ecode2 = 0 ; | |
12596 | wxPoint temp3 ; | |
12597 | wxSize temp4 ; | |
12598 | long val5 ; | |
12599 | int ecode5 = 0 ; | |
12600 | bool temp6 = false ; | |
12601 | PyObject * obj0 = 0 ; | |
12602 | PyObject * obj1 = 0 ; | |
12603 | PyObject * obj2 = 0 ; | |
12604 | PyObject * obj3 = 0 ; | |
12605 | PyObject * obj4 = 0 ; | |
12606 | PyObject * obj5 = 0 ; | |
12607 | char * kwnames[] = { | |
12608 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12609 | }; | |
12610 | ||
12611 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
12612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12613 | if (!SWIG_IsOK(res1)) { | |
12614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashLayoutWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12615 | } | |
12616 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12617 | if (obj1) { | |
12618 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12619 | if (!SWIG_IsOK(ecode2)) { | |
12620 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashLayoutWindow" "', expected argument " "2"" of type '" "int""'"); | |
12621 | } | |
12622 | arg2 = static_cast< int >(val2); | |
12623 | } | |
12624 | if (obj2) { | |
12625 | { | |
12626 | arg3 = &temp3; | |
12627 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 12628 | } |
1bd55598 RD |
12629 | } |
12630 | if (obj3) { | |
d55e5bfc | 12631 | { |
1bd55598 RD |
12632 | arg4 = &temp4; |
12633 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 12634 | } |
1bd55598 RD |
12635 | } |
12636 | if (obj4) { | |
12637 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
12638 | if (!SWIG_IsOK(ecode5)) { | |
12639 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashLayoutWindow" "', expected argument " "5"" of type '" "long""'"); | |
12640 | } | |
12641 | arg5 = static_cast< long >(val5); | |
12642 | } | |
12643 | if (obj5) { | |
d55e5bfc | 12644 | { |
1bd55598 RD |
12645 | arg6 = wxString_in_helper(obj5); |
12646 | if (arg6 == NULL) SWIG_fail; | |
12647 | temp6 = true; | |
d55e5bfc | 12648 | } |
1bd55598 RD |
12649 | } |
12650 | { | |
12651 | if (!wxPyCheckForApp()) SWIG_fail; | |
12652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12653 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12654 | wxPyEndAllowThreads(__tstate); | |
12655 | if (PyErr_Occurred()) SWIG_fail; | |
12656 | } | |
12657 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_NEW | 0 ); | |
12658 | { | |
12659 | if (temp6) | |
12660 | delete arg6; | |
12661 | } | |
12662 | return resultobj; | |
12663 | fail: | |
12664 | { | |
12665 | if (temp6) | |
12666 | delete arg6; | |
12667 | } | |
12668 | return NULL; | |
d55e5bfc RD |
12669 | } |
12670 | ||
12671 | ||
1bd55598 RD |
12672 | SWIGINTERN PyObject *_wrap_new_PreSashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12673 | PyObject *resultobj = 0; | |
12674 | wxSashLayoutWindow *result = 0 ; | |
12675 | ||
12676 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashLayoutWindow",0,0,0)) SWIG_fail; | |
12677 | { | |
12678 | if (!wxPyCheckForApp()) SWIG_fail; | |
12679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12680 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
12681 | wxPyEndAllowThreads(__tstate); | |
12682 | if (PyErr_Occurred()) SWIG_fail; | |
12683 | } | |
12684 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_OWN | 0 ); | |
12685 | return resultobj; | |
12686 | fail: | |
12687 | return NULL; | |
12688 | } | |
12689 | ||
12690 | ||
12691 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12692 | PyObject *resultobj = 0; | |
12693 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12694 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12695 | int arg3 = (int) -1 ; | |
12696 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12697 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12698 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12699 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12700 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12701 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
12702 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12703 | bool result; | |
12704 | void *argp1 = 0 ; | |
12705 | int res1 = 0 ; | |
12706 | void *argp2 = 0 ; | |
12707 | int res2 = 0 ; | |
12708 | int val3 ; | |
12709 | int ecode3 = 0 ; | |
12710 | wxPoint temp4 ; | |
12711 | wxSize temp5 ; | |
12712 | long val6 ; | |
12713 | int ecode6 = 0 ; | |
12714 | bool temp7 = false ; | |
12715 | PyObject * obj0 = 0 ; | |
12716 | PyObject * obj1 = 0 ; | |
12717 | PyObject * obj2 = 0 ; | |
12718 | PyObject * obj3 = 0 ; | |
12719 | PyObject * obj4 = 0 ; | |
12720 | PyObject * obj5 = 0 ; | |
12721 | PyObject * obj6 = 0 ; | |
12722 | char * kwnames[] = { | |
12723 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12724 | }; | |
12725 | ||
12726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12728 | if (!SWIG_IsOK(res1)) { | |
12729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_Create" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12730 | } | |
12731 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12732 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12733 | if (!SWIG_IsOK(res2)) { | |
12734 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashLayoutWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12735 | } | |
12736 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12737 | if (obj2) { | |
12738 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12739 | if (!SWIG_IsOK(ecode3)) { | |
12740 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashLayoutWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
12741 | } | |
12742 | arg3 = static_cast< int >(val3); | |
12743 | } | |
12744 | if (obj3) { | |
12745 | { | |
12746 | arg4 = &temp4; | |
12747 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 12748 | } |
1bd55598 RD |
12749 | } |
12750 | if (obj4) { | |
d55e5bfc | 12751 | { |
1bd55598 RD |
12752 | arg5 = &temp5; |
12753 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 12754 | } |
1bd55598 RD |
12755 | } |
12756 | if (obj5) { | |
12757 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
12758 | if (!SWIG_IsOK(ecode6)) { | |
12759 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashLayoutWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
12760 | } | |
12761 | arg6 = static_cast< long >(val6); | |
12762 | } | |
12763 | if (obj6) { | |
d55e5bfc | 12764 | { |
1bd55598 RD |
12765 | arg7 = wxString_in_helper(obj6); |
12766 | if (arg7 == NULL) SWIG_fail; | |
12767 | temp7 = true; | |
d55e5bfc | 12768 | } |
1bd55598 RD |
12769 | } |
12770 | { | |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | { | |
12777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12778 | } | |
12779 | { | |
12780 | if (temp7) | |
12781 | delete arg7; | |
12782 | } | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | { | |
12786 | if (temp7) | |
12787 | delete arg7; | |
12788 | } | |
12789 | return NULL; | |
d55e5bfc RD |
12790 | } |
12791 | ||
12792 | ||
1bd55598 RD |
12793 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12794 | PyObject *resultobj = 0; | |
12795 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12796 | wxLayoutAlignment result; | |
12797 | void *argp1 = 0 ; | |
12798 | int res1 = 0 ; | |
12799 | PyObject *swig_obj[1] ; | |
12800 | ||
12801 | if (!args) SWIG_fail; | |
12802 | swig_obj[0] = args; | |
12803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12804 | if (!SWIG_IsOK(res1)) { | |
12805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12806 | } | |
12807 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12808 | { | |
12809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12810 | result = (wxLayoutAlignment)(arg1)->GetAlignment(); | |
12811 | wxPyEndAllowThreads(__tstate); | |
12812 | if (PyErr_Occurred()) SWIG_fail; | |
12813 | } | |
12814 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12815 | return resultobj; | |
12816 | fail: | |
12817 | return NULL; | |
d55e5bfc RD |
12818 | } |
12819 | ||
12820 | ||
1bd55598 RD |
12821 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12822 | PyObject *resultobj = 0; | |
12823 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12824 | wxLayoutOrientation result; | |
12825 | void *argp1 = 0 ; | |
12826 | int res1 = 0 ; | |
12827 | PyObject *swig_obj[1] ; | |
12828 | ||
12829 | if (!args) SWIG_fail; | |
12830 | swig_obj[0] = args; | |
12831 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12832 | if (!SWIG_IsOK(res1)) { | |
12833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12834 | } | |
12835 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12836 | { | |
12837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12838 | result = (wxLayoutOrientation)(arg1)->GetOrientation(); | |
12839 | wxPyEndAllowThreads(__tstate); | |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
12842 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12843 | return resultobj; | |
12844 | fail: | |
12845 | return NULL; | |
12846 | } | |
12847 | ||
12848 | ||
12849 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12850 | PyObject *resultobj = 0; | |
12851 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12852 | wxLayoutAlignment arg2 ; | |
12853 | void *argp1 = 0 ; | |
12854 | int res1 = 0 ; | |
12855 | int val2 ; | |
12856 | int ecode2 = 0 ; | |
12857 | PyObject * obj0 = 0 ; | |
12858 | PyObject * obj1 = 0 ; | |
12859 | char * kwnames[] = { | |
12860 | (char *) "self",(char *) "alignment", NULL | |
12861 | }; | |
12862 | ||
12863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12865 | if (!SWIG_IsOK(res1)) { | |
12866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12867 | } | |
12868 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12869 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12870 | if (!SWIG_IsOK(ecode2)) { | |
12871 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12872 | } | |
12873 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12874 | { | |
12875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12876 | (arg1)->SetAlignment(arg2); | |
12877 | wxPyEndAllowThreads(__tstate); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
12880 | resultobj = SWIG_Py_Void(); | |
12881 | return resultobj; | |
12882 | fail: | |
12883 | return NULL; | |
12884 | } | |
12885 | ||
12886 | ||
12887 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12888 | PyObject *resultobj = 0; | |
12889 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12890 | wxSize *arg2 = 0 ; | |
12891 | void *argp1 = 0 ; | |
12892 | int res1 = 0 ; | |
12893 | wxSize temp2 ; | |
12894 | PyObject * obj0 = 0 ; | |
12895 | PyObject * obj1 = 0 ; | |
12896 | char * kwnames[] = { | |
12897 | (char *) "self",(char *) "size", NULL | |
12898 | }; | |
12899 | ||
12900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12901 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12902 | if (!SWIG_IsOK(res1)) { | |
12903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetDefaultSize" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12904 | } | |
12905 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12906 | { | |
12907 | arg2 = &temp2; | |
12908 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12909 | } | |
12910 | { | |
12911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12912 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
12916 | resultobj = SWIG_Py_Void(); | |
12917 | return resultobj; | |
12918 | fail: | |
12919 | return NULL; | |
12920 | } | |
12921 | ||
12922 | ||
12923 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12924 | PyObject *resultobj = 0; | |
12925 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12926 | wxLayoutOrientation arg2 ; | |
12927 | void *argp1 = 0 ; | |
12928 | int res1 = 0 ; | |
12929 | int val2 ; | |
12930 | int ecode2 = 0 ; | |
12931 | PyObject * obj0 = 0 ; | |
12932 | PyObject * obj1 = 0 ; | |
12933 | char * kwnames[] = { | |
12934 | (char *) "self",(char *) "orientation", NULL | |
12935 | }; | |
12936 | ||
12937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12939 | if (!SWIG_IsOK(res1)) { | |
12940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12941 | } | |
12942 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12943 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12944 | if (!SWIG_IsOK(ecode2)) { | |
12945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12946 | } | |
12947 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12948 | { | |
12949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12950 | (arg1)->SetOrientation(arg2); | |
12951 | wxPyEndAllowThreads(__tstate); | |
12952 | if (PyErr_Occurred()) SWIG_fail; | |
12953 | } | |
12954 | resultobj = SWIG_Py_Void(); | |
12955 | return resultobj; | |
12956 | fail: | |
12957 | return NULL; | |
d55e5bfc RD |
12958 | } |
12959 | ||
12960 | ||
1bd55598 RD |
12961 | SWIGINTERN PyObject *SashLayoutWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12962 | PyObject *obj; | |
12963 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12964 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashLayoutWindow, SWIG_NewClientData(obj)); | |
12965 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12966 | } |
12967 | ||
1bd55598 RD |
12968 | SWIGINTERN PyObject *SashLayoutWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12969 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12970 | } |
12971 | ||
1bd55598 RD |
12972 | SWIGINTERN PyObject *_wrap_new_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12973 | PyObject *resultobj = 0; | |
12974 | wxLayoutAlgorithm *result = 0 ; | |
12975 | ||
12976 | if (!SWIG_Python_UnpackTuple(args,"new_LayoutAlgorithm",0,0,0)) SWIG_fail; | |
12977 | { | |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12979 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
12980 | wxPyEndAllowThreads(__tstate); | |
12981 | if (PyErr_Occurred()) SWIG_fail; | |
12982 | } | |
12983 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_NEW | 0 ); | |
12984 | return resultobj; | |
12985 | fail: | |
12986 | return NULL; | |
d55e5bfc RD |
12987 | } |
12988 | ||
12989 | ||
1bd55598 RD |
12990 | SWIGINTERN PyObject *_wrap_delete_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12991 | PyObject *resultobj = 0; | |
12992 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12993 | void *argp1 = 0 ; | |
12994 | int res1 = 0 ; | |
12995 | PyObject *swig_obj[1] ; | |
12996 | ||
12997 | if (!args) SWIG_fail; | |
12998 | swig_obj[0] = args; | |
12999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_DISOWN | 0 ); | |
13000 | if (!SWIG_IsOK(res1)) { | |
13001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutAlgorithm" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13002 | } | |
13003 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13004 | { | |
13005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13006 | delete arg1; | |
d55e5bfc | 13007 | |
1bd55598 RD |
13008 | wxPyEndAllowThreads(__tstate); |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | } | |
13011 | resultobj = SWIG_Py_Void(); | |
13012 | return resultobj; | |
13013 | fail: | |
13014 | return NULL; | |
13015 | } | |
13016 | ||
13017 | ||
13018 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13019 | PyObject *resultobj = 0; | |
13020 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13021 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
13022 | wxRect *arg3 = (wxRect *) NULL ; | |
13023 | bool result; | |
13024 | void *argp1 = 0 ; | |
13025 | int res1 = 0 ; | |
13026 | void *argp2 = 0 ; | |
13027 | int res2 = 0 ; | |
13028 | void *argp3 = 0 ; | |
13029 | int res3 = 0 ; | |
13030 | PyObject * obj0 = 0 ; | |
13031 | PyObject * obj1 = 0 ; | |
13032 | PyObject * obj2 = 0 ; | |
13033 | char * kwnames[] = { | |
13034 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
13035 | }; | |
13036 | ||
13037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13039 | if (!SWIG_IsOK(res1)) { | |
13040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13041 | } | |
13042 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13043 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
13044 | if (!SWIG_IsOK(res2)) { | |
13045 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
13046 | } | |
13047 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
13048 | if (obj2) { | |
13049 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13050 | if (!SWIG_IsOK(res3)) { | |
13051 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "3"" of type '" "wxRect *""'"); | |
36ed4f51 | 13052 | } |
1bd55598 RD |
13053 | arg3 = reinterpret_cast< wxRect * >(argp3); |
13054 | } | |
13055 | { | |
13056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13057 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
13058 | wxPyEndAllowThreads(__tstate); | |
13059 | if (PyErr_Occurred()) SWIG_fail; | |
13060 | } | |
13061 | { | |
13062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13063 | } | |
13064 | return resultobj; | |
13065 | fail: | |
13066 | return NULL; | |
13067 | } | |
13068 | ||
13069 | ||
13070 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13071 | PyObject *resultobj = 0; | |
13072 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13073 | wxFrame *arg2 = (wxFrame *) 0 ; | |
13074 | wxWindow *arg3 = (wxWindow *) NULL ; | |
13075 | bool result; | |
13076 | void *argp1 = 0 ; | |
13077 | int res1 = 0 ; | |
13078 | void *argp2 = 0 ; | |
13079 | int res2 = 0 ; | |
13080 | void *argp3 = 0 ; | |
13081 | int res3 = 0 ; | |
13082 | PyObject * obj0 = 0 ; | |
13083 | PyObject * obj1 = 0 ; | |
13084 | PyObject * obj2 = 0 ; | |
13085 | char * kwnames[] = { | |
13086 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
13087 | }; | |
13088 | ||
13089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13091 | if (!SWIG_IsOK(res1)) { | |
13092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13093 | } | |
13094 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13095 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
13096 | if (!SWIG_IsOK(res2)) { | |
13097 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
13098 | } | |
13099 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
13100 | if (obj2) { | |
13101 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13102 | if (!SWIG_IsOK(res3)) { | |
13103 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
36ed4f51 | 13104 | } |
1bd55598 RD |
13105 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
13106 | } | |
13107 | { | |
13108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13109 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
13110 | wxPyEndAllowThreads(__tstate); | |
13111 | if (PyErr_Occurred()) SWIG_fail; | |
13112 | } | |
13113 | { | |
13114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13115 | } | |
13116 | return resultobj; | |
13117 | fail: | |
13118 | return NULL; | |
13119 | } | |
13120 | ||
13121 | ||
13122 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13123 | PyObject *resultobj = 0; | |
13124 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13125 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13126 | wxWindow *arg3 = (wxWindow *) NULL ; | |
13127 | bool result; | |
13128 | void *argp1 = 0 ; | |
13129 | int res1 = 0 ; | |
13130 | void *argp2 = 0 ; | |
13131 | int res2 = 0 ; | |
13132 | void *argp3 = 0 ; | |
13133 | int res3 = 0 ; | |
13134 | PyObject * obj0 = 0 ; | |
13135 | PyObject * obj1 = 0 ; | |
13136 | PyObject * obj2 = 0 ; | |
13137 | char * kwnames[] = { | |
13138 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
13139 | }; | |
13140 | ||
13141 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13142 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13143 | if (!SWIG_IsOK(res1)) { | |
13144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13145 | } | |
13146 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13147 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13148 | if (!SWIG_IsOK(res2)) { | |
13149 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13150 | } | |
13151 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13152 | if (obj2) { | |
13153 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13154 | if (!SWIG_IsOK(res3)) { | |
13155 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
d55e5bfc | 13156 | } |
1bd55598 RD |
13157 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
13158 | } | |
13159 | { | |
13160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13161 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
13162 | wxPyEndAllowThreads(__tstate); | |
13163 | if (PyErr_Occurred()) SWIG_fail; | |
13164 | } | |
13165 | { | |
13166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13167 | } | |
13168 | return resultobj; | |
13169 | fail: | |
13170 | return NULL; | |
d55e5bfc RD |
13171 | } |
13172 | ||
13173 | ||
1bd55598 RD |
13174 | SWIGINTERN PyObject *LayoutAlgorithm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13175 | PyObject *obj; | |
13176 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13177 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutAlgorithm, SWIG_NewClientData(obj)); | |
13178 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13179 | } |
13180 | ||
1bd55598 RD |
13181 | SWIGINTERN PyObject *LayoutAlgorithm_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13182 | return SWIG_Python_InitShadowInstance(args); | |
5cbf236d RD |
13183 | } |
13184 | ||
1bd55598 RD |
13185 | SWIGINTERN PyObject *_wrap_new_PopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13186 | PyObject *resultobj = 0; | |
13187 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13188 | int arg2 = (int) wxBORDER_NONE ; | |
13189 | wxPopupWindow *result = 0 ; | |
13190 | void *argp1 = 0 ; | |
13191 | int res1 = 0 ; | |
13192 | int val2 ; | |
13193 | int ecode2 = 0 ; | |
13194 | PyObject * obj0 = 0 ; | |
13195 | PyObject * obj1 = 0 ; | |
13196 | char * kwnames[] = { | |
13197 | (char *) "parent",(char *) "flags", NULL | |
13198 | }; | |
13199 | ||
13200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13202 | if (!SWIG_IsOK(res1)) { | |
13203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13204 | } | |
13205 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13206 | if (obj1) { | |
13207 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13208 | if (!SWIG_IsOK(ecode2)) { | |
13209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupWindow" "', expected argument " "2"" of type '" "int""'"); | |
13210 | } | |
13211 | arg2 = static_cast< int >(val2); | |
13212 | } | |
13213 | { | |
13214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13215 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_NEW | 0 ); | |
13220 | return resultobj; | |
13221 | fail: | |
13222 | return NULL; | |
5cbf236d RD |
13223 | } |
13224 | ||
13225 | ||
1bd55598 RD |
13226 | SWIGINTERN PyObject *_wrap_new_PrePopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13227 | PyObject *resultobj = 0; | |
13228 | wxPopupWindow *result = 0 ; | |
13229 | ||
13230 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupWindow",0,0,0)) SWIG_fail; | |
13231 | { | |
13232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13233 | result = (wxPopupWindow *)new wxPopupWindow(); | |
13234 | wxPyEndAllowThreads(__tstate); | |
13235 | if (PyErr_Occurred()) SWIG_fail; | |
13236 | } | |
13237 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_OWN | 0 ); | |
13238 | return resultobj; | |
13239 | fail: | |
13240 | return NULL; | |
d55e5bfc RD |
13241 | } |
13242 | ||
13243 | ||
1bd55598 RD |
13244 | SWIGINTERN PyObject *PopupWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13245 | PyObject *obj; | |
13246 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13247 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPopupWindow, SWIG_NewClientData(obj)); | |
13248 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13249 | } |
13250 | ||
1bd55598 RD |
13251 | SWIGINTERN PyObject *PopupWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13252 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
13253 | } |
13254 | ||
1bd55598 RD |
13255 | SWIGINTERN PyObject *_wrap_new_PopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13256 | PyObject *resultobj = 0; | |
13257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13258 | int arg2 = (int) wxBORDER_NONE ; | |
13259 | wxPyPopupTransientWindow *result = 0 ; | |
13260 | void *argp1 = 0 ; | |
13261 | int res1 = 0 ; | |
13262 | int val2 ; | |
13263 | int ecode2 = 0 ; | |
13264 | PyObject * obj0 = 0 ; | |
13265 | PyObject * obj1 = 0 ; | |
13266 | char * kwnames[] = { | |
13267 | (char *) "parent",(char *) "style", NULL | |
13268 | }; | |
13269 | ||
13270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13272 | if (!SWIG_IsOK(res1)) { | |
13273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupTransientWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13274 | } | |
13275 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13276 | if (obj1) { | |
13277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13278 | if (!SWIG_IsOK(ecode2)) { | |
13279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupTransientWindow" "', expected argument " "2"" of type '" "int""'"); | |
13280 | } | |
13281 | arg2 = static_cast< int >(val2); | |
13282 | } | |
13283 | { | |
13284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13285 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
13286 | wxPyEndAllowThreads(__tstate); | |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
13288 | } | |
13289 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_NEW | 0 ); | |
13290 | return resultobj; | |
13291 | fail: | |
13292 | return NULL; | |
d55e5bfc RD |
13293 | } |
13294 | ||
13295 | ||
1bd55598 RD |
13296 | SWIGINTERN PyObject *_wrap_new_PrePopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13297 | PyObject *resultobj = 0; | |
13298 | wxPyPopupTransientWindow *result = 0 ; | |
13299 | ||
13300 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupTransientWindow",0,0,0)) SWIG_fail; | |
13301 | { | |
13302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13303 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
13304 | wxPyEndAllowThreads(__tstate); | |
13305 | if (PyErr_Occurred()) SWIG_fail; | |
13306 | } | |
13307 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_OWN | 0 ); | |
13308 | return resultobj; | |
13309 | fail: | |
13310 | return NULL; | |
13311 | } | |
13312 | ||
13313 | ||
13314 | SWIGINTERN PyObject *PopupTransientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13315 | PyObject *obj; | |
13316 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13317 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_NewClientData(obj)); | |
13318 | return SWIG_Py_Void(); | |
13319 | } | |
13320 | ||
13321 | SWIGINTERN PyObject *PopupTransientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13322 | return SWIG_Python_InitShadowInstance(args); | |
13323 | } | |
13324 | ||
13325 | SWIGINTERN PyObject *_wrap_new_TipWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13326 | PyObject *resultobj = 0; | |
13327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13328 | wxString *arg2 = 0 ; | |
13329 | int arg3 = (int) 100 ; | |
13330 | wxRect *arg4 = (wxRect *) NULL ; | |
13331 | wxTipWindow *result = 0 ; | |
13332 | void *argp1 = 0 ; | |
13333 | int res1 = 0 ; | |
13334 | bool temp2 = false ; | |
13335 | int val3 ; | |
13336 | int ecode3 = 0 ; | |
13337 | void *argp4 = 0 ; | |
13338 | int res4 = 0 ; | |
13339 | PyObject * obj0 = 0 ; | |
13340 | PyObject * obj1 = 0 ; | |
13341 | PyObject * obj2 = 0 ; | |
13342 | PyObject * obj3 = 0 ; | |
13343 | char * kwnames[] = { | |
13344 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
13345 | }; | |
13346 | ||
13347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13349 | if (!SWIG_IsOK(res1)) { | |
13350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TipWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13351 | } | |
13352 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13353 | { | |
13354 | arg2 = wxString_in_helper(obj1); | |
13355 | if (arg2 == NULL) SWIG_fail; | |
13356 | temp2 = true; | |
13357 | } | |
13358 | if (obj2) { | |
13359 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13360 | if (!SWIG_IsOK(ecode3)) { | |
13361 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TipWindow" "', expected argument " "3"" of type '" "int""'"); | |
13362 | } | |
13363 | arg3 = static_cast< int >(val3); | |
13364 | } | |
13365 | if (obj3) { | |
13366 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13367 | if (!SWIG_IsOK(res4)) { | |
13368 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_TipWindow" "', expected argument " "4"" of type '" "wxRect *""'"); | |
36ed4f51 | 13369 | } |
1bd55598 RD |
13370 | arg4 = reinterpret_cast< wxRect * >(argp4); |
13371 | } | |
13372 | { | |
13373 | if (!wxPyCheckForApp()) SWIG_fail; | |
13374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13375 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
13376 | wxPyEndAllowThreads(__tstate); | |
13377 | if (PyErr_Occurred()) SWIG_fail; | |
13378 | } | |
13379 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipWindow, SWIG_POINTER_NEW | 0 ); | |
13380 | { | |
13381 | if (temp2) | |
13382 | delete arg2; | |
13383 | } | |
13384 | return resultobj; | |
13385 | fail: | |
13386 | { | |
13387 | if (temp2) | |
13388 | delete arg2; | |
13389 | } | |
13390 | return NULL; | |
d55e5bfc RD |
13391 | } |
13392 | ||
13393 | ||
1bd55598 RD |
13394 | SWIGINTERN PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13395 | PyObject *resultobj = 0; | |
13396 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13397 | wxRect *arg2 = 0 ; | |
13398 | void *argp1 = 0 ; | |
13399 | int res1 = 0 ; | |
13400 | wxRect temp2 ; | |
13401 | PyObject * obj0 = 0 ; | |
13402 | PyObject * obj1 = 0 ; | |
13403 | char * kwnames[] = { | |
13404 | (char *) "self",(char *) "rectBound", NULL | |
13405 | }; | |
13406 | ||
13407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
13408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13409 | if (!SWIG_IsOK(res1)) { | |
13410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_SetBoundingRect" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13411 | } | |
13412 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13413 | { | |
13414 | arg2 = &temp2; | |
13415 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13416 | } | |
13417 | { | |
13418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13419 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
13420 | wxPyEndAllowThreads(__tstate); | |
13421 | if (PyErr_Occurred()) SWIG_fail; | |
13422 | } | |
13423 | resultobj = SWIG_Py_Void(); | |
13424 | return resultobj; | |
13425 | fail: | |
13426 | return NULL; | |
d55e5bfc RD |
13427 | } |
13428 | ||
13429 | ||
1bd55598 RD |
13430 | SWIGINTERN PyObject *_wrap_TipWindow_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13431 | PyObject *resultobj = 0; | |
13432 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13433 | void *argp1 = 0 ; | |
13434 | int res1 = 0 ; | |
13435 | PyObject *swig_obj[1] ; | |
13436 | ||
13437 | if (!args) SWIG_fail; | |
13438 | swig_obj[0] = args; | |
13439 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13440 | if (!SWIG_IsOK(res1)) { | |
13441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_Close" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13442 | } | |
13443 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13444 | { | |
13445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13446 | (arg1)->Close(); | |
13447 | wxPyEndAllowThreads(__tstate); | |
13448 | if (PyErr_Occurred()) SWIG_fail; | |
13449 | } | |
13450 | resultobj = SWIG_Py_Void(); | |
13451 | return resultobj; | |
13452 | fail: | |
13453 | return NULL; | |
13454 | } | |
13455 | ||
13456 | ||
13457 | SWIGINTERN PyObject *TipWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13458 | PyObject *obj; | |
13459 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13460 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTipWindow, SWIG_NewClientData(obj)); | |
13461 | return SWIG_Py_Void(); | |
13462 | } | |
13463 | ||
13464 | SWIGINTERN PyObject *TipWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13465 | return SWIG_Python_InitShadowInstance(args); | |
13466 | } | |
13467 | ||
13468 | SWIGINTERN PyObject *_wrap_new_VScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13469 | PyObject *resultobj = 0; | |
13470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13471 | int arg2 = (int) wxID_ANY ; | |
13472 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13473 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13474 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13475 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13476 | long arg5 = (long) 0 ; | |
13477 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
13478 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13479 | wxPyVScrolledWindow *result = 0 ; | |
13480 | void *argp1 = 0 ; | |
13481 | int res1 = 0 ; | |
13482 | int val2 ; | |
13483 | int ecode2 = 0 ; | |
13484 | wxPoint temp3 ; | |
13485 | wxSize temp4 ; | |
13486 | long val5 ; | |
13487 | int ecode5 = 0 ; | |
13488 | bool temp6 = false ; | |
13489 | PyObject * obj0 = 0 ; | |
13490 | PyObject * obj1 = 0 ; | |
13491 | PyObject * obj2 = 0 ; | |
13492 | PyObject * obj3 = 0 ; | |
13493 | PyObject * obj4 = 0 ; | |
13494 | PyObject * obj5 = 0 ; | |
13495 | char * kwnames[] = { | |
13496 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13497 | }; | |
13498 | ||
13499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13501 | if (!SWIG_IsOK(res1)) { | |
13502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13503 | } | |
13504 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13505 | if (obj1) { | |
13506 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13507 | if (!SWIG_IsOK(ecode2)) { | |
13508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
13509 | } | |
13510 | arg2 = static_cast< int >(val2); | |
13511 | } | |
13512 | if (obj2) { | |
f20a2e1f | 13513 | { |
1bd55598 RD |
13514 | arg3 = &temp3; |
13515 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 13516 | } |
1bd55598 RD |
13517 | } |
13518 | if (obj3) { | |
f20a2e1f | 13519 | { |
1bd55598 RD |
13520 | arg4 = &temp4; |
13521 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13522 | } |
1bd55598 RD |
13523 | } |
13524 | if (obj4) { | |
13525 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
13526 | if (!SWIG_IsOK(ecode5)) { | |
13527 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
13528 | } | |
13529 | arg5 = static_cast< long >(val5); | |
13530 | } | |
13531 | if (obj5) { | |
36ed4f51 | 13532 | { |
1bd55598 RD |
13533 | arg6 = wxString_in_helper(obj5); |
13534 | if (arg6 == NULL) SWIG_fail; | |
13535 | temp6 = true; | |
36ed4f51 | 13536 | } |
1bd55598 RD |
13537 | } |
13538 | { | |
13539 | if (!wxPyCheckForApp()) SWIG_fail; | |
13540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13541 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13542 | wxPyEndAllowThreads(__tstate); | |
13543 | if (PyErr_Occurred()) SWIG_fail; | |
13544 | } | |
13545 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
13546 | { | |
13547 | if (temp6) | |
13548 | delete arg6; | |
13549 | } | |
13550 | return resultobj; | |
13551 | fail: | |
13552 | { | |
13553 | if (temp6) | |
13554 | delete arg6; | |
13555 | } | |
13556 | return NULL; | |
d55e5bfc RD |
13557 | } |
13558 | ||
13559 | ||
1bd55598 RD |
13560 | SWIGINTERN PyObject *_wrap_new_PreVScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13561 | PyObject *resultobj = 0; | |
13562 | wxPyVScrolledWindow *result = 0 ; | |
13563 | ||
13564 | if (!SWIG_Python_UnpackTuple(args,"new_PreVScrolledWindow",0,0,0)) SWIG_fail; | |
13565 | { | |
13566 | if (!wxPyCheckForApp()) SWIG_fail; | |
13567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13568 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
13569 | wxPyEndAllowThreads(__tstate); | |
13570 | if (PyErr_Occurred()) SWIG_fail; | |
13571 | } | |
13572 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
13573 | return resultobj; | |
13574 | fail: | |
13575 | return NULL; | |
13576 | } | |
13577 | ||
13578 | ||
13579 | SWIGINTERN PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13580 | PyObject *resultobj = 0; | |
13581 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13582 | PyObject *arg2 = (PyObject *) 0 ; | |
13583 | PyObject *arg3 = (PyObject *) 0 ; | |
13584 | void *argp1 = 0 ; | |
13585 | int res1 = 0 ; | |
13586 | PyObject * obj0 = 0 ; | |
13587 | PyObject * obj1 = 0 ; | |
13588 | PyObject * obj2 = 0 ; | |
13589 | char * kwnames[] = { | |
13590 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13591 | }; | |
13592 | ||
13593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13595 | if (!SWIG_IsOK(res1)) { | |
13596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13597 | } | |
13598 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13599 | arg2 = obj1; | |
13600 | arg3 = obj2; | |
13601 | { | |
13602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13603 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13604 | wxPyEndAllowThreads(__tstate); | |
13605 | if (PyErr_Occurred()) SWIG_fail; | |
13606 | } | |
13607 | resultobj = SWIG_Py_Void(); | |
13608 | return resultobj; | |
13609 | fail: | |
13610 | return NULL; | |
13611 | } | |
13612 | ||
13613 | ||
13614 | SWIGINTERN PyObject *_wrap_VScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13615 | PyObject *resultobj = 0; | |
13616 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13617 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13618 | int arg3 = (int) wxID_ANY ; | |
13619 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13620 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13621 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13622 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13623 | long arg6 = (long) 0 ; | |
13624 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
13625 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13626 | bool result; | |
13627 | void *argp1 = 0 ; | |
13628 | int res1 = 0 ; | |
13629 | void *argp2 = 0 ; | |
13630 | int res2 = 0 ; | |
13631 | int val3 ; | |
13632 | int ecode3 = 0 ; | |
13633 | wxPoint temp4 ; | |
13634 | wxSize temp5 ; | |
13635 | long val6 ; | |
13636 | int ecode6 = 0 ; | |
13637 | bool temp7 = false ; | |
13638 | PyObject * obj0 = 0 ; | |
13639 | PyObject * obj1 = 0 ; | |
13640 | PyObject * obj2 = 0 ; | |
13641 | PyObject * obj3 = 0 ; | |
13642 | PyObject * obj4 = 0 ; | |
13643 | PyObject * obj5 = 0 ; | |
13644 | PyObject * obj6 = 0 ; | |
13645 | char * kwnames[] = { | |
13646 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13647 | }; | |
13648 | ||
13649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13651 | if (!SWIG_IsOK(res1)) { | |
13652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_Create" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13653 | } | |
13654 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13655 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13656 | if (!SWIG_IsOK(res2)) { | |
13657 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13658 | } | |
13659 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13660 | if (obj2) { | |
13661 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13662 | if (!SWIG_IsOK(ecode3)) { | |
13663 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13664 | } | |
13665 | arg3 = static_cast< int >(val3); | |
13666 | } | |
13667 | if (obj3) { | |
d55e5bfc | 13668 | { |
1bd55598 RD |
13669 | arg4 = &temp4; |
13670 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13671 | } |
1bd55598 RD |
13672 | } |
13673 | if (obj4) { | |
36ed4f51 | 13674 | { |
1bd55598 RD |
13675 | arg5 = &temp5; |
13676 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 13677 | } |
1bd55598 RD |
13678 | } |
13679 | if (obj5) { | |
13680 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
13681 | if (!SWIG_IsOK(ecode6)) { | |
13682 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
13683 | } | |
13684 | arg6 = static_cast< long >(val6); | |
13685 | } | |
13686 | if (obj6) { | |
d55e5bfc | 13687 | { |
1bd55598 RD |
13688 | arg7 = wxString_in_helper(obj6); |
13689 | if (arg7 == NULL) SWIG_fail; | |
13690 | temp7 = true; | |
d55e5bfc | 13691 | } |
1bd55598 RD |
13692 | } |
13693 | { | |
13694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13695 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13696 | wxPyEndAllowThreads(__tstate); | |
13697 | if (PyErr_Occurred()) SWIG_fail; | |
13698 | } | |
13699 | { | |
13700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13701 | } | |
13702 | { | |
13703 | if (temp7) | |
13704 | delete arg7; | |
13705 | } | |
13706 | return resultobj; | |
13707 | fail: | |
13708 | { | |
13709 | if (temp7) | |
13710 | delete arg7; | |
13711 | } | |
13712 | return NULL; | |
13713 | } | |
13714 | ||
13715 | ||
13716 | SWIGINTERN PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13717 | PyObject *resultobj = 0; | |
13718 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13719 | size_t arg2 ; | |
13720 | void *argp1 = 0 ; | |
13721 | int res1 = 0 ; | |
13722 | size_t val2 ; | |
13723 | int ecode2 = 0 ; | |
13724 | PyObject * obj0 = 0 ; | |
13725 | PyObject * obj1 = 0 ; | |
13726 | char * kwnames[] = { | |
13727 | (char *) "self",(char *) "count", NULL | |
13728 | }; | |
13729 | ||
13730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
13731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13732 | if (!SWIG_IsOK(res1)) { | |
13733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13734 | } | |
13735 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13736 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13737 | if (!SWIG_IsOK(ecode2)) { | |
13738 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "2"" of type '" "size_t""'"); | |
13739 | } | |
13740 | arg2 = static_cast< size_t >(val2); | |
13741 | { | |
13742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13743 | (arg1)->SetLineCount(arg2); | |
13744 | wxPyEndAllowThreads(__tstate); | |
13745 | if (PyErr_Occurred()) SWIG_fail; | |
13746 | } | |
13747 | resultobj = SWIG_Py_Void(); | |
13748 | return resultobj; | |
13749 | fail: | |
13750 | return NULL; | |
13751 | } | |
13752 | ||
13753 | ||
13754 | SWIGINTERN PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13755 | PyObject *resultobj = 0; | |
13756 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13757 | size_t arg2 ; | |
13758 | bool result; | |
13759 | void *argp1 = 0 ; | |
13760 | int res1 = 0 ; | |
13761 | size_t val2 ; | |
13762 | int ecode2 = 0 ; | |
13763 | PyObject * obj0 = 0 ; | |
13764 | PyObject * obj1 = 0 ; | |
13765 | char * kwnames[] = { | |
13766 | (char *) "self",(char *) "line", NULL | |
13767 | }; | |
13768 | ||
13769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13771 | if (!SWIG_IsOK(res1)) { | |
13772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13773 | } | |
13774 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13775 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13776 | if (!SWIG_IsOK(ecode2)) { | |
13777 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13778 | } | |
13779 | arg2 = static_cast< size_t >(val2); | |
13780 | { | |
13781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13782 | result = (bool)(arg1)->ScrollToLine(arg2); | |
13783 | wxPyEndAllowThreads(__tstate); | |
13784 | if (PyErr_Occurred()) SWIG_fail; | |
13785 | } | |
13786 | { | |
13787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13788 | } | |
13789 | return resultobj; | |
13790 | fail: | |
13791 | return NULL; | |
13792 | } | |
13793 | ||
13794 | ||
13795 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13796 | PyObject *resultobj = 0; | |
13797 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13798 | size_t arg2 ; | |
13799 | void *argp1 = 0 ; | |
13800 | int res1 = 0 ; | |
13801 | size_t val2 ; | |
13802 | int ecode2 = 0 ; | |
13803 | PyObject * obj0 = 0 ; | |
13804 | PyObject * obj1 = 0 ; | |
13805 | char * kwnames[] = { | |
13806 | (char *) "self",(char *) "line", NULL | |
13807 | }; | |
13808 | ||
13809 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13810 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13811 | if (!SWIG_IsOK(res1)) { | |
13812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13813 | } | |
13814 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13815 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13816 | if (!SWIG_IsOK(ecode2)) { | |
13817 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13818 | } | |
13819 | arg2 = static_cast< size_t >(val2); | |
13820 | { | |
13821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13822 | (arg1)->RefreshLine(arg2); | |
13823 | wxPyEndAllowThreads(__tstate); | |
13824 | if (PyErr_Occurred()) SWIG_fail; | |
13825 | } | |
13826 | resultobj = SWIG_Py_Void(); | |
13827 | return resultobj; | |
13828 | fail: | |
13829 | return NULL; | |
13830 | } | |
13831 | ||
13832 | ||
13833 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13834 | PyObject *resultobj = 0; | |
13835 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13836 | size_t arg2 ; | |
13837 | size_t arg3 ; | |
13838 | void *argp1 = 0 ; | |
13839 | int res1 = 0 ; | |
13840 | size_t val2 ; | |
13841 | int ecode2 = 0 ; | |
13842 | size_t val3 ; | |
13843 | int ecode3 = 0 ; | |
13844 | PyObject * obj0 = 0 ; | |
13845 | PyObject * obj1 = 0 ; | |
13846 | PyObject * obj2 = 0 ; | |
13847 | char * kwnames[] = { | |
2131d850 | 13848 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
13849 | }; |
13850 | ||
13851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13852 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13853 | if (!SWIG_IsOK(res1)) { | |
13854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13855 | } | |
13856 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13857 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13858 | if (!SWIG_IsOK(ecode2)) { | |
13859 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "2"" of type '" "size_t""'"); | |
13860 | } | |
13861 | arg2 = static_cast< size_t >(val2); | |
13862 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
13863 | if (!SWIG_IsOK(ecode3)) { | |
13864 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "3"" of type '" "size_t""'"); | |
13865 | } | |
13866 | arg3 = static_cast< size_t >(val3); | |
13867 | { | |
13868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13869 | (arg1)->RefreshLines(arg2,arg3); | |
13870 | wxPyEndAllowThreads(__tstate); | |
13871 | if (PyErr_Occurred()) SWIG_fail; | |
13872 | } | |
13873 | resultobj = SWIG_Py_Void(); | |
13874 | return resultobj; | |
13875 | fail: | |
13876 | return NULL; | |
13877 | } | |
13878 | ||
13879 | ||
13880 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13881 | PyObject *resultobj = 0; | |
13882 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13883 | int arg2 ; | |
13884 | int arg3 ; | |
13885 | int result; | |
13886 | void *argp1 = 0 ; | |
13887 | int res1 = 0 ; | |
13888 | int val2 ; | |
13889 | int ecode2 = 0 ; | |
13890 | int val3 ; | |
13891 | int ecode3 = 0 ; | |
13892 | PyObject * obj0 = 0 ; | |
13893 | PyObject * obj1 = 0 ; | |
13894 | PyObject * obj2 = 0 ; | |
13895 | char * kwnames[] = { | |
13896 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13897 | }; | |
13898 | ||
13899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13901 | if (!SWIG_IsOK(res1)) { | |
13902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13903 | } | |
13904 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13905 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13906 | if (!SWIG_IsOK(ecode2)) { | |
13907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "2"" of type '" "int""'"); | |
13908 | } | |
13909 | arg2 = static_cast< int >(val2); | |
13910 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13911 | if (!SWIG_IsOK(ecode3)) { | |
13912 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "3"" of type '" "int""'"); | |
13913 | } | |
13914 | arg3 = static_cast< int >(val3); | |
13915 | { | |
13916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13917 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
13918 | wxPyEndAllowThreads(__tstate); | |
13919 | if (PyErr_Occurred()) SWIG_fail; | |
13920 | } | |
13921 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13922 | return resultobj; | |
13923 | fail: | |
13924 | return NULL; | |
13925 | } | |
13926 | ||
13927 | ||
13928 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13929 | PyObject *resultobj = 0; | |
13930 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13931 | wxPoint *arg2 = 0 ; | |
13932 | int result; | |
13933 | void *argp1 = 0 ; | |
13934 | int res1 = 0 ; | |
13935 | wxPoint temp2 ; | |
13936 | PyObject * obj0 = 0 ; | |
13937 | PyObject * obj1 = 0 ; | |
13938 | char * kwnames[] = { | |
13939 | (char *) "self",(char *) "pt", NULL | |
13940 | }; | |
13941 | ||
13942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13944 | if (!SWIG_IsOK(res1)) { | |
13945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTest" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13946 | } | |
13947 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13948 | { | |
13949 | arg2 = &temp2; | |
13950 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13951 | } | |
13952 | { | |
13953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13954 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
13955 | wxPyEndAllowThreads(__tstate); | |
13956 | if (PyErr_Occurred()) SWIG_fail; | |
13957 | } | |
13958 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13959 | return resultobj; | |
13960 | fail: | |
13961 | return NULL; | |
d55e5bfc RD |
13962 | } |
13963 | ||
13964 | ||
1bd55598 RD |
13965 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13966 | PyObject *resultobj = 0; | |
13967 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13968 | void *argp1 = 0 ; | |
13969 | int res1 = 0 ; | |
13970 | PyObject *swig_obj[1] ; | |
13971 | ||
13972 | if (!args) SWIG_fail; | |
13973 | swig_obj[0] = args; | |
13974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13975 | if (!SWIG_IsOK(res1)) { | |
13976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshAll" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13977 | } | |
13978 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13979 | { | |
13980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13981 | (arg1)->RefreshAll(); | |
13982 | wxPyEndAllowThreads(__tstate); | |
13983 | if (PyErr_Occurred()) SWIG_fail; | |
13984 | } | |
13985 | resultobj = SWIG_Py_Void(); | |
13986 | return resultobj; | |
13987 | fail: | |
13988 | return NULL; | |
d55e5bfc RD |
13989 | } |
13990 | ||
13991 | ||
1bd55598 RD |
13992 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13993 | PyObject *resultobj = 0; | |
13994 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13995 | size_t result; | |
13996 | void *argp1 = 0 ; | |
13997 | int res1 = 0 ; | |
13998 | PyObject *swig_obj[1] ; | |
13999 | ||
14000 | if (!args) SWIG_fail; | |
14001 | swig_obj[0] = args; | |
14002 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14003 | if (!SWIG_IsOK(res1)) { | |
14004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14005 | } | |
14006 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14007 | { | |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
14010 | wxPyEndAllowThreads(__tstate); | |
14011 | if (PyErr_Occurred()) SWIG_fail; | |
14012 | } | |
14013 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14014 | return resultobj; | |
14015 | fail: | |
14016 | return NULL; | |
d55e5bfc RD |
14017 | } |
14018 | ||
14019 | ||
1bd55598 RD |
14020 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14021 | PyObject *resultobj = 0; | |
14022 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14023 | size_t result; | |
14024 | void *argp1 = 0 ; | |
14025 | int res1 = 0 ; | |
14026 | PyObject *swig_obj[1] ; | |
14027 | ||
14028 | if (!args) SWIG_fail; | |
14029 | swig_obj[0] = args; | |
14030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14031 | if (!SWIG_IsOK(res1)) { | |
14032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleBegin" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14033 | } | |
14034 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14035 | { | |
14036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14037 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleBegin(); | |
14038 | wxPyEndAllowThreads(__tstate); | |
14039 | if (PyErr_Occurred()) SWIG_fail; | |
14040 | } | |
14041 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14042 | return resultobj; | |
14043 | fail: | |
14044 | return NULL; | |
d55e5bfc RD |
14045 | } |
14046 | ||
14047 | ||
1bd55598 RD |
14048 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14049 | PyObject *resultobj = 0; | |
14050 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14051 | size_t result; | |
14052 | void *argp1 = 0 ; | |
14053 | int res1 = 0 ; | |
14054 | PyObject *swig_obj[1] ; | |
14055 | ||
14056 | if (!args) SWIG_fail; | |
14057 | swig_obj[0] = args; | |
14058 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14059 | if (!SWIG_IsOK(res1)) { | |
14060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleEnd" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14061 | } | |
14062 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14063 | { | |
14064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14065 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleEnd(); | |
14066 | wxPyEndAllowThreads(__tstate); | |
14067 | if (PyErr_Occurred()) SWIG_fail; | |
14068 | } | |
14069 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14070 | return resultobj; | |
14071 | fail: | |
14072 | return NULL; | |
14073 | } | |
14074 | ||
14075 | ||
14076 | SWIGINTERN PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14077 | PyObject *resultobj = 0; | |
14078 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14079 | size_t arg2 ; | |
14080 | bool result; | |
14081 | void *argp1 = 0 ; | |
14082 | int res1 = 0 ; | |
14083 | size_t val2 ; | |
14084 | int ecode2 = 0 ; | |
14085 | PyObject * obj0 = 0 ; | |
14086 | PyObject * obj1 = 0 ; | |
14087 | char * kwnames[] = { | |
14088 | (char *) "self",(char *) "line", NULL | |
14089 | }; | |
14090 | ||
14091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
14092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14093 | if (!SWIG_IsOK(res1)) { | |
14094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14095 | } | |
14096 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14097 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14098 | if (!SWIG_IsOK(ecode2)) { | |
14099 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "2"" of type '" "size_t""'"); | |
14100 | } | |
14101 | arg2 = static_cast< size_t >(val2); | |
14102 | { | |
14103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14104 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
14105 | wxPyEndAllowThreads(__tstate); | |
14106 | if (PyErr_Occurred()) SWIG_fail; | |
14107 | } | |
14108 | { | |
14109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14110 | } | |
14111 | return resultobj; | |
14112 | fail: | |
14113 | return NULL; | |
d55e5bfc RD |
14114 | } |
14115 | ||
14116 | ||
1bd55598 RD |
14117 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14118 | PyObject *resultobj = 0; | |
14119 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14120 | size_t result; | |
14121 | void *argp1 = 0 ; | |
14122 | int res1 = 0 ; | |
14123 | PyObject *swig_obj[1] ; | |
14124 | ||
14125 | if (!args) SWIG_fail; | |
14126 | swig_obj[0] = args; | |
14127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14128 | if (!SWIG_IsOK(res1)) { | |
14129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetFirstVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14130 | } | |
14131 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14132 | { | |
14133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14134 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
14135 | wxPyEndAllowThreads(__tstate); | |
14136 | if (PyErr_Occurred()) SWIG_fail; | |
14137 | } | |
14138 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14139 | return resultobj; | |
14140 | fail: | |
14141 | return NULL; | |
d55e5bfc RD |
14142 | } |
14143 | ||
14144 | ||
1bd55598 RD |
14145 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14146 | PyObject *resultobj = 0; | |
14147 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14148 | size_t result; | |
14149 | void *argp1 = 0 ; | |
14150 | int res1 = 0 ; | |
14151 | PyObject *swig_obj[1] ; | |
14152 | ||
14153 | if (!args) SWIG_fail; | |
14154 | swig_obj[0] = args; | |
14155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14156 | if (!SWIG_IsOK(res1)) { | |
14157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLastVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14158 | } | |
14159 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14160 | { | |
14161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14162 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
14163 | wxPyEndAllowThreads(__tstate); | |
14164 | if (PyErr_Occurred()) SWIG_fail; | |
14165 | } | |
14166 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14167 | return resultobj; | |
14168 | fail: | |
14169 | return NULL; | |
14170 | } | |
14171 | ||
14172 | ||
14173 | SWIGINTERN PyObject *_wrap_VScrolledWindow_FindFirstFromBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14174 | PyObject *resultobj = 0; | |
14175 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14176 | size_t arg2 ; | |
14177 | bool arg3 = (bool) false ; | |
14178 | size_t result; | |
14179 | void *argp1 = 0 ; | |
14180 | int res1 = 0 ; | |
14181 | size_t val2 ; | |
14182 | int ecode2 = 0 ; | |
14183 | bool val3 ; | |
14184 | int ecode3 = 0 ; | |
14185 | PyObject * obj0 = 0 ; | |
14186 | PyObject * obj1 = 0 ; | |
14187 | PyObject * obj2 = 0 ; | |
14188 | char * kwnames[] = { | |
14189 | (char *) "self",(char *) "lineLast",(char *) "fullyVisible", NULL | |
14190 | }; | |
14191 | ||
14192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VScrolledWindow_FindFirstFromBottom",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14194 | if (!SWIG_IsOK(res1)) { | |
14195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14196 | } | |
14197 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14198 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14199 | if (!SWIG_IsOK(ecode2)) { | |
14200 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "2"" of type '" "size_t""'"); | |
14201 | } | |
14202 | arg2 = static_cast< size_t >(val2); | |
14203 | if (obj2) { | |
14204 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14205 | if (!SWIG_IsOK(ecode3)) { | |
14206 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "3"" of type '" "bool""'"); | |
14207 | } | |
14208 | arg3 = static_cast< bool >(val3); | |
14209 | } | |
14210 | { | |
14211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14212 | result = (size_t)(arg1)->FindFirstFromBottom(arg2,arg3); | |
14213 | wxPyEndAllowThreads(__tstate); | |
14214 | if (PyErr_Occurred()) SWIG_fail; | |
14215 | } | |
14216 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14217 | return resultobj; | |
14218 | fail: | |
14219 | return NULL; | |
14220 | } | |
14221 | ||
14222 | ||
14223 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLinesHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14224 | PyObject *resultobj = 0; | |
14225 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14226 | size_t arg2 ; | |
14227 | size_t arg3 ; | |
14228 | int result; | |
14229 | void *argp1 = 0 ; | |
14230 | int res1 = 0 ; | |
14231 | size_t val2 ; | |
14232 | int ecode2 = 0 ; | |
14233 | size_t val3 ; | |
14234 | int ecode3 = 0 ; | |
14235 | PyObject * obj0 = 0 ; | |
14236 | PyObject * obj1 = 0 ; | |
14237 | PyObject * obj2 = 0 ; | |
14238 | char * kwnames[] = { | |
14239 | (char *) "self",(char *) "lineMin",(char *) "lineMax", NULL | |
14240 | }; | |
14241 | ||
14242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_GetLinesHeight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14244 | if (!SWIG_IsOK(res1)) { | |
14245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14246 | } | |
14247 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14248 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14249 | if (!SWIG_IsOK(ecode2)) { | |
14250 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "2"" of type '" "size_t""'"); | |
14251 | } | |
14252 | arg2 = static_cast< size_t >(val2); | |
14253 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14254 | if (!SWIG_IsOK(ecode3)) { | |
14255 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "3"" of type '" "size_t""'"); | |
14256 | } | |
14257 | arg3 = static_cast< size_t >(val3); | |
14258 | { | |
14259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14260 | result = (int)((wxPyVScrolledWindow const *)arg1)->GetLinesHeight(arg2,arg3); | |
14261 | wxPyEndAllowThreads(__tstate); | |
14262 | if (PyErr_Occurred()) SWIG_fail; | |
14263 | } | |
14264 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14265 | return resultobj; | |
14266 | fail: | |
14267 | return NULL; | |
d55e5bfc RD |
14268 | } |
14269 | ||
14270 | ||
1bd55598 RD |
14271 | SWIGINTERN PyObject *VScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14272 | PyObject *obj; | |
14273 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14274 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVScrolledWindow, SWIG_NewClientData(obj)); | |
14275 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14276 | } |
14277 | ||
1bd55598 RD |
14278 | SWIGINTERN PyObject *VScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14279 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14280 | } |
14281 | ||
1bd55598 RD |
14282 | SWIGINTERN int VListBoxNameStr_set(PyObject *) { |
14283 | SWIG_Error(SWIG_AttributeError,"Variable VListBoxNameStr is read-only."); | |
14284 | return 1; | |
d55e5bfc RD |
14285 | } |
14286 | ||
14287 | ||
1bd55598 RD |
14288 | SWIGINTERN PyObject *VListBoxNameStr_get(void) { |
14289 | PyObject *pyobj = 0; | |
14290 | ||
14291 | { | |
14292 | #if wxUSE_UNICODE | |
14293 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14294 | #else | |
14295 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14296 | #endif | |
14297 | } | |
14298 | return pyobj; | |
14299 | } | |
14300 | ||
14301 | ||
14302 | SWIGINTERN PyObject *_wrap_new_VListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14303 | PyObject *resultobj = 0; | |
14304 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14305 | int arg2 = (int) wxID_ANY ; | |
14306 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14307 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14308 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14309 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14310 | long arg5 = (long) 0 ; | |
14311 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
14312 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14313 | wxPyVListBox *result = 0 ; | |
14314 | void *argp1 = 0 ; | |
14315 | int res1 = 0 ; | |
14316 | int val2 ; | |
14317 | int ecode2 = 0 ; | |
14318 | wxPoint temp3 ; | |
14319 | wxSize temp4 ; | |
14320 | long val5 ; | |
14321 | int ecode5 = 0 ; | |
14322 | bool temp6 = false ; | |
14323 | PyObject * obj0 = 0 ; | |
14324 | PyObject * obj1 = 0 ; | |
14325 | PyObject * obj2 = 0 ; | |
14326 | PyObject * obj3 = 0 ; | |
14327 | PyObject * obj4 = 0 ; | |
14328 | PyObject * obj5 = 0 ; | |
14329 | char * kwnames[] = { | |
14330 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14331 | }; | |
14332 | ||
14333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14335 | if (!SWIG_IsOK(res1)) { | |
14336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14337 | } | |
14338 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14339 | if (obj1) { | |
14340 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14341 | if (!SWIG_IsOK(ecode2)) { | |
14342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VListBox" "', expected argument " "2"" of type '" "int""'"); | |
14343 | } | |
14344 | arg2 = static_cast< int >(val2); | |
14345 | } | |
14346 | if (obj2) { | |
36ed4f51 | 14347 | { |
1bd55598 RD |
14348 | arg3 = &temp3; |
14349 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 14350 | } |
1bd55598 RD |
14351 | } |
14352 | if (obj3) { | |
d55e5bfc | 14353 | { |
1bd55598 RD |
14354 | arg4 = &temp4; |
14355 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14356 | } |
1bd55598 RD |
14357 | } |
14358 | if (obj4) { | |
14359 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14360 | if (!SWIG_IsOK(ecode5)) { | |
14361 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VListBox" "', expected argument " "5"" of type '" "long""'"); | |
14362 | } | |
14363 | arg5 = static_cast< long >(val5); | |
14364 | } | |
14365 | if (obj5) { | |
d55e5bfc | 14366 | { |
1bd55598 RD |
14367 | arg6 = wxString_in_helper(obj5); |
14368 | if (arg6 == NULL) SWIG_fail; | |
14369 | temp6 = true; | |
d55e5bfc | 14370 | } |
1bd55598 RD |
14371 | } |
14372 | { | |
14373 | if (!wxPyCheckForApp()) SWIG_fail; | |
14374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14375 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14376 | wxPyEndAllowThreads(__tstate); | |
14377 | if (PyErr_Occurred()) SWIG_fail; | |
14378 | } | |
14379 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_NEW | 0 ); | |
14380 | { | |
14381 | if (temp6) | |
14382 | delete arg6; | |
14383 | } | |
14384 | return resultobj; | |
14385 | fail: | |
14386 | { | |
14387 | if (temp6) | |
14388 | delete arg6; | |
14389 | } | |
14390 | return NULL; | |
d55e5bfc RD |
14391 | } |
14392 | ||
14393 | ||
1bd55598 RD |
14394 | SWIGINTERN PyObject *_wrap_new_PreVListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14395 | PyObject *resultobj = 0; | |
14396 | wxPyVListBox *result = 0 ; | |
14397 | ||
14398 | if (!SWIG_Python_UnpackTuple(args,"new_PreVListBox",0,0,0)) SWIG_fail; | |
14399 | { | |
14400 | if (!wxPyCheckForApp()) SWIG_fail; | |
14401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14402 | result = (wxPyVListBox *)new wxPyVListBox(); | |
14403 | wxPyEndAllowThreads(__tstate); | |
14404 | if (PyErr_Occurred()) SWIG_fail; | |
14405 | } | |
14406 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_OWN | 0 ); | |
14407 | return resultobj; | |
14408 | fail: | |
14409 | return NULL; | |
14410 | } | |
14411 | ||
14412 | ||
14413 | SWIGINTERN PyObject *_wrap_VListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14414 | PyObject *resultobj = 0; | |
14415 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14416 | PyObject *arg2 = (PyObject *) 0 ; | |
14417 | PyObject *arg3 = (PyObject *) 0 ; | |
14418 | void *argp1 = 0 ; | |
14419 | int res1 = 0 ; | |
14420 | PyObject * obj0 = 0 ; | |
14421 | PyObject * obj1 = 0 ; | |
14422 | PyObject * obj2 = 0 ; | |
14423 | char * kwnames[] = { | |
14424 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14425 | }; | |
14426 | ||
14427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14429 | if (!SWIG_IsOK(res1)) { | |
14430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14431 | } | |
14432 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14433 | arg2 = obj1; | |
14434 | arg3 = obj2; | |
14435 | { | |
14436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14437 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14438 | wxPyEndAllowThreads(__tstate); | |
14439 | if (PyErr_Occurred()) SWIG_fail; | |
14440 | } | |
14441 | resultobj = SWIG_Py_Void(); | |
14442 | return resultobj; | |
14443 | fail: | |
14444 | return NULL; | |
14445 | } | |
14446 | ||
14447 | ||
14448 | SWIGINTERN PyObject *_wrap_VListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14449 | PyObject *resultobj = 0; | |
14450 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14451 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14452 | int arg3 = (int) wxID_ANY ; | |
14453 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14454 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14455 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14456 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14457 | long arg6 = (long) 0 ; | |
14458 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
14459 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14460 | bool result; | |
14461 | void *argp1 = 0 ; | |
14462 | int res1 = 0 ; | |
14463 | void *argp2 = 0 ; | |
14464 | int res2 = 0 ; | |
14465 | int val3 ; | |
14466 | int ecode3 = 0 ; | |
14467 | wxPoint temp4 ; | |
14468 | wxSize temp5 ; | |
14469 | long val6 ; | |
14470 | int ecode6 = 0 ; | |
14471 | bool temp7 = false ; | |
14472 | PyObject * obj0 = 0 ; | |
14473 | PyObject * obj1 = 0 ; | |
14474 | PyObject * obj2 = 0 ; | |
14475 | PyObject * obj3 = 0 ; | |
14476 | PyObject * obj4 = 0 ; | |
14477 | PyObject * obj5 = 0 ; | |
14478 | PyObject * obj6 = 0 ; | |
14479 | char * kwnames[] = { | |
14480 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14481 | }; | |
14482 | ||
14483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14485 | if (!SWIG_IsOK(res1)) { | |
14486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Create" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14487 | } | |
14488 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14489 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14490 | if (!SWIG_IsOK(res2)) { | |
14491 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14492 | } | |
14493 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14494 | if (obj2) { | |
14495 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14496 | if (!SWIG_IsOK(ecode3)) { | |
14497 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
14498 | } | |
14499 | arg3 = static_cast< int >(val3); | |
14500 | } | |
14501 | if (obj3) { | |
36ed4f51 | 14502 | { |
1bd55598 RD |
14503 | arg4 = &temp4; |
14504 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 14505 | } |
1bd55598 RD |
14506 | } |
14507 | if (obj4) { | |
36ed4f51 | 14508 | { |
1bd55598 RD |
14509 | arg5 = &temp5; |
14510 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 14511 | } |
1bd55598 RD |
14512 | } |
14513 | if (obj5) { | |
14514 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14515 | if (!SWIG_IsOK(ecode6)) { | |
14516 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
14517 | } | |
14518 | arg6 = static_cast< long >(val6); | |
14519 | } | |
14520 | if (obj6) { | |
d55e5bfc | 14521 | { |
1bd55598 RD |
14522 | arg7 = wxString_in_helper(obj6); |
14523 | if (arg7 == NULL) SWIG_fail; | |
14524 | temp7 = true; | |
14525 | } | |
14526 | } | |
14527 | { | |
14528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14529 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14530 | wxPyEndAllowThreads(__tstate); | |
14531 | if (PyErr_Occurred()) SWIG_fail; | |
14532 | } | |
14533 | { | |
14534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14535 | } | |
14536 | { | |
14537 | if (temp7) | |
14538 | delete arg7; | |
14539 | } | |
14540 | return resultobj; | |
14541 | fail: | |
14542 | { | |
14543 | if (temp7) | |
14544 | delete arg7; | |
14545 | } | |
14546 | return NULL; | |
d55e5bfc RD |
14547 | } |
14548 | ||
14549 | ||
1bd55598 RD |
14550 | SWIGINTERN PyObject *_wrap_VListBox_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14551 | PyObject *resultobj = 0; | |
14552 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14553 | size_t result; | |
14554 | void *argp1 = 0 ; | |
14555 | int res1 = 0 ; | |
14556 | PyObject *swig_obj[1] ; | |
14557 | ||
14558 | if (!args) SWIG_fail; | |
14559 | swig_obj[0] = args; | |
14560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14561 | if (!SWIG_IsOK(res1)) { | |
14562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14563 | } | |
14564 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14565 | { | |
14566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14567 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
14568 | wxPyEndAllowThreads(__tstate); | |
14569 | if (PyErr_Occurred()) SWIG_fail; | |
14570 | } | |
14571 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14572 | return resultobj; | |
14573 | fail: | |
14574 | return NULL; | |
d55e5bfc RD |
14575 | } |
14576 | ||
14577 | ||
1bd55598 RD |
14578 | SWIGINTERN PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14579 | PyObject *resultobj = 0; | |
14580 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14581 | bool result; | |
14582 | void *argp1 = 0 ; | |
14583 | int res1 = 0 ; | |
14584 | PyObject *swig_obj[1] ; | |
14585 | ||
14586 | if (!args) SWIG_fail; | |
14587 | swig_obj[0] = args; | |
14588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14589 | if (!SWIG_IsOK(res1)) { | |
14590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_HasMultipleSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14591 | } | |
14592 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14593 | { | |
14594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14595 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
14596 | wxPyEndAllowThreads(__tstate); | |
14597 | if (PyErr_Occurred()) SWIG_fail; | |
14598 | } | |
14599 | { | |
14600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14601 | } | |
14602 | return resultobj; | |
14603 | fail: | |
14604 | return NULL; | |
d55e5bfc RD |
14605 | } |
14606 | ||
14607 | ||
1bd55598 RD |
14608 | SWIGINTERN PyObject *_wrap_VListBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14609 | PyObject *resultobj = 0; | |
14610 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14611 | int result; | |
14612 | void *argp1 = 0 ; | |
14613 | int res1 = 0 ; | |
14614 | PyObject *swig_obj[1] ; | |
14615 | ||
14616 | if (!args) SWIG_fail; | |
14617 | swig_obj[0] = args; | |
14618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14619 | if (!SWIG_IsOK(res1)) { | |
14620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14621 | } | |
14622 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14623 | { | |
14624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14625 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
14626 | wxPyEndAllowThreads(__tstate); | |
14627 | if (PyErr_Occurred()) SWIG_fail; | |
14628 | } | |
14629 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14630 | return resultobj; | |
14631 | fail: | |
14632 | return NULL; | |
14633 | } | |
14634 | ||
14635 | ||
14636 | SWIGINTERN PyObject *_wrap_VListBox_IsCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14637 | PyObject *resultobj = 0; | |
14638 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14639 | size_t arg2 ; | |
14640 | bool result; | |
14641 | void *argp1 = 0 ; | |
14642 | int res1 = 0 ; | |
14643 | size_t val2 ; | |
14644 | int ecode2 = 0 ; | |
14645 | PyObject * obj0 = 0 ; | |
14646 | PyObject * obj1 = 0 ; | |
14647 | char * kwnames[] = { | |
14648 | (char *) "self",(char *) "item", NULL | |
14649 | }; | |
14650 | ||
14651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14653 | if (!SWIG_IsOK(res1)) { | |
14654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsCurrent" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14655 | } | |
14656 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14657 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14658 | if (!SWIG_IsOK(ecode2)) { | |
14659 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsCurrent" "', expected argument " "2"" of type '" "size_t""'"); | |
14660 | } | |
14661 | arg2 = static_cast< size_t >(val2); | |
14662 | { | |
14663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14664 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
14665 | wxPyEndAllowThreads(__tstate); | |
14666 | if (PyErr_Occurred()) SWIG_fail; | |
14667 | } | |
14668 | { | |
14669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14670 | } | |
14671 | return resultobj; | |
14672 | fail: | |
14673 | return NULL; | |
14674 | } | |
14675 | ||
14676 | ||
14677 | SWIGINTERN PyObject *_wrap_VListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14678 | PyObject *resultobj = 0; | |
14679 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14680 | size_t arg2 ; | |
14681 | bool result; | |
14682 | void *argp1 = 0 ; | |
14683 | int res1 = 0 ; | |
14684 | size_t val2 ; | |
14685 | int ecode2 = 0 ; | |
14686 | PyObject * obj0 = 0 ; | |
14687 | PyObject * obj1 = 0 ; | |
14688 | char * kwnames[] = { | |
14689 | (char *) "self",(char *) "item", NULL | |
14690 | }; | |
14691 | ||
14692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14694 | if (!SWIG_IsOK(res1)) { | |
14695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsSelected" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14696 | } | |
14697 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14698 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14699 | if (!SWIG_IsOK(ecode2)) { | |
14700 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsSelected" "', expected argument " "2"" of type '" "size_t""'"); | |
14701 | } | |
14702 | arg2 = static_cast< size_t >(val2); | |
14703 | { | |
14704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14705 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
14706 | wxPyEndAllowThreads(__tstate); | |
14707 | if (PyErr_Occurred()) SWIG_fail; | |
14708 | } | |
14709 | { | |
14710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14711 | } | |
14712 | return resultobj; | |
14713 | fail: | |
14714 | return NULL; | |
d55e5bfc RD |
14715 | } |
14716 | ||
14717 | ||
1bd55598 RD |
14718 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectedCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14719 | PyObject *resultobj = 0; | |
14720 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14721 | size_t result; | |
14722 | void *argp1 = 0 ; | |
14723 | int res1 = 0 ; | |
14724 | PyObject *swig_obj[1] ; | |
14725 | ||
14726 | if (!args) SWIG_fail; | |
14727 | swig_obj[0] = args; | |
14728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14729 | if (!SWIG_IsOK(res1)) { | |
14730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectedCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14731 | } | |
14732 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14733 | { | |
14734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14735 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
14736 | wxPyEndAllowThreads(__tstate); | |
14737 | if (PyErr_Occurred()) SWIG_fail; | |
14738 | } | |
14739 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14740 | return resultobj; | |
14741 | fail: | |
14742 | return NULL; | |
d55e5bfc RD |
14743 | } |
14744 | ||
14745 | ||
1bd55598 RD |
14746 | SWIGINTERN PyObject *_wrap_VListBox_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14747 | PyObject *resultobj = 0; | |
14748 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14749 | PyObject *result = 0 ; | |
14750 | void *argp1 = 0 ; | |
14751 | int res1 = 0 ; | |
14752 | PyObject *swig_obj[1] ; | |
14753 | ||
14754 | if (!args) SWIG_fail; | |
14755 | swig_obj[0] = args; | |
14756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14757 | if (!SWIG_IsOK(res1)) { | |
14758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetFirstSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14759 | } | |
14760 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14761 | { | |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14763 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); | |
14764 | wxPyEndAllowThreads(__tstate); | |
14765 | if (PyErr_Occurred()) SWIG_fail; | |
14766 | } | |
14767 | resultobj = result; | |
14768 | return resultobj; | |
14769 | fail: | |
14770 | return NULL; | |
14771 | } | |
14772 | ||
14773 | ||
14774 | SWIGINTERN PyObject *_wrap_VListBox_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14775 | PyObject *resultobj = 0; | |
14776 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14777 | unsigned long arg2 ; | |
14778 | PyObject *result = 0 ; | |
14779 | void *argp1 = 0 ; | |
14780 | int res1 = 0 ; | |
14781 | unsigned long val2 ; | |
14782 | int ecode2 = 0 ; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | PyObject * obj1 = 0 ; | |
14785 | char * kwnames[] = { | |
14786 | (char *) "self",(char *) "cookie", NULL | |
14787 | }; | |
14788 | ||
14789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14791 | if (!SWIG_IsOK(res1)) { | |
14792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetNextSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14793 | } | |
14794 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14795 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
14796 | if (!SWIG_IsOK(ecode2)) { | |
14797 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_GetNextSelected" "', expected argument " "2"" of type '" "unsigned long""'"); | |
14798 | } | |
14799 | arg2 = static_cast< unsigned long >(val2); | |
14800 | { | |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14802 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); | |
14803 | wxPyEndAllowThreads(__tstate); | |
14804 | if (PyErr_Occurred()) SWIG_fail; | |
14805 | } | |
14806 | resultobj = result; | |
14807 | return resultobj; | |
14808 | fail: | |
14809 | return NULL; | |
d55e5bfc RD |
14810 | } |
14811 | ||
14812 | ||
1bd55598 RD |
14813 | SWIGINTERN PyObject *_wrap_VListBox_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14814 | PyObject *resultobj = 0; | |
14815 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14816 | wxPoint result; | |
14817 | void *argp1 = 0 ; | |
14818 | int res1 = 0 ; | |
14819 | PyObject *swig_obj[1] ; | |
14820 | ||
14821 | if (!args) SWIG_fail; | |
14822 | swig_obj[0] = args; | |
14823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14824 | if (!SWIG_IsOK(res1)) { | |
14825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetMargins" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14826 | } | |
14827 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14828 | { | |
14829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14830 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
14831 | wxPyEndAllowThreads(__tstate); | |
14832 | if (PyErr_Occurred()) SWIG_fail; | |
14833 | } | |
14834 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
14835 | return resultobj; | |
14836 | fail: | |
14837 | return NULL; | |
d55e5bfc RD |
14838 | } |
14839 | ||
14840 | ||
1bd55598 RD |
14841 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14842 | PyObject *resultobj = 0; | |
14843 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14844 | wxColour *result = 0 ; | |
14845 | void *argp1 = 0 ; | |
14846 | int res1 = 0 ; | |
14847 | PyObject *swig_obj[1] ; | |
14848 | ||
14849 | if (!args) SWIG_fail; | |
14850 | swig_obj[0] = args; | |
14851 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14852 | if (!SWIG_IsOK(res1)) { | |
14853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14854 | } | |
14855 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14856 | { | |
14857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14858 | { |
1bd55598 RD |
14859 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); |
14860 | result = (wxColour *) &_result_ref; | |
36ed4f51 | 14861 | } |
1bd55598 RD |
14862 | wxPyEndAllowThreads(__tstate); |
14863 | if (PyErr_Occurred()) SWIG_fail; | |
14864 | } | |
14865 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
14866 | return resultobj; | |
14867 | fail: | |
14868 | return NULL; | |
14869 | } | |
14870 | ||
14871 | ||
14872 | SWIGINTERN PyObject *_wrap_VListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14873 | PyObject *resultobj = 0; | |
14874 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14875 | size_t arg2 ; | |
14876 | void *argp1 = 0 ; | |
14877 | int res1 = 0 ; | |
14878 | size_t val2 ; | |
14879 | int ecode2 = 0 ; | |
14880 | PyObject * obj0 = 0 ; | |
14881 | PyObject * obj1 = 0 ; | |
14882 | char * kwnames[] = { | |
14883 | (char *) "self",(char *) "count", NULL | |
14884 | }; | |
14885 | ||
14886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
14887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14888 | if (!SWIG_IsOK(res1)) { | |
14889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14890 | } | |
14891 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14892 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14893 | if (!SWIG_IsOK(ecode2)) { | |
14894 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
14895 | } | |
14896 | arg2 = static_cast< size_t >(val2); | |
14897 | { | |
14898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14899 | (arg1)->SetItemCount(arg2); | |
14900 | wxPyEndAllowThreads(__tstate); | |
14901 | if (PyErr_Occurred()) SWIG_fail; | |
14902 | } | |
14903 | resultobj = SWIG_Py_Void(); | |
14904 | return resultobj; | |
14905 | fail: | |
14906 | return NULL; | |
d55e5bfc RD |
14907 | } |
14908 | ||
14909 | ||
1bd55598 RD |
14910 | SWIGINTERN PyObject *_wrap_VListBox_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14911 | PyObject *resultobj = 0; | |
14912 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14913 | void *argp1 = 0 ; | |
14914 | int res1 = 0 ; | |
14915 | PyObject *swig_obj[1] ; | |
14916 | ||
14917 | if (!args) SWIG_fail; | |
14918 | swig_obj[0] = args; | |
14919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14920 | if (!SWIG_IsOK(res1)) { | |
14921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Clear" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14922 | } | |
14923 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14924 | { | |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | (arg1)->Clear(); | |
14927 | wxPyEndAllowThreads(__tstate); | |
14928 | if (PyErr_Occurred()) SWIG_fail; | |
14929 | } | |
14930 | resultobj = SWIG_Py_Void(); | |
14931 | return resultobj; | |
14932 | fail: | |
14933 | return NULL; | |
14934 | } | |
14935 | ||
14936 | ||
14937 | SWIGINTERN PyObject *_wrap_VListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14938 | PyObject *resultobj = 0; | |
14939 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14940 | int arg2 ; | |
14941 | void *argp1 = 0 ; | |
14942 | int res1 = 0 ; | |
14943 | int val2 ; | |
14944 | int ecode2 = 0 ; | |
14945 | PyObject * obj0 = 0 ; | |
14946 | PyObject * obj1 = 0 ; | |
14947 | char * kwnames[] = { | |
14948 | (char *) "self",(char *) "selection", NULL | |
14949 | }; | |
14950 | ||
14951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
14952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14953 | if (!SWIG_IsOK(res1)) { | |
14954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelection" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14955 | } | |
14956 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14957 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14958 | if (!SWIG_IsOK(ecode2)) { | |
14959 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
14960 | } | |
14961 | arg2 = static_cast< int >(val2); | |
14962 | { | |
14963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14964 | (arg1)->SetSelection(arg2); | |
14965 | wxPyEndAllowThreads(__tstate); | |
14966 | if (PyErr_Occurred()) SWIG_fail; | |
14967 | } | |
14968 | resultobj = SWIG_Py_Void(); | |
14969 | return resultobj; | |
14970 | fail: | |
14971 | return NULL; | |
14972 | } | |
14973 | ||
14974 | ||
14975 | SWIGINTERN PyObject *_wrap_VListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14976 | PyObject *resultobj = 0; | |
14977 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14978 | size_t arg2 ; | |
14979 | bool arg3 = (bool) true ; | |
14980 | bool result; | |
14981 | void *argp1 = 0 ; | |
14982 | int res1 = 0 ; | |
14983 | size_t val2 ; | |
14984 | int ecode2 = 0 ; | |
14985 | bool val3 ; | |
14986 | int ecode3 = 0 ; | |
14987 | PyObject * obj0 = 0 ; | |
14988 | PyObject * obj1 = 0 ; | |
14989 | PyObject * obj2 = 0 ; | |
14990 | char * kwnames[] = { | |
14991 | (char *) "self",(char *) "item",(char *) "select", NULL | |
14992 | }; | |
14993 | ||
14994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14996 | if (!SWIG_IsOK(res1)) { | |
14997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Select" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14998 | } | |
14999 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15000 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15001 | if (!SWIG_IsOK(ecode2)) { | |
15002 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Select" "', expected argument " "2"" of type '" "size_t""'"); | |
15003 | } | |
15004 | arg2 = static_cast< size_t >(val2); | |
15005 | if (obj2) { | |
15006 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15007 | if (!SWIG_IsOK(ecode3)) { | |
15008 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Select" "', expected argument " "3"" of type '" "bool""'"); | |
15009 | } | |
15010 | arg3 = static_cast< bool >(val3); | |
15011 | } | |
15012 | { | |
15013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15014 | result = (bool)(arg1)->Select(arg2,arg3); | |
15015 | wxPyEndAllowThreads(__tstate); | |
15016 | if (PyErr_Occurred()) SWIG_fail; | |
15017 | } | |
15018 | { | |
15019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15020 | } | |
15021 | return resultobj; | |
15022 | fail: | |
15023 | return NULL; | |
15024 | } | |
15025 | ||
15026 | ||
15027 | SWIGINTERN PyObject *_wrap_VListBox_SelectRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15028 | PyObject *resultobj = 0; | |
15029 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15030 | size_t arg2 ; | |
15031 | size_t arg3 ; | |
15032 | bool result; | |
15033 | void *argp1 = 0 ; | |
15034 | int res1 = 0 ; | |
15035 | size_t val2 ; | |
15036 | int ecode2 = 0 ; | |
15037 | size_t val3 ; | |
15038 | int ecode3 = 0 ; | |
15039 | PyObject * obj0 = 0 ; | |
15040 | PyObject * obj1 = 0 ; | |
15041 | PyObject * obj2 = 0 ; | |
15042 | char * kwnames[] = { | |
2131d850 | 15043 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
15044 | }; |
15045 | ||
15046 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15047 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15048 | if (!SWIG_IsOK(res1)) { | |
15049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectRange" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15050 | } | |
15051 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15052 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15053 | if (!SWIG_IsOK(ecode2)) { | |
15054 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SelectRange" "', expected argument " "2"" of type '" "size_t""'"); | |
15055 | } | |
15056 | arg2 = static_cast< size_t >(val2); | |
15057 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
15058 | if (!SWIG_IsOK(ecode3)) { | |
15059 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SelectRange" "', expected argument " "3"" of type '" "size_t""'"); | |
15060 | } | |
15061 | arg3 = static_cast< size_t >(val3); | |
15062 | { | |
15063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15064 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
15065 | wxPyEndAllowThreads(__tstate); | |
15066 | if (PyErr_Occurred()) SWIG_fail; | |
15067 | } | |
15068 | { | |
15069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15070 | } | |
15071 | return resultobj; | |
15072 | fail: | |
15073 | return NULL; | |
15074 | } | |
15075 | ||
15076 | ||
15077 | SWIGINTERN PyObject *_wrap_VListBox_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15078 | PyObject *resultobj = 0; | |
15079 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15080 | size_t arg2 ; | |
15081 | void *argp1 = 0 ; | |
15082 | int res1 = 0 ; | |
15083 | size_t val2 ; | |
15084 | int ecode2 = 0 ; | |
15085 | PyObject * obj0 = 0 ; | |
15086 | PyObject * obj1 = 0 ; | |
15087 | char * kwnames[] = { | |
15088 | (char *) "self",(char *) "item", NULL | |
15089 | }; | |
15090 | ||
15091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15093 | if (!SWIG_IsOK(res1)) { | |
15094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Toggle" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15095 | } | |
15096 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15097 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15098 | if (!SWIG_IsOK(ecode2)) { | |
15099 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Toggle" "', expected argument " "2"" of type '" "size_t""'"); | |
15100 | } | |
15101 | arg2 = static_cast< size_t >(val2); | |
15102 | { | |
15103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15104 | (arg1)->Toggle(arg2); | |
15105 | wxPyEndAllowThreads(__tstate); | |
15106 | if (PyErr_Occurred()) SWIG_fail; | |
15107 | } | |
15108 | resultobj = SWIG_Py_Void(); | |
15109 | return resultobj; | |
15110 | fail: | |
15111 | return NULL; | |
d55e5bfc RD |
15112 | } |
15113 | ||
15114 | ||
1bd55598 RD |
15115 | SWIGINTERN PyObject *_wrap_VListBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15116 | PyObject *resultobj = 0; | |
15117 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15118 | bool result; | |
15119 | void *argp1 = 0 ; | |
15120 | int res1 = 0 ; | |
15121 | PyObject *swig_obj[1] ; | |
15122 | ||
15123 | if (!args) SWIG_fail; | |
15124 | swig_obj[0] = args; | |
15125 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15126 | if (!SWIG_IsOK(res1)) { | |
15127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15128 | } | |
15129 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15130 | { | |
15131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15132 | result = (bool)(arg1)->SelectAll(); | |
15133 | wxPyEndAllowThreads(__tstate); | |
15134 | if (PyErr_Occurred()) SWIG_fail; | |
15135 | } | |
15136 | { | |
15137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15138 | } | |
15139 | return resultobj; | |
15140 | fail: | |
15141 | return NULL; | |
d55e5bfc RD |
15142 | } |
15143 | ||
15144 | ||
1bd55598 RD |
15145 | SWIGINTERN PyObject *_wrap_VListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15146 | PyObject *resultobj = 0; | |
15147 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15148 | bool result; | |
15149 | void *argp1 = 0 ; | |
15150 | int res1 = 0 ; | |
15151 | PyObject *swig_obj[1] ; | |
15152 | ||
15153 | if (!args) SWIG_fail; | |
15154 | swig_obj[0] = args; | |
15155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15156 | if (!SWIG_IsOK(res1)) { | |
15157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_DeselectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15158 | } | |
15159 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | result = (bool)(arg1)->DeselectAll(); | |
15163 | wxPyEndAllowThreads(__tstate); | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | { | |
15167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15168 | } | |
15169 | return resultobj; | |
15170 | fail: | |
15171 | return NULL; | |
15172 | } | |
15173 | ||
15174 | ||
15175 | SWIGINTERN PyObject *_wrap_VListBox_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15176 | PyObject *resultobj = 0; | |
15177 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15178 | wxPoint *arg2 = 0 ; | |
15179 | void *argp1 = 0 ; | |
15180 | int res1 = 0 ; | |
15181 | wxPoint temp2 ; | |
15182 | PyObject * obj0 = 0 ; | |
15183 | PyObject * obj1 = 0 ; | |
15184 | char * kwnames[] = { | |
15185 | (char *) "self",(char *) "pt", NULL | |
15186 | }; | |
15187 | ||
15188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
15189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15190 | if (!SWIG_IsOK(res1)) { | |
15191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMargins" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15192 | } | |
15193 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15194 | { | |
15195 | arg2 = &temp2; | |
15196 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15197 | } | |
15198 | { | |
15199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15200 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | resultobj = SWIG_Py_Void(); | |
15205 | return resultobj; | |
15206 | fail: | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
15211 | SWIGINTERN PyObject *_wrap_VListBox_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15212 | PyObject *resultobj = 0; | |
15213 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15214 | int arg2 ; | |
15215 | int arg3 ; | |
15216 | void *argp1 = 0 ; | |
15217 | int res1 = 0 ; | |
15218 | int val2 ; | |
15219 | int ecode2 = 0 ; | |
15220 | int val3 ; | |
15221 | int ecode3 = 0 ; | |
15222 | PyObject * obj0 = 0 ; | |
15223 | PyObject * obj1 = 0 ; | |
15224 | PyObject * obj2 = 0 ; | |
15225 | char * kwnames[] = { | |
15226 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15227 | }; | |
15228 | ||
15229 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15230 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15231 | if (!SWIG_IsOK(res1)) { | |
15232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMarginsXY" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15233 | } | |
15234 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15235 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15236 | if (!SWIG_IsOK(ecode2)) { | |
15237 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
15238 | } | |
15239 | arg2 = static_cast< int >(val2); | |
15240 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15241 | if (!SWIG_IsOK(ecode3)) { | |
15242 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
15243 | } | |
15244 | arg3 = static_cast< int >(val3); | |
15245 | { | |
15246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15247 | (arg1)->SetMargins(arg2,arg3); | |
15248 | wxPyEndAllowThreads(__tstate); | |
15249 | if (PyErr_Occurred()) SWIG_fail; | |
15250 | } | |
15251 | resultobj = SWIG_Py_Void(); | |
15252 | return resultobj; | |
15253 | fail: | |
15254 | return NULL; | |
15255 | } | |
15256 | ||
15257 | ||
15258 | SWIGINTERN PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15259 | PyObject *resultobj = 0; | |
15260 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15261 | wxColour *arg2 = 0 ; | |
15262 | void *argp1 = 0 ; | |
15263 | int res1 = 0 ; | |
15264 | wxColour temp2 ; | |
15265 | PyObject * obj0 = 0 ; | |
15266 | PyObject * obj1 = 0 ; | |
15267 | char * kwnames[] = { | |
15268 | (char *) "self",(char *) "col", NULL | |
15269 | }; | |
15270 | ||
15271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
15272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15273 | if (!SWIG_IsOK(res1)) { | |
15274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15275 | } | |
15276 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15277 | { | |
15278 | arg2 = &temp2; | |
15279 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15280 | } | |
15281 | { | |
15282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15283 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
15284 | wxPyEndAllowThreads(__tstate); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
15287 | resultobj = SWIG_Py_Void(); | |
15288 | return resultobj; | |
15289 | fail: | |
15290 | return NULL; | |
15291 | } | |
15292 | ||
15293 | ||
1c71765a RD |
15294 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15295 | PyObject *resultobj = 0; | |
15296 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15297 | wxDC *arg2 = 0 ; | |
15298 | wxRect *arg3 = 0 ; | |
15299 | size_t arg4 ; | |
15300 | void *argp1 = 0 ; | |
15301 | int res1 = 0 ; | |
15302 | void *argp2 = 0 ; | |
15303 | int res2 = 0 ; | |
15304 | wxRect temp3 ; | |
15305 | size_t val4 ; | |
15306 | int ecode4 = 0 ; | |
15307 | PyObject * obj0 = 0 ; | |
15308 | PyObject * obj1 = 0 ; | |
15309 | PyObject * obj2 = 0 ; | |
15310 | PyObject * obj3 = 0 ; | |
15311 | char * kwnames[] = { | |
15312 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15313 | }; | |
15314 | ||
15315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawSeparator",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15317 | if (!SWIG_IsOK(res1)) { | |
15318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15319 | } | |
15320 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15321 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15322 | if (!SWIG_IsOK(res2)) { | |
15323 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15324 | } | |
15325 | if (!argp2) { | |
15326 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15327 | } | |
15328 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15329 | { | |
15330 | arg3 = &temp3; | |
15331 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15332 | } | |
15333 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15334 | if (!SWIG_IsOK(ecode4)) { | |
15335 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "4"" of type '" "size_t""'"); | |
15336 | } | |
15337 | arg4 = static_cast< size_t >(val4); | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | ((wxPyVListBox const *)arg1)->OnDrawSeparator(*arg2,*arg3,arg4); | |
15341 | wxPyEndAllowThreads(__tstate); | |
15342 | if (PyErr_Occurred()) SWIG_fail; | |
15343 | } | |
15344 | resultobj = SWIG_Py_Void(); | |
15345 | return resultobj; | |
15346 | fail: | |
15347 | return NULL; | |
15348 | } | |
15349 | ||
15350 | ||
15351 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15352 | PyObject *resultobj = 0; | |
15353 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15354 | wxDC *arg2 = 0 ; | |
15355 | wxRect *arg3 = 0 ; | |
15356 | size_t arg4 ; | |
15357 | void *argp1 = 0 ; | |
15358 | int res1 = 0 ; | |
15359 | void *argp2 = 0 ; | |
15360 | int res2 = 0 ; | |
15361 | wxRect temp3 ; | |
15362 | size_t val4 ; | |
15363 | int ecode4 = 0 ; | |
15364 | PyObject * obj0 = 0 ; | |
15365 | PyObject * obj1 = 0 ; | |
15366 | PyObject * obj2 = 0 ; | |
15367 | PyObject * obj3 = 0 ; | |
15368 | char * kwnames[] = { | |
15369 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15370 | }; | |
15371 | ||
15372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15374 | if (!SWIG_IsOK(res1)) { | |
15375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15376 | } | |
15377 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15378 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15379 | if (!SWIG_IsOK(res2)) { | |
15380 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15381 | } | |
15382 | if (!argp2) { | |
15383 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15384 | } | |
15385 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15386 | { | |
15387 | arg3 = &temp3; | |
15388 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15389 | } | |
15390 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15391 | if (!SWIG_IsOK(ecode4)) { | |
15392 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawBackground" "', expected argument " "4"" of type '" "size_t""'"); | |
15393 | } | |
15394 | arg4 = static_cast< size_t >(val4); | |
15395 | { | |
15396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15397 | ((wxPyVListBox const *)arg1)->OnDrawBackground(*arg2,(wxRect const &)*arg3,arg4); | |
15398 | wxPyEndAllowThreads(__tstate); | |
15399 | if (PyErr_Occurred()) SWIG_fail; | |
15400 | } | |
15401 | resultobj = SWIG_Py_Void(); | |
15402 | return resultobj; | |
15403 | fail: | |
15404 | return NULL; | |
15405 | } | |
15406 | ||
15407 | ||
1bd55598 RD |
15408 | SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15409 | PyObject *obj; | |
15410 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15411 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVListBox, SWIG_NewClientData(obj)); | |
15412 | return SWIG_Py_Void(); | |
15413 | } | |
15414 | ||
15415 | SWIGINTERN PyObject *VListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15416 | return SWIG_Python_InitShadowInstance(args); | |
15417 | } | |
15418 | ||
15419 | SWIGINTERN PyObject *_wrap_new_HtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15420 | PyObject *resultobj = 0; | |
15421 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15422 | int arg2 = (int) wxID_ANY ; | |
15423 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15424 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15425 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15426 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15427 | long arg5 = (long) 0 ; | |
15428 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
15429 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15430 | wxPyHtmlListBox *result = 0 ; | |
15431 | void *argp1 = 0 ; | |
15432 | int res1 = 0 ; | |
15433 | int val2 ; | |
15434 | int ecode2 = 0 ; | |
15435 | wxPoint temp3 ; | |
15436 | wxSize temp4 ; | |
15437 | long val5 ; | |
15438 | int ecode5 = 0 ; | |
15439 | bool temp6 = false ; | |
15440 | PyObject * obj0 = 0 ; | |
15441 | PyObject * obj1 = 0 ; | |
15442 | PyObject * obj2 = 0 ; | |
15443 | PyObject * obj3 = 0 ; | |
15444 | PyObject * obj4 = 0 ; | |
15445 | PyObject * obj5 = 0 ; | |
15446 | char * kwnames[] = { | |
15447 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15448 | }; | |
15449 | ||
15450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15452 | if (!SWIG_IsOK(res1)) { | |
15453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HtmlListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15454 | } | |
15455 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15456 | if (obj1) { | |
15457 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15458 | if (!SWIG_IsOK(ecode2)) { | |
15459 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HtmlListBox" "', expected argument " "2"" of type '" "int""'"); | |
15460 | } | |
15461 | arg2 = static_cast< int >(val2); | |
15462 | } | |
15463 | if (obj2) { | |
d55e5bfc | 15464 | { |
1bd55598 RD |
15465 | arg3 = &temp3; |
15466 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 15467 | } |
1bd55598 RD |
15468 | } |
15469 | if (obj3) { | |
36ed4f51 | 15470 | { |
1bd55598 RD |
15471 | arg4 = &temp4; |
15472 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 15473 | } |
1bd55598 RD |
15474 | } |
15475 | if (obj4) { | |
15476 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
15477 | if (!SWIG_IsOK(ecode5)) { | |
15478 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_HtmlListBox" "', expected argument " "5"" of type '" "long""'"); | |
15479 | } | |
15480 | arg5 = static_cast< long >(val5); | |
15481 | } | |
15482 | if (obj5) { | |
36ed4f51 | 15483 | { |
1bd55598 RD |
15484 | arg6 = wxString_in_helper(obj5); |
15485 | if (arg6 == NULL) SWIG_fail; | |
15486 | temp6 = true; | |
36ed4f51 | 15487 | } |
1bd55598 RD |
15488 | } |
15489 | { | |
15490 | if (!wxPyCheckForApp()) SWIG_fail; | |
15491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15492 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15493 | wxPyEndAllowThreads(__tstate); | |
15494 | if (PyErr_Occurred()) SWIG_fail; | |
15495 | } | |
15496 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_NEW | 0 ); | |
15497 | { | |
15498 | if (temp6) | |
15499 | delete arg6; | |
15500 | } | |
15501 | return resultobj; | |
15502 | fail: | |
15503 | { | |
15504 | if (temp6) | |
15505 | delete arg6; | |
15506 | } | |
15507 | return NULL; | |
d55e5bfc RD |
15508 | } |
15509 | ||
15510 | ||
1bd55598 RD |
15511 | SWIGINTERN PyObject *_wrap_new_PreHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15512 | PyObject *resultobj = 0; | |
15513 | wxPyHtmlListBox *result = 0 ; | |
15514 | ||
15515 | if (!SWIG_Python_UnpackTuple(args,"new_PreHtmlListBox",0,0,0)) SWIG_fail; | |
15516 | { | |
15517 | if (!wxPyCheckForApp()) SWIG_fail; | |
15518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15519 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
15520 | wxPyEndAllowThreads(__tstate); | |
15521 | if (PyErr_Occurred()) SWIG_fail; | |
15522 | } | |
15523 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_OWN | 0 ); | |
15524 | return resultobj; | |
15525 | fail: | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
15530 | SWIGINTERN PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15531 | PyObject *resultobj = 0; | |
15532 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15533 | PyObject *arg2 = (PyObject *) 0 ; | |
15534 | PyObject *arg3 = (PyObject *) 0 ; | |
15535 | void *argp1 = 0 ; | |
15536 | int res1 = 0 ; | |
15537 | PyObject * obj0 = 0 ; | |
15538 | PyObject * obj1 = 0 ; | |
15539 | PyObject * obj2 = 0 ; | |
15540 | char * kwnames[] = { | |
15541 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15542 | }; | |
15543 | ||
15544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15546 | if (!SWIG_IsOK(res1)) { | |
15547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15548 | } | |
15549 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15550 | arg2 = obj1; | |
15551 | arg3 = obj2; | |
15552 | { | |
15553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15554 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15555 | wxPyEndAllowThreads(__tstate); | |
15556 | if (PyErr_Occurred()) SWIG_fail; | |
15557 | } | |
15558 | resultobj = SWIG_Py_Void(); | |
15559 | return resultobj; | |
15560 | fail: | |
15561 | return NULL; | |
15562 | } | |
15563 | ||
15564 | ||
15565 | SWIGINTERN PyObject *_wrap_HtmlListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15566 | PyObject *resultobj = 0; | |
15567 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15568 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15569 | int arg3 = (int) wxID_ANY ; | |
15570 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15571 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15572 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15573 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15574 | long arg6 = (long) 0 ; | |
15575 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
15576 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15577 | bool result; | |
15578 | void *argp1 = 0 ; | |
15579 | int res1 = 0 ; | |
15580 | void *argp2 = 0 ; | |
15581 | int res2 = 0 ; | |
15582 | int val3 ; | |
15583 | int ecode3 = 0 ; | |
15584 | wxPoint temp4 ; | |
15585 | wxSize temp5 ; | |
15586 | long val6 ; | |
15587 | int ecode6 = 0 ; | |
15588 | bool temp7 = false ; | |
15589 | PyObject * obj0 = 0 ; | |
15590 | PyObject * obj1 = 0 ; | |
15591 | PyObject * obj2 = 0 ; | |
15592 | PyObject * obj3 = 0 ; | |
15593 | PyObject * obj4 = 0 ; | |
15594 | PyObject * obj5 = 0 ; | |
15595 | PyObject * obj6 = 0 ; | |
15596 | char * kwnames[] = { | |
15597 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15598 | }; | |
15599 | ||
15600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15602 | if (!SWIG_IsOK(res1)) { | |
15603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_Create" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15604 | } | |
15605 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15606 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15607 | if (!SWIG_IsOK(res2)) { | |
15608 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HtmlListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15609 | } | |
15610 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15611 | if (obj2) { | |
15612 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15613 | if (!SWIG_IsOK(ecode3)) { | |
15614 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HtmlListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
15615 | } | |
15616 | arg3 = static_cast< int >(val3); | |
15617 | } | |
15618 | if (obj3) { | |
36ed4f51 | 15619 | { |
1bd55598 RD |
15620 | arg4 = &temp4; |
15621 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 15622 | } |
1bd55598 RD |
15623 | } |
15624 | if (obj4) { | |
d55e5bfc | 15625 | { |
1bd55598 RD |
15626 | arg5 = &temp5; |
15627 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 15628 | } |
1bd55598 RD |
15629 | } |
15630 | if (obj5) { | |
15631 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15632 | if (!SWIG_IsOK(ecode6)) { | |
15633 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "HtmlListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
15634 | } | |
15635 | arg6 = static_cast< long >(val6); | |
15636 | } | |
15637 | if (obj6) { | |
36ed4f51 | 15638 | { |
1bd55598 RD |
15639 | arg7 = wxString_in_helper(obj6); |
15640 | if (arg7 == NULL) SWIG_fail; | |
15641 | temp7 = true; | |
36ed4f51 | 15642 | } |
1bd55598 RD |
15643 | } |
15644 | { | |
15645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15646 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15647 | wxPyEndAllowThreads(__tstate); | |
15648 | if (PyErr_Occurred()) SWIG_fail; | |
15649 | } | |
15650 | { | |
15651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15652 | } | |
15653 | { | |
15654 | if (temp7) | |
15655 | delete arg7; | |
15656 | } | |
15657 | return resultobj; | |
15658 | fail: | |
15659 | { | |
15660 | if (temp7) | |
15661 | delete arg7; | |
15662 | } | |
15663 | return NULL; | |
15664 | } | |
15665 | ||
15666 | ||
15667 | SWIGINTERN PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15668 | PyObject *resultobj = 0; | |
15669 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15670 | size_t arg2 ; | |
15671 | void *argp1 = 0 ; | |
15672 | int res1 = 0 ; | |
15673 | size_t val2 ; | |
15674 | int ecode2 = 0 ; | |
15675 | PyObject * obj0 = 0 ; | |
15676 | PyObject * obj1 = 0 ; | |
15677 | char * kwnames[] = { | |
15678 | (char *) "self",(char *) "count", NULL | |
15679 | }; | |
15680 | ||
15681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15682 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15683 | if (!SWIG_IsOK(res1)) { | |
15684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15685 | } | |
15686 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15687 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15688 | if (!SWIG_IsOK(ecode2)) { | |
15689 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15690 | } | |
15691 | arg2 = static_cast< size_t >(val2); | |
15692 | { | |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15694 | (arg1)->SetItemCount(arg2); | |
15695 | wxPyEndAllowThreads(__tstate); | |
15696 | if (PyErr_Occurred()) SWIG_fail; | |
15697 | } | |
15698 | resultobj = SWIG_Py_Void(); | |
15699 | return resultobj; | |
15700 | fail: | |
15701 | return NULL; | |
d55e5bfc RD |
15702 | } |
15703 | ||
15704 | ||
1bd55598 RD |
15705 | SWIGINTERN PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15706 | PyObject *resultobj = 0; | |
15707 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15708 | wxFileSystem *result = 0 ; | |
15709 | void *argp1 = 0 ; | |
15710 | int res1 = 0 ; | |
15711 | PyObject *swig_obj[1] ; | |
15712 | ||
15713 | if (!args) SWIG_fail; | |
15714 | swig_obj[0] = args; | |
15715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15716 | if (!SWIG_IsOK(res1)) { | |
15717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_GetFileSystem" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15718 | } | |
15719 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15720 | { | |
15721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15722 | { |
1bd55598 RD |
15723 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); |
15724 | result = (wxFileSystem *) &_result_ref; | |
36ed4f51 | 15725 | } |
1bd55598 RD |
15726 | wxPyEndAllowThreads(__tstate); |
15727 | if (PyErr_Occurred()) SWIG_fail; | |
15728 | } | |
15729 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
15730 | return resultobj; | |
15731 | fail: | |
15732 | return NULL; | |
d55e5bfc RD |
15733 | } |
15734 | ||
15735 | ||
e9d6f3a4 RD |
15736 | SWIGINTERN PyObject *_wrap_HtmlListBox_OnLinkClicked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15737 | PyObject *resultobj = 0; | |
15738 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15739 | size_t arg2 ; | |
15740 | wxHtmlLinkInfo *arg3 = 0 ; | |
15741 | void *argp1 = 0 ; | |
15742 | int res1 = 0 ; | |
15743 | size_t val2 ; | |
15744 | int ecode2 = 0 ; | |
15745 | void *argp3 = 0 ; | |
15746 | int res3 = 0 ; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | PyObject * obj1 = 0 ; | |
15749 | PyObject * obj2 = 0 ; | |
15750 | char * kwnames[] = { | |
15751 | (char *) "self",(char *) "n",(char *) "link", NULL | |
15752 | }; | |
15753 | ||
15754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox_OnLinkClicked",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15755 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15756 | if (!SWIG_IsOK(res1)) { | |
15757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15758 | } | |
15759 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15760 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15761 | if (!SWIG_IsOK(ecode2)) { | |
15762 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "2"" of type '" "size_t""'"); | |
15763 | } | |
15764 | arg2 = static_cast< size_t >(val2); | |
15765 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHtmlLinkInfo, 0 | 0); | |
15766 | if (!SWIG_IsOK(res3)) { | |
15767 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15768 | } | |
15769 | if (!argp3) { | |
15770 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15771 | } | |
15772 | arg3 = reinterpret_cast< wxHtmlLinkInfo * >(argp3); | |
15773 | { | |
15774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15775 | (arg1)->OnLinkClicked(arg2,(wxHtmlLinkInfo const &)*arg3); | |
15776 | wxPyEndAllowThreads(__tstate); | |
15777 | if (PyErr_Occurred()) SWIG_fail; | |
15778 | } | |
15779 | resultobj = SWIG_Py_Void(); | |
15780 | return resultobj; | |
15781 | fail: | |
15782 | return NULL; | |
15783 | } | |
15784 | ||
15785 | ||
1bd55598 RD |
15786 | SWIGINTERN PyObject *HtmlListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15787 | PyObject *obj; | |
15788 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15789 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyHtmlListBox, SWIG_NewClientData(obj)); | |
15790 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15791 | } |
15792 | ||
1bd55598 RD |
15793 | SWIGINTERN PyObject *HtmlListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15794 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
15795 | } |
15796 | ||
1bd55598 RD |
15797 | SWIGINTERN PyObject *_wrap_new_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15798 | PyObject *resultobj = 0; | |
15799 | wxPyTaskBarIcon *result = 0 ; | |
15800 | ||
15801 | if (!SWIG_Python_UnpackTuple(args,"new_TaskBarIcon",0,0,0)) SWIG_fail; | |
15802 | { | |
15803 | if (!wxPyCheckForApp()) SWIG_fail; | |
15804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15805 | result = (wxPyTaskBarIcon *)new wxPyTaskBarIcon(); | |
15806 | wxPyEndAllowThreads(__tstate); | |
15807 | if (PyErr_Occurred()) SWIG_fail; | |
15808 | } | |
15809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_NEW | 0 ); | |
15810 | return resultobj; | |
15811 | fail: | |
15812 | return NULL; | |
d55e5bfc RD |
15813 | } |
15814 | ||
15815 | ||
1bd55598 RD |
15816 | SWIGINTERN PyObject *_wrap_delete_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15817 | PyObject *resultobj = 0; | |
15818 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15819 | void *argp1 = 0 ; | |
15820 | int res1 = 0 ; | |
15821 | PyObject *swig_obj[1] ; | |
15822 | ||
15823 | if (!args) SWIG_fail; | |
15824 | swig_obj[0] = args; | |
15825 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_DISOWN | 0 ); | |
15826 | if (!SWIG_IsOK(res1)) { | |
15827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TaskBarIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15828 | } | |
15829 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15830 | { | |
15831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15832 | delete arg1; | |
d55e5bfc | 15833 | |
1bd55598 RD |
15834 | wxPyEndAllowThreads(__tstate); |
15835 | if (PyErr_Occurred()) SWIG_fail; | |
15836 | } | |
15837 | resultobj = SWIG_Py_Void(); | |
15838 | return resultobj; | |
15839 | fail: | |
15840 | return NULL; | |
15841 | } | |
15842 | ||
15843 | ||
15844 | SWIGINTERN PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15845 | PyObject *resultobj = 0; | |
15846 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15847 | PyObject *arg2 = (PyObject *) 0 ; | |
15848 | PyObject *arg3 = (PyObject *) 0 ; | |
15849 | int arg4 ; | |
15850 | void *argp1 = 0 ; | |
15851 | int res1 = 0 ; | |
15852 | int val4 ; | |
15853 | int ecode4 = 0 ; | |
15854 | PyObject * obj0 = 0 ; | |
15855 | PyObject * obj1 = 0 ; | |
15856 | PyObject * obj2 = 0 ; | |
15857 | PyObject * obj3 = 0 ; | |
15858 | char * kwnames[] = { | |
15859 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15860 | }; | |
15861 | ||
15862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TaskBarIcon__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15864 | if (!SWIG_IsOK(res1)) { | |
15865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15866 | } | |
15867 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15868 | arg2 = obj1; | |
15869 | arg3 = obj2; | |
15870 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15871 | if (!SWIG_IsOK(ecode4)) { | |
15872 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
15873 | } | |
15874 | arg4 = static_cast< int >(val4); | |
15875 | { | |
15876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15877 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15878 | wxPyEndAllowThreads(__tstate); | |
15879 | if (PyErr_Occurred()) SWIG_fail; | |
15880 | } | |
15881 | resultobj = SWIG_Py_Void(); | |
15882 | return resultobj; | |
15883 | fail: | |
15884 | return NULL; | |
d55e5bfc RD |
15885 | } |
15886 | ||
15887 | ||
1bd55598 RD |
15888 | SWIGINTERN PyObject *_wrap_TaskBarIcon_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15889 | PyObject *resultobj = 0; | |
15890 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15891 | void *argp1 = 0 ; | |
15892 | int res1 = 0 ; | |
15893 | PyObject *swig_obj[1] ; | |
15894 | ||
15895 | if (!args) SWIG_fail; | |
15896 | swig_obj[0] = args; | |
15897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15898 | if (!SWIG_IsOK(res1)) { | |
15899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_Destroy" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15900 | } | |
15901 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15902 | { | |
15903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15904 | wxPyTaskBarIcon_Destroy(arg1); | |
15905 | wxPyEndAllowThreads(__tstate); | |
15906 | if (PyErr_Occurred()) SWIG_fail; | |
15907 | } | |
15908 | resultobj = SWIG_Py_Void(); | |
15909 | return resultobj; | |
15910 | fail: | |
15911 | return NULL; | |
d55e5bfc RD |
15912 | } |
15913 | ||
15914 | ||
1bd55598 RD |
15915 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15916 | PyObject *resultobj = 0; | |
15917 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15918 | bool result; | |
15919 | void *argp1 = 0 ; | |
15920 | int res1 = 0 ; | |
15921 | PyObject *swig_obj[1] ; | |
15922 | ||
15923 | if (!args) SWIG_fail; | |
15924 | swig_obj[0] = args; | |
15925 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15926 | if (!SWIG_IsOK(res1)) { | |
15927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsOk" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
15928 | } | |
15929 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15930 | { | |
15931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15932 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsOk(); | |
15933 | wxPyEndAllowThreads(__tstate); | |
15934 | if (PyErr_Occurred()) SWIG_fail; | |
15935 | } | |
15936 | { | |
15937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15938 | } | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | return NULL; | |
d55e5bfc RD |
15942 | } |
15943 | ||
15944 | ||
1bd55598 RD |
15945 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15946 | PyObject *resultobj = 0; | |
15947 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15948 | bool result; | |
15949 | void *argp1 = 0 ; | |
15950 | int res1 = 0 ; | |
15951 | PyObject *swig_obj[1] ; | |
15952 | ||
15953 | if (!args) SWIG_fail; | |
15954 | swig_obj[0] = args; | |
15955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15956 | if (!SWIG_IsOK(res1)) { | |
15957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsIconInstalled" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
15958 | } | |
15959 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15960 | { | |
15961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15962 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsIconInstalled(); | |
15963 | wxPyEndAllowThreads(__tstate); | |
15964 | if (PyErr_Occurred()) SWIG_fail; | |
15965 | } | |
15966 | { | |
15967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15968 | } | |
15969 | return resultobj; | |
15970 | fail: | |
15971 | return NULL; | |
15972 | } | |
15973 | ||
15974 | ||
15975 | SWIGINTERN PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15976 | PyObject *resultobj = 0; | |
15977 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15978 | wxIcon *arg2 = 0 ; | |
15979 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15980 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15981 | bool result; | |
15982 | void *argp1 = 0 ; | |
15983 | int res1 = 0 ; | |
15984 | void *argp2 = 0 ; | |
15985 | int res2 = 0 ; | |
15986 | bool temp3 = false ; | |
15987 | PyObject * obj0 = 0 ; | |
15988 | PyObject * obj1 = 0 ; | |
15989 | PyObject * obj2 = 0 ; | |
15990 | char * kwnames[] = { | |
15991 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
15992 | }; | |
15993 | ||
15994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15996 | if (!SWIG_IsOK(res1)) { | |
15997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15998 | } | |
15999 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16000 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16001 | if (!SWIG_IsOK(res2)) { | |
16002 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16003 | } | |
16004 | if (!argp2) { | |
16005 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16006 | } | |
16007 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16008 | if (obj2) { | |
36ed4f51 | 16009 | { |
1bd55598 RD |
16010 | arg3 = wxString_in_helper(obj2); |
16011 | if (arg3 == NULL) SWIG_fail; | |
16012 | temp3 = true; | |
36ed4f51 | 16013 | } |
1bd55598 RD |
16014 | } |
16015 | { | |
16016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16017 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
16018 | wxPyEndAllowThreads(__tstate); | |
16019 | if (PyErr_Occurred()) SWIG_fail; | |
16020 | } | |
16021 | { | |
16022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16023 | } | |
16024 | { | |
16025 | if (temp3) | |
16026 | delete arg3; | |
16027 | } | |
16028 | return resultobj; | |
16029 | fail: | |
16030 | { | |
16031 | if (temp3) | |
16032 | delete arg3; | |
16033 | } | |
16034 | return NULL; | |
d55e5bfc RD |
16035 | } |
16036 | ||
16037 | ||
1bd55598 RD |
16038 | SWIGINTERN PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16039 | PyObject *resultobj = 0; | |
16040 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16041 | bool result; | |
16042 | void *argp1 = 0 ; | |
16043 | int res1 = 0 ; | |
16044 | PyObject *swig_obj[1] ; | |
16045 | ||
16046 | if (!args) SWIG_fail; | |
16047 | swig_obj[0] = args; | |
16048 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16049 | if (!SWIG_IsOK(res1)) { | |
16050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_RemoveIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16051 | } | |
16052 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16053 | { | |
16054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16055 | result = (bool)(arg1)->RemoveIcon(); | |
16056 | wxPyEndAllowThreads(__tstate); | |
16057 | if (PyErr_Occurred()) SWIG_fail; | |
16058 | } | |
16059 | { | |
16060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16061 | } | |
16062 | return resultobj; | |
16063 | fail: | |
16064 | return NULL; | |
16065 | } | |
16066 | ||
16067 | ||
16068 | SWIGINTERN PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16069 | PyObject *resultobj = 0; | |
16070 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16071 | wxMenu *arg2 = (wxMenu *) 0 ; | |
16072 | bool result; | |
16073 | void *argp1 = 0 ; | |
16074 | int res1 = 0 ; | |
16075 | void *argp2 = 0 ; | |
16076 | int res2 = 0 ; | |
16077 | PyObject * obj0 = 0 ; | |
16078 | PyObject * obj1 = 0 ; | |
16079 | char * kwnames[] = { | |
16080 | (char *) "self",(char *) "menu", NULL | |
16081 | }; | |
16082 | ||
16083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
16084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16085 | if (!SWIG_IsOK(res1)) { | |
16086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16087 | } | |
16088 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16089 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
16090 | if (!SWIG_IsOK(res2)) { | |
16091 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
16092 | } | |
16093 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
16094 | { | |
16095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16096 | result = (bool)(arg1)->PopupMenu(arg2); | |
16097 | wxPyEndAllowThreads(__tstate); | |
16098 | if (PyErr_Occurred()) SWIG_fail; | |
16099 | } | |
16100 | { | |
16101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16102 | } | |
16103 | return resultobj; | |
16104 | fail: | |
16105 | return NULL; | |
d55e5bfc RD |
16106 | } |
16107 | ||
16108 | ||
1bd55598 RD |
16109 | SWIGINTERN PyObject *TaskBarIcon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16110 | PyObject *obj; | |
16111 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16112 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTaskBarIcon, SWIG_NewClientData(obj)); | |
16113 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16114 | } |
16115 | ||
1bd55598 RD |
16116 | SWIGINTERN PyObject *TaskBarIcon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16117 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16118 | } |
16119 | ||
1bd55598 RD |
16120 | SWIGINTERN PyObject *_wrap_new_TaskBarIconEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16121 | PyObject *resultobj = 0; | |
16122 | wxEventType arg1 ; | |
16123 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
16124 | wxTaskBarIconEvent *result = 0 ; | |
16125 | int val1 ; | |
16126 | int ecode1 = 0 ; | |
16127 | void *argp2 = 0 ; | |
16128 | int res2 = 0 ; | |
16129 | PyObject * obj0 = 0 ; | |
16130 | PyObject * obj1 = 0 ; | |
16131 | char * kwnames[] = { | |
16132 | (char *) "evtType",(char *) "tbIcon", NULL | |
16133 | }; | |
16134 | ||
16135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
16136 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16137 | if (!SWIG_IsOK(ecode1)) { | |
16138 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TaskBarIconEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
16139 | } | |
16140 | arg1 = static_cast< wxEventType >(val1); | |
16141 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTaskBarIcon, 0 | 0 ); | |
16142 | if (!SWIG_IsOK(res2)) { | |
16143 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TaskBarIconEvent" "', expected argument " "2"" of type '" "wxTaskBarIcon *""'"); | |
16144 | } | |
16145 | arg2 = reinterpret_cast< wxTaskBarIcon * >(argp2); | |
16146 | { | |
16147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16148 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
16149 | wxPyEndAllowThreads(__tstate); | |
16150 | if (PyErr_Occurred()) SWIG_fail; | |
16151 | } | |
16152 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTaskBarIconEvent, SWIG_POINTER_NEW | 0 ); | |
16153 | return resultobj; | |
16154 | fail: | |
16155 | return NULL; | |
d55e5bfc RD |
16156 | } |
16157 | ||
16158 | ||
1bd55598 RD |
16159 | SWIGINTERN PyObject *TaskBarIconEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16160 | PyObject *obj; | |
16161 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16162 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTaskBarIconEvent, SWIG_NewClientData(obj)); | |
16163 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16164 | } |
16165 | ||
1bd55598 RD |
16166 | SWIGINTERN PyObject *TaskBarIconEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16167 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16168 | } |
16169 | ||
1bd55598 RD |
16170 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { |
16171 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
16172 | return 1; | |
d55e5bfc RD |
16173 | } |
16174 | ||
16175 | ||
1bd55598 RD |
16176 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { |
16177 | PyObject *pyobj = 0; | |
16178 | ||
16179 | { | |
16180 | #if wxUSE_UNICODE | |
16181 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16182 | #else | |
16183 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16184 | #endif | |
16185 | } | |
16186 | return pyobj; | |
d55e5bfc RD |
16187 | } |
16188 | ||
16189 | ||
1bd55598 RD |
16190 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { |
16191 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
16192 | return 1; | |
d55e5bfc RD |
16193 | } |
16194 | ||
16195 | ||
1bd55598 RD |
16196 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { |
16197 | PyObject *pyobj = 0; | |
16198 | ||
16199 | { | |
16200 | #if wxUSE_UNICODE | |
16201 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16202 | #else | |
16203 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16204 | #endif | |
16205 | } | |
16206 | return pyobj; | |
d55e5bfc RD |
16207 | } |
16208 | ||
16209 | ||
1bd55598 RD |
16210 | SWIGINTERN int DirDialogNameStr_set(PyObject *) { |
16211 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogNameStr is read-only."); | |
16212 | return 1; | |
d55e5bfc RD |
16213 | } |
16214 | ||
16215 | ||
1bd55598 RD |
16216 | SWIGINTERN PyObject *DirDialogNameStr_get(void) { |
16217 | PyObject *pyobj = 0; | |
16218 | ||
16219 | { | |
16220 | #if wxUSE_UNICODE | |
16221 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16222 | #else | |
16223 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16224 | #endif | |
16225 | } | |
16226 | return pyobj; | |
d55e5bfc RD |
16227 | } |
16228 | ||
16229 | ||
1bd55598 RD |
16230 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { |
16231 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
16232 | return 1; | |
d55e5bfc RD |
16233 | } |
16234 | ||
16235 | ||
1bd55598 RD |
16236 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { |
16237 | PyObject *pyobj = 0; | |
16238 | ||
16239 | { | |
16240 | #if wxUSE_UNICODE | |
16241 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16242 | #else | |
16243 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16244 | #endif | |
16245 | } | |
16246 | return pyobj; | |
d55e5bfc RD |
16247 | } |
16248 | ||
16249 | ||
1bd55598 RD |
16250 | SWIGINTERN int GetTextFromUserPromptStr_set(PyObject *) { |
16251 | SWIG_Error(SWIG_AttributeError,"Variable GetTextFromUserPromptStr is read-only."); | |
16252 | return 1; | |
d55e5bfc RD |
16253 | } |
16254 | ||
16255 | ||
1bd55598 RD |
16256 | SWIGINTERN PyObject *GetTextFromUserPromptStr_get(void) { |
16257 | PyObject *pyobj = 0; | |
16258 | ||
16259 | { | |
16260 | #if wxUSE_UNICODE | |
16261 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16262 | #else | |
16263 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16264 | #endif | |
16265 | } | |
16266 | return pyobj; | |
d55e5bfc RD |
16267 | } |
16268 | ||
16269 | ||
1bd55598 RD |
16270 | SWIGINTERN int MessageBoxCaptionStr_set(PyObject *) { |
16271 | SWIG_Error(SWIG_AttributeError,"Variable MessageBoxCaptionStr is read-only."); | |
16272 | return 1; | |
d55e5bfc RD |
16273 | } |
16274 | ||
16275 | ||
1bd55598 RD |
16276 | SWIGINTERN PyObject *MessageBoxCaptionStr_get(void) { |
16277 | PyObject *pyobj = 0; | |
16278 | ||
16279 | { | |
16280 | #if wxUSE_UNICODE | |
16281 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16282 | #else | |
16283 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16284 | #endif | |
16285 | } | |
16286 | return pyobj; | |
d55e5bfc RD |
16287 | } |
16288 | ||
16289 | ||
1bd55598 RD |
16290 | SWIGINTERN PyObject *_wrap_new_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16291 | PyObject *resultobj = 0; | |
16292 | wxColourData *result = 0 ; | |
16293 | ||
16294 | if (!SWIG_Python_UnpackTuple(args,"new_ColourData",0,0,0)) SWIG_fail; | |
16295 | { | |
16296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16297 | result = (wxColourData *)new wxColourData(); | |
16298 | wxPyEndAllowThreads(__tstate); | |
16299 | if (PyErr_Occurred()) SWIG_fail; | |
16300 | } | |
16301 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, SWIG_POINTER_NEW | 0 ); | |
16302 | return resultobj; | |
16303 | fail: | |
16304 | return NULL; | |
d55e5bfc RD |
16305 | } |
16306 | ||
16307 | ||
1bd55598 RD |
16308 | SWIGINTERN PyObject *_wrap_delete_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16309 | PyObject *resultobj = 0; | |
16310 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16311 | void *argp1 = 0 ; | |
16312 | int res1 = 0 ; | |
16313 | PyObject *swig_obj[1] ; | |
16314 | ||
16315 | if (!args) SWIG_fail; | |
16316 | swig_obj[0] = args; | |
16317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, SWIG_POINTER_DISOWN | 0 ); | |
16318 | if (!SWIG_IsOK(res1)) { | |
16319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourData" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16320 | } | |
16321 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16322 | { | |
16323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16324 | delete arg1; | |
d55e5bfc | 16325 | |
1bd55598 RD |
16326 | wxPyEndAllowThreads(__tstate); |
16327 | if (PyErr_Occurred()) SWIG_fail; | |
16328 | } | |
16329 | resultobj = SWIG_Py_Void(); | |
16330 | return resultobj; | |
16331 | fail: | |
16332 | return NULL; | |
d55e5bfc RD |
16333 | } |
16334 | ||
16335 | ||
1bd55598 RD |
16336 | SWIGINTERN PyObject *_wrap_ColourData_GetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16337 | PyObject *resultobj = 0; | |
16338 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16339 | bool result; | |
16340 | void *argp1 = 0 ; | |
16341 | int res1 = 0 ; | |
16342 | PyObject *swig_obj[1] ; | |
16343 | ||
16344 | if (!args) SWIG_fail; | |
16345 | swig_obj[0] = args; | |
16346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16347 | if (!SWIG_IsOK(res1)) { | |
16348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16349 | } | |
16350 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16351 | { | |
16352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16353 | result = (bool)(arg1)->GetChooseFull(); | |
16354 | wxPyEndAllowThreads(__tstate); | |
16355 | if (PyErr_Occurred()) SWIG_fail; | |
16356 | } | |
16357 | { | |
16358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16359 | } | |
16360 | return resultobj; | |
16361 | fail: | |
16362 | return NULL; | |
d55e5bfc RD |
16363 | } |
16364 | ||
16365 | ||
1bd55598 RD |
16366 | SWIGINTERN PyObject *_wrap_ColourData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16367 | PyObject *resultobj = 0; | |
16368 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16369 | wxColour result; | |
16370 | void *argp1 = 0 ; | |
16371 | int res1 = 0 ; | |
16372 | PyObject *swig_obj[1] ; | |
16373 | ||
16374 | if (!args) SWIG_fail; | |
16375 | swig_obj[0] = args; | |
16376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16377 | if (!SWIG_IsOK(res1)) { | |
16378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16379 | } | |
16380 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16381 | { | |
16382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16383 | result = (arg1)->GetColour(); | |
16384 | wxPyEndAllowThreads(__tstate); | |
16385 | if (PyErr_Occurred()) SWIG_fail; | |
16386 | } | |
16387 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16388 | return resultobj; | |
16389 | fail: | |
16390 | return NULL; | |
16391 | } | |
16392 | ||
16393 | ||
16394 | SWIGINTERN PyObject *_wrap_ColourData_GetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16395 | PyObject *resultobj = 0; | |
16396 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16397 | int arg2 ; | |
16398 | wxColour result; | |
16399 | void *argp1 = 0 ; | |
16400 | int res1 = 0 ; | |
16401 | int val2 ; | |
16402 | int ecode2 = 0 ; | |
16403 | PyObject * obj0 = 0 ; | |
16404 | PyObject * obj1 = 0 ; | |
16405 | char * kwnames[] = { | |
16406 | (char *) "self",(char *) "i", NULL | |
16407 | }; | |
16408 | ||
16409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16411 | if (!SWIG_IsOK(res1)) { | |
16412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16413 | } | |
16414 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16415 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16416 | if (!SWIG_IsOK(ecode2)) { | |
16417 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_GetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16418 | } | |
16419 | arg2 = static_cast< int >(val2); | |
16420 | { | |
16421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16422 | result = (arg1)->GetCustomColour(arg2); | |
16423 | wxPyEndAllowThreads(__tstate); | |
16424 | if (PyErr_Occurred()) SWIG_fail; | |
16425 | } | |
16426 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16427 | return resultobj; | |
16428 | fail: | |
16429 | return NULL; | |
16430 | } | |
16431 | ||
16432 | ||
16433 | SWIGINTERN PyObject *_wrap_ColourData_SetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16434 | PyObject *resultobj = 0; | |
16435 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16436 | int arg2 ; | |
16437 | void *argp1 = 0 ; | |
16438 | int res1 = 0 ; | |
16439 | int val2 ; | |
16440 | int ecode2 = 0 ; | |
16441 | PyObject * obj0 = 0 ; | |
16442 | PyObject * obj1 = 0 ; | |
16443 | char * kwnames[] = { | |
16444 | (char *) "self",(char *) "flag", NULL | |
16445 | }; | |
16446 | ||
16447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) SWIG_fail; | |
16448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16449 | if (!SWIG_IsOK(res1)) { | |
16450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16451 | } | |
16452 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16453 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16454 | if (!SWIG_IsOK(ecode2)) { | |
16455 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetChooseFull" "', expected argument " "2"" of type '" "int""'"); | |
16456 | } | |
16457 | arg2 = static_cast< int >(val2); | |
16458 | { | |
16459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16460 | (arg1)->SetChooseFull(arg2); | |
16461 | wxPyEndAllowThreads(__tstate); | |
16462 | if (PyErr_Occurred()) SWIG_fail; | |
16463 | } | |
16464 | resultobj = SWIG_Py_Void(); | |
16465 | return resultobj; | |
16466 | fail: | |
16467 | return NULL; | |
16468 | } | |
16469 | ||
16470 | ||
16471 | SWIGINTERN PyObject *_wrap_ColourData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16472 | PyObject *resultobj = 0; | |
16473 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16474 | wxColour *arg2 = 0 ; | |
16475 | void *argp1 = 0 ; | |
16476 | int res1 = 0 ; | |
16477 | wxColour temp2 ; | |
16478 | PyObject * obj0 = 0 ; | |
16479 | PyObject * obj1 = 0 ; | |
16480 | char * kwnames[] = { | |
16481 | (char *) "self",(char *) "colour", NULL | |
16482 | }; | |
16483 | ||
16484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16486 | if (!SWIG_IsOK(res1)) { | |
16487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16488 | } | |
16489 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16490 | { | |
16491 | arg2 = &temp2; | |
16492 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16493 | } | |
16494 | { | |
16495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16496 | (arg1)->SetColour((wxColour const &)*arg2); | |
16497 | wxPyEndAllowThreads(__tstate); | |
16498 | if (PyErr_Occurred()) SWIG_fail; | |
16499 | } | |
16500 | resultobj = SWIG_Py_Void(); | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | return NULL; | |
16504 | } | |
16505 | ||
16506 | ||
16507 | SWIGINTERN PyObject *_wrap_ColourData_SetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16508 | PyObject *resultobj = 0; | |
16509 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16510 | int arg2 ; | |
16511 | wxColour *arg3 = 0 ; | |
16512 | void *argp1 = 0 ; | |
16513 | int res1 = 0 ; | |
16514 | int val2 ; | |
16515 | int ecode2 = 0 ; | |
16516 | wxColour temp3 ; | |
16517 | PyObject * obj0 = 0 ; | |
16518 | PyObject * obj1 = 0 ; | |
16519 | PyObject * obj2 = 0 ; | |
16520 | char * kwnames[] = { | |
16521 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
16522 | }; | |
16523 | ||
16524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16526 | if (!SWIG_IsOK(res1)) { | |
16527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16528 | } | |
16529 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16530 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16531 | if (!SWIG_IsOK(ecode2)) { | |
16532 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16533 | } | |
16534 | arg2 = static_cast< int >(val2); | |
16535 | { | |
16536 | arg3 = &temp3; | |
16537 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16538 | } | |
16539 | { | |
16540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16541 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
16542 | wxPyEndAllowThreads(__tstate); | |
16543 | if (PyErr_Occurred()) SWIG_fail; | |
16544 | } | |
16545 | resultobj = SWIG_Py_Void(); | |
16546 | return resultobj; | |
16547 | fail: | |
16548 | return NULL; | |
d55e5bfc RD |
16549 | } |
16550 | ||
16551 | ||
1bd55598 RD |
16552 | SWIGINTERN PyObject *ColourData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16553 | PyObject *obj; | |
16554 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16555 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourData, SWIG_NewClientData(obj)); | |
16556 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16557 | } |
16558 | ||
1bd55598 RD |
16559 | SWIGINTERN PyObject *ColourData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16560 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16561 | } |
16562 | ||
1bd55598 RD |
16563 | SWIGINTERN PyObject *_wrap_new_ColourDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16564 | PyObject *resultobj = 0; | |
16565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16566 | wxColourData *arg2 = (wxColourData *) NULL ; | |
16567 | wxColourDialog *result = 0 ; | |
16568 | void *argp1 = 0 ; | |
16569 | int res1 = 0 ; | |
16570 | void *argp2 = 0 ; | |
16571 | int res2 = 0 ; | |
16572 | PyObject * obj0 = 0 ; | |
16573 | PyObject * obj1 = 0 ; | |
16574 | char * kwnames[] = { | |
16575 | (char *) "parent",(char *) "data", NULL | |
16576 | }; | |
16577 | ||
16578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16580 | if (!SWIG_IsOK(res1)) { | |
16581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16582 | } | |
16583 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16584 | if (obj1) { | |
16585 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16586 | if (!SWIG_IsOK(res2)) { | |
16587 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ColourDialog" "', expected argument " "2"" of type '" "wxColourData *""'"); | |
36ed4f51 | 16588 | } |
1bd55598 RD |
16589 | arg2 = reinterpret_cast< wxColourData * >(argp2); |
16590 | } | |
16591 | { | |
16592 | if (!wxPyCheckForApp()) SWIG_fail; | |
16593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16594 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
16595 | wxPyEndAllowThreads(__tstate); | |
16596 | if (PyErr_Occurred()) SWIG_fail; | |
16597 | } | |
16598 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDialog, SWIG_POINTER_NEW | 0 ); | |
16599 | return resultobj; | |
16600 | fail: | |
16601 | return NULL; | |
d55e5bfc RD |
16602 | } |
16603 | ||
16604 | ||
1bd55598 RD |
16605 | SWIGINTERN PyObject *_wrap_ColourDialog_GetColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16606 | PyObject *resultobj = 0; | |
16607 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
16608 | wxColourData *result = 0 ; | |
16609 | void *argp1 = 0 ; | |
16610 | int res1 = 0 ; | |
16611 | PyObject *swig_obj[1] ; | |
16612 | ||
16613 | if (!args) SWIG_fail; | |
16614 | swig_obj[0] = args; | |
16615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDialog, 0 | 0 ); | |
16616 | if (!SWIG_IsOK(res1)) { | |
16617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDialog_GetColourData" "', expected argument " "1"" of type '" "wxColourDialog *""'"); | |
16618 | } | |
16619 | arg1 = reinterpret_cast< wxColourDialog * >(argp1); | |
16620 | { | |
16621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 16622 | { |
1bd55598 RD |
16623 | wxColourData &_result_ref = (arg1)->GetColourData(); |
16624 | result = (wxColourData *) &_result_ref; | |
d55e5bfc | 16625 | } |
1bd55598 RD |
16626 | wxPyEndAllowThreads(__tstate); |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
16629 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16630 | return resultobj; | |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
16636 | SWIGINTERN PyObject *ColourDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16637 | PyObject *obj; | |
16638 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16639 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDialog, SWIG_NewClientData(obj)); | |
16640 | return SWIG_Py_Void(); | |
16641 | } | |
16642 | ||
16643 | SWIGINTERN PyObject *ColourDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16644 | return SWIG_Python_InitShadowInstance(args); | |
16645 | } | |
16646 | ||
16647 | SWIGINTERN PyObject *_wrap_GetColourFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16648 | PyObject *resultobj = 0; | |
16649 | wxWindow *arg1 = (wxWindow *) (wxWindow *) NULL ; | |
16650 | wxColour const &arg2_defvalue = wxNullColour ; | |
16651 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
16652 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16653 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16654 | wxColour result; | |
16655 | void *argp1 = 0 ; | |
16656 | int res1 = 0 ; | |
16657 | wxColour temp2 ; | |
16658 | bool temp3 = false ; | |
16659 | PyObject * obj0 = 0 ; | |
16660 | PyObject * obj1 = 0 ; | |
16661 | PyObject * obj2 = 0 ; | |
16662 | char * kwnames[] = { | |
16663 | (char *) "parent",(char *) "colInit",(char *) "caption", NULL | |
16664 | }; | |
16665 | ||
16666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetColourFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16667 | if (obj0) { | |
16668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16669 | if (!SWIG_IsOK(res1)) { | |
16670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetColourFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d55e5bfc | 16671 | } |
1bd55598 RD |
16672 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
16673 | } | |
16674 | if (obj1) { | |
d55e5bfc | 16675 | { |
1bd55598 RD |
16676 | arg2 = &temp2; |
16677 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 16678 | } |
1bd55598 RD |
16679 | } |
16680 | if (obj2) { | |
d55e5bfc | 16681 | { |
1bd55598 RD |
16682 | arg3 = wxString_in_helper(obj2); |
16683 | if (arg3 == NULL) SWIG_fail; | |
16684 | temp3 = true; | |
d55e5bfc | 16685 | } |
1bd55598 RD |
16686 | } |
16687 | { | |
16688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16689 | result = wxGetColourFromUser(arg1,(wxColour const &)*arg2,(wxString const &)*arg3); | |
16690 | wxPyEndAllowThreads(__tstate); | |
16691 | if (PyErr_Occurred()) SWIG_fail; | |
16692 | } | |
16693 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16694 | { | |
16695 | if (temp3) | |
16696 | delete arg3; | |
16697 | } | |
16698 | return resultobj; | |
16699 | fail: | |
16700 | { | |
16701 | if (temp3) | |
16702 | delete arg3; | |
16703 | } | |
16704 | return NULL; | |
16705 | } | |
16706 | ||
16707 | ||
16708 | SWIGINTERN PyObject *_wrap_new_DirDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16709 | PyObject *resultobj = 0; | |
16710 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16711 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
16712 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16713 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16714 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
704eda0c | 16715 | long arg4 = (long) wxDD_DEFAULT_STYLE ; |
1bd55598 RD |
16716 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
16717 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16718 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16719 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16720 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
16721 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16722 | wxDirDialog *result = 0 ; | |
16723 | void *argp1 = 0 ; | |
16724 | int res1 = 0 ; | |
16725 | bool temp2 = false ; | |
16726 | bool temp3 = false ; | |
16727 | long val4 ; | |
16728 | int ecode4 = 0 ; | |
16729 | wxPoint temp5 ; | |
16730 | wxSize temp6 ; | |
16731 | bool temp7 = false ; | |
16732 | PyObject * obj0 = 0 ; | |
16733 | PyObject * obj1 = 0 ; | |
16734 | PyObject * obj2 = 0 ; | |
16735 | PyObject * obj3 = 0 ; | |
16736 | PyObject * obj4 = 0 ; | |
16737 | PyObject * obj5 = 0 ; | |
16738 | PyObject * obj6 = 0 ; | |
16739 | char * kwnames[] = { | |
16740 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
16741 | }; | |
16742 | ||
16743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
16744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16745 | if (!SWIG_IsOK(res1)) { | |
16746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16747 | } | |
16748 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16749 | if (obj1) { | |
d55e5bfc | 16750 | { |
1bd55598 RD |
16751 | arg2 = wxString_in_helper(obj1); |
16752 | if (arg2 == NULL) SWIG_fail; | |
16753 | temp2 = true; | |
d55e5bfc | 16754 | } |
1bd55598 RD |
16755 | } |
16756 | if (obj2) { | |
d55e5bfc | 16757 | { |
1bd55598 RD |
16758 | arg3 = wxString_in_helper(obj2); |
16759 | if (arg3 == NULL) SWIG_fail; | |
16760 | temp3 = true; | |
d55e5bfc | 16761 | } |
1bd55598 RD |
16762 | } |
16763 | if (obj3) { | |
16764 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16765 | if (!SWIG_IsOK(ecode4)) { | |
16766 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DirDialog" "', expected argument " "4"" of type '" "long""'"); | |
16767 | } | |
16768 | arg4 = static_cast< long >(val4); | |
16769 | } | |
16770 | if (obj4) { | |
d55e5bfc | 16771 | { |
1bd55598 RD |
16772 | arg5 = &temp5; |
16773 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 16774 | } |
1bd55598 RD |
16775 | } |
16776 | if (obj5) { | |
16777 | { | |
16778 | arg6 = &temp6; | |
16779 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 16780 | } |
1bd55598 RD |
16781 | } |
16782 | if (obj6) { | |
d55e5bfc | 16783 | { |
1bd55598 RD |
16784 | arg7 = wxString_in_helper(obj6); |
16785 | if (arg7 == NULL) SWIG_fail; | |
16786 | temp7 = true; | |
16787 | } | |
16788 | } | |
16789 | { | |
16790 | if (!wxPyCheckForApp()) SWIG_fail; | |
16791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16792 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
16793 | wxPyEndAllowThreads(__tstate); | |
16794 | if (PyErr_Occurred()) SWIG_fail; | |
16795 | } | |
16796 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirDialog, SWIG_POINTER_NEW | 0 ); | |
16797 | { | |
16798 | if (temp2) | |
16799 | delete arg2; | |
16800 | } | |
16801 | { | |
16802 | if (temp3) | |
16803 | delete arg3; | |
16804 | } | |
16805 | { | |
16806 | if (temp7) | |
16807 | delete arg7; | |
16808 | } | |
16809 | return resultobj; | |
16810 | fail: | |
16811 | { | |
16812 | if (temp2) | |
16813 | delete arg2; | |
16814 | } | |
16815 | { | |
16816 | if (temp3) | |
16817 | delete arg3; | |
16818 | } | |
16819 | { | |
16820 | if (temp7) | |
16821 | delete arg7; | |
16822 | } | |
16823 | return NULL; | |
d55e5bfc RD |
16824 | } |
16825 | ||
16826 | ||
1bd55598 RD |
16827 | SWIGINTERN PyObject *_wrap_DirDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16828 | PyObject *resultobj = 0; | |
16829 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16830 | wxString result; | |
16831 | void *argp1 = 0 ; | |
16832 | int res1 = 0 ; | |
16833 | PyObject *swig_obj[1] ; | |
16834 | ||
16835 | if (!args) SWIG_fail; | |
16836 | swig_obj[0] = args; | |
16837 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16838 | if (!SWIG_IsOK(res1)) { | |
16839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16840 | } | |
16841 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16842 | { | |
16843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16844 | result = (arg1)->GetPath(); | |
16845 | wxPyEndAllowThreads(__tstate); | |
16846 | if (PyErr_Occurred()) SWIG_fail; | |
16847 | } | |
16848 | { | |
16849 | #if wxUSE_UNICODE | |
16850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16851 | #else | |
16852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16853 | #endif | |
16854 | } | |
16855 | return resultobj; | |
16856 | fail: | |
16857 | return NULL; | |
d55e5bfc RD |
16858 | } |
16859 | ||
16860 | ||
1bd55598 RD |
16861 | SWIGINTERN PyObject *_wrap_DirDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16862 | PyObject *resultobj = 0; | |
16863 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16864 | wxString result; | |
16865 | void *argp1 = 0 ; | |
16866 | int res1 = 0 ; | |
16867 | PyObject *swig_obj[1] ; | |
16868 | ||
16869 | if (!args) SWIG_fail; | |
16870 | swig_obj[0] = args; | |
16871 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16872 | if (!SWIG_IsOK(res1)) { | |
16873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16874 | } | |
16875 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16876 | { | |
16877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16878 | result = (arg1)->GetMessage(); | |
16879 | wxPyEndAllowThreads(__tstate); | |
16880 | if (PyErr_Occurred()) SWIG_fail; | |
16881 | } | |
16882 | { | |
16883 | #if wxUSE_UNICODE | |
16884 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16885 | #else | |
16886 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16887 | #endif | |
16888 | } | |
16889 | return resultobj; | |
16890 | fail: | |
16891 | return NULL; | |
d55e5bfc RD |
16892 | } |
16893 | ||
16894 | ||
1bd55598 RD |
16895 | SWIGINTERN PyObject *_wrap_DirDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16896 | PyObject *resultobj = 0; | |
16897 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16898 | wxString *arg2 = 0 ; | |
16899 | void *argp1 = 0 ; | |
16900 | int res1 = 0 ; | |
16901 | bool temp2 = false ; | |
16902 | PyObject * obj0 = 0 ; | |
16903 | PyObject * obj1 = 0 ; | |
16904 | char * kwnames[] = { | |
16905 | (char *) "self",(char *) "message", NULL | |
16906 | }; | |
16907 | ||
16908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
16909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16910 | if (!SWIG_IsOK(res1)) { | |
16911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16912 | } | |
16913 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16914 | { | |
16915 | arg2 = wxString_in_helper(obj1); | |
16916 | if (arg2 == NULL) SWIG_fail; | |
16917 | temp2 = true; | |
16918 | } | |
16919 | { | |
16920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16921 | (arg1)->SetMessage((wxString const &)*arg2); | |
16922 | wxPyEndAllowThreads(__tstate); | |
16923 | if (PyErr_Occurred()) SWIG_fail; | |
16924 | } | |
16925 | resultobj = SWIG_Py_Void(); | |
16926 | { | |
16927 | if (temp2) | |
16928 | delete arg2; | |
16929 | } | |
16930 | return resultobj; | |
16931 | fail: | |
16932 | { | |
16933 | if (temp2) | |
16934 | delete arg2; | |
16935 | } | |
16936 | return NULL; | |
d55e5bfc RD |
16937 | } |
16938 | ||
16939 | ||
1bd55598 RD |
16940 | SWIGINTERN PyObject *_wrap_DirDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16941 | PyObject *resultobj = 0; | |
16942 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16943 | wxString *arg2 = 0 ; | |
16944 | void *argp1 = 0 ; | |
16945 | int res1 = 0 ; | |
16946 | bool temp2 = false ; | |
16947 | PyObject * obj0 = 0 ; | |
16948 | PyObject * obj1 = 0 ; | |
16949 | char * kwnames[] = { | |
16950 | (char *) "self",(char *) "path", NULL | |
16951 | }; | |
16952 | ||
16953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
16954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16955 | if (!SWIG_IsOK(res1)) { | |
16956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16957 | } | |
16958 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16959 | { | |
16960 | arg2 = wxString_in_helper(obj1); | |
16961 | if (arg2 == NULL) SWIG_fail; | |
16962 | temp2 = true; | |
16963 | } | |
16964 | { | |
16965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16966 | (arg1)->SetPath((wxString const &)*arg2); | |
16967 | wxPyEndAllowThreads(__tstate); | |
16968 | if (PyErr_Occurred()) SWIG_fail; | |
16969 | } | |
16970 | resultobj = SWIG_Py_Void(); | |
16971 | { | |
16972 | if (temp2) | |
16973 | delete arg2; | |
16974 | } | |
16975 | return resultobj; | |
16976 | fail: | |
16977 | { | |
16978 | if (temp2) | |
16979 | delete arg2; | |
16980 | } | |
16981 | return NULL; | |
16982 | } | |
16983 | ||
16984 | ||
16985 | SWIGINTERN PyObject *DirDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16986 | PyObject *obj; | |
16987 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16988 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirDialog, SWIG_NewClientData(obj)); | |
16989 | return SWIG_Py_Void(); | |
16990 | } | |
16991 | ||
16992 | SWIGINTERN PyObject *DirDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16993 | return SWIG_Python_InitShadowInstance(args); | |
16994 | } | |
16995 | ||
16996 | SWIGINTERN PyObject *_wrap_new_FileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16997 | PyObject *resultobj = 0; | |
16998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16999 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
17000 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17001 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17002 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17003 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17004 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17005 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
17006 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
704eda0c | 17007 | long arg6 = (long) wxFD_DEFAULT_STYLE ; |
1bd55598 RD |
17008 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
17009 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17010 | wxFileDialog *result = 0 ; | |
17011 | void *argp1 = 0 ; | |
17012 | int res1 = 0 ; | |
17013 | bool temp2 = false ; | |
17014 | bool temp3 = false ; | |
17015 | bool temp4 = false ; | |
17016 | bool temp5 = false ; | |
17017 | long val6 ; | |
17018 | int ecode6 = 0 ; | |
17019 | wxPoint temp7 ; | |
17020 | PyObject * obj0 = 0 ; | |
17021 | PyObject * obj1 = 0 ; | |
17022 | PyObject * obj2 = 0 ; | |
17023 | PyObject * obj3 = 0 ; | |
17024 | PyObject * obj4 = 0 ; | |
17025 | PyObject * obj5 = 0 ; | |
17026 | PyObject * obj6 = 0 ; | |
17027 | char * kwnames[] = { | |
17028 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
17029 | }; | |
17030 | ||
17031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
17032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17033 | if (!SWIG_IsOK(res1)) { | |
17034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17035 | } | |
17036 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17037 | if (obj1) { | |
d55e5bfc | 17038 | { |
1bd55598 RD |
17039 | arg2 = wxString_in_helper(obj1); |
17040 | if (arg2 == NULL) SWIG_fail; | |
17041 | temp2 = true; | |
d55e5bfc | 17042 | } |
1bd55598 RD |
17043 | } |
17044 | if (obj2) { | |
17045 | { | |
17046 | arg3 = wxString_in_helper(obj2); | |
17047 | if (arg3 == NULL) SWIG_fail; | |
17048 | temp3 = true; | |
d55e5bfc | 17049 | } |
1bd55598 RD |
17050 | } |
17051 | if (obj3) { | |
d55e5bfc | 17052 | { |
1bd55598 RD |
17053 | arg4 = wxString_in_helper(obj3); |
17054 | if (arg4 == NULL) SWIG_fail; | |
17055 | temp4 = true; | |
17056 | } | |
17057 | } | |
17058 | if (obj4) { | |
d55e5bfc | 17059 | { |
1bd55598 RD |
17060 | arg5 = wxString_in_helper(obj4); |
17061 | if (arg5 == NULL) SWIG_fail; | |
17062 | temp5 = true; | |
d55e5bfc | 17063 | } |
1bd55598 RD |
17064 | } |
17065 | if (obj5) { | |
17066 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17067 | if (!SWIG_IsOK(ecode6)) { | |
17068 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FileDialog" "', expected argument " "6"" of type '" "long""'"); | |
17069 | } | |
17070 | arg6 = static_cast< long >(val6); | |
17071 | } | |
17072 | if (obj6) { | |
d55e5bfc | 17073 | { |
1bd55598 RD |
17074 | arg7 = &temp7; |
17075 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 17076 | } |
1bd55598 RD |
17077 | } |
17078 | { | |
17079 | if (!wxPyCheckForApp()) SWIG_fail; | |
17080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17081 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
17082 | wxPyEndAllowThreads(__tstate); | |
17083 | if (PyErr_Occurred()) SWIG_fail; | |
17084 | } | |
17085 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDialog, SWIG_POINTER_NEW | 0 ); | |
17086 | { | |
17087 | if (temp2) | |
17088 | delete arg2; | |
17089 | } | |
17090 | { | |
17091 | if (temp3) | |
17092 | delete arg3; | |
17093 | } | |
17094 | { | |
17095 | if (temp4) | |
17096 | delete arg4; | |
17097 | } | |
17098 | { | |
17099 | if (temp5) | |
17100 | delete arg5; | |
17101 | } | |
17102 | return resultobj; | |
17103 | fail: | |
17104 | { | |
17105 | if (temp2) | |
17106 | delete arg2; | |
17107 | } | |
17108 | { | |
17109 | if (temp3) | |
17110 | delete arg3; | |
17111 | } | |
17112 | { | |
17113 | if (temp4) | |
17114 | delete arg4; | |
17115 | } | |
17116 | { | |
17117 | if (temp5) | |
17118 | delete arg5; | |
17119 | } | |
17120 | return NULL; | |
d55e5bfc RD |
17121 | } |
17122 | ||
17123 | ||
1bd55598 RD |
17124 | SWIGINTERN PyObject *_wrap_FileDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17125 | PyObject *resultobj = 0; | |
17126 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17127 | wxString *arg2 = 0 ; | |
17128 | void *argp1 = 0 ; | |
17129 | int res1 = 0 ; | |
17130 | bool temp2 = false ; | |
17131 | PyObject * obj0 = 0 ; | |
17132 | PyObject * obj1 = 0 ; | |
17133 | char * kwnames[] = { | |
17134 | (char *) "self",(char *) "message", NULL | |
17135 | }; | |
17136 | ||
17137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
17138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17139 | if (!SWIG_IsOK(res1)) { | |
17140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetMessage" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17141 | } | |
17142 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17143 | { | |
17144 | arg2 = wxString_in_helper(obj1); | |
17145 | if (arg2 == NULL) SWIG_fail; | |
17146 | temp2 = true; | |
17147 | } | |
17148 | { | |
17149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17150 | (arg1)->SetMessage((wxString const &)*arg2); | |
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
17154 | resultobj = SWIG_Py_Void(); | |
17155 | { | |
17156 | if (temp2) | |
17157 | delete arg2; | |
17158 | } | |
17159 | return resultobj; | |
17160 | fail: | |
17161 | { | |
17162 | if (temp2) | |
17163 | delete arg2; | |
17164 | } | |
17165 | return NULL; | |
d55e5bfc RD |
17166 | } |
17167 | ||
17168 | ||
1bd55598 RD |
17169 | SWIGINTERN PyObject *_wrap_FileDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17170 | PyObject *resultobj = 0; | |
17171 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17172 | wxString *arg2 = 0 ; | |
17173 | void *argp1 = 0 ; | |
17174 | int res1 = 0 ; | |
17175 | bool temp2 = false ; | |
17176 | PyObject * obj0 = 0 ; | |
17177 | PyObject * obj1 = 0 ; | |
17178 | char * kwnames[] = { | |
17179 | (char *) "self",(char *) "path", NULL | |
17180 | }; | |
17181 | ||
17182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
17183 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17184 | if (!SWIG_IsOK(res1)) { | |
17185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetPath" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17186 | } | |
17187 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17188 | { | |
17189 | arg2 = wxString_in_helper(obj1); | |
17190 | if (arg2 == NULL) SWIG_fail; | |
17191 | temp2 = true; | |
17192 | } | |
17193 | { | |
17194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17195 | (arg1)->SetPath((wxString const &)*arg2); | |
17196 | wxPyEndAllowThreads(__tstate); | |
17197 | if (PyErr_Occurred()) SWIG_fail; | |
17198 | } | |
17199 | resultobj = SWIG_Py_Void(); | |
17200 | { | |
17201 | if (temp2) | |
17202 | delete arg2; | |
17203 | } | |
17204 | return resultobj; | |
17205 | fail: | |
17206 | { | |
17207 | if (temp2) | |
17208 | delete arg2; | |
17209 | } | |
17210 | return NULL; | |
d55e5bfc RD |
17211 | } |
17212 | ||
17213 | ||
1bd55598 RD |
17214 | SWIGINTERN PyObject *_wrap_FileDialog_SetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17215 | PyObject *resultobj = 0; | |
17216 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17217 | wxString *arg2 = 0 ; | |
17218 | void *argp1 = 0 ; | |
17219 | int res1 = 0 ; | |
17220 | bool temp2 = false ; | |
17221 | PyObject * obj0 = 0 ; | |
17222 | PyObject * obj1 = 0 ; | |
17223 | char * kwnames[] = { | |
17224 | (char *) "self",(char *) "dir", NULL | |
17225 | }; | |
17226 | ||
17227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) SWIG_fail; | |
17228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17229 | if (!SWIG_IsOK(res1)) { | |
17230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetDirectory" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17231 | } | |
17232 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17233 | { | |
17234 | arg2 = wxString_in_helper(obj1); | |
17235 | if (arg2 == NULL) SWIG_fail; | |
17236 | temp2 = true; | |
17237 | } | |
17238 | { | |
17239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17240 | (arg1)->SetDirectory((wxString const &)*arg2); | |
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
17244 | resultobj = SWIG_Py_Void(); | |
17245 | { | |
17246 | if (temp2) | |
17247 | delete arg2; | |
17248 | } | |
17249 | return resultobj; | |
17250 | fail: | |
17251 | { | |
17252 | if (temp2) | |
17253 | delete arg2; | |
17254 | } | |
17255 | return NULL; | |
d55e5bfc RD |
17256 | } |
17257 | ||
17258 | ||
1bd55598 RD |
17259 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17260 | PyObject *resultobj = 0; | |
17261 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17262 | wxString *arg2 = 0 ; | |
17263 | void *argp1 = 0 ; | |
17264 | int res1 = 0 ; | |
17265 | bool temp2 = false ; | |
17266 | PyObject * obj0 = 0 ; | |
17267 | PyObject * obj1 = 0 ; | |
17268 | char * kwnames[] = { | |
17269 | (char *) "self",(char *) "name", NULL | |
17270 | }; | |
17271 | ||
17272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
17273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17274 | if (!SWIG_IsOK(res1)) { | |
17275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilename" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17276 | } | |
17277 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17278 | { | |
17279 | arg2 = wxString_in_helper(obj1); | |
17280 | if (arg2 == NULL) SWIG_fail; | |
17281 | temp2 = true; | |
17282 | } | |
17283 | { | |
17284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17285 | (arg1)->SetFilename((wxString const &)*arg2); | |
17286 | wxPyEndAllowThreads(__tstate); | |
17287 | if (PyErr_Occurred()) SWIG_fail; | |
17288 | } | |
17289 | resultobj = SWIG_Py_Void(); | |
17290 | { | |
17291 | if (temp2) | |
17292 | delete arg2; | |
17293 | } | |
17294 | return resultobj; | |
17295 | fail: | |
17296 | { | |
17297 | if (temp2) | |
17298 | delete arg2; | |
17299 | } | |
17300 | return NULL; | |
d55e5bfc RD |
17301 | } |
17302 | ||
17303 | ||
1bd55598 RD |
17304 | SWIGINTERN PyObject *_wrap_FileDialog_SetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17305 | PyObject *resultobj = 0; | |
17306 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17307 | wxString *arg2 = 0 ; | |
17308 | void *argp1 = 0 ; | |
17309 | int res1 = 0 ; | |
17310 | bool temp2 = false ; | |
17311 | PyObject * obj0 = 0 ; | |
17312 | PyObject * obj1 = 0 ; | |
17313 | char * kwnames[] = { | |
17314 | (char *) "self",(char *) "wildCard", NULL | |
17315 | }; | |
17316 | ||
17317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) SWIG_fail; | |
17318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17319 | if (!SWIG_IsOK(res1)) { | |
17320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetWildcard" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17321 | } | |
17322 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17323 | { | |
17324 | arg2 = wxString_in_helper(obj1); | |
17325 | if (arg2 == NULL) SWIG_fail; | |
17326 | temp2 = true; | |
17327 | } | |
17328 | { | |
17329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17330 | (arg1)->SetWildcard((wxString const &)*arg2); | |
17331 | wxPyEndAllowThreads(__tstate); | |
17332 | if (PyErr_Occurred()) SWIG_fail; | |
17333 | } | |
17334 | resultobj = SWIG_Py_Void(); | |
17335 | { | |
17336 | if (temp2) | |
17337 | delete arg2; | |
17338 | } | |
17339 | return resultobj; | |
17340 | fail: | |
17341 | { | |
17342 | if (temp2) | |
17343 | delete arg2; | |
17344 | } | |
17345 | return NULL; | |
17346 | } | |
17347 | ||
17348 | ||
1bd55598 RD |
17349 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17350 | PyObject *resultobj = 0; | |
17351 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17352 | int arg2 ; | |
17353 | void *argp1 = 0 ; | |
17354 | int res1 = 0 ; | |
17355 | int val2 ; | |
17356 | int ecode2 = 0 ; | |
17357 | PyObject * obj0 = 0 ; | |
17358 | PyObject * obj1 = 0 ; | |
17359 | char * kwnames[] = { | |
17360 | (char *) "self",(char *) "filterIndex", NULL | |
17361 | }; | |
17362 | ||
17363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
17364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17365 | if (!SWIG_IsOK(res1)) { | |
17366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17367 | } | |
17368 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17369 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17370 | if (!SWIG_IsOK(ecode2)) { | |
17371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
17372 | } | |
17373 | arg2 = static_cast< int >(val2); | |
17374 | { | |
17375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17376 | (arg1)->SetFilterIndex(arg2); | |
17377 | wxPyEndAllowThreads(__tstate); | |
17378 | if (PyErr_Occurred()) SWIG_fail; | |
17379 | } | |
17380 | resultobj = SWIG_Py_Void(); | |
17381 | return resultobj; | |
17382 | fail: | |
17383 | return NULL; | |
d55e5bfc RD |
17384 | } |
17385 | ||
17386 | ||
1bd55598 RD |
17387 | SWIGINTERN PyObject *_wrap_FileDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17388 | PyObject *resultobj = 0; | |
17389 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17390 | wxString result; | |
17391 | void *argp1 = 0 ; | |
17392 | int res1 = 0 ; | |
17393 | PyObject *swig_obj[1] ; | |
17394 | ||
17395 | if (!args) SWIG_fail; | |
17396 | swig_obj[0] = args; | |
17397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17398 | if (!SWIG_IsOK(res1)) { | |
17399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetMessage" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17400 | } | |
17401 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17402 | { | |
17403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17404 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
17405 | wxPyEndAllowThreads(__tstate); | |
17406 | if (PyErr_Occurred()) SWIG_fail; | |
17407 | } | |
17408 | { | |
17409 | #if wxUSE_UNICODE | |
17410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17411 | #else | |
17412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17413 | #endif | |
17414 | } | |
17415 | return resultobj; | |
17416 | fail: | |
17417 | return NULL; | |
d55e5bfc RD |
17418 | } |
17419 | ||
17420 | ||
1bd55598 RD |
17421 | SWIGINTERN PyObject *_wrap_FileDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17422 | PyObject *resultobj = 0; | |
17423 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17424 | wxString result; | |
17425 | void *argp1 = 0 ; | |
17426 | int res1 = 0 ; | |
17427 | PyObject *swig_obj[1] ; | |
17428 | ||
17429 | if (!args) SWIG_fail; | |
17430 | swig_obj[0] = args; | |
17431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17432 | if (!SWIG_IsOK(res1)) { | |
17433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPath" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17434 | } | |
17435 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17436 | { | |
17437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17438 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
17439 | wxPyEndAllowThreads(__tstate); | |
17440 | if (PyErr_Occurred()) SWIG_fail; | |
17441 | } | |
17442 | { | |
17443 | #if wxUSE_UNICODE | |
17444 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17445 | #else | |
17446 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17447 | #endif | |
17448 | } | |
17449 | return resultobj; | |
17450 | fail: | |
17451 | return NULL; | |
d55e5bfc RD |
17452 | } |
17453 | ||
17454 | ||
1bd55598 RD |
17455 | SWIGINTERN PyObject *_wrap_FileDialog_GetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17456 | PyObject *resultobj = 0; | |
17457 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17458 | wxString result; | |
17459 | void *argp1 = 0 ; | |
17460 | int res1 = 0 ; | |
17461 | PyObject *swig_obj[1] ; | |
17462 | ||
17463 | if (!args) SWIG_fail; | |
17464 | swig_obj[0] = args; | |
17465 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17466 | if (!SWIG_IsOK(res1)) { | |
17467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetDirectory" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17468 | } | |
17469 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17470 | { | |
17471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17472 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
17476 | { | |
17477 | #if wxUSE_UNICODE | |
17478 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17479 | #else | |
17480 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17481 | #endif | |
17482 | } | |
17483 | return resultobj; | |
17484 | fail: | |
17485 | return NULL; | |
d55e5bfc RD |
17486 | } |
17487 | ||
17488 | ||
1bd55598 RD |
17489 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17490 | PyObject *resultobj = 0; | |
17491 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17492 | wxString result; | |
17493 | void *argp1 = 0 ; | |
17494 | int res1 = 0 ; | |
17495 | PyObject *swig_obj[1] ; | |
17496 | ||
17497 | if (!args) SWIG_fail; | |
17498 | swig_obj[0] = args; | |
17499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17500 | if (!SWIG_IsOK(res1)) { | |
17501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilename" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17502 | } | |
17503 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17504 | { | |
17505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17506 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
17507 | wxPyEndAllowThreads(__tstate); | |
17508 | if (PyErr_Occurred()) SWIG_fail; | |
17509 | } | |
17510 | { | |
17511 | #if wxUSE_UNICODE | |
17512 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17513 | #else | |
17514 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17515 | #endif | |
17516 | } | |
17517 | return resultobj; | |
17518 | fail: | |
17519 | return NULL; | |
d55e5bfc RD |
17520 | } |
17521 | ||
17522 | ||
1bd55598 RD |
17523 | SWIGINTERN PyObject *_wrap_FileDialog_GetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17524 | PyObject *resultobj = 0; | |
17525 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17526 | wxString result; | |
17527 | void *argp1 = 0 ; | |
17528 | int res1 = 0 ; | |
17529 | PyObject *swig_obj[1] ; | |
17530 | ||
17531 | if (!args) SWIG_fail; | |
17532 | swig_obj[0] = args; | |
17533 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17534 | if (!SWIG_IsOK(res1)) { | |
17535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetWildcard" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17536 | } | |
17537 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17538 | { | |
17539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17540 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
17541 | wxPyEndAllowThreads(__tstate); | |
17542 | if (PyErr_Occurred()) SWIG_fail; | |
17543 | } | |
17544 | { | |
17545 | #if wxUSE_UNICODE | |
17546 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17547 | #else | |
17548 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17549 | #endif | |
17550 | } | |
17551 | return resultobj; | |
17552 | fail: | |
17553 | return NULL; | |
d55e5bfc RD |
17554 | } |
17555 | ||
17556 | ||
1bd55598 RD |
17557 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17558 | PyObject *resultobj = 0; | |
17559 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17560 | int result; | |
17561 | void *argp1 = 0 ; | |
17562 | int res1 = 0 ; | |
17563 | PyObject *swig_obj[1] ; | |
17564 | ||
17565 | if (!args) SWIG_fail; | |
17566 | swig_obj[0] = args; | |
17567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17568 | if (!SWIG_IsOK(res1)) { | |
17569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17570 | } | |
17571 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17572 | { | |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
17575 | wxPyEndAllowThreads(__tstate); | |
17576 | if (PyErr_Occurred()) SWIG_fail; | |
17577 | } | |
17578 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17579 | return resultobj; | |
17580 | fail: | |
17581 | return NULL; | |
d55e5bfc RD |
17582 | } |
17583 | ||
17584 | ||
1bd55598 RD |
17585 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17586 | PyObject *resultobj = 0; | |
17587 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17588 | PyObject *result = 0 ; | |
17589 | void *argp1 = 0 ; | |
17590 | int res1 = 0 ; | |
17591 | PyObject *swig_obj[1] ; | |
17592 | ||
17593 | if (!args) SWIG_fail; | |
17594 | swig_obj[0] = args; | |
17595 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17596 | if (!SWIG_IsOK(res1)) { | |
17597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilenames" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17598 | } | |
17599 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17600 | { | |
17601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17602 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
17603 | wxPyEndAllowThreads(__tstate); | |
17604 | if (PyErr_Occurred()) SWIG_fail; | |
17605 | } | |
17606 | resultobj = result; | |
17607 | return resultobj; | |
17608 | fail: | |
17609 | return NULL; | |
d55e5bfc RD |
17610 | } |
17611 | ||
17612 | ||
1bd55598 RD |
17613 | SWIGINTERN PyObject *_wrap_FileDialog_GetPaths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17614 | PyObject *resultobj = 0; | |
17615 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17616 | PyObject *result = 0 ; | |
17617 | void *argp1 = 0 ; | |
17618 | int res1 = 0 ; | |
17619 | PyObject *swig_obj[1] ; | |
17620 | ||
17621 | if (!args) SWIG_fail; | |
17622 | swig_obj[0] = args; | |
17623 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17624 | if (!SWIG_IsOK(res1)) { | |
17625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPaths" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17626 | } | |
17627 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17628 | { | |
17629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17630 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
17631 | wxPyEndAllowThreads(__tstate); | |
17632 | if (PyErr_Occurred()) SWIG_fail; | |
17633 | } | |
17634 | resultobj = result; | |
17635 | return resultobj; | |
17636 | fail: | |
17637 | return NULL; | |
17638 | } | |
17639 | ||
17640 | ||
17641 | SWIGINTERN PyObject *FileDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17642 | PyObject *obj; | |
17643 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17644 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDialog, SWIG_NewClientData(obj)); | |
17645 | return SWIG_Py_Void(); | |
17646 | } | |
17647 | ||
17648 | SWIGINTERN PyObject *FileDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17649 | return SWIG_Python_InitShadowInstance(args); | |
17650 | } | |
17651 | ||
17652 | SWIGINTERN PyObject *_wrap_new_MultiChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17653 | PyObject *resultobj = 0; | |
17654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17655 | wxString *arg2 = 0 ; | |
17656 | wxString *arg3 = 0 ; | |
17657 | int arg4 = (int) 0 ; | |
17658 | wxString *arg5 = (wxString *) NULL ; | |
17659 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17660 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17661 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17662 | wxMultiChoiceDialog *result = 0 ; | |
17663 | void *argp1 = 0 ; | |
17664 | int res1 = 0 ; | |
17665 | bool temp2 = false ; | |
17666 | bool temp3 = false ; | |
17667 | long val6 ; | |
17668 | int ecode6 = 0 ; | |
17669 | wxPoint temp7 ; | |
17670 | PyObject * obj0 = 0 ; | |
17671 | PyObject * obj1 = 0 ; | |
17672 | PyObject * obj2 = 0 ; | |
17673 | PyObject * obj3 = 0 ; | |
17674 | PyObject * obj4 = 0 ; | |
17675 | PyObject * obj5 = 0 ; | |
17676 | char * kwnames[] = { | |
17677 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17678 | }; | |
17679 | ||
17680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17682 | if (!SWIG_IsOK(res1)) { | |
17683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MultiChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17684 | } | |
17685 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17686 | { | |
17687 | arg2 = wxString_in_helper(obj1); | |
17688 | if (arg2 == NULL) SWIG_fail; | |
17689 | temp2 = true; | |
17690 | } | |
17691 | { | |
17692 | arg3 = wxString_in_helper(obj2); | |
17693 | if (arg3 == NULL) SWIG_fail; | |
17694 | temp3 = true; | |
17695 | } | |
17696 | if (obj3) { | |
d55e5bfc | 17697 | { |
1bd55598 RD |
17698 | arg4 = PyList_Size(obj3); |
17699 | arg5 = wxString_LIST_helper(obj3); | |
17700 | if (arg5 == NULL) SWIG_fail; | |
d55e5bfc | 17701 | } |
1bd55598 RD |
17702 | } |
17703 | if (obj4) { | |
17704 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17705 | if (!SWIG_IsOK(ecode6)) { | |
17706 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MultiChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17707 | } | |
17708 | arg6 = static_cast< long >(val6); | |
17709 | } | |
17710 | if (obj5) { | |
36ed4f51 | 17711 | { |
1bd55598 RD |
17712 | arg7 = &temp7; |
17713 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
36ed4f51 | 17714 | } |
1bd55598 RD |
17715 | } |
17716 | { | |
17717 | if (!wxPyCheckForApp()) SWIG_fail; | |
17718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17719 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17720 | wxPyEndAllowThreads(__tstate); | |
17721 | if (PyErr_Occurred()) SWIG_fail; | |
17722 | } | |
17723 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMultiChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17724 | { | |
17725 | if (temp2) | |
17726 | delete arg2; | |
17727 | } | |
17728 | { | |
17729 | if (temp3) | |
17730 | delete arg3; | |
17731 | } | |
17732 | { | |
17733 | if (arg5) delete [] arg5; | |
17734 | } | |
17735 | return resultobj; | |
17736 | fail: | |
17737 | { | |
17738 | if (temp2) | |
17739 | delete arg2; | |
17740 | } | |
17741 | { | |
17742 | if (temp3) | |
17743 | delete arg3; | |
17744 | } | |
17745 | { | |
17746 | if (arg5) delete [] arg5; | |
17747 | } | |
17748 | return NULL; | |
d55e5bfc RD |
17749 | } |
17750 | ||
17751 | ||
1bd55598 RD |
17752 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17753 | PyObject *resultobj = 0; | |
17754 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17755 | wxArrayInt *arg2 = 0 ; | |
17756 | void *argp1 = 0 ; | |
17757 | int res1 = 0 ; | |
17758 | bool temp2 = false ; | |
17759 | PyObject * obj0 = 0 ; | |
17760 | PyObject * obj1 = 0 ; | |
17761 | char * kwnames[] = { | |
17762 | (char *) "self",(char *) "selections", NULL | |
17763 | }; | |
17764 | ||
17765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) SWIG_fail; | |
17766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17767 | if (!SWIG_IsOK(res1)) { | |
17768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_SetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17769 | } | |
17770 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17771 | { | |
17772 | if (! PySequence_Check(obj1)) { | |
17773 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
17774 | SWIG_fail; | |
17775 | } | |
17776 | arg2 = new wxArrayInt; | |
17777 | temp2 = true; | |
17778 | int i, len=PySequence_Length(obj1); | |
17779 | for (i=0; i<len; i++) { | |
17780 | PyObject* item = PySequence_GetItem(obj1, i); | |
17781 | PyObject* number = PyNumber_Int(item); | |
17782 | arg2->Add(PyInt_AS_LONG(number)); | |
17783 | Py_DECREF(item); | |
17784 | Py_DECREF(number); | |
36ed4f51 | 17785 | } |
1bd55598 RD |
17786 | } |
17787 | { | |
17788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17789 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
17790 | wxPyEndAllowThreads(__tstate); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
17792 | } | |
17793 | resultobj = SWIG_Py_Void(); | |
17794 | { | |
17795 | if (temp2) delete arg2; | |
17796 | } | |
17797 | return resultobj; | |
17798 | fail: | |
17799 | { | |
17800 | if (temp2) delete arg2; | |
17801 | } | |
17802 | return NULL; | |
d55e5bfc RD |
17803 | } |
17804 | ||
17805 | ||
1bd55598 RD |
17806 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17807 | PyObject *resultobj = 0; | |
17808 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17809 | PyObject *result = 0 ; | |
17810 | void *argp1 = 0 ; | |
17811 | int res1 = 0 ; | |
17812 | PyObject *swig_obj[1] ; | |
17813 | ||
17814 | if (!args) SWIG_fail; | |
17815 | swig_obj[0] = args; | |
17816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17817 | if (!SWIG_IsOK(res1)) { | |
17818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_GetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17819 | } | |
17820 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17821 | { | |
17822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17823 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
17824 | wxPyEndAllowThreads(__tstate); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
17827 | resultobj = result; | |
17828 | return resultobj; | |
17829 | fail: | |
17830 | return NULL; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | SWIGINTERN PyObject *MultiChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17835 | PyObject *obj; | |
17836 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17837 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMultiChoiceDialog, SWIG_NewClientData(obj)); | |
17838 | return SWIG_Py_Void(); | |
17839 | } | |
17840 | ||
17841 | SWIGINTERN PyObject *MultiChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17842 | return SWIG_Python_InitShadowInstance(args); | |
17843 | } | |
17844 | ||
17845 | SWIGINTERN PyObject *_wrap_new_SingleChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17846 | PyObject *resultobj = 0; | |
17847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17848 | wxString *arg2 = 0 ; | |
17849 | wxString *arg3 = 0 ; | |
17850 | int arg4 ; | |
17851 | wxString *arg5 = (wxString *) 0 ; | |
17852 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17853 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17854 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17855 | wxSingleChoiceDialog *result = 0 ; | |
17856 | void *argp1 = 0 ; | |
17857 | int res1 = 0 ; | |
17858 | bool temp2 = false ; | |
17859 | bool temp3 = false ; | |
17860 | long val6 ; | |
17861 | int ecode6 = 0 ; | |
17862 | wxPoint temp7 ; | |
17863 | PyObject * obj0 = 0 ; | |
17864 | PyObject * obj1 = 0 ; | |
17865 | PyObject * obj2 = 0 ; | |
17866 | PyObject * obj3 = 0 ; | |
17867 | PyObject * obj4 = 0 ; | |
17868 | PyObject * obj5 = 0 ; | |
17869 | char * kwnames[] = { | |
17870 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17871 | }; | |
17872 | ||
17873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17875 | if (!SWIG_IsOK(res1)) { | |
17876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SingleChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17877 | } | |
17878 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17879 | { | |
17880 | arg2 = wxString_in_helper(obj1); | |
17881 | if (arg2 == NULL) SWIG_fail; | |
17882 | temp2 = true; | |
17883 | } | |
17884 | { | |
17885 | arg3 = wxString_in_helper(obj2); | |
17886 | if (arg3 == NULL) SWIG_fail; | |
17887 | temp3 = true; | |
17888 | } | |
17889 | { | |
17890 | arg4 = PyList_Size(obj3); | |
17891 | arg5 = wxString_LIST_helper(obj3); | |
17892 | if (arg5 == NULL) SWIG_fail; | |
17893 | } | |
17894 | if (obj4) { | |
17895 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17896 | if (!SWIG_IsOK(ecode6)) { | |
17897 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SingleChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17898 | } | |
17899 | arg6 = static_cast< long >(val6); | |
17900 | } | |
17901 | if (obj5) { | |
36ed4f51 | 17902 | { |
1bd55598 RD |
17903 | arg7 = &temp7; |
17904 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
36ed4f51 | 17905 | } |
1bd55598 RD |
17906 | } |
17907 | { | |
17908 | if (!wxPyCheckForApp()) SWIG_fail; | |
17909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17910 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17911 | wxPyEndAllowThreads(__tstate); | |
17912 | if (PyErr_Occurred()) SWIG_fail; | |
17913 | } | |
17914 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17915 | { | |
17916 | if (temp2) | |
17917 | delete arg2; | |
17918 | } | |
17919 | { | |
17920 | if (temp3) | |
17921 | delete arg3; | |
17922 | } | |
17923 | { | |
17924 | if (arg5) delete [] arg5; | |
17925 | } | |
17926 | return resultobj; | |
17927 | fail: | |
17928 | { | |
17929 | if (temp2) | |
17930 | delete arg2; | |
17931 | } | |
17932 | { | |
17933 | if (temp3) | |
17934 | delete arg3; | |
17935 | } | |
17936 | { | |
17937 | if (arg5) delete [] arg5; | |
17938 | } | |
17939 | return NULL; | |
d55e5bfc RD |
17940 | } |
17941 | ||
17942 | ||
1bd55598 RD |
17943 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17944 | PyObject *resultobj = 0; | |
17945 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17946 | int result; | |
17947 | void *argp1 = 0 ; | |
17948 | int res1 = 0 ; | |
17949 | PyObject *swig_obj[1] ; | |
17950 | ||
17951 | if (!args) SWIG_fail; | |
17952 | swig_obj[0] = args; | |
17953 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17954 | if (!SWIG_IsOK(res1)) { | |
17955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17956 | } | |
17957 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17958 | { | |
17959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17960 | result = (int)(arg1)->GetSelection(); | |
17961 | wxPyEndAllowThreads(__tstate); | |
17962 | if (PyErr_Occurred()) SWIG_fail; | |
17963 | } | |
17964 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17965 | return resultobj; | |
17966 | fail: | |
17967 | return NULL; | |
d55e5bfc RD |
17968 | } |
17969 | ||
17970 | ||
1bd55598 RD |
17971 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17972 | PyObject *resultobj = 0; | |
17973 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17974 | wxString result; | |
17975 | void *argp1 = 0 ; | |
17976 | int res1 = 0 ; | |
17977 | PyObject *swig_obj[1] ; | |
17978 | ||
17979 | if (!args) SWIG_fail; | |
17980 | swig_obj[0] = args; | |
17981 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17982 | if (!SWIG_IsOK(res1)) { | |
17983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetStringSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17984 | } | |
17985 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17986 | { | |
17987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17988 | result = (arg1)->GetStringSelection(); | |
17989 | wxPyEndAllowThreads(__tstate); | |
17990 | if (PyErr_Occurred()) SWIG_fail; | |
17991 | } | |
17992 | { | |
17993 | #if wxUSE_UNICODE | |
17994 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17995 | #else | |
17996 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17997 | #endif | |
17998 | } | |
17999 | return resultobj; | |
18000 | fail: | |
18001 | return NULL; | |
18002 | } | |
18003 | ||
18004 | ||
18005 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18006 | PyObject *resultobj = 0; | |
18007 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18008 | int arg2 ; | |
18009 | void *argp1 = 0 ; | |
18010 | int res1 = 0 ; | |
18011 | int val2 ; | |
18012 | int ecode2 = 0 ; | |
18013 | PyObject * obj0 = 0 ; | |
18014 | PyObject * obj1 = 0 ; | |
18015 | char * kwnames[] = { | |
18016 | (char *) "self",(char *) "sel", NULL | |
18017 | }; | |
18018 | ||
18019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
18020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18021 | if (!SWIG_IsOK(res1)) { | |
18022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18023 | } | |
18024 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18025 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18026 | if (!SWIG_IsOK(ecode2)) { | |
18027 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18028 | } | |
18029 | arg2 = static_cast< int >(val2); | |
18030 | { | |
18031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18032 | (arg1)->SetSelection(arg2); | |
18033 | wxPyEndAllowThreads(__tstate); | |
18034 | if (PyErr_Occurred()) SWIG_fail; | |
18035 | } | |
18036 | resultobj = SWIG_Py_Void(); | |
18037 | return resultobj; | |
18038 | fail: | |
18039 | return NULL; | |
18040 | } | |
18041 | ||
18042 | ||
18043 | SWIGINTERN PyObject *SingleChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18044 | PyObject *obj; | |
18045 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18046 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleChoiceDialog, SWIG_NewClientData(obj)); | |
18047 | return SWIG_Py_Void(); | |
18048 | } | |
18049 | ||
18050 | SWIGINTERN PyObject *SingleChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18051 | return SWIG_Python_InitShadowInstance(args); | |
18052 | } | |
18053 | ||
18054 | SWIGINTERN PyObject *_wrap_new_TextEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18055 | PyObject *resultobj = 0; | |
18056 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18057 | wxString *arg2 = 0 ; | |
18058 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
18059 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18060 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18061 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18062 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18063 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18064 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18065 | wxTextEntryDialog *result = 0 ; | |
18066 | void *argp1 = 0 ; | |
18067 | int res1 = 0 ; | |
18068 | bool temp2 = false ; | |
18069 | bool temp3 = false ; | |
18070 | bool temp4 = false ; | |
18071 | long val5 ; | |
18072 | int ecode5 = 0 ; | |
18073 | wxPoint temp6 ; | |
18074 | PyObject * obj0 = 0 ; | |
18075 | PyObject * obj1 = 0 ; | |
18076 | PyObject * obj2 = 0 ; | |
18077 | PyObject * obj3 = 0 ; | |
18078 | PyObject * obj4 = 0 ; | |
18079 | PyObject * obj5 = 0 ; | |
18080 | char * kwnames[] = { | |
18081 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
18082 | }; | |
18083 | ||
18084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18086 | if (!SWIG_IsOK(res1)) { | |
18087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18088 | } | |
18089 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18090 | { | |
18091 | arg2 = wxString_in_helper(obj1); | |
18092 | if (arg2 == NULL) SWIG_fail; | |
18093 | temp2 = true; | |
18094 | } | |
18095 | if (obj2) { | |
36ed4f51 | 18096 | { |
1bd55598 RD |
18097 | arg3 = wxString_in_helper(obj2); |
18098 | if (arg3 == NULL) SWIG_fail; | |
18099 | temp3 = true; | |
36ed4f51 | 18100 | } |
1bd55598 RD |
18101 | } |
18102 | if (obj3) { | |
d55e5bfc | 18103 | { |
1bd55598 RD |
18104 | arg4 = wxString_in_helper(obj3); |
18105 | if (arg4 == NULL) SWIG_fail; | |
18106 | temp4 = true; | |
d55e5bfc | 18107 | } |
1bd55598 RD |
18108 | } |
18109 | if (obj4) { | |
18110 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18111 | if (!SWIG_IsOK(ecode5)) { | |
18112 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TextEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18113 | } | |
18114 | arg5 = static_cast< long >(val5); | |
18115 | } | |
18116 | if (obj5) { | |
d55e5bfc | 18117 | { |
1bd55598 RD |
18118 | arg6 = &temp6; |
18119 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 18120 | } |
1bd55598 RD |
18121 | } |
18122 | { | |
18123 | if (!wxPyCheckForApp()) SWIG_fail; | |
18124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18125 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18126 | wxPyEndAllowThreads(__tstate); | |
18127 | if (PyErr_Occurred()) SWIG_fail; | |
18128 | } | |
18129 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18130 | { | |
18131 | if (temp2) | |
18132 | delete arg2; | |
18133 | } | |
18134 | { | |
18135 | if (temp3) | |
18136 | delete arg3; | |
18137 | } | |
18138 | { | |
18139 | if (temp4) | |
18140 | delete arg4; | |
18141 | } | |
18142 | return resultobj; | |
18143 | fail: | |
18144 | { | |
18145 | if (temp2) | |
18146 | delete arg2; | |
18147 | } | |
18148 | { | |
18149 | if (temp3) | |
18150 | delete arg3; | |
18151 | } | |
18152 | { | |
18153 | if (temp4) | |
18154 | delete arg4; | |
18155 | } | |
18156 | return NULL; | |
d55e5bfc RD |
18157 | } |
18158 | ||
18159 | ||
1bd55598 RD |
18160 | SWIGINTERN PyObject *_wrap_TextEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18161 | PyObject *resultobj = 0; | |
18162 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18163 | wxString result; | |
18164 | void *argp1 = 0 ; | |
18165 | int res1 = 0 ; | |
18166 | PyObject *swig_obj[1] ; | |
18167 | ||
18168 | if (!args) SWIG_fail; | |
18169 | swig_obj[0] = args; | |
18170 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18171 | if (!SWIG_IsOK(res1)) { | |
18172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18173 | } | |
18174 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | result = (arg1)->GetValue(); | |
18178 | wxPyEndAllowThreads(__tstate); | |
18179 | if (PyErr_Occurred()) SWIG_fail; | |
18180 | } | |
18181 | { | |
18182 | #if wxUSE_UNICODE | |
18183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18184 | #else | |
18185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18186 | #endif | |
18187 | } | |
18188 | return resultobj; | |
18189 | fail: | |
18190 | return NULL; | |
18191 | } | |
18192 | ||
18193 | ||
18194 | SWIGINTERN PyObject *_wrap_TextEntryDialog_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18195 | PyObject *resultobj = 0; | |
18196 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18197 | wxString *arg2 = 0 ; | |
18198 | void *argp1 = 0 ; | |
18199 | int res1 = 0 ; | |
18200 | bool temp2 = false ; | |
18201 | PyObject * obj0 = 0 ; | |
18202 | PyObject * obj1 = 0 ; | |
18203 | char * kwnames[] = { | |
18204 | (char *) "self",(char *) "value", NULL | |
18205 | }; | |
18206 | ||
18207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18209 | if (!SWIG_IsOK(res1)) { | |
18210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_SetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18211 | } | |
18212 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18213 | { | |
18214 | arg2 = wxString_in_helper(obj1); | |
18215 | if (arg2 == NULL) SWIG_fail; | |
18216 | temp2 = true; | |
18217 | } | |
18218 | { | |
18219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18220 | (arg1)->SetValue((wxString const &)*arg2); | |
18221 | wxPyEndAllowThreads(__tstate); | |
18222 | if (PyErr_Occurred()) SWIG_fail; | |
18223 | } | |
18224 | resultobj = SWIG_Py_Void(); | |
18225 | { | |
18226 | if (temp2) | |
18227 | delete arg2; | |
18228 | } | |
18229 | return resultobj; | |
18230 | fail: | |
18231 | { | |
18232 | if (temp2) | |
18233 | delete arg2; | |
18234 | } | |
18235 | return NULL; | |
7993762b RD |
18236 | } |
18237 | ||
18238 | ||
1bd55598 RD |
18239 | SWIGINTERN PyObject *TextEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18240 | PyObject *obj; | |
18241 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18242 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextEntryDialog, SWIG_NewClientData(obj)); | |
18243 | return SWIG_Py_Void(); | |
7993762b RD |
18244 | } |
18245 | ||
1bd55598 RD |
18246 | SWIGINTERN PyObject *TextEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18247 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc | 18248 | } |
1bd55598 RD |
18249 | |
18250 | SWIGINTERN int GetPasswordFromUserPromptStr_set(PyObject *) { | |
18251 | SWIG_Error(SWIG_AttributeError,"Variable GetPasswordFromUserPromptStr is read-only."); | |
18252 | return 1; | |
d55e5bfc RD |
18253 | } |
18254 | ||
18255 | ||
1bd55598 RD |
18256 | SWIGINTERN PyObject *GetPasswordFromUserPromptStr_get(void) { |
18257 | PyObject *pyobj = 0; | |
18258 | ||
18259 | { | |
d55e5bfc | 18260 | #if wxUSE_UNICODE |
1bd55598 | 18261 | pyobj = PyUnicode_FromWideChar((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); |
d55e5bfc | 18262 | #else |
1bd55598 | 18263 | pyobj = PyString_FromStringAndSize((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); |
d55e5bfc | 18264 | #endif |
1bd55598 RD |
18265 | } |
18266 | return pyobj; | |
18267 | } | |
18268 | ||
18269 | ||
18270 | SWIGINTERN PyObject *_wrap_new_PasswordEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18271 | PyObject *resultobj = 0; | |
18272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18273 | wxString *arg2 = 0 ; | |
18274 | wxString const &arg3_defvalue = wxPyGetPasswordFromUserPromptStr ; | |
18275 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18276 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18277 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18278 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18279 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18280 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18281 | wxPasswordEntryDialog *result = 0 ; | |
18282 | void *argp1 = 0 ; | |
18283 | int res1 = 0 ; | |
18284 | bool temp2 = false ; | |
18285 | bool temp3 = false ; | |
18286 | bool temp4 = false ; | |
18287 | long val5 ; | |
18288 | int ecode5 = 0 ; | |
18289 | wxPoint temp6 ; | |
18290 | PyObject * obj0 = 0 ; | |
18291 | PyObject * obj1 = 0 ; | |
18292 | PyObject * obj2 = 0 ; | |
18293 | PyObject * obj3 = 0 ; | |
18294 | PyObject * obj4 = 0 ; | |
18295 | PyObject * obj5 = 0 ; | |
18296 | char * kwnames[] = { | |
18297 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "value",(char *) "style",(char *) "pos", NULL | |
18298 | }; | |
18299 | ||
18300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PasswordEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18302 | if (!SWIG_IsOK(res1)) { | |
18303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PasswordEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18304 | } | |
18305 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18306 | { | |
18307 | arg2 = wxString_in_helper(obj1); | |
18308 | if (arg2 == NULL) SWIG_fail; | |
18309 | temp2 = true; | |
18310 | } | |
18311 | if (obj2) { | |
d55e5bfc | 18312 | { |
1bd55598 RD |
18313 | arg3 = wxString_in_helper(obj2); |
18314 | if (arg3 == NULL) SWIG_fail; | |
18315 | temp3 = true; | |
d55e5bfc | 18316 | } |
1bd55598 RD |
18317 | } |
18318 | if (obj3) { | |
d55e5bfc | 18319 | { |
1bd55598 RD |
18320 | arg4 = wxString_in_helper(obj3); |
18321 | if (arg4 == NULL) SWIG_fail; | |
18322 | temp4 = true; | |
d55e5bfc | 18323 | } |
1bd55598 RD |
18324 | } |
18325 | if (obj4) { | |
18326 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18327 | if (!SWIG_IsOK(ecode5)) { | |
18328 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PasswordEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18329 | } | |
18330 | arg5 = static_cast< long >(val5); | |
18331 | } | |
18332 | if (obj5) { | |
d55e5bfc | 18333 | { |
1bd55598 RD |
18334 | arg6 = &temp6; |
18335 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
18336 | } | |
18337 | } | |
18338 | { | |
18339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18340 | result = (wxPasswordEntryDialog *)new wxPasswordEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18341 | wxPyEndAllowThreads(__tstate); | |
18342 | if (PyErr_Occurred()) SWIG_fail; | |
18343 | } | |
18344 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPasswordEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18345 | { | |
18346 | if (temp2) | |
18347 | delete arg2; | |
18348 | } | |
18349 | { | |
18350 | if (temp3) | |
18351 | delete arg3; | |
18352 | } | |
18353 | { | |
18354 | if (temp4) | |
18355 | delete arg4; | |
18356 | } | |
18357 | return resultobj; | |
18358 | fail: | |
18359 | { | |
18360 | if (temp2) | |
18361 | delete arg2; | |
18362 | } | |
18363 | { | |
18364 | if (temp3) | |
18365 | delete arg3; | |
18366 | } | |
18367 | { | |
18368 | if (temp4) | |
18369 | delete arg4; | |
18370 | } | |
18371 | return NULL; | |
d55e5bfc RD |
18372 | } |
18373 | ||
18374 | ||
1bd55598 RD |
18375 | SWIGINTERN PyObject *PasswordEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18376 | PyObject *obj; | |
18377 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18378 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPasswordEntryDialog, SWIG_NewClientData(obj)); | |
18379 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18380 | } |
18381 | ||
1bd55598 RD |
18382 | SWIGINTERN PyObject *PasswordEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18383 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
18384 | } |
18385 | ||
27e45892 RD |
18386 | SWIGINTERN PyObject *_wrap_new_NumberEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18387 | PyObject *resultobj = 0; | |
18388 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18389 | wxString *arg2 = 0 ; | |
18390 | wxString *arg3 = 0 ; | |
18391 | wxString *arg4 = 0 ; | |
18392 | long arg5 ; | |
18393 | long arg6 ; | |
18394 | long arg7 ; | |
18395 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
18396 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
18397 | wxNumberEntryDialog *result = 0 ; | |
18398 | void *argp1 = 0 ; | |
18399 | int res1 = 0 ; | |
18400 | bool temp2 = false ; | |
18401 | bool temp3 = false ; | |
18402 | bool temp4 = false ; | |
18403 | long val5 ; | |
18404 | int ecode5 = 0 ; | |
18405 | long val6 ; | |
18406 | int ecode6 = 0 ; | |
18407 | long val7 ; | |
18408 | int ecode7 = 0 ; | |
18409 | wxPoint temp8 ; | |
18410 | PyObject * obj0 = 0 ; | |
18411 | PyObject * obj1 = 0 ; | |
18412 | PyObject * obj2 = 0 ; | |
18413 | PyObject * obj3 = 0 ; | |
18414 | PyObject * obj4 = 0 ; | |
18415 | PyObject * obj5 = 0 ; | |
18416 | PyObject * obj6 = 0 ; | |
18417 | PyObject * obj7 = 0 ; | |
18418 | char * kwnames[] = { | |
18419 | (char *) "parent",(char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "pos", NULL | |
18420 | }; | |
18421 | ||
18422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO|O:new_NumberEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18424 | if (!SWIG_IsOK(res1)) { | |
18425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NumberEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18426 | } | |
18427 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18428 | { | |
18429 | arg2 = wxString_in_helper(obj1); | |
18430 | if (arg2 == NULL) SWIG_fail; | |
18431 | temp2 = true; | |
18432 | } | |
18433 | { | |
18434 | arg3 = wxString_in_helper(obj2); | |
18435 | if (arg3 == NULL) SWIG_fail; | |
18436 | temp3 = true; | |
18437 | } | |
18438 | { | |
18439 | arg4 = wxString_in_helper(obj3); | |
18440 | if (arg4 == NULL) SWIG_fail; | |
18441 | temp4 = true; | |
18442 | } | |
18443 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18444 | if (!SWIG_IsOK(ecode5)) { | |
18445 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_NumberEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18446 | } | |
18447 | arg5 = static_cast< long >(val5); | |
18448 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18449 | if (!SWIG_IsOK(ecode6)) { | |
18450 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_NumberEntryDialog" "', expected argument " "6"" of type '" "long""'"); | |
18451 | } | |
18452 | arg6 = static_cast< long >(val6); | |
18453 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18454 | if (!SWIG_IsOK(ecode7)) { | |
18455 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_NumberEntryDialog" "', expected argument " "7"" of type '" "long""'"); | |
18456 | } | |
18457 | arg7 = static_cast< long >(val7); | |
18458 | if (obj7) { | |
18459 | { | |
18460 | arg8 = &temp8; | |
18461 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
18462 | } | |
18463 | } | |
18464 | { | |
18465 | if (!wxPyCheckForApp()) SWIG_fail; | |
18466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18467 | result = (wxNumberEntryDialog *)new wxNumberEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
18468 | wxPyEndAllowThreads(__tstate); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
18471 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNumberEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18472 | { | |
18473 | if (temp2) | |
18474 | delete arg2; | |
18475 | } | |
18476 | { | |
18477 | if (temp3) | |
18478 | delete arg3; | |
18479 | } | |
18480 | { | |
18481 | if (temp4) | |
18482 | delete arg4; | |
18483 | } | |
18484 | return resultobj; | |
18485 | fail: | |
18486 | { | |
18487 | if (temp2) | |
18488 | delete arg2; | |
18489 | } | |
18490 | { | |
18491 | if (temp3) | |
18492 | delete arg3; | |
18493 | } | |
18494 | { | |
18495 | if (temp4) | |
18496 | delete arg4; | |
18497 | } | |
18498 | return NULL; | |
18499 | } | |
18500 | ||
18501 | ||
18502 | SWIGINTERN PyObject *_wrap_NumberEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18503 | PyObject *resultobj = 0; | |
18504 | wxNumberEntryDialog *arg1 = (wxNumberEntryDialog *) 0 ; | |
18505 | long result; | |
18506 | void *argp1 = 0 ; | |
18507 | int res1 = 0 ; | |
18508 | PyObject *swig_obj[1] ; | |
18509 | ||
18510 | if (!args) SWIG_fail; | |
18511 | swig_obj[0] = args; | |
18512 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNumberEntryDialog, 0 | 0 ); | |
18513 | if (!SWIG_IsOK(res1)) { | |
18514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumberEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxNumberEntryDialog *""'"); | |
18515 | } | |
18516 | arg1 = reinterpret_cast< wxNumberEntryDialog * >(argp1); | |
18517 | { | |
18518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18519 | result = (long)(arg1)->GetValue(); | |
18520 | wxPyEndAllowThreads(__tstate); | |
18521 | if (PyErr_Occurred()) SWIG_fail; | |
18522 | } | |
18523 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
18524 | return resultobj; | |
18525 | fail: | |
18526 | return NULL; | |
18527 | } | |
18528 | ||
18529 | ||
18530 | SWIGINTERN PyObject *NumberEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18531 | PyObject *obj; | |
18532 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18533 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNumberEntryDialog, SWIG_NewClientData(obj)); | |
18534 | return SWIG_Py_Void(); | |
18535 | } | |
18536 | ||
18537 | SWIGINTERN PyObject *NumberEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18538 | return SWIG_Python_InitShadowInstance(args); | |
18539 | } | |
18540 | ||
1bd55598 RD |
18541 | SWIGINTERN PyObject *_wrap_new_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18542 | PyObject *resultobj = 0; | |
18543 | wxFontData *result = 0 ; | |
18544 | ||
18545 | if (!SWIG_Python_UnpackTuple(args,"new_FontData",0,0,0)) SWIG_fail; | |
18546 | { | |
18547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18548 | result = (wxFontData *)new wxFontData(); | |
18549 | wxPyEndAllowThreads(__tstate); | |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
18551 | } | |
18552 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, SWIG_POINTER_NEW | 0 ); | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | return NULL; | |
d55e5bfc RD |
18556 | } |
18557 | ||
18558 | ||
1bd55598 RD |
18559 | SWIGINTERN PyObject *_wrap_delete_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18560 | PyObject *resultobj = 0; | |
18561 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18562 | void *argp1 = 0 ; | |
18563 | int res1 = 0 ; | |
18564 | PyObject *swig_obj[1] ; | |
18565 | ||
18566 | if (!args) SWIG_fail; | |
18567 | swig_obj[0] = args; | |
18568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, SWIG_POINTER_DISOWN | 0 ); | |
18569 | if (!SWIG_IsOK(res1)) { | |
18570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontData" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18571 | } | |
18572 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18573 | { | |
18574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18575 | delete arg1; | |
d55e5bfc | 18576 | |
1bd55598 RD |
18577 | wxPyEndAllowThreads(__tstate); |
18578 | if (PyErr_Occurred()) SWIG_fail; | |
18579 | } | |
18580 | resultobj = SWIG_Py_Void(); | |
18581 | return resultobj; | |
18582 | fail: | |
18583 | return NULL; | |
18584 | } | |
18585 | ||
18586 | ||
18587 | SWIGINTERN PyObject *_wrap_FontData_EnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18588 | PyObject *resultobj = 0; | |
18589 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18590 | bool arg2 ; | |
18591 | void *argp1 = 0 ; | |
18592 | int res1 = 0 ; | |
18593 | bool val2 ; | |
18594 | int ecode2 = 0 ; | |
18595 | PyObject * obj0 = 0 ; | |
18596 | PyObject * obj1 = 0 ; | |
18597 | char * kwnames[] = { | |
18598 | (char *) "self",(char *) "enable", NULL | |
18599 | }; | |
18600 | ||
18601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) SWIG_fail; | |
18602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18603 | if (!SWIG_IsOK(res1)) { | |
18604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_EnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18605 | } | |
18606 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18607 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18608 | if (!SWIG_IsOK(ecode2)) { | |
18609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_EnableEffects" "', expected argument " "2"" of type '" "bool""'"); | |
18610 | } | |
18611 | arg2 = static_cast< bool >(val2); | |
18612 | { | |
18613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18614 | (arg1)->EnableEffects(arg2); | |
18615 | wxPyEndAllowThreads(__tstate); | |
18616 | if (PyErr_Occurred()) SWIG_fail; | |
18617 | } | |
18618 | resultobj = SWIG_Py_Void(); | |
18619 | return resultobj; | |
18620 | fail: | |
18621 | return NULL; | |
d55e5bfc RD |
18622 | } |
18623 | ||
18624 | ||
1bd55598 RD |
18625 | SWIGINTERN PyObject *_wrap_FontData_GetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18626 | PyObject *resultobj = 0; | |
18627 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18628 | bool result; | |
18629 | void *argp1 = 0 ; | |
18630 | int res1 = 0 ; | |
18631 | PyObject *swig_obj[1] ; | |
18632 | ||
18633 | if (!args) SWIG_fail; | |
18634 | swig_obj[0] = args; | |
18635 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18636 | if (!SWIG_IsOK(res1)) { | |
18637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18638 | } | |
18639 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18640 | { | |
18641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18642 | result = (bool)(arg1)->GetAllowSymbols(); | |
18643 | wxPyEndAllowThreads(__tstate); | |
18644 | if (PyErr_Occurred()) SWIG_fail; | |
18645 | } | |
18646 | { | |
18647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18648 | } | |
18649 | return resultobj; | |
18650 | fail: | |
18651 | return NULL; | |
d55e5bfc RD |
18652 | } |
18653 | ||
18654 | ||
1bd55598 RD |
18655 | SWIGINTERN PyObject *_wrap_FontData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18656 | PyObject *resultobj = 0; | |
18657 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18658 | wxColour result; | |
18659 | void *argp1 = 0 ; | |
18660 | int res1 = 0 ; | |
18661 | PyObject *swig_obj[1] ; | |
18662 | ||
18663 | if (!args) SWIG_fail; | |
18664 | swig_obj[0] = args; | |
18665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18666 | if (!SWIG_IsOK(res1)) { | |
18667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18668 | } | |
18669 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18670 | { | |
18671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18672 | result = (arg1)->GetColour(); | |
18673 | wxPyEndAllowThreads(__tstate); | |
18674 | if (PyErr_Occurred()) SWIG_fail; | |
18675 | } | |
18676 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18677 | return resultobj; | |
18678 | fail: | |
18679 | return NULL; | |
d55e5bfc RD |
18680 | } |
18681 | ||
18682 | ||
1bd55598 RD |
18683 | SWIGINTERN PyObject *_wrap_FontData_GetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18684 | PyObject *resultobj = 0; | |
18685 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18686 | wxFont result; | |
18687 | void *argp1 = 0 ; | |
18688 | int res1 = 0 ; | |
18689 | PyObject *swig_obj[1] ; | |
18690 | ||
18691 | if (!args) SWIG_fail; | |
18692 | swig_obj[0] = args; | |
18693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18694 | if (!SWIG_IsOK(res1)) { | |
18695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18696 | } | |
18697 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18698 | { | |
18699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18700 | result = (arg1)->GetChosenFont(); | |
18701 | wxPyEndAllowThreads(__tstate); | |
18702 | if (PyErr_Occurred()) SWIG_fail; | |
18703 | } | |
18704 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18705 | return resultobj; | |
18706 | fail: | |
18707 | return NULL; | |
d55e5bfc RD |
18708 | } |
18709 | ||
18710 | ||
1bd55598 RD |
18711 | SWIGINTERN PyObject *_wrap_FontData_GetEnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18712 | PyObject *resultobj = 0; | |
18713 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18714 | bool result; | |
18715 | void *argp1 = 0 ; | |
18716 | int res1 = 0 ; | |
18717 | PyObject *swig_obj[1] ; | |
18718 | ||
18719 | if (!args) SWIG_fail; | |
18720 | swig_obj[0] = args; | |
18721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18722 | if (!SWIG_IsOK(res1)) { | |
18723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetEnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18724 | } | |
18725 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18726 | { | |
18727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18728 | result = (bool)(arg1)->GetEnableEffects(); | |
18729 | wxPyEndAllowThreads(__tstate); | |
18730 | if (PyErr_Occurred()) SWIG_fail; | |
18731 | } | |
18732 | { | |
18733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18734 | } | |
18735 | return resultobj; | |
18736 | fail: | |
18737 | return NULL; | |
d55e5bfc RD |
18738 | } |
18739 | ||
18740 | ||
1bd55598 RD |
18741 | SWIGINTERN PyObject *_wrap_FontData_GetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18742 | PyObject *resultobj = 0; | |
18743 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18744 | wxFont result; | |
18745 | void *argp1 = 0 ; | |
18746 | int res1 = 0 ; | |
18747 | PyObject *swig_obj[1] ; | |
18748 | ||
18749 | if (!args) SWIG_fail; | |
18750 | swig_obj[0] = args; | |
18751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18752 | if (!SWIG_IsOK(res1)) { | |
18753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18754 | } | |
18755 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18756 | { | |
18757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18758 | result = (arg1)->GetInitialFont(); | |
18759 | wxPyEndAllowThreads(__tstate); | |
18760 | if (PyErr_Occurred()) SWIG_fail; | |
18761 | } | |
18762 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18763 | return resultobj; | |
18764 | fail: | |
18765 | return NULL; | |
d55e5bfc RD |
18766 | } |
18767 | ||
18768 | ||
1bd55598 RD |
18769 | SWIGINTERN PyObject *_wrap_FontData_GetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18770 | PyObject *resultobj = 0; | |
18771 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18772 | bool result; | |
18773 | void *argp1 = 0 ; | |
18774 | int res1 = 0 ; | |
18775 | PyObject *swig_obj[1] ; | |
18776 | ||
18777 | if (!args) SWIG_fail; | |
18778 | swig_obj[0] = args; | |
18779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18780 | if (!SWIG_IsOK(res1)) { | |
18781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18782 | } | |
18783 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18784 | { | |
18785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18786 | result = (bool)(arg1)->GetShowHelp(); | |
18787 | wxPyEndAllowThreads(__tstate); | |
18788 | if (PyErr_Occurred()) SWIG_fail; | |
18789 | } | |
18790 | { | |
18791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18792 | } | |
18793 | return resultobj; | |
18794 | fail: | |
18795 | return NULL; | |
18796 | } | |
18797 | ||
18798 | ||
18799 | SWIGINTERN PyObject *_wrap_FontData_SetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18800 | PyObject *resultobj = 0; | |
18801 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18802 | bool arg2 ; | |
18803 | void *argp1 = 0 ; | |
18804 | int res1 = 0 ; | |
18805 | bool val2 ; | |
18806 | int ecode2 = 0 ; | |
18807 | PyObject * obj0 = 0 ; | |
18808 | PyObject * obj1 = 0 ; | |
18809 | char * kwnames[] = { | |
18810 | (char *) "self",(char *) "allowSymbols", NULL | |
18811 | }; | |
18812 | ||
18813 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) SWIG_fail; | |
18814 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18815 | if (!SWIG_IsOK(res1)) { | |
18816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18817 | } | |
18818 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18819 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18820 | if (!SWIG_IsOK(ecode2)) { | |
18821 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetAllowSymbols" "', expected argument " "2"" of type '" "bool""'"); | |
18822 | } | |
18823 | arg2 = static_cast< bool >(val2); | |
18824 | { | |
18825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18826 | (arg1)->SetAllowSymbols(arg2); | |
18827 | wxPyEndAllowThreads(__tstate); | |
18828 | if (PyErr_Occurred()) SWIG_fail; | |
18829 | } | |
18830 | resultobj = SWIG_Py_Void(); | |
18831 | return resultobj; | |
18832 | fail: | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
18837 | SWIGINTERN PyObject *_wrap_FontData_SetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18838 | PyObject *resultobj = 0; | |
18839 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18840 | wxFont *arg2 = 0 ; | |
18841 | void *argp1 = 0 ; | |
18842 | int res1 = 0 ; | |
18843 | void *argp2 = 0 ; | |
18844 | int res2 = 0 ; | |
18845 | PyObject * obj0 = 0 ; | |
18846 | PyObject * obj1 = 0 ; | |
18847 | char * kwnames[] = { | |
18848 | (char *) "self",(char *) "font", NULL | |
18849 | }; | |
18850 | ||
18851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18852 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18853 | if (!SWIG_IsOK(res1)) { | |
18854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18855 | } | |
18856 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18857 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18858 | if (!SWIG_IsOK(res2)) { | |
18859 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18860 | } | |
18861 | if (!argp2) { | |
18862 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18863 | } | |
18864 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18865 | { | |
18866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18867 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
18868 | wxPyEndAllowThreads(__tstate); | |
18869 | if (PyErr_Occurred()) SWIG_fail; | |
18870 | } | |
18871 | resultobj = SWIG_Py_Void(); | |
18872 | return resultobj; | |
18873 | fail: | |
18874 | return NULL; | |
18875 | } | |
18876 | ||
18877 | ||
18878 | SWIGINTERN PyObject *_wrap_FontData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18879 | PyObject *resultobj = 0; | |
18880 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18881 | wxColour *arg2 = 0 ; | |
18882 | void *argp1 = 0 ; | |
18883 | int res1 = 0 ; | |
18884 | wxColour temp2 ; | |
18885 | PyObject * obj0 = 0 ; | |
18886 | PyObject * obj1 = 0 ; | |
18887 | char * kwnames[] = { | |
18888 | (char *) "self",(char *) "colour", NULL | |
18889 | }; | |
18890 | ||
18891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
18892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18893 | if (!SWIG_IsOK(res1)) { | |
18894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18895 | } | |
18896 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18897 | { | |
18898 | arg2 = &temp2; | |
18899 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18900 | } | |
18901 | { | |
18902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18903 | (arg1)->SetColour((wxColour const &)*arg2); | |
18904 | wxPyEndAllowThreads(__tstate); | |
18905 | if (PyErr_Occurred()) SWIG_fail; | |
18906 | } | |
18907 | resultobj = SWIG_Py_Void(); | |
18908 | return resultobj; | |
18909 | fail: | |
18910 | return NULL; | |
18911 | } | |
18912 | ||
18913 | ||
18914 | SWIGINTERN PyObject *_wrap_FontData_SetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18915 | PyObject *resultobj = 0; | |
18916 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18917 | wxFont *arg2 = 0 ; | |
18918 | void *argp1 = 0 ; | |
18919 | int res1 = 0 ; | |
18920 | void *argp2 = 0 ; | |
18921 | int res2 = 0 ; | |
18922 | PyObject * obj0 = 0 ; | |
18923 | PyObject * obj1 = 0 ; | |
18924 | char * kwnames[] = { | |
18925 | (char *) "self",(char *) "font", NULL | |
18926 | }; | |
18927 | ||
18928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18930 | if (!SWIG_IsOK(res1)) { | |
18931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18932 | } | |
18933 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18934 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18935 | if (!SWIG_IsOK(res2)) { | |
18936 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18937 | } | |
18938 | if (!argp2) { | |
18939 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18940 | } | |
18941 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18942 | { | |
18943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18944 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
18945 | wxPyEndAllowThreads(__tstate); | |
18946 | if (PyErr_Occurred()) SWIG_fail; | |
18947 | } | |
18948 | resultobj = SWIG_Py_Void(); | |
18949 | return resultobj; | |
18950 | fail: | |
18951 | return NULL; | |
18952 | } | |
18953 | ||
18954 | ||
18955 | SWIGINTERN PyObject *_wrap_FontData_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18956 | PyObject *resultobj = 0; | |
18957 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18958 | int arg2 ; | |
18959 | int arg3 ; | |
18960 | void *argp1 = 0 ; | |
18961 | int res1 = 0 ; | |
18962 | int val2 ; | |
18963 | int ecode2 = 0 ; | |
18964 | int val3 ; | |
18965 | int ecode3 = 0 ; | |
18966 | PyObject * obj0 = 0 ; | |
18967 | PyObject * obj1 = 0 ; | |
18968 | PyObject * obj2 = 0 ; | |
18969 | char * kwnames[] = { | |
18970 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18971 | }; | |
18972 | ||
18973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18975 | if (!SWIG_IsOK(res1)) { | |
18976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetRange" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18977 | } | |
18978 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18979 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18980 | if (!SWIG_IsOK(ecode2)) { | |
18981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
18982 | } | |
18983 | arg2 = static_cast< int >(val2); | |
18984 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18985 | if (!SWIG_IsOK(ecode3)) { | |
18986 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontData_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
18987 | } | |
18988 | arg3 = static_cast< int >(val3); | |
18989 | { | |
18990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18991 | (arg1)->SetRange(arg2,arg3); | |
18992 | wxPyEndAllowThreads(__tstate); | |
18993 | if (PyErr_Occurred()) SWIG_fail; | |
18994 | } | |
18995 | resultobj = SWIG_Py_Void(); | |
18996 | return resultobj; | |
18997 | fail: | |
18998 | return NULL; | |
18999 | } | |
19000 | ||
19001 | ||
19002 | SWIGINTERN PyObject *_wrap_FontData_SetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19003 | PyObject *resultobj = 0; | |
19004 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19005 | bool arg2 ; | |
19006 | void *argp1 = 0 ; | |
19007 | int res1 = 0 ; | |
19008 | bool val2 ; | |
19009 | int ecode2 = 0 ; | |
19010 | PyObject * obj0 = 0 ; | |
19011 | PyObject * obj1 = 0 ; | |
19012 | char * kwnames[] = { | |
19013 | (char *) "self",(char *) "showHelp", NULL | |
19014 | }; | |
19015 | ||
19016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
19017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19018 | if (!SWIG_IsOK(res1)) { | |
19019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19020 | } | |
19021 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19022 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19023 | if (!SWIG_IsOK(ecode2)) { | |
19024 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetShowHelp" "', expected argument " "2"" of type '" "bool""'"); | |
19025 | } | |
19026 | arg2 = static_cast< bool >(val2); | |
19027 | { | |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | (arg1)->SetShowHelp(arg2); | |
19030 | wxPyEndAllowThreads(__tstate); | |
19031 | if (PyErr_Occurred()) SWIG_fail; | |
19032 | } | |
19033 | resultobj = SWIG_Py_Void(); | |
19034 | return resultobj; | |
19035 | fail: | |
19036 | return NULL; | |
d55e5bfc RD |
19037 | } |
19038 | ||
19039 | ||
1bd55598 RD |
19040 | SWIGINTERN PyObject *FontData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19041 | PyObject *obj; | |
19042 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19043 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontData, SWIG_NewClientData(obj)); | |
19044 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19045 | } |
19046 | ||
1bd55598 RD |
19047 | SWIGINTERN PyObject *FontData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19048 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
19049 | } |
19050 | ||
1bd55598 RD |
19051 | SWIGINTERN PyObject *_wrap_new_FontDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19052 | PyObject *resultobj = 0; | |
19053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19054 | wxFontData *arg2 = 0 ; | |
19055 | wxFontDialog *result = 0 ; | |
19056 | void *argp1 = 0 ; | |
19057 | int res1 = 0 ; | |
19058 | void *argp2 = 0 ; | |
19059 | int res2 = 0 ; | |
19060 | PyObject * obj0 = 0 ; | |
19061 | PyObject * obj1 = 0 ; | |
19062 | char * kwnames[] = { | |
19063 | (char *) "parent",(char *) "data", NULL | |
19064 | }; | |
19065 | ||
19066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
19067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19068 | if (!SWIG_IsOK(res1)) { | |
19069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19070 | } | |
19071 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19072 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFontData, 0 | 0); | |
19073 | if (!SWIG_IsOK(res2)) { | |
19074 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
19075 | } | |
19076 | if (!argp2) { | |
19077 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
19078 | } | |
19079 | arg2 = reinterpret_cast< wxFontData * >(argp2); | |
19080 | { | |
19081 | if (!wxPyCheckForApp()) SWIG_fail; | |
19082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19083 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
19084 | wxPyEndAllowThreads(__tstate); | |
19085 | if (PyErr_Occurred()) SWIG_fail; | |
19086 | } | |
19087 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontDialog, SWIG_POINTER_NEW | 0 ); | |
19088 | return resultobj; | |
19089 | fail: | |
19090 | return NULL; | |
d55e5bfc RD |
19091 | } |
19092 | ||
19093 | ||
1bd55598 RD |
19094 | SWIGINTERN PyObject *_wrap_FontDialog_GetFontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19095 | PyObject *resultobj = 0; | |
19096 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
19097 | wxFontData *result = 0 ; | |
19098 | void *argp1 = 0 ; | |
19099 | int res1 = 0 ; | |
19100 | PyObject *swig_obj[1] ; | |
19101 | ||
19102 | if (!args) SWIG_fail; | |
19103 | swig_obj[0] = args; | |
19104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontDialog, 0 | 0 ); | |
19105 | if (!SWIG_IsOK(res1)) { | |
19106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontDialog_GetFontData" "', expected argument " "1"" of type '" "wxFontDialog *""'"); | |
19107 | } | |
19108 | arg1 = reinterpret_cast< wxFontDialog * >(argp1); | |
19109 | { | |
19110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19111 | { |
1bd55598 RD |
19112 | wxFontData &_result_ref = (arg1)->GetFontData(); |
19113 | result = (wxFontData *) &_result_ref; | |
36ed4f51 | 19114 | } |
1bd55598 RD |
19115 | wxPyEndAllowThreads(__tstate); |
19116 | if (PyErr_Occurred()) SWIG_fail; | |
19117 | } | |
19118 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19119 | return resultobj; | |
19120 | fail: | |
19121 | return NULL; | |
19122 | } | |
19123 | ||
19124 | ||
19125 | SWIGINTERN PyObject *FontDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19126 | PyObject *obj; | |
19127 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19128 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontDialog, SWIG_NewClientData(obj)); | |
19129 | return SWIG_Py_Void(); | |
19130 | } | |
19131 | ||
19132 | SWIGINTERN PyObject *FontDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19133 | return SWIG_Python_InitShadowInstance(args); | |
19134 | } | |
19135 | ||
19136 | SWIGINTERN PyObject *_wrap_GetFontFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19137 | PyObject *resultobj = 0; | |
19138 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19139 | wxFont const &arg2_defvalue = wxNullFont ; | |
19140 | wxFont *arg2 = (wxFont *) &arg2_defvalue ; | |
19141 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19142 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19143 | wxFont result; | |
19144 | void *argp1 = 0 ; | |
19145 | int res1 = 0 ; | |
19146 | void *argp2 = 0 ; | |
19147 | int res2 = 0 ; | |
19148 | bool temp3 = false ; | |
19149 | PyObject * obj0 = 0 ; | |
19150 | PyObject * obj1 = 0 ; | |
19151 | PyObject * obj2 = 0 ; | |
19152 | char * kwnames[] = { | |
19153 | (char *) "parent",(char *) "fontInit",(char *) "caption", NULL | |
19154 | }; | |
19155 | ||
19156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetFontFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19157 | if (obj0) { | |
19158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19159 | if (!SWIG_IsOK(res1)) { | |
19160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetFontFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
36ed4f51 | 19161 | } |
1bd55598 RD |
19162 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
19163 | } | |
19164 | if (obj1) { | |
19165 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19166 | if (!SWIG_IsOK(res2)) { | |
19167 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d55e5bfc | 19168 | } |
1bd55598 RD |
19169 | if (!argp2) { |
19170 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d55e5bfc | 19171 | } |
1bd55598 RD |
19172 | arg2 = reinterpret_cast< wxFont * >(argp2); |
19173 | } | |
19174 | if (obj2) { | |
d55e5bfc | 19175 | { |
1bd55598 RD |
19176 | arg3 = wxString_in_helper(obj2); |
19177 | if (arg3 == NULL) SWIG_fail; | |
19178 | temp3 = true; | |
d55e5bfc | 19179 | } |
1bd55598 RD |
19180 | } |
19181 | { | |
19182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19183 | result = wxGetFontFromUser(arg1,(wxFont const &)*arg2,(wxString const &)*arg3); | |
19184 | wxPyEndAllowThreads(__tstate); | |
19185 | if (PyErr_Occurred()) SWIG_fail; | |
19186 | } | |
19187 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
19188 | { | |
19189 | if (temp3) | |
19190 | delete arg3; | |
19191 | } | |
19192 | return resultobj; | |
19193 | fail: | |
19194 | { | |
19195 | if (temp3) | |
19196 | delete arg3; | |
19197 | } | |
19198 | return NULL; | |
19199 | } | |
19200 | ||
19201 | ||
19202 | SWIGINTERN PyObject *_wrap_new_MessageDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19203 | PyObject *resultobj = 0; | |
19204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19205 | wxString *arg2 = 0 ; | |
19206 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
19207 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19208 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
19209 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
19210 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
19211 | wxMessageDialog *result = 0 ; | |
19212 | void *argp1 = 0 ; | |
19213 | int res1 = 0 ; | |
19214 | bool temp2 = false ; | |
19215 | bool temp3 = false ; | |
19216 | long val4 ; | |
19217 | int ecode4 = 0 ; | |
19218 | wxPoint temp5 ; | |
19219 | PyObject * obj0 = 0 ; | |
19220 | PyObject * obj1 = 0 ; | |
19221 | PyObject * obj2 = 0 ; | |
19222 | PyObject * obj3 = 0 ; | |
19223 | PyObject * obj4 = 0 ; | |
19224 | char * kwnames[] = { | |
19225 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
19226 | }; | |
19227 | ||
19228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19230 | if (!SWIG_IsOK(res1)) { | |
19231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessageDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19232 | } | |
19233 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19234 | { | |
19235 | arg2 = wxString_in_helper(obj1); | |
19236 | if (arg2 == NULL) SWIG_fail; | |
19237 | temp2 = true; | |
19238 | } | |
19239 | if (obj2) { | |
36ed4f51 | 19240 | { |
1bd55598 RD |
19241 | arg3 = wxString_in_helper(obj2); |
19242 | if (arg3 == NULL) SWIG_fail; | |
19243 | temp3 = true; | |
36ed4f51 | 19244 | } |
1bd55598 RD |
19245 | } |
19246 | if (obj3) { | |
19247 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
19248 | if (!SWIG_IsOK(ecode4)) { | |
19249 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MessageDialog" "', expected argument " "4"" of type '" "long""'"); | |
19250 | } | |
19251 | arg4 = static_cast< long >(val4); | |
19252 | } | |
19253 | if (obj4) { | |
36ed4f51 | 19254 | { |
1bd55598 RD |
19255 | arg5 = &temp5; |
19256 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 19257 | } |
1bd55598 RD |
19258 | } |
19259 | { | |
19260 | if (!wxPyCheckForApp()) SWIG_fail; | |
19261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19262 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
19263 | wxPyEndAllowThreads(__tstate); | |
19264 | if (PyErr_Occurred()) SWIG_fail; | |
19265 | } | |
19266 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMessageDialog, SWIG_POINTER_NEW | 0 ); | |
19267 | { | |
19268 | if (temp2) | |
19269 | delete arg2; | |
19270 | } | |
19271 | { | |
19272 | if (temp3) | |
19273 | delete arg3; | |
19274 | } | |
19275 | return resultobj; | |
19276 | fail: | |
19277 | { | |
19278 | if (temp2) | |
19279 | delete arg2; | |
19280 | } | |
19281 | { | |
19282 | if (temp3) | |
19283 | delete arg3; | |
19284 | } | |
19285 | return NULL; | |
19286 | } | |
19287 | ||
19288 | ||
19289 | SWIGINTERN PyObject *MessageDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19290 | PyObject *obj; | |
19291 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19292 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMessageDialog, SWIG_NewClientData(obj)); | |
19293 | return SWIG_Py_Void(); | |
19294 | } | |
19295 | ||
19296 | SWIGINTERN PyObject *MessageDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19297 | return SWIG_Python_InitShadowInstance(args); | |
19298 | } | |
19299 | ||
19300 | SWIGINTERN PyObject *_wrap_new_ProgressDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19301 | PyObject *resultobj = 0; | |
19302 | wxString *arg1 = 0 ; | |
19303 | wxString *arg2 = 0 ; | |
19304 | int arg3 = (int) 100 ; | |
19305 | wxWindow *arg4 = (wxWindow *) NULL ; | |
19306 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
19307 | wxProgressDialog *result = 0 ; | |
19308 | bool temp1 = false ; | |
19309 | bool temp2 = false ; | |
19310 | int val3 ; | |
19311 | int ecode3 = 0 ; | |
19312 | void *argp4 = 0 ; | |
19313 | int res4 = 0 ; | |
19314 | int val5 ; | |
19315 | int ecode5 = 0 ; | |
19316 | PyObject * obj0 = 0 ; | |
19317 | PyObject * obj1 = 0 ; | |
19318 | PyObject * obj2 = 0 ; | |
19319 | PyObject * obj3 = 0 ; | |
19320 | PyObject * obj4 = 0 ; | |
19321 | char * kwnames[] = { | |
19322 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
19323 | }; | |
19324 | ||
19325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19326 | { | |
19327 | arg1 = wxString_in_helper(obj0); | |
19328 | if (arg1 == NULL) SWIG_fail; | |
19329 | temp1 = true; | |
19330 | } | |
19331 | { | |
19332 | arg2 = wxString_in_helper(obj1); | |
19333 | if (arg2 == NULL) SWIG_fail; | |
19334 | temp2 = true; | |
19335 | } | |
19336 | if (obj2) { | |
19337 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19338 | if (!SWIG_IsOK(ecode3)) { | |
19339 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProgressDialog" "', expected argument " "3"" of type '" "int""'"); | |
19340 | } | |
19341 | arg3 = static_cast< int >(val3); | |
19342 | } | |
19343 | if (obj3) { | |
19344 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19345 | if (!SWIG_IsOK(res4)) { | |
19346 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ProgressDialog" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
d55e5bfc | 19347 | } |
1bd55598 RD |
19348 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
19349 | } | |
19350 | if (obj4) { | |
19351 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19352 | if (!SWIG_IsOK(ecode5)) { | |
19353 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ProgressDialog" "', expected argument " "5"" of type '" "int""'"); | |
19354 | } | |
19355 | arg5 = static_cast< int >(val5); | |
19356 | } | |
19357 | { | |
19358 | if (!wxPyCheckForApp()) SWIG_fail; | |
19359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19360 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
19361 | wxPyEndAllowThreads(__tstate); | |
19362 | if (PyErr_Occurred()) SWIG_fail; | |
19363 | } | |
19364 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProgressDialog, SWIG_POINTER_NEW | 0 ); | |
19365 | { | |
19366 | if (temp1) | |
19367 | delete arg1; | |
19368 | } | |
19369 | { | |
19370 | if (temp2) | |
19371 | delete arg2; | |
19372 | } | |
19373 | return resultobj; | |
19374 | fail: | |
19375 | { | |
19376 | if (temp1) | |
19377 | delete arg1; | |
19378 | } | |
19379 | { | |
19380 | if (temp2) | |
19381 | delete arg2; | |
19382 | } | |
19383 | return NULL; | |
19384 | } | |
19385 | ||
19386 | ||
19387 | SWIGINTERN PyObject *_wrap_ProgressDialog_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19388 | PyObject *resultobj = 0; | |
19389 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19390 | int arg2 ; | |
19391 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19392 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2131d850 | 19393 | bool *arg4 = (bool *) 0 ; |
1bd55598 RD |
19394 | bool result; |
19395 | void *argp1 = 0 ; | |
19396 | int res1 = 0 ; | |
19397 | int val2 ; | |
19398 | int ecode2 = 0 ; | |
19399 | bool temp3 = false ; | |
2131d850 RD |
19400 | bool temp4 ; |
19401 | int res4 = SWIG_TMPOBJ ; | |
1bd55598 RD |
19402 | PyObject * obj0 = 0 ; |
19403 | PyObject * obj1 = 0 ; | |
19404 | PyObject * obj2 = 0 ; | |
19405 | char * kwnames[] = { | |
19406 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
19407 | }; | |
19408 | ||
2131d850 | 19409 | arg4 = &temp4; |
1bd55598 RD |
19410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
19411 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19412 | if (!SWIG_IsOK(res1)) { | |
19413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Update" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19414 | } | |
19415 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19416 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19417 | if (!SWIG_IsOK(ecode2)) { | |
19418 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressDialog_Update" "', expected argument " "2"" of type '" "int""'"); | |
19419 | } | |
19420 | arg2 = static_cast< int >(val2); | |
19421 | if (obj2) { | |
d55e5bfc | 19422 | { |
1bd55598 RD |
19423 | arg3 = wxString_in_helper(obj2); |
19424 | if (arg3 == NULL) SWIG_fail; | |
19425 | temp3 = true; | |
d55e5bfc | 19426 | } |
1bd55598 RD |
19427 | } |
19428 | { | |
19429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131d850 | 19430 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3,arg4); |
1bd55598 RD |
19431 | wxPyEndAllowThreads(__tstate); |
19432 | if (PyErr_Occurred()) SWIG_fail; | |
19433 | } | |
19434 | { | |
19435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19436 | } | |
2131d850 RD |
19437 | if (SWIG_IsTmpObj(res4)) { |
19438 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
19439 | } else { | |
19440 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19441 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
19442 | } | |
1bd55598 RD |
19443 | { |
19444 | if (temp3) | |
19445 | delete arg3; | |
19446 | } | |
19447 | return resultobj; | |
19448 | fail: | |
19449 | { | |
19450 | if (temp3) | |
19451 | delete arg3; | |
19452 | } | |
19453 | return NULL; | |
d55e5bfc RD |
19454 | } |
19455 | ||
19456 | ||
0d2c9713 RD |
19457 | SWIGINTERN PyObject *_wrap_ProgressDialog_UpdatePulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19458 | PyObject *resultobj = 0; | |
19459 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19460 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
19461 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19462 | bool *arg3 = (bool *) 0 ; | |
19463 | bool result; | |
19464 | void *argp1 = 0 ; | |
19465 | int res1 = 0 ; | |
19466 | bool temp2 = false ; | |
19467 | bool temp3 ; | |
19468 | int res3 = SWIG_TMPOBJ ; | |
19469 | PyObject * obj0 = 0 ; | |
19470 | PyObject * obj1 = 0 ; | |
19471 | char * kwnames[] = { | |
19472 | (char *) "self",(char *) "newmsg", NULL | |
19473 | }; | |
19474 | ||
19475 | arg3 = &temp3; | |
19476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ProgressDialog_UpdatePulse",kwnames,&obj0,&obj1)) SWIG_fail; | |
19477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19478 | if (!SWIG_IsOK(res1)) { | |
19479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_UpdatePulse" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19480 | } | |
19481 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19482 | if (obj1) { | |
19483 | { | |
19484 | arg2 = wxString_in_helper(obj1); | |
19485 | if (arg2 == NULL) SWIG_fail; | |
19486 | temp2 = true; | |
19487 | } | |
19488 | } | |
19489 | { | |
19490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19491 | result = (bool)(arg1)->UpdatePulse((wxString const &)*arg2,arg3); | |
19492 | wxPyEndAllowThreads(__tstate); | |
19493 | if (PyErr_Occurred()) SWIG_fail; | |
19494 | } | |
19495 | { | |
19496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19497 | } | |
19498 | if (SWIG_IsTmpObj(res3)) { | |
19499 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg3))); | |
19500 | } else { | |
19501 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19502 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_bool, new_flags)); | |
19503 | } | |
19504 | { | |
19505 | if (temp2) | |
19506 | delete arg2; | |
19507 | } | |
19508 | return resultobj; | |
19509 | fail: | |
19510 | { | |
19511 | if (temp2) | |
19512 | delete arg2; | |
19513 | } | |
19514 | return NULL; | |
19515 | } | |
19516 | ||
19517 | ||
1bd55598 RD |
19518 | SWIGINTERN PyObject *_wrap_ProgressDialog_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19519 | PyObject *resultobj = 0; | |
19520 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19521 | void *argp1 = 0 ; | |
19522 | int res1 = 0 ; | |
19523 | PyObject *swig_obj[1] ; | |
19524 | ||
19525 | if (!args) SWIG_fail; | |
19526 | swig_obj[0] = args; | |
19527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19528 | if (!SWIG_IsOK(res1)) { | |
19529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Resume" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19530 | } | |
19531 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19532 | { | |
19533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19534 | (arg1)->Resume(); | |
19535 | wxPyEndAllowThreads(__tstate); | |
19536 | if (PyErr_Occurred()) SWIG_fail; | |
19537 | } | |
19538 | resultobj = SWIG_Py_Void(); | |
19539 | return resultobj; | |
19540 | fail: | |
19541 | return NULL; | |
d55e5bfc RD |
19542 | } |
19543 | ||
19544 | ||
1bd55598 RD |
19545 | SWIGINTERN PyObject *ProgressDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19546 | PyObject *obj; | |
19547 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19548 | SWIG_TypeNewClientData(SWIGTYPE_p_wxProgressDialog, SWIG_NewClientData(obj)); | |
19549 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19550 | } |
19551 | ||
1bd55598 RD |
19552 | SWIGINTERN PyObject *ProgressDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19553 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
19554 | } |
19555 | ||
1bd55598 RD |
19556 | SWIGINTERN PyObject *_wrap_new_FindDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19557 | PyObject *resultobj = 0; | |
19558 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19559 | int arg2 = (int) 0 ; | |
19560 | wxFindDialogEvent *result = 0 ; | |
19561 | int val1 ; | |
19562 | int ecode1 = 0 ; | |
19563 | int val2 ; | |
19564 | int ecode2 = 0 ; | |
19565 | PyObject * obj0 = 0 ; | |
19566 | PyObject * obj1 = 0 ; | |
19567 | char * kwnames[] = { | |
19568 | (char *) "commandType",(char *) "id", NULL | |
19569 | }; | |
19570 | ||
19571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
19572 | if (obj0) { | |
19573 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19574 | if (!SWIG_IsOK(ecode1)) { | |
19575 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindDialogEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
19576 | } | |
19577 | arg1 = static_cast< wxEventType >(val1); | |
19578 | } | |
19579 | if (obj1) { | |
19580 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19581 | if (!SWIG_IsOK(ecode2)) { | |
19582 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FindDialogEvent" "', expected argument " "2"" of type '" "int""'"); | |
19583 | } | |
19584 | arg2 = static_cast< int >(val2); | |
19585 | } | |
19586 | { | |
19587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19588 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
19589 | wxPyEndAllowThreads(__tstate); | |
19590 | if (PyErr_Occurred()) SWIG_fail; | |
19591 | } | |
19592 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindDialogEvent, SWIG_POINTER_NEW | 0 ); | |
19593 | return resultobj; | |
19594 | fail: | |
19595 | return NULL; | |
d55e5bfc RD |
19596 | } |
19597 | ||
19598 | ||
1bd55598 RD |
19599 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19600 | PyObject *resultobj = 0; | |
19601 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19602 | int result; | |
19603 | void *argp1 = 0 ; | |
19604 | int res1 = 0 ; | |
19605 | PyObject *swig_obj[1] ; | |
19606 | ||
19607 | if (!args) SWIG_fail; | |
19608 | swig_obj[0] = args; | |
19609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19610 | if (!SWIG_IsOK(res1)) { | |
19611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19612 | } | |
19613 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19614 | { | |
19615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19616 | result = (int)(arg1)->GetFlags(); | |
19617 | wxPyEndAllowThreads(__tstate); | |
19618 | if (PyErr_Occurred()) SWIG_fail; | |
19619 | } | |
19620 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19621 | return resultobj; | |
19622 | fail: | |
19623 | return NULL; | |
d55e5bfc RD |
19624 | } |
19625 | ||
19626 | ||
1bd55598 RD |
19627 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19628 | PyObject *resultobj = 0; | |
19629 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19630 | wxString *result = 0 ; | |
19631 | void *argp1 = 0 ; | |
19632 | int res1 = 0 ; | |
19633 | PyObject *swig_obj[1] ; | |
19634 | ||
19635 | if (!args) SWIG_fail; | |
19636 | swig_obj[0] = args; | |
19637 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19638 | if (!SWIG_IsOK(res1)) { | |
19639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19640 | } | |
19641 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19642 | { | |
19643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19644 | { |
1bd55598 RD |
19645 | wxString const &_result_ref = (arg1)->GetFindString(); |
19646 | result = (wxString *) &_result_ref; | |
d55e5bfc | 19647 | } |
1bd55598 RD |
19648 | wxPyEndAllowThreads(__tstate); |
19649 | if (PyErr_Occurred()) SWIG_fail; | |
19650 | } | |
19651 | { | |
19652 | #if wxUSE_UNICODE | |
19653 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19654 | #else | |
19655 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19656 | #endif | |
19657 | } | |
19658 | return resultobj; | |
19659 | fail: | |
19660 | return NULL; | |
d55e5bfc RD |
19661 | } |
19662 | ||
19663 | ||
1bd55598 RD |
19664 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19665 | PyObject *resultobj = 0; | |
19666 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19667 | wxString *result = 0 ; | |
19668 | void *argp1 = 0 ; | |
19669 | int res1 = 0 ; | |
19670 | PyObject *swig_obj[1] ; | |
19671 | ||
19672 | if (!args) SWIG_fail; | |
19673 | swig_obj[0] = args; | |
19674 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19675 | if (!SWIG_IsOK(res1)) { | |
19676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19677 | } | |
19678 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19679 | { | |
19680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19681 | { |
1bd55598 RD |
19682 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19683 | result = (wxString *) &_result_ref; | |
d55e5bfc | 19684 | } |
1bd55598 RD |
19685 | wxPyEndAllowThreads(__tstate); |
19686 | if (PyErr_Occurred()) SWIG_fail; | |
19687 | } | |
19688 | { | |
19689 | #if wxUSE_UNICODE | |
19690 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19691 | #else | |
19692 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19693 | #endif | |
19694 | } | |
19695 | return resultobj; | |
19696 | fail: | |
19697 | return NULL; | |
d55e5bfc RD |
19698 | } |
19699 | ||
19700 | ||
1bd55598 RD |
19701 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19702 | PyObject *resultobj = 0; | |
19703 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19704 | wxFindReplaceDialog *result = 0 ; | |
19705 | void *argp1 = 0 ; | |
19706 | int res1 = 0 ; | |
19707 | PyObject *swig_obj[1] ; | |
19708 | ||
19709 | if (!args) SWIG_fail; | |
19710 | swig_obj[0] = args; | |
19711 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19712 | if (!SWIG_IsOK(res1)) { | |
19713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetDialog" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19714 | } | |
19715 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19716 | { | |
19717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19718 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
19719 | wxPyEndAllowThreads(__tstate); | |
19720 | if (PyErr_Occurred()) SWIG_fail; | |
19721 | } | |
19722 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19723 | return resultobj; | |
19724 | fail: | |
19725 | return NULL; | |
19726 | } | |
19727 | ||
19728 | ||
19729 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19730 | PyObject *resultobj = 0; | |
19731 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19732 | int arg2 ; | |
19733 | void *argp1 = 0 ; | |
19734 | int res1 = 0 ; | |
19735 | int val2 ; | |
19736 | int ecode2 = 0 ; | |
19737 | PyObject * obj0 = 0 ; | |
19738 | PyObject * obj1 = 0 ; | |
19739 | char * kwnames[] = { | |
19740 | (char *) "self",(char *) "flags", NULL | |
19741 | }; | |
19742 | ||
19743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19745 | if (!SWIG_IsOK(res1)) { | |
19746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19747 | } | |
19748 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19749 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19750 | if (!SWIG_IsOK(ecode2)) { | |
19751 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19752 | } | |
19753 | arg2 = static_cast< int >(val2); | |
19754 | { | |
19755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19756 | (arg1)->SetFlags(arg2); | |
19757 | wxPyEndAllowThreads(__tstate); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | } | |
19760 | resultobj = SWIG_Py_Void(); | |
19761 | return resultobj; | |
19762 | fail: | |
19763 | return NULL; | |
19764 | } | |
19765 | ||
19766 | ||
19767 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19768 | PyObject *resultobj = 0; | |
19769 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19770 | wxString *arg2 = 0 ; | |
19771 | void *argp1 = 0 ; | |
19772 | int res1 = 0 ; | |
19773 | bool temp2 = false ; | |
19774 | PyObject * obj0 = 0 ; | |
19775 | PyObject * obj1 = 0 ; | |
19776 | char * kwnames[] = { | |
19777 | (char *) "self",(char *) "str", NULL | |
19778 | }; | |
19779 | ||
19780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19782 | if (!SWIG_IsOK(res1)) { | |
19783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19784 | } | |
19785 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19786 | { | |
19787 | arg2 = wxString_in_helper(obj1); | |
19788 | if (arg2 == NULL) SWIG_fail; | |
19789 | temp2 = true; | |
19790 | } | |
19791 | { | |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | (arg1)->SetFindString((wxString const &)*arg2); | |
19794 | wxPyEndAllowThreads(__tstate); | |
19795 | if (PyErr_Occurred()) SWIG_fail; | |
19796 | } | |
19797 | resultobj = SWIG_Py_Void(); | |
19798 | { | |
19799 | if (temp2) | |
19800 | delete arg2; | |
19801 | } | |
19802 | return resultobj; | |
19803 | fail: | |
19804 | { | |
19805 | if (temp2) | |
19806 | delete arg2; | |
19807 | } | |
19808 | return NULL; | |
d55e5bfc RD |
19809 | } |
19810 | ||
19811 | ||
1bd55598 RD |
19812 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19813 | PyObject *resultobj = 0; | |
19814 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19815 | wxString *arg2 = 0 ; | |
19816 | void *argp1 = 0 ; | |
19817 | int res1 = 0 ; | |
19818 | bool temp2 = false ; | |
19819 | PyObject * obj0 = 0 ; | |
19820 | PyObject * obj1 = 0 ; | |
19821 | char * kwnames[] = { | |
19822 | (char *) "self",(char *) "str", NULL | |
19823 | }; | |
19824 | ||
19825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19827 | if (!SWIG_IsOK(res1)) { | |
19828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19829 | } | |
19830 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19831 | { | |
19832 | arg2 = wxString_in_helper(obj1); | |
19833 | if (arg2 == NULL) SWIG_fail; | |
19834 | temp2 = true; | |
19835 | } | |
19836 | { | |
19837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19838 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19839 | wxPyEndAllowThreads(__tstate); | |
19840 | if (PyErr_Occurred()) SWIG_fail; | |
19841 | } | |
19842 | resultobj = SWIG_Py_Void(); | |
19843 | { | |
19844 | if (temp2) | |
19845 | delete arg2; | |
19846 | } | |
19847 | return resultobj; | |
19848 | fail: | |
19849 | { | |
19850 | if (temp2) | |
19851 | delete arg2; | |
19852 | } | |
19853 | return NULL; | |
d55e5bfc RD |
19854 | } |
19855 | ||
19856 | ||
1bd55598 RD |
19857 | SWIGINTERN PyObject *FindDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19858 | PyObject *obj; | |
19859 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19860 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindDialogEvent, SWIG_NewClientData(obj)); | |
19861 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19862 | } |
19863 | ||
1bd55598 RD |
19864 | SWIGINTERN PyObject *FindDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19865 | return SWIG_Python_InitShadowInstance(args); | |
19866 | } | |
d55e5bfc | 19867 | |
1bd55598 RD |
19868 | SWIGINTERN PyObject *_wrap_new_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19869 | PyObject *resultobj = 0; | |
19870 | int arg1 = (int) 0 ; | |
19871 | wxFindReplaceData *result = 0 ; | |
19872 | int val1 ; | |
19873 | int ecode1 = 0 ; | |
19874 | PyObject * obj0 = 0 ; | |
19875 | char * kwnames[] = { | |
19876 | (char *) "flags", NULL | |
19877 | }; | |
19878 | ||
19879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) SWIG_fail; | |
19880 | if (obj0) { | |
19881 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19882 | if (!SWIG_IsOK(ecode1)) { | |
19883 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindReplaceData" "', expected argument " "1"" of type '" "int""'"); | |
19884 | } | |
19885 | arg1 = static_cast< int >(val1); | |
19886 | } | |
19887 | { | |
19888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19889 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
19890 | wxPyEndAllowThreads(__tstate); | |
19891 | if (PyErr_Occurred()) SWIG_fail; | |
19892 | } | |
19893 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_NEW | 0 ); | |
19894 | return resultobj; | |
19895 | fail: | |
19896 | return NULL; | |
d6c14a4c RD |
19897 | } |
19898 | ||
19899 | ||
1bd55598 RD |
19900 | SWIGINTERN PyObject *_wrap_delete_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19901 | PyObject *resultobj = 0; | |
19902 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19903 | void *argp1 = 0 ; | |
19904 | int res1 = 0 ; | |
19905 | PyObject *swig_obj[1] ; | |
19906 | ||
19907 | if (!args) SWIG_fail; | |
19908 | swig_obj[0] = args; | |
19909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_DISOWN | 0 ); | |
19910 | if (!SWIG_IsOK(res1)) { | |
19911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FindReplaceData" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19912 | } | |
19913 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19914 | { | |
19915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19916 | delete arg1; | |
d55e5bfc | 19917 | |
1bd55598 RD |
19918 | wxPyEndAllowThreads(__tstate); |
19919 | if (PyErr_Occurred()) SWIG_fail; | |
19920 | } | |
19921 | resultobj = SWIG_Py_Void(); | |
19922 | return resultobj; | |
19923 | fail: | |
19924 | return NULL; | |
d55e5bfc RD |
19925 | } |
19926 | ||
19927 | ||
1bd55598 RD |
19928 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19929 | PyObject *resultobj = 0; | |
19930 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19931 | wxString *result = 0 ; | |
19932 | void *argp1 = 0 ; | |
19933 | int res1 = 0 ; | |
19934 | PyObject *swig_obj[1] ; | |
19935 | ||
19936 | if (!args) SWIG_fail; | |
19937 | swig_obj[0] = args; | |
19938 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19939 | if (!SWIG_IsOK(res1)) { | |
19940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19941 | } | |
19942 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19943 | { | |
19944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 19945 | { |
1bd55598 RD |
19946 | wxString const &_result_ref = (arg1)->GetFindString(); |
19947 | result = (wxString *) &_result_ref; | |
19948 | } | |
19949 | wxPyEndAllowThreads(__tstate); | |
19950 | if (PyErr_Occurred()) SWIG_fail; | |
19951 | } | |
19952 | { | |
19953 | #if wxUSE_UNICODE | |
19954 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19955 | #else | |
19956 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19957 | #endif | |
19958 | } | |
19959 | return resultobj; | |
19960 | fail: | |
19961 | return NULL; | |
7e08d4ef RD |
19962 | } |
19963 | ||
19964 | ||
1bd55598 RD |
19965 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19966 | PyObject *resultobj = 0; | |
19967 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19968 | wxString *result = 0 ; | |
19969 | void *argp1 = 0 ; | |
19970 | int res1 = 0 ; | |
19971 | PyObject *swig_obj[1] ; | |
19972 | ||
19973 | if (!args) SWIG_fail; | |
19974 | swig_obj[0] = args; | |
19975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19976 | if (!SWIG_IsOK(res1)) { | |
19977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19978 | } | |
19979 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19980 | { | |
19981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19982 | { |
1bd55598 RD |
19983 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19984 | result = (wxString *) &_result_ref; | |
36ed4f51 | 19985 | } |
1bd55598 RD |
19986 | wxPyEndAllowThreads(__tstate); |
19987 | if (PyErr_Occurred()) SWIG_fail; | |
19988 | } | |
19989 | { | |
19990 | #if wxUSE_UNICODE | |
19991 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19992 | #else | |
19993 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19994 | #endif | |
19995 | } | |
19996 | return resultobj; | |
19997 | fail: | |
19998 | return NULL; | |
d55e5bfc RD |
19999 | } |
20000 | ||
20001 | ||
1bd55598 RD |
20002 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20003 | PyObject *resultobj = 0; | |
20004 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20005 | int result; | |
20006 | void *argp1 = 0 ; | |
20007 | int res1 = 0 ; | |
20008 | PyObject *swig_obj[1] ; | |
20009 | ||
20010 | if (!args) SWIG_fail; | |
20011 | swig_obj[0] = args; | |
20012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20013 | if (!SWIG_IsOK(res1)) { | |
20014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20015 | } | |
20016 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20017 | { | |
20018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20019 | result = (int)(arg1)->GetFlags(); | |
20020 | wxPyEndAllowThreads(__tstate); | |
20021 | if (PyErr_Occurred()) SWIG_fail; | |
20022 | } | |
20023 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20024 | return resultobj; | |
20025 | fail: | |
20026 | return NULL; | |
20027 | } | |
20028 | ||
20029 | ||
20030 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20031 | PyObject *resultobj = 0; | |
20032 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20033 | int arg2 ; | |
20034 | void *argp1 = 0 ; | |
20035 | int res1 = 0 ; | |
20036 | int val2 ; | |
20037 | int ecode2 = 0 ; | |
20038 | PyObject * obj0 = 0 ; | |
20039 | PyObject * obj1 = 0 ; | |
20040 | char * kwnames[] = { | |
20041 | (char *) "self",(char *) "flags", NULL | |
20042 | }; | |
20043 | ||
20044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
20045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20046 | if (!SWIG_IsOK(res1)) { | |
20047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20048 | } | |
20049 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20050 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20051 | if (!SWIG_IsOK(ecode2)) { | |
20052 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindReplaceData_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
20053 | } | |
20054 | arg2 = static_cast< int >(val2); | |
20055 | { | |
20056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20057 | (arg1)->SetFlags(arg2); | |
20058 | wxPyEndAllowThreads(__tstate); | |
20059 | if (PyErr_Occurred()) SWIG_fail; | |
20060 | } | |
20061 | resultobj = SWIG_Py_Void(); | |
20062 | return resultobj; | |
20063 | fail: | |
20064 | return NULL; | |
20065 | } | |
20066 | ||
20067 | ||
20068 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20069 | PyObject *resultobj = 0; | |
20070 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20071 | wxString *arg2 = 0 ; | |
20072 | void *argp1 = 0 ; | |
20073 | int res1 = 0 ; | |
20074 | bool temp2 = false ; | |
20075 | PyObject * obj0 = 0 ; | |
20076 | PyObject * obj1 = 0 ; | |
20077 | char * kwnames[] = { | |
20078 | (char *) "self",(char *) "str", NULL | |
20079 | }; | |
20080 | ||
20081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20083 | if (!SWIG_IsOK(res1)) { | |
20084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20085 | } | |
20086 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20087 | { | |
20088 | arg2 = wxString_in_helper(obj1); | |
20089 | if (arg2 == NULL) SWIG_fail; | |
20090 | temp2 = true; | |
20091 | } | |
20092 | { | |
20093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20094 | (arg1)->SetFindString((wxString const &)*arg2); | |
20095 | wxPyEndAllowThreads(__tstate); | |
20096 | if (PyErr_Occurred()) SWIG_fail; | |
20097 | } | |
20098 | resultobj = SWIG_Py_Void(); | |
20099 | { | |
20100 | if (temp2) | |
20101 | delete arg2; | |
20102 | } | |
20103 | return resultobj; | |
20104 | fail: | |
20105 | { | |
20106 | if (temp2) | |
20107 | delete arg2; | |
20108 | } | |
20109 | return NULL; | |
d55e5bfc RD |
20110 | } |
20111 | ||
20112 | ||
1bd55598 RD |
20113 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20114 | PyObject *resultobj = 0; | |
20115 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20116 | wxString *arg2 = 0 ; | |
20117 | void *argp1 = 0 ; | |
20118 | int res1 = 0 ; | |
20119 | bool temp2 = false ; | |
20120 | PyObject * obj0 = 0 ; | |
20121 | PyObject * obj1 = 0 ; | |
20122 | char * kwnames[] = { | |
20123 | (char *) "self",(char *) "str", NULL | |
20124 | }; | |
20125 | ||
20126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20128 | if (!SWIG_IsOK(res1)) { | |
20129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20130 | } | |
20131 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20132 | { | |
20133 | arg2 = wxString_in_helper(obj1); | |
20134 | if (arg2 == NULL) SWIG_fail; | |
20135 | temp2 = true; | |
20136 | } | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
20140 | wxPyEndAllowThreads(__tstate); | |
20141 | if (PyErr_Occurred()) SWIG_fail; | |
20142 | } | |
20143 | resultobj = SWIG_Py_Void(); | |
20144 | { | |
20145 | if (temp2) | |
20146 | delete arg2; | |
20147 | } | |
20148 | return resultobj; | |
20149 | fail: | |
20150 | { | |
20151 | if (temp2) | |
20152 | delete arg2; | |
20153 | } | |
20154 | return NULL; | |
20155 | } | |
20156 | ||
20157 | ||
20158 | SWIGINTERN PyObject *FindReplaceData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20159 | PyObject *obj; | |
20160 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20161 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceData, SWIG_NewClientData(obj)); | |
20162 | return SWIG_Py_Void(); | |
20163 | } | |
20164 | ||
20165 | SWIGINTERN PyObject *FindReplaceData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20166 | return SWIG_Python_InitShadowInstance(args); | |
20167 | } | |
20168 | ||
20169 | SWIGINTERN PyObject *_wrap_new_FindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20170 | PyObject *resultobj = 0; | |
20171 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20172 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20173 | wxString *arg3 = 0 ; | |
20174 | int arg4 = (int) 0 ; | |
20175 | wxFindReplaceDialog *result = 0 ; | |
20176 | void *argp1 = 0 ; | |
20177 | int res1 = 0 ; | |
20178 | void *argp2 = 0 ; | |
20179 | int res2 = 0 ; | |
20180 | bool temp3 = false ; | |
20181 | int val4 ; | |
20182 | int ecode4 = 0 ; | |
20183 | PyObject * obj0 = 0 ; | |
20184 | PyObject * obj1 = 0 ; | |
20185 | PyObject * obj2 = 0 ; | |
20186 | PyObject * obj3 = 0 ; | |
20187 | char * kwnames[] = { | |
20188 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20189 | }; | |
20190 | ||
20191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20193 | if (!SWIG_IsOK(res1)) { | |
20194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FindReplaceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20195 | } | |
20196 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20197 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20198 | if (!SWIG_IsOK(res2)) { | |
20199 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FindReplaceDialog" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20200 | } | |
20201 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20202 | { | |
20203 | arg3 = wxString_in_helper(obj2); | |
20204 | if (arg3 == NULL) SWIG_fail; | |
20205 | temp3 = true; | |
20206 | } | |
20207 | if (obj3) { | |
20208 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20209 | if (!SWIG_IsOK(ecode4)) { | |
20210 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FindReplaceDialog" "', expected argument " "4"" of type '" "int""'"); | |
20211 | } | |
20212 | arg4 = static_cast< int >(val4); | |
20213 | } | |
20214 | { | |
20215 | if (!wxPyCheckForApp()) SWIG_fail; | |
20216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20217 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
20218 | wxPyEndAllowThreads(__tstate); | |
20219 | if (PyErr_Occurred()) SWIG_fail; | |
20220 | } | |
20221 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_NEW | 0 ); | |
20222 | { | |
20223 | if (temp3) | |
20224 | delete arg3; | |
20225 | } | |
20226 | return resultobj; | |
20227 | fail: | |
20228 | { | |
20229 | if (temp3) | |
20230 | delete arg3; | |
20231 | } | |
20232 | return NULL; | |
b411df4a RD |
20233 | } |
20234 | ||
20235 | ||
1bd55598 RD |
20236 | SWIGINTERN PyObject *_wrap_new_PreFindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20237 | PyObject *resultobj = 0; | |
20238 | wxFindReplaceDialog *result = 0 ; | |
20239 | ||
20240 | if (!SWIG_Python_UnpackTuple(args,"new_PreFindReplaceDialog",0,0,0)) SWIG_fail; | |
20241 | { | |
20242 | if (!wxPyCheckForApp()) SWIG_fail; | |
20243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20244 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
20245 | wxPyEndAllowThreads(__tstate); | |
20246 | if (PyErr_Occurred()) SWIG_fail; | |
20247 | } | |
20248 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_OWN | 0 ); | |
20249 | return resultobj; | |
20250 | fail: | |
20251 | return NULL; | |
20252 | } | |
20253 | ||
20254 | ||
20255 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20256 | PyObject *resultobj = 0; | |
20257 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20258 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20259 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
20260 | wxString *arg4 = 0 ; | |
20261 | int arg5 = (int) 0 ; | |
20262 | bool result; | |
20263 | void *argp1 = 0 ; | |
20264 | int res1 = 0 ; | |
20265 | void *argp2 = 0 ; | |
20266 | int res2 = 0 ; | |
20267 | void *argp3 = 0 ; | |
20268 | int res3 = 0 ; | |
20269 | bool temp4 = false ; | |
20270 | int val5 ; | |
20271 | int ecode5 = 0 ; | |
20272 | PyObject * obj0 = 0 ; | |
20273 | PyObject * obj1 = 0 ; | |
20274 | PyObject * obj2 = 0 ; | |
20275 | PyObject * obj3 = 0 ; | |
20276 | PyObject * obj4 = 0 ; | |
20277 | char * kwnames[] = { | |
20278 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20279 | }; | |
20280 | ||
20281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20283 | if (!SWIG_IsOK(res1)) { | |
20284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_Create" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20285 | } | |
20286 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20287 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20288 | if (!SWIG_IsOK(res2)) { | |
20289 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20290 | } | |
20291 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20292 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20293 | if (!SWIG_IsOK(res3)) { | |
20294 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FindReplaceDialog_Create" "', expected argument " "3"" of type '" "wxFindReplaceData *""'"); | |
20295 | } | |
20296 | arg3 = reinterpret_cast< wxFindReplaceData * >(argp3); | |
20297 | { | |
20298 | arg4 = wxString_in_helper(obj3); | |
20299 | if (arg4 == NULL) SWIG_fail; | |
20300 | temp4 = true; | |
20301 | } | |
20302 | if (obj4) { | |
20303 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20304 | if (!SWIG_IsOK(ecode5)) { | |
20305 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FindReplaceDialog_Create" "', expected argument " "5"" of type '" "int""'"); | |
20306 | } | |
20307 | arg5 = static_cast< int >(val5); | |
20308 | } | |
20309 | { | |
20310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20311 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
20312 | wxPyEndAllowThreads(__tstate); | |
20313 | if (PyErr_Occurred()) SWIG_fail; | |
20314 | } | |
20315 | { | |
20316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20317 | } | |
20318 | { | |
20319 | if (temp4) | |
20320 | delete arg4; | |
20321 | } | |
20322 | return resultobj; | |
20323 | fail: | |
20324 | { | |
20325 | if (temp4) | |
20326 | delete arg4; | |
20327 | } | |
20328 | return NULL; | |
b411df4a RD |
20329 | } |
20330 | ||
20331 | ||
1bd55598 RD |
20332 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20333 | PyObject *resultobj = 0; | |
20334 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20335 | wxFindReplaceData *result = 0 ; | |
20336 | void *argp1 = 0 ; | |
20337 | int res1 = 0 ; | |
20338 | PyObject *swig_obj[1] ; | |
20339 | ||
20340 | if (!args) SWIG_fail; | |
20341 | swig_obj[0] = args; | |
20342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20343 | if (!SWIG_IsOK(res1)) { | |
20344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_GetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20345 | } | |
20346 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20347 | { | |
20348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20349 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
20350 | wxPyEndAllowThreads(__tstate); | |
20351 | if (PyErr_Occurred()) SWIG_fail; | |
20352 | } | |
20353 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20354 | return resultobj; | |
20355 | fail: | |
20356 | return NULL; | |
20357 | } | |
20358 | ||
20359 | ||
20360 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20361 | PyObject *resultobj = 0; | |
20362 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20363 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20364 | void *argp1 = 0 ; | |
20365 | int res1 = 0 ; | |
20366 | void *argp2 = 0 ; | |
20367 | int res2 = 0 ; | |
20368 | PyObject * obj0 = 0 ; | |
20369 | PyObject * obj1 = 0 ; | |
20370 | char * kwnames[] = { | |
20371 | (char *) "self",(char *) "data", NULL | |
20372 | }; | |
20373 | ||
20374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
20375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20376 | if (!SWIG_IsOK(res1)) { | |
20377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_SetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20378 | } | |
20379 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20380 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20381 | if (!SWIG_IsOK(res2)) { | |
20382 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_SetData" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20383 | } | |
20384 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20385 | { | |
20386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20387 | (arg1)->SetData(arg2); | |
20388 | wxPyEndAllowThreads(__tstate); | |
20389 | if (PyErr_Occurred()) SWIG_fail; | |
20390 | } | |
20391 | resultobj = SWIG_Py_Void(); | |
20392 | return resultobj; | |
20393 | fail: | |
20394 | return NULL; | |
20395 | } | |
20396 | ||
20397 | ||
20398 | SWIGINTERN PyObject *FindReplaceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20399 | PyObject *obj; | |
20400 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20401 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceDialog, SWIG_NewClientData(obj)); | |
20402 | return SWIG_Py_Void(); | |
20403 | } | |
20404 | ||
20405 | SWIGINTERN PyObject *FindReplaceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20406 | return SWIG_Python_InitShadowInstance(args); | |
20407 | } | |
20408 | ||
20409 | SWIGINTERN PyObject *_wrap_new_MDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20410 | PyObject *resultobj = 0; | |
20411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20412 | int arg2 = (int) (int)-1 ; | |
20413 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20414 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20415 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20416 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20417 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20418 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20419 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20420 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20421 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20422 | wxMDIParentFrame *result = 0 ; | |
20423 | void *argp1 = 0 ; | |
20424 | int res1 = 0 ; | |
20425 | int val2 ; | |
20426 | int ecode2 = 0 ; | |
20427 | bool temp3 = false ; | |
20428 | wxPoint temp4 ; | |
20429 | wxSize temp5 ; | |
20430 | long val6 ; | |
20431 | int ecode6 = 0 ; | |
20432 | bool temp7 = false ; | |
20433 | PyObject * obj0 = 0 ; | |
20434 | PyObject * obj1 = 0 ; | |
20435 | PyObject * obj2 = 0 ; | |
20436 | PyObject * obj3 = 0 ; | |
20437 | PyObject * obj4 = 0 ; | |
20438 | PyObject * obj5 = 0 ; | |
20439 | PyObject * obj6 = 0 ; | |
20440 | char * kwnames[] = { | |
20441 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20442 | }; | |
20443 | ||
20444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20446 | if (!SWIG_IsOK(res1)) { | |
20447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIParentFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20448 | } | |
20449 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20450 | if (obj1) { | |
20451 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20452 | if (!SWIG_IsOK(ecode2)) { | |
20453 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIParentFrame" "', expected argument " "2"" of type '" "int""'"); | |
20454 | } | |
20455 | arg2 = static_cast< int >(val2); | |
20456 | } | |
20457 | if (obj2) { | |
b411df4a | 20458 | { |
1bd55598 RD |
20459 | arg3 = wxString_in_helper(obj2); |
20460 | if (arg3 == NULL) SWIG_fail; | |
20461 | temp3 = true; | |
b411df4a | 20462 | } |
1bd55598 RD |
20463 | } |
20464 | if (obj3) { | |
b411df4a | 20465 | { |
1bd55598 RD |
20466 | arg4 = &temp4; |
20467 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
b411df4a | 20468 | } |
1bd55598 RD |
20469 | } |
20470 | if (obj4) { | |
b411df4a | 20471 | { |
1bd55598 RD |
20472 | arg5 = &temp5; |
20473 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
b411df4a | 20474 | } |
1bd55598 RD |
20475 | } |
20476 | if (obj5) { | |
20477 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20478 | if (!SWIG_IsOK(ecode6)) { | |
20479 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIParentFrame" "', expected argument " "6"" of type '" "long""'"); | |
20480 | } | |
20481 | arg6 = static_cast< long >(val6); | |
20482 | } | |
20483 | if (obj6) { | |
b411df4a | 20484 | { |
1bd55598 RD |
20485 | arg7 = wxString_in_helper(obj6); |
20486 | if (arg7 == NULL) SWIG_fail; | |
20487 | temp7 = true; | |
b411df4a | 20488 | } |
1bd55598 RD |
20489 | } |
20490 | { | |
20491 | if (!wxPyCheckForApp()) SWIG_fail; | |
20492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20493 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20494 | wxPyEndAllowThreads(__tstate); | |
20495 | if (PyErr_Occurred()) SWIG_fail; | |
20496 | } | |
20497 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_NEW | 0 ); | |
20498 | { | |
20499 | if (temp3) | |
20500 | delete arg3; | |
20501 | } | |
20502 | { | |
20503 | if (temp7) | |
20504 | delete arg7; | |
20505 | } | |
20506 | return resultobj; | |
20507 | fail: | |
20508 | { | |
20509 | if (temp3) | |
20510 | delete arg3; | |
20511 | } | |
20512 | { | |
20513 | if (temp7) | |
20514 | delete arg7; | |
20515 | } | |
20516 | return NULL; | |
b411df4a RD |
20517 | } |
20518 | ||
20519 | ||
1bd55598 RD |
20520 | SWIGINTERN PyObject *_wrap_new_PreMDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20521 | PyObject *resultobj = 0; | |
20522 | wxMDIParentFrame *result = 0 ; | |
20523 | ||
20524 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIParentFrame",0,0,0)) SWIG_fail; | |
20525 | { | |
20526 | if (!wxPyCheckForApp()) SWIG_fail; | |
20527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20528 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
20529 | wxPyEndAllowThreads(__tstate); | |
20530 | if (PyErr_Occurred()) SWIG_fail; | |
20531 | } | |
20532 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_OWN | 0 ); | |
20533 | return resultobj; | |
20534 | fail: | |
20535 | return NULL; | |
20536 | } | |
20537 | ||
20538 | ||
20539 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20540 | PyObject *resultobj = 0; | |
20541 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20542 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20543 | int arg3 = (int) (int)-1 ; | |
20544 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20545 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20546 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20547 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20548 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20549 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20550 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20551 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20552 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20553 | bool result; | |
20554 | void *argp1 = 0 ; | |
20555 | int res1 = 0 ; | |
20556 | void *argp2 = 0 ; | |
20557 | int res2 = 0 ; | |
20558 | int val3 ; | |
20559 | int ecode3 = 0 ; | |
20560 | bool temp4 = false ; | |
20561 | wxPoint temp5 ; | |
20562 | wxSize temp6 ; | |
20563 | long val7 ; | |
20564 | int ecode7 = 0 ; | |
20565 | bool temp8 = false ; | |
20566 | PyObject * obj0 = 0 ; | |
20567 | PyObject * obj1 = 0 ; | |
20568 | PyObject * obj2 = 0 ; | |
20569 | PyObject * obj3 = 0 ; | |
20570 | PyObject * obj4 = 0 ; | |
20571 | PyObject * obj5 = 0 ; | |
20572 | PyObject * obj6 = 0 ; | |
20573 | PyObject * obj7 = 0 ; | |
20574 | char * kwnames[] = { | |
20575 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20576 | }; | |
20577 | ||
20578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20580 | if (!SWIG_IsOK(res1)) { | |
20581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Create" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20582 | } | |
20583 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20584 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20585 | if (!SWIG_IsOK(res2)) { | |
20586 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20587 | } | |
20588 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20589 | if (obj2) { | |
20590 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20591 | if (!SWIG_IsOK(ecode3)) { | |
20592 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIParentFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20593 | } | |
20594 | arg3 = static_cast< int >(val3); | |
20595 | } | |
20596 | if (obj3) { | |
b411df4a | 20597 | { |
1bd55598 RD |
20598 | arg4 = wxString_in_helper(obj3); |
20599 | if (arg4 == NULL) SWIG_fail; | |
20600 | temp4 = true; | |
b411df4a | 20601 | } |
1bd55598 RD |
20602 | } |
20603 | if (obj4) { | |
b411df4a | 20604 | { |
1bd55598 RD |
20605 | arg5 = &temp5; |
20606 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
b411df4a | 20607 | } |
1bd55598 RD |
20608 | } |
20609 | if (obj5) { | |
b411df4a | 20610 | { |
1bd55598 RD |
20611 | arg6 = &temp6; |
20612 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
b411df4a | 20613 | } |
1bd55598 RD |
20614 | } |
20615 | if (obj6) { | |
20616 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20617 | if (!SWIG_IsOK(ecode7)) { | |
20618 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIParentFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20619 | } | |
20620 | arg7 = static_cast< long >(val7); | |
20621 | } | |
20622 | if (obj7) { | |
36ed4f51 | 20623 | { |
1bd55598 RD |
20624 | arg8 = wxString_in_helper(obj7); |
20625 | if (arg8 == NULL) SWIG_fail; | |
20626 | temp8 = true; | |
36ed4f51 | 20627 | } |
1bd55598 RD |
20628 | } |
20629 | { | |
20630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20631 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
20632 | wxPyEndAllowThreads(__tstate); | |
20633 | if (PyErr_Occurred()) SWIG_fail; | |
20634 | } | |
20635 | { | |
20636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20637 | } | |
20638 | { | |
20639 | if (temp4) | |
20640 | delete arg4; | |
20641 | } | |
20642 | { | |
20643 | if (temp8) | |
20644 | delete arg8; | |
20645 | } | |
20646 | return resultobj; | |
20647 | fail: | |
20648 | { | |
20649 | if (temp4) | |
20650 | delete arg4; | |
20651 | } | |
20652 | { | |
20653 | if (temp8) | |
20654 | delete arg8; | |
20655 | } | |
20656 | return NULL; | |
d55e5bfc RD |
20657 | } |
20658 | ||
20659 | ||
1bd55598 RD |
20660 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20661 | PyObject *resultobj = 0; | |
20662 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20663 | void *argp1 = 0 ; | |
20664 | int res1 = 0 ; | |
20665 | PyObject *swig_obj[1] ; | |
20666 | ||
20667 | if (!args) SWIG_fail; | |
20668 | swig_obj[0] = args; | |
20669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20670 | if (!SWIG_IsOK(res1)) { | |
20671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivateNext" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20672 | } | |
20673 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20674 | { | |
20675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20676 | (arg1)->ActivateNext(); | |
20677 | wxPyEndAllowThreads(__tstate); | |
20678 | if (PyErr_Occurred()) SWIG_fail; | |
20679 | } | |
20680 | resultobj = SWIG_Py_Void(); | |
20681 | return resultobj; | |
20682 | fail: | |
20683 | return NULL; | |
d55e5bfc RD |
20684 | } |
20685 | ||
20686 | ||
1bd55598 RD |
20687 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20688 | PyObject *resultobj = 0; | |
20689 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20690 | void *argp1 = 0 ; | |
20691 | int res1 = 0 ; | |
20692 | PyObject *swig_obj[1] ; | |
20693 | ||
20694 | if (!args) SWIG_fail; | |
20695 | swig_obj[0] = args; | |
20696 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20697 | if (!SWIG_IsOK(res1)) { | |
20698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivatePrevious" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20699 | } | |
20700 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20701 | { | |
20702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20703 | (arg1)->ActivatePrevious(); | |
20704 | wxPyEndAllowThreads(__tstate); | |
20705 | if (PyErr_Occurred()) SWIG_fail; | |
20706 | } | |
20707 | resultobj = SWIG_Py_Void(); | |
20708 | return resultobj; | |
20709 | fail: | |
20710 | return NULL; | |
d55e5bfc RD |
20711 | } |
20712 | ||
20713 | ||
1bd55598 RD |
20714 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20715 | PyObject *resultobj = 0; | |
20716 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20717 | void *argp1 = 0 ; | |
20718 | int res1 = 0 ; | |
20719 | PyObject *swig_obj[1] ; | |
20720 | ||
20721 | if (!args) SWIG_fail; | |
20722 | swig_obj[0] = args; | |
20723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20724 | if (!SWIG_IsOK(res1)) { | |
20725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ArrangeIcons" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20726 | } | |
20727 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20728 | { | |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | (arg1)->ArrangeIcons(); | |
20731 | wxPyEndAllowThreads(__tstate); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | } | |
20734 | resultobj = SWIG_Py_Void(); | |
20735 | return resultobj; | |
20736 | fail: | |
20737 | return NULL; | |
d55e5bfc RD |
20738 | } |
20739 | ||
20740 | ||
1bd55598 RD |
20741 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Cascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20742 | PyObject *resultobj = 0; | |
20743 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20744 | void *argp1 = 0 ; | |
20745 | int res1 = 0 ; | |
20746 | PyObject *swig_obj[1] ; | |
20747 | ||
20748 | if (!args) SWIG_fail; | |
20749 | swig_obj[0] = args; | |
20750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20751 | if (!SWIG_IsOK(res1)) { | |
20752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Cascade" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20753 | } | |
20754 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20755 | { | |
20756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20757 | (arg1)->Cascade(); | |
20758 | wxPyEndAllowThreads(__tstate); | |
20759 | if (PyErr_Occurred()) SWIG_fail; | |
20760 | } | |
20761 | resultobj = SWIG_Py_Void(); | |
20762 | return resultobj; | |
20763 | fail: | |
20764 | return NULL; | |
d55e5bfc RD |
20765 | } |
20766 | ||
20767 | ||
1bd55598 RD |
20768 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20769 | PyObject *resultobj = 0; | |
20770 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20771 | wxMDIChildFrame *result = 0 ; | |
20772 | void *argp1 = 0 ; | |
20773 | int res1 = 0 ; | |
20774 | PyObject *swig_obj[1] ; | |
20775 | ||
20776 | if (!args) SWIG_fail; | |
20777 | swig_obj[0] = args; | |
20778 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20779 | if (!SWIG_IsOK(res1)) { | |
20780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetActiveChild" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20781 | } | |
20782 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20783 | { | |
20784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20785 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
20786 | wxPyEndAllowThreads(__tstate); | |
20787 | if (PyErr_Occurred()) SWIG_fail; | |
20788 | } | |
20789 | { | |
20790 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20791 | } | |
20792 | return resultobj; | |
20793 | fail: | |
20794 | return NULL; | |
d55e5bfc RD |
20795 | } |
20796 | ||
20797 | ||
1bd55598 RD |
20798 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20799 | PyObject *resultobj = 0; | |
20800 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20801 | wxMDIClientWindow *result = 0 ; | |
20802 | void *argp1 = 0 ; | |
20803 | int res1 = 0 ; | |
20804 | PyObject *swig_obj[1] ; | |
20805 | ||
20806 | if (!args) SWIG_fail; | |
20807 | swig_obj[0] = args; | |
20808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20809 | if (!SWIG_IsOK(res1)) { | |
20810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20811 | } | |
20812 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20813 | { | |
20814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20815 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
20816 | wxPyEndAllowThreads(__tstate); | |
20817 | if (PyErr_Occurred()) SWIG_fail; | |
20818 | } | |
20819 | { | |
20820 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20821 | } | |
20822 | return resultobj; | |
20823 | fail: | |
20824 | return NULL; | |
d55e5bfc RD |
20825 | } |
20826 | ||
20827 | ||
1bd55598 RD |
20828 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Tile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20829 | PyObject *resultobj = 0; | |
20830 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20831 | wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ; | |
20832 | void *argp1 = 0 ; | |
20833 | int res1 = 0 ; | |
20834 | int val2 ; | |
20835 | int ecode2 = 0 ; | |
20836 | PyObject * obj0 = 0 ; | |
20837 | PyObject * obj1 = 0 ; | |
20838 | char * kwnames[] = { | |
20839 | (char *) "self",(char *) "orient", NULL | |
20840 | }; | |
20841 | ||
20842 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) SWIG_fail; | |
20843 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20844 | if (!SWIG_IsOK(res1)) { | |
20845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Tile" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20846 | } | |
20847 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20848 | if (obj1) { | |
20849 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20850 | if (!SWIG_IsOK(ecode2)) { | |
20851 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MDIParentFrame_Tile" "', expected argument " "2"" of type '" "wxOrientation""'"); | |
20852 | } | |
20853 | arg2 = static_cast< wxOrientation >(val2); | |
20854 | } | |
20855 | { | |
20856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20857 | (arg1)->Tile(arg2); | |
20858 | wxPyEndAllowThreads(__tstate); | |
20859 | if (PyErr_Occurred()) SWIG_fail; | |
20860 | } | |
20861 | resultobj = SWIG_Py_Void(); | |
20862 | return resultobj; | |
20863 | fail: | |
20864 | return NULL; | |
20865 | } | |
20866 | ||
20867 | ||
20868 | SWIGINTERN PyObject *MDIParentFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20869 | PyObject *obj; | |
20870 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20871 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIParentFrame, SWIG_NewClientData(obj)); | |
20872 | return SWIG_Py_Void(); | |
20873 | } | |
20874 | ||
20875 | SWIGINTERN PyObject *MDIParentFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20876 | return SWIG_Python_InitShadowInstance(args); | |
20877 | } | |
20878 | ||
20879 | SWIGINTERN PyObject *_wrap_new_MDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20880 | PyObject *resultobj = 0; | |
20881 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20882 | int arg2 = (int) (int)-1 ; | |
20883 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20884 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20885 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20886 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20887 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20888 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20889 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
20890 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20891 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20892 | wxMDIChildFrame *result = 0 ; | |
20893 | void *argp1 = 0 ; | |
20894 | int res1 = 0 ; | |
20895 | int val2 ; | |
20896 | int ecode2 = 0 ; | |
20897 | bool temp3 = false ; | |
20898 | wxPoint temp4 ; | |
20899 | wxSize temp5 ; | |
20900 | long val6 ; | |
20901 | int ecode6 = 0 ; | |
20902 | bool temp7 = false ; | |
20903 | PyObject * obj0 = 0 ; | |
20904 | PyObject * obj1 = 0 ; | |
20905 | PyObject * obj2 = 0 ; | |
20906 | PyObject * obj3 = 0 ; | |
20907 | PyObject * obj4 = 0 ; | |
20908 | PyObject * obj5 = 0 ; | |
20909 | PyObject * obj6 = 0 ; | |
20910 | char * kwnames[] = { | |
20911 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20912 | }; | |
20913 | ||
20914 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20915 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20916 | if (!SWIG_IsOK(res1)) { | |
20917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIChildFrame" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20918 | } | |
20919 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20920 | if (obj1) { | |
20921 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20922 | if (!SWIG_IsOK(ecode2)) { | |
20923 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIChildFrame" "', expected argument " "2"" of type '" "int""'"); | |
20924 | } | |
20925 | arg2 = static_cast< int >(val2); | |
20926 | } | |
20927 | if (obj2) { | |
d55e5bfc | 20928 | { |
1bd55598 RD |
20929 | arg3 = wxString_in_helper(obj2); |
20930 | if (arg3 == NULL) SWIG_fail; | |
20931 | temp3 = true; | |
d55e5bfc | 20932 | } |
1bd55598 RD |
20933 | } |
20934 | if (obj3) { | |
d55e5bfc | 20935 | { |
1bd55598 RD |
20936 | arg4 = &temp4; |
20937 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20938 | } |
1bd55598 RD |
20939 | } |
20940 | if (obj4) { | |
d55e5bfc | 20941 | { |
1bd55598 RD |
20942 | arg5 = &temp5; |
20943 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20944 | } |
1bd55598 RD |
20945 | } |
20946 | if (obj5) { | |
20947 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20948 | if (!SWIG_IsOK(ecode6)) { | |
20949 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIChildFrame" "', expected argument " "6"" of type '" "long""'"); | |
20950 | } | |
20951 | arg6 = static_cast< long >(val6); | |
20952 | } | |
20953 | if (obj6) { | |
d55e5bfc | 20954 | { |
1bd55598 RD |
20955 | arg7 = wxString_in_helper(obj6); |
20956 | if (arg7 == NULL) SWIG_fail; | |
20957 | temp7 = true; | |
d55e5bfc | 20958 | } |
1bd55598 RD |
20959 | } |
20960 | { | |
20961 | if (!wxPyCheckForApp()) SWIG_fail; | |
20962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20963 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20964 | wxPyEndAllowThreads(__tstate); | |
20965 | if (PyErr_Occurred()) SWIG_fail; | |
20966 | } | |
20967 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_NEW | 0 ); | |
20968 | { | |
20969 | if (temp3) | |
20970 | delete arg3; | |
20971 | } | |
20972 | { | |
20973 | if (temp7) | |
20974 | delete arg7; | |
20975 | } | |
20976 | return resultobj; | |
20977 | fail: | |
20978 | { | |
20979 | if (temp3) | |
20980 | delete arg3; | |
20981 | } | |
20982 | { | |
20983 | if (temp7) | |
20984 | delete arg7; | |
20985 | } | |
20986 | return NULL; | |
d55e5bfc RD |
20987 | } |
20988 | ||
20989 | ||
1bd55598 RD |
20990 | SWIGINTERN PyObject *_wrap_new_PreMDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20991 | PyObject *resultobj = 0; | |
20992 | wxMDIChildFrame *result = 0 ; | |
20993 | ||
20994 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIChildFrame",0,0,0)) SWIG_fail; | |
20995 | { | |
20996 | if (!wxPyCheckForApp()) SWIG_fail; | |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_OWN | 0 ); | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
21009 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21010 | PyObject *resultobj = 0; | |
21011 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21012 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21013 | int arg3 = (int) (int)-1 ; | |
21014 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
21015 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
21016 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
21017 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
21018 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
21019 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
21020 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
21021 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
21022 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21023 | bool result; | |
21024 | void *argp1 = 0 ; | |
21025 | int res1 = 0 ; | |
21026 | void *argp2 = 0 ; | |
21027 | int res2 = 0 ; | |
21028 | int val3 ; | |
21029 | int ecode3 = 0 ; | |
21030 | bool temp4 = false ; | |
21031 | wxPoint temp5 ; | |
21032 | wxSize temp6 ; | |
21033 | long val7 ; | |
21034 | int ecode7 = 0 ; | |
21035 | bool temp8 = false ; | |
21036 | PyObject * obj0 = 0 ; | |
21037 | PyObject * obj1 = 0 ; | |
21038 | PyObject * obj2 = 0 ; | |
21039 | PyObject * obj3 = 0 ; | |
21040 | PyObject * obj4 = 0 ; | |
21041 | PyObject * obj5 = 0 ; | |
21042 | PyObject * obj6 = 0 ; | |
21043 | PyObject * obj7 = 0 ; | |
21044 | char * kwnames[] = { | |
21045 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21046 | }; | |
21047 | ||
21048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
21049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21050 | if (!SWIG_IsOK(res1)) { | |
21051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Create" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21052 | } | |
21053 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21054 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21055 | if (!SWIG_IsOK(res2)) { | |
21056 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIChildFrame_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21057 | } | |
21058 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21059 | if (obj2) { | |
21060 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21061 | if (!SWIG_IsOK(ecode3)) { | |
21062 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIChildFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
21063 | } | |
21064 | arg3 = static_cast< int >(val3); | |
21065 | } | |
21066 | if (obj3) { | |
36ed4f51 | 21067 | { |
1bd55598 RD |
21068 | arg4 = wxString_in_helper(obj3); |
21069 | if (arg4 == NULL) SWIG_fail; | |
21070 | temp4 = true; | |
36ed4f51 | 21071 | } |
1bd55598 RD |
21072 | } |
21073 | if (obj4) { | |
d55e5bfc | 21074 | { |
1bd55598 RD |
21075 | arg5 = &temp5; |
21076 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21077 | } |
1bd55598 RD |
21078 | } |
21079 | if (obj5) { | |
d55e5bfc | 21080 | { |
1bd55598 RD |
21081 | arg6 = &temp6; |
21082 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 21083 | } |
1bd55598 RD |
21084 | } |
21085 | if (obj6) { | |
21086 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
21087 | if (!SWIG_IsOK(ecode7)) { | |
21088 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIChildFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
21089 | } | |
21090 | arg7 = static_cast< long >(val7); | |
21091 | } | |
21092 | if (obj7) { | |
36ed4f51 | 21093 | { |
1bd55598 RD |
21094 | arg8 = wxString_in_helper(obj7); |
21095 | if (arg8 == NULL) SWIG_fail; | |
21096 | temp8 = true; | |
36ed4f51 | 21097 | } |
1bd55598 RD |
21098 | } |
21099 | { | |
21100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21101 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
21102 | wxPyEndAllowThreads(__tstate); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
21105 | { | |
21106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21107 | } | |
21108 | { | |
21109 | if (temp4) | |
21110 | delete arg4; | |
21111 | } | |
21112 | { | |
21113 | if (temp8) | |
21114 | delete arg8; | |
21115 | } | |
21116 | return resultobj; | |
21117 | fail: | |
21118 | { | |
21119 | if (temp4) | |
21120 | delete arg4; | |
21121 | } | |
21122 | { | |
21123 | if (temp8) | |
21124 | delete arg8; | |
21125 | } | |
21126 | return NULL; | |
d55e5bfc RD |
21127 | } |
21128 | ||
21129 | ||
1bd55598 RD |
21130 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21131 | PyObject *resultobj = 0; | |
21132 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21133 | void *argp1 = 0 ; | |
21134 | int res1 = 0 ; | |
21135 | PyObject *swig_obj[1] ; | |
21136 | ||
21137 | if (!args) SWIG_fail; | |
21138 | swig_obj[0] = args; | |
21139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21140 | if (!SWIG_IsOK(res1)) { | |
21141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Activate" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21142 | } | |
21143 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21144 | { | |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | (arg1)->Activate(); | |
21147 | wxPyEndAllowThreads(__tstate); | |
21148 | if (PyErr_Occurred()) SWIG_fail; | |
21149 | } | |
21150 | resultobj = SWIG_Py_Void(); | |
21151 | return resultobj; | |
21152 | fail: | |
21153 | return NULL; | |
d55e5bfc RD |
21154 | } |
21155 | ||
21156 | ||
1bd55598 RD |
21157 | SWIGINTERN PyObject *MDIChildFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21158 | PyObject *obj; | |
21159 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21160 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIChildFrame, SWIG_NewClientData(obj)); | |
21161 | return SWIG_Py_Void(); | |
d55e5bfc RD |
21162 | } |
21163 | ||
1bd55598 RD |
21164 | SWIGINTERN PyObject *MDIChildFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21165 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
21166 | } |
21167 | ||
1bd55598 RD |
21168 | SWIGINTERN PyObject *_wrap_new_MDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
21169 | PyObject *resultobj = 0; | |
21170 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21171 | long arg2 = (long) 0 ; | |
21172 | wxMDIClientWindow *result = 0 ; | |
21173 | void *argp1 = 0 ; | |
21174 | int res1 = 0 ; | |
21175 | long val2 ; | |
21176 | int ecode2 = 0 ; | |
21177 | PyObject * obj0 = 0 ; | |
21178 | PyObject * obj1 = 0 ; | |
21179 | char * kwnames[] = { | |
21180 | (char *) "parent",(char *) "style", NULL | |
21181 | }; | |
21182 | ||
21183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
21184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21185 | if (!SWIG_IsOK(res1)) { | |
21186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21187 | } | |
21188 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21189 | if (obj1) { | |
21190 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
21191 | if (!SWIG_IsOK(ecode2)) { | |
21192 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIClientWindow" "', expected argument " "2"" of type '" "long""'"); | |
21193 | } | |
21194 | arg2 = static_cast< long >(val2); | |
21195 | } | |
21196 | { | |
21197 | if (!wxPyCheckForApp()) SWIG_fail; | |
21198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21199 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
21200 | wxPyEndAllowThreads(__tstate); | |
21201 | if (PyErr_Occurred()) SWIG_fail; | |
21202 | } | |
21203 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_NEW | 0 ); | |
21204 | return resultobj; | |
21205 | fail: | |
21206 | return NULL; | |
d55e5bfc RD |
21207 | } |
21208 | ||
21209 | ||
1bd55598 RD |
21210 | SWIGINTERN PyObject *_wrap_new_PreMDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21211 | PyObject *resultobj = 0; | |
21212 | wxMDIClientWindow *result = 0 ; | |
21213 | ||
21214 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIClientWindow",0,0,0)) SWIG_fail; | |
21215 | { | |
21216 | if (!wxPyCheckForApp()) SWIG_fail; | |
21217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21218 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
21219 | wxPyEndAllowThreads(__tstate); | |
21220 | if (PyErr_Occurred()) SWIG_fail; | |
21221 | } | |
21222 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_OWN | 0 ); | |
21223 | return resultobj; | |
21224 | fail: | |
21225 | return NULL; | |
21226 | } | |
21227 | ||
21228 | ||
21229 | SWIGINTERN PyObject *_wrap_MDIClientWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21230 | PyObject *resultobj = 0; | |
21231 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
21232 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21233 | long arg3 = (long) 0 ; | |
21234 | bool result; | |
21235 | void *argp1 = 0 ; | |
21236 | int res1 = 0 ; | |
21237 | void *argp2 = 0 ; | |
21238 | int res2 = 0 ; | |
21239 | long val3 ; | |
21240 | int ecode3 = 0 ; | |
21241 | PyObject * obj0 = 0 ; | |
21242 | PyObject * obj1 = 0 ; | |
21243 | PyObject * obj2 = 0 ; | |
21244 | char * kwnames[] = { | |
21245 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
21246 | }; | |
21247 | ||
21248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIClientWindow, 0 | 0 ); | |
21250 | if (!SWIG_IsOK(res1)) { | |
21251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIClientWindow_Create" "', expected argument " "1"" of type '" "wxMDIClientWindow *""'"); | |
21252 | } | |
21253 | arg1 = reinterpret_cast< wxMDIClientWindow * >(argp1); | |
21254 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21255 | if (!SWIG_IsOK(res2)) { | |
21256 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIClientWindow_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21257 | } | |
21258 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21259 | if (obj2) { | |
21260 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
21261 | if (!SWIG_IsOK(ecode3)) { | |
21262 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIClientWindow_Create" "', expected argument " "3"" of type '" "long""'"); | |
21263 | } | |
21264 | arg3 = static_cast< long >(val3); | |
21265 | } | |
21266 | { | |
21267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21268 | result = (bool)(arg1)->Create(arg2,arg3); | |
21269 | wxPyEndAllowThreads(__tstate); | |
21270 | if (PyErr_Occurred()) SWIG_fail; | |
21271 | } | |
21272 | { | |
21273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21274 | } | |
21275 | return resultobj; | |
21276 | fail: | |
21277 | return NULL; | |
21278 | } | |
21279 | ||
21280 | ||
21281 | SWIGINTERN PyObject *MDIClientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21282 | PyObject *obj; | |
21283 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21284 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIClientWindow, SWIG_NewClientData(obj)); | |
21285 | return SWIG_Py_Void(); | |
21286 | } | |
21287 | ||
21288 | SWIGINTERN PyObject *MDIClientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21289 | return SWIG_Python_InitShadowInstance(args); | |
21290 | } | |
21291 | ||
21292 | SWIGINTERN PyObject *_wrap_new_PyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21293 | PyObject *resultobj = 0; | |
21294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21295 | int arg2 = (int) (int)-1 ; | |
21296 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21297 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21298 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21299 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21300 | long arg5 = (long) 0 ; | |
21301 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21302 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21303 | wxPyWindow *result = 0 ; | |
21304 | void *argp1 = 0 ; | |
21305 | int res1 = 0 ; | |
21306 | int val2 ; | |
21307 | int ecode2 = 0 ; | |
21308 | wxPoint temp3 ; | |
21309 | wxSize temp4 ; | |
21310 | long val5 ; | |
21311 | int ecode5 = 0 ; | |
21312 | bool temp6 = false ; | |
21313 | PyObject * obj0 = 0 ; | |
21314 | PyObject * obj1 = 0 ; | |
21315 | PyObject * obj2 = 0 ; | |
21316 | PyObject * obj3 = 0 ; | |
21317 | PyObject * obj4 = 0 ; | |
21318 | PyObject * obj5 = 0 ; | |
21319 | char * kwnames[] = { | |
21320 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21321 | }; | |
21322 | ||
21323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21325 | if (!SWIG_IsOK(res1)) { | |
21326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21327 | } | |
21328 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21329 | if (obj1) { | |
21330 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21331 | if (!SWIG_IsOK(ecode2)) { | |
21332 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyWindow" "', expected argument " "2"" of type '" "int""'"); | |
21333 | } | |
21334 | arg2 = static_cast< int >(val2); | |
21335 | } | |
21336 | if (obj2) { | |
32fe5131 | 21337 | { |
1bd55598 RD |
21338 | arg3 = &temp3; |
21339 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32fe5131 | 21340 | } |
1bd55598 RD |
21341 | } |
21342 | if (obj3) { | |
32fe5131 | 21343 | { |
1bd55598 RD |
21344 | arg4 = &temp4; |
21345 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32fe5131 | 21346 | } |
1bd55598 RD |
21347 | } |
21348 | if (obj4) { | |
21349 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21350 | if (!SWIG_IsOK(ecode5)) { | |
21351 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyWindow" "', expected argument " "5"" of type '" "long""'"); | |
21352 | } | |
21353 | arg5 = static_cast< long >(val5); | |
21354 | } | |
21355 | if (obj5) { | |
32fe5131 | 21356 | { |
1bd55598 RD |
21357 | arg6 = wxString_in_helper(obj5); |
21358 | if (arg6 == NULL) SWIG_fail; | |
21359 | temp6 = true; | |
32fe5131 | 21360 | } |
1bd55598 RD |
21361 | } |
21362 | { | |
21363 | if (!wxPyCheckForApp()) SWIG_fail; | |
21364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21365 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21366 | wxPyEndAllowThreads(__tstate); | |
21367 | if (PyErr_Occurred()) SWIG_fail; | |
21368 | } | |
21369 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_NEW | 0 ); | |
21370 | { | |
21371 | if (temp6) | |
21372 | delete arg6; | |
21373 | } | |
21374 | return resultobj; | |
21375 | fail: | |
21376 | { | |
21377 | if (temp6) | |
21378 | delete arg6; | |
21379 | } | |
21380 | return NULL; | |
32fe5131 RD |
21381 | } |
21382 | ||
21383 | ||
1bd55598 RD |
21384 | SWIGINTERN PyObject *_wrap_new_PrePyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21385 | PyObject *resultobj = 0; | |
21386 | wxPyWindow *result = 0 ; | |
21387 | ||
21388 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyWindow",0,0,0)) SWIG_fail; | |
21389 | { | |
21390 | if (!wxPyCheckForApp()) SWIG_fail; | |
21391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21392 | result = (wxPyWindow *)new wxPyWindow(); | |
21393 | wxPyEndAllowThreads(__tstate); | |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
21395 | } | |
21396 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_OWN | 0 ); | |
21397 | return resultobj; | |
21398 | fail: | |
21399 | return NULL; | |
21400 | } | |
21401 | ||
21402 | ||
21403 | SWIGINTERN PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21404 | PyObject *resultobj = 0; | |
21405 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21406 | PyObject *arg2 = (PyObject *) 0 ; | |
21407 | PyObject *arg3 = (PyObject *) 0 ; | |
21408 | void *argp1 = 0 ; | |
21409 | int res1 = 0 ; | |
21410 | PyObject * obj0 = 0 ; | |
21411 | PyObject * obj1 = 0 ; | |
21412 | PyObject * obj2 = 0 ; | |
21413 | char * kwnames[] = { | |
21414 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21415 | }; | |
21416 | ||
21417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21418 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21419 | if (!SWIG_IsOK(res1)) { | |
21420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21421 | } | |
21422 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21423 | arg2 = obj1; | |
21424 | arg3 = obj2; | |
21425 | { | |
21426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21427 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21428 | wxPyEndAllowThreads(__tstate); | |
21429 | if (PyErr_Occurred()) SWIG_fail; | |
21430 | } | |
21431 | resultobj = SWIG_Py_Void(); | |
21432 | return resultobj; | |
21433 | fail: | |
21434 | return NULL; | |
21435 | } | |
21436 | ||
21437 | ||
21438 | SWIGINTERN PyObject *_wrap_PyWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21439 | PyObject *resultobj = 0; | |
21440 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21441 | wxSize *arg2 = 0 ; | |
21442 | void *argp1 = 0 ; | |
21443 | int res1 = 0 ; | |
21444 | wxSize temp2 ; | |
21445 | PyObject * obj0 = 0 ; | |
21446 | PyObject * obj1 = 0 ; | |
21447 | char * kwnames[] = { | |
21448 | (char *) "self",(char *) "size", NULL | |
21449 | }; | |
21450 | ||
21451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
21452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21453 | if (!SWIG_IsOK(res1)) { | |
21454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21455 | } | |
21456 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21457 | { | |
21458 | arg2 = &temp2; | |
21459 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21460 | } | |
21461 | { | |
21462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21463 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
21464 | wxPyEndAllowThreads(__tstate); | |
21465 | if (PyErr_Occurred()) SWIG_fail; | |
21466 | } | |
21467 | resultobj = SWIG_Py_Void(); | |
21468 | return resultobj; | |
21469 | fail: | |
21470 | return NULL; | |
21471 | } | |
21472 | ||
21473 | ||
21474 | SWIGINTERN PyObject *_wrap_PyWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21475 | PyObject *resultobj = 0; | |
21476 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21477 | wxDC *arg2 = (wxDC *) 0 ; | |
21478 | bool result; | |
21479 | void *argp1 = 0 ; | |
21480 | int res1 = 0 ; | |
21481 | void *argp2 = 0 ; | |
21482 | int res2 = 0 ; | |
21483 | PyObject * obj0 = 0 ; | |
21484 | PyObject * obj1 = 0 ; | |
21485 | char * kwnames[] = { | |
21486 | (char *) "self",(char *) "dc", NULL | |
21487 | }; | |
21488 | ||
21489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21491 | if (!SWIG_IsOK(res1)) { | |
21492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21493 | } | |
21494 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21495 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21496 | if (!SWIG_IsOK(res2)) { | |
21497 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21498 | } | |
21499 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21500 | { | |
21501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21502 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21503 | wxPyEndAllowThreads(__tstate); | |
21504 | if (PyErr_Occurred()) SWIG_fail; | |
21505 | } | |
21506 | { | |
21507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21508 | } | |
21509 | return resultobj; | |
21510 | fail: | |
21511 | return NULL; | |
21512 | } | |
21513 | ||
21514 | ||
21515 | SWIGINTERN PyObject *_wrap_PyWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21516 | PyObject *resultobj = 0; | |
21517 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21518 | int arg2 ; | |
21519 | int arg3 ; | |
21520 | int arg4 ; | |
21521 | int arg5 ; | |
21522 | void *argp1 = 0 ; | |
21523 | int res1 = 0 ; | |
21524 | int val2 ; | |
21525 | int ecode2 = 0 ; | |
21526 | int val3 ; | |
21527 | int ecode3 = 0 ; | |
21528 | int val4 ; | |
21529 | int ecode4 = 0 ; | |
21530 | int val5 ; | |
21531 | int ecode5 = 0 ; | |
21532 | PyObject * obj0 = 0 ; | |
21533 | PyObject * obj1 = 0 ; | |
21534 | PyObject * obj2 = 0 ; | |
21535 | PyObject * obj3 = 0 ; | |
21536 | PyObject * obj4 = 0 ; | |
21537 | char * kwnames[] = { | |
21538 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21539 | }; | |
21540 | ||
21541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21543 | if (!SWIG_IsOK(res1)) { | |
21544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21545 | } | |
21546 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21547 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21548 | if (!SWIG_IsOK(ecode2)) { | |
21549 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21550 | } | |
21551 | arg2 = static_cast< int >(val2); | |
21552 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21553 | if (!SWIG_IsOK(ecode3)) { | |
21554 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21555 | } | |
21556 | arg3 = static_cast< int >(val3); | |
21557 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21558 | if (!SWIG_IsOK(ecode4)) { | |
21559 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
21560 | } | |
21561 | arg4 = static_cast< int >(val4); | |
21562 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21563 | if (!SWIG_IsOK(ecode5)) { | |
21564 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
21565 | } | |
21566 | arg5 = static_cast< int >(val5); | |
21567 | { | |
21568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21569 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
21570 | wxPyEndAllowThreads(__tstate); | |
21571 | if (PyErr_Occurred()) SWIG_fail; | |
21572 | } | |
21573 | resultobj = SWIG_Py_Void(); | |
21574 | return resultobj; | |
21575 | fail: | |
21576 | return NULL; | |
21577 | } | |
21578 | ||
21579 | ||
21580 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21581 | PyObject *resultobj = 0; | |
21582 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21583 | int arg2 ; | |
21584 | int arg3 ; | |
21585 | int arg4 ; | |
21586 | int arg5 ; | |
21587 | int arg6 = (int) wxSIZE_AUTO ; | |
21588 | void *argp1 = 0 ; | |
21589 | int res1 = 0 ; | |
21590 | int val2 ; | |
21591 | int ecode2 = 0 ; | |
21592 | int val3 ; | |
21593 | int ecode3 = 0 ; | |
21594 | int val4 ; | |
21595 | int ecode4 = 0 ; | |
21596 | int val5 ; | |
21597 | int ecode5 = 0 ; | |
21598 | int val6 ; | |
21599 | int ecode6 = 0 ; | |
21600 | PyObject * obj0 = 0 ; | |
21601 | PyObject * obj1 = 0 ; | |
21602 | PyObject * obj2 = 0 ; | |
21603 | PyObject * obj3 = 0 ; | |
21604 | PyObject * obj4 = 0 ; | |
21605 | PyObject * obj5 = 0 ; | |
21606 | char * kwnames[] = { | |
21607 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21608 | }; | |
21609 | ||
21610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21612 | if (!SWIG_IsOK(res1)) { | |
21613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21614 | } | |
21615 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21616 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21617 | if (!SWIG_IsOK(ecode2)) { | |
21618 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
21619 | } | |
21620 | arg2 = static_cast< int >(val2); | |
21621 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21622 | if (!SWIG_IsOK(ecode3)) { | |
21623 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
21624 | } | |
21625 | arg3 = static_cast< int >(val3); | |
21626 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21627 | if (!SWIG_IsOK(ecode4)) { | |
21628 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
21629 | } | |
21630 | arg4 = static_cast< int >(val4); | |
21631 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21632 | if (!SWIG_IsOK(ecode5)) { | |
21633 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
21634 | } | |
21635 | arg5 = static_cast< int >(val5); | |
21636 | if (obj5) { | |
21637 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21638 | if (!SWIG_IsOK(ecode6)) { | |
21639 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
21640 | } | |
21641 | arg6 = static_cast< int >(val6); | |
21642 | } | |
21643 | { | |
21644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21645 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
21646 | wxPyEndAllowThreads(__tstate); | |
21647 | if (PyErr_Occurred()) SWIG_fail; | |
21648 | } | |
21649 | resultobj = SWIG_Py_Void(); | |
21650 | return resultobj; | |
21651 | fail: | |
21652 | return NULL; | |
21653 | } | |
21654 | ||
21655 | ||
21656 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21657 | PyObject *resultobj = 0; | |
21658 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21659 | int arg2 ; | |
21660 | int arg3 ; | |
21661 | void *argp1 = 0 ; | |
21662 | int res1 = 0 ; | |
21663 | int val2 ; | |
21664 | int ecode2 = 0 ; | |
21665 | int val3 ; | |
21666 | int ecode3 = 0 ; | |
21667 | PyObject * obj0 = 0 ; | |
21668 | PyObject * obj1 = 0 ; | |
21669 | PyObject * obj2 = 0 ; | |
21670 | char * kwnames[] = { | |
21671 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21672 | }; | |
21673 | ||
21674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21676 | if (!SWIG_IsOK(res1)) { | |
21677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21678 | } | |
21679 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21680 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21681 | if (!SWIG_IsOK(ecode2)) { | |
21682 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
21683 | } | |
21684 | arg2 = static_cast< int >(val2); | |
21685 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21686 | if (!SWIG_IsOK(ecode3)) { | |
21687 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
21688 | } | |
21689 | arg3 = static_cast< int >(val3); | |
21690 | { | |
21691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21692 | (arg1)->DoSetClientSize(arg2,arg3); | |
21693 | wxPyEndAllowThreads(__tstate); | |
21694 | if (PyErr_Occurred()) SWIG_fail; | |
21695 | } | |
21696 | resultobj = SWIG_Py_Void(); | |
21697 | return resultobj; | |
21698 | fail: | |
21699 | return NULL; | |
21700 | } | |
21701 | ||
21702 | ||
21703 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21704 | PyObject *resultobj = 0; | |
21705 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21706 | int arg2 ; | |
21707 | int arg3 ; | |
21708 | void *argp1 = 0 ; | |
21709 | int res1 = 0 ; | |
21710 | int val2 ; | |
21711 | int ecode2 = 0 ; | |
21712 | int val3 ; | |
21713 | int ecode3 = 0 ; | |
21714 | PyObject * obj0 = 0 ; | |
21715 | PyObject * obj1 = 0 ; | |
21716 | PyObject * obj2 = 0 ; | |
21717 | char * kwnames[] = { | |
21718 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21719 | }; | |
21720 | ||
21721 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21722 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21723 | if (!SWIG_IsOK(res1)) { | |
21724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21725 | } | |
21726 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21727 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21728 | if (!SWIG_IsOK(ecode2)) { | |
21729 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
21730 | } | |
21731 | arg2 = static_cast< int >(val2); | |
21732 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21733 | if (!SWIG_IsOK(ecode3)) { | |
21734 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
21735 | } | |
21736 | arg3 = static_cast< int >(val3); | |
21737 | { | |
21738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21739 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
21740 | wxPyEndAllowThreads(__tstate); | |
21741 | if (PyErr_Occurred()) SWIG_fail; | |
21742 | } | |
21743 | resultobj = SWIG_Py_Void(); | |
21744 | return resultobj; | |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
21750 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21751 | PyObject *resultobj = 0; | |
21752 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21753 | int *arg2 = (int *) 0 ; | |
21754 | int *arg3 = (int *) 0 ; | |
21755 | void *argp1 = 0 ; | |
21756 | int res1 = 0 ; | |
21757 | int temp2 ; | |
21758 | int res2 = SWIG_TMPOBJ ; | |
21759 | int temp3 ; | |
21760 | int res3 = SWIG_TMPOBJ ; | |
21761 | PyObject *swig_obj[1] ; | |
21762 | ||
21763 | arg2 = &temp2; | |
21764 | arg3 = &temp3; | |
21765 | if (!args) SWIG_fail; | |
21766 | swig_obj[0] = args; | |
21767 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21768 | if (!SWIG_IsOK(res1)) { | |
21769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21770 | } | |
21771 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21772 | { | |
21773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21774 | ((wxPyWindow const *)arg1)->DoGetSize(arg2,arg3); | |
21775 | wxPyEndAllowThreads(__tstate); | |
21776 | if (PyErr_Occurred()) SWIG_fail; | |
21777 | } | |
21778 | resultobj = SWIG_Py_Void(); | |
21779 | if (SWIG_IsTmpObj(res2)) { | |
21780 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21781 | } else { | |
21782 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21783 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21784 | } | |
21785 | if (SWIG_IsTmpObj(res3)) { | |
21786 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21787 | } else { | |
21788 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21789 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21790 | } | |
21791 | return resultobj; | |
21792 | fail: | |
21793 | return NULL; | |
21794 | } | |
21795 | ||
21796 | ||
21797 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21798 | PyObject *resultobj = 0; | |
21799 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21800 | int *arg2 = (int *) 0 ; | |
21801 | int *arg3 = (int *) 0 ; | |
21802 | void *argp1 = 0 ; | |
21803 | int res1 = 0 ; | |
21804 | int temp2 ; | |
21805 | int res2 = SWIG_TMPOBJ ; | |
21806 | int temp3 ; | |
21807 | int res3 = SWIG_TMPOBJ ; | |
21808 | PyObject *swig_obj[1] ; | |
21809 | ||
21810 | arg2 = &temp2; | |
21811 | arg3 = &temp3; | |
21812 | if (!args) SWIG_fail; | |
21813 | swig_obj[0] = args; | |
21814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21815 | if (!SWIG_IsOK(res1)) { | |
21816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21817 | } | |
21818 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21819 | { | |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | ((wxPyWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
21822 | wxPyEndAllowThreads(__tstate); | |
21823 | if (PyErr_Occurred()) SWIG_fail; | |
21824 | } | |
21825 | resultobj = SWIG_Py_Void(); | |
21826 | if (SWIG_IsTmpObj(res2)) { | |
21827 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21828 | } else { | |
21829 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21830 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21831 | } | |
21832 | if (SWIG_IsTmpObj(res3)) { | |
21833 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21834 | } else { | |
21835 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21836 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21837 | } | |
21838 | return resultobj; | |
21839 | fail: | |
21840 | return NULL; | |
21841 | } | |
21842 | ||
21843 | ||
21844 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21845 | PyObject *resultobj = 0; | |
21846 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21847 | int *arg2 = (int *) 0 ; | |
21848 | int *arg3 = (int *) 0 ; | |
21849 | void *argp1 = 0 ; | |
21850 | int res1 = 0 ; | |
21851 | int temp2 ; | |
21852 | int res2 = SWIG_TMPOBJ ; | |
21853 | int temp3 ; | |
21854 | int res3 = SWIG_TMPOBJ ; | |
21855 | PyObject *swig_obj[1] ; | |
21856 | ||
21857 | arg2 = &temp2; | |
21858 | arg3 = &temp3; | |
21859 | if (!args) SWIG_fail; | |
21860 | swig_obj[0] = args; | |
21861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21862 | if (!SWIG_IsOK(res1)) { | |
21863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21864 | } | |
21865 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21866 | { | |
21867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21868 | ((wxPyWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
21869 | wxPyEndAllowThreads(__tstate); | |
21870 | if (PyErr_Occurred()) SWIG_fail; | |
21871 | } | |
21872 | resultobj = SWIG_Py_Void(); | |
21873 | if (SWIG_IsTmpObj(res2)) { | |
21874 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21875 | } else { | |
21876 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21877 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21878 | } | |
21879 | if (SWIG_IsTmpObj(res3)) { | |
21880 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21881 | } else { | |
21882 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21883 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21884 | } | |
21885 | return resultobj; | |
21886 | fail: | |
21887 | return NULL; | |
d55e5bfc RD |
21888 | } |
21889 | ||
21890 | ||
1bd55598 RD |
21891 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21892 | PyObject *resultobj = 0; | |
21893 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21894 | wxSize result; | |
21895 | void *argp1 = 0 ; | |
21896 | int res1 = 0 ; | |
21897 | PyObject *swig_obj[1] ; | |
21898 | ||
21899 | if (!args) SWIG_fail; | |
21900 | swig_obj[0] = args; | |
21901 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21902 | if (!SWIG_IsOK(res1)) { | |
21903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21904 | } | |
21905 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21906 | { | |
21907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21908 | result = ((wxPyWindow const *)arg1)->DoGetVirtualSize(); | |
21909 | wxPyEndAllowThreads(__tstate); | |
21910 | if (PyErr_Occurred()) SWIG_fail; | |
21911 | } | |
21912 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21913 | return resultobj; | |
21914 | fail: | |
21915 | return NULL; | |
d55e5bfc RD |
21916 | } |
21917 | ||
21918 | ||
1bd55598 RD |
21919 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21920 | PyObject *resultobj = 0; | |
21921 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21922 | wxSize result; | |
21923 | void *argp1 = 0 ; | |
21924 | int res1 = 0 ; | |
21925 | PyObject *swig_obj[1] ; | |
21926 | ||
21927 | if (!args) SWIG_fail; | |
21928 | swig_obj[0] = args; | |
21929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21930 | if (!SWIG_IsOK(res1)) { | |
21931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21932 | } | |
21933 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21934 | { | |
21935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21936 | result = ((wxPyWindow const *)arg1)->DoGetBestSize(); | |
21937 | wxPyEndAllowThreads(__tstate); | |
21938 | if (PyErr_Occurred()) SWIG_fail; | |
21939 | } | |
21940 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21941 | return resultobj; | |
21942 | fail: | |
21943 | return NULL; | |
d55e5bfc RD |
21944 | } |
21945 | ||
21946 | ||
1bd55598 RD |
21947 | SWIGINTERN PyObject *_wrap_PyWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21948 | PyObject *resultobj = 0; | |
21949 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21950 | SwigValueWrapper<wxVisualAttributes > result; | |
21951 | void *argp1 = 0 ; | |
21952 | int res1 = 0 ; | |
21953 | PyObject *swig_obj[1] ; | |
21954 | ||
21955 | if (!args) SWIG_fail; | |
21956 | swig_obj[0] = args; | |
21957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21958 | if (!SWIG_IsOK(res1)) { | |
21959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21960 | } | |
21961 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21962 | { | |
21963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21964 | result = (arg1)->GetDefaultAttributes(); | |
21965 | wxPyEndAllowThreads(__tstate); | |
21966 | if (PyErr_Occurred()) SWIG_fail; | |
21967 | } | |
21968 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
21969 | return resultobj; | |
21970 | fail: | |
21971 | return NULL; | |
d55e5bfc RD |
21972 | } |
21973 | ||
21974 | ||
1bd55598 RD |
21975 | SWIGINTERN PyObject *_wrap_PyWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21976 | PyObject *resultobj = 0; | |
21977 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21978 | void *argp1 = 0 ; | |
21979 | int res1 = 0 ; | |
21980 | PyObject *swig_obj[1] ; | |
21981 | ||
21982 | if (!args) SWIG_fail; | |
21983 | swig_obj[0] = args; | |
21984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21985 | if (!SWIG_IsOK(res1)) { | |
21986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21987 | } | |
21988 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21989 | { | |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21991 | (arg1)->OnInternalIdle(); | |
21992 | wxPyEndAllowThreads(__tstate); | |
21993 | if (PyErr_Occurred()) SWIG_fail; | |
21994 | } | |
21995 | resultobj = SWIG_Py_Void(); | |
21996 | return resultobj; | |
21997 | fail: | |
21998 | return NULL; | |
21999 | } | |
22000 | ||
22001 | ||
22002 | SWIGINTERN PyObject *PyWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22003 | PyObject *obj; | |
22004 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22005 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyWindow, SWIG_NewClientData(obj)); | |
22006 | return SWIG_Py_Void(); | |
22007 | } | |
22008 | ||
22009 | SWIGINTERN PyObject *PyWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22010 | return SWIG_Python_InitShadowInstance(args); | |
22011 | } | |
22012 | ||
22013 | SWIGINTERN PyObject *_wrap_new_PyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22014 | PyObject *resultobj = 0; | |
22015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22016 | int arg2 = (int) (int)-1 ; | |
22017 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22018 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22019 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22020 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22021 | long arg5 = (long) 0 ; | |
22022 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22023 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22024 | wxPyPanel *result = 0 ; | |
22025 | void *argp1 = 0 ; | |
22026 | int res1 = 0 ; | |
22027 | int val2 ; | |
22028 | int ecode2 = 0 ; | |
22029 | wxPoint temp3 ; | |
22030 | wxSize temp4 ; | |
22031 | long val5 ; | |
22032 | int ecode5 = 0 ; | |
22033 | bool temp6 = false ; | |
22034 | PyObject * obj0 = 0 ; | |
22035 | PyObject * obj1 = 0 ; | |
22036 | PyObject * obj2 = 0 ; | |
22037 | PyObject * obj3 = 0 ; | |
22038 | PyObject * obj4 = 0 ; | |
22039 | PyObject * obj5 = 0 ; | |
22040 | char * kwnames[] = { | |
22041 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22042 | }; | |
22043 | ||
22044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22046 | if (!SWIG_IsOK(res1)) { | |
22047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPanel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22048 | } | |
22049 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22050 | if (obj1) { | |
22051 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22052 | if (!SWIG_IsOK(ecode2)) { | |
22053 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPanel" "', expected argument " "2"" of type '" "int""'"); | |
22054 | } | |
22055 | arg2 = static_cast< int >(val2); | |
22056 | } | |
22057 | if (obj2) { | |
d55e5bfc | 22058 | { |
1bd55598 RD |
22059 | arg3 = &temp3; |
22060 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 22061 | } |
1bd55598 RD |
22062 | } |
22063 | if (obj3) { | |
d55e5bfc | 22064 | { |
1bd55598 RD |
22065 | arg4 = &temp4; |
22066 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 22067 | } |
1bd55598 RD |
22068 | } |
22069 | if (obj4) { | |
22070 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22071 | if (!SWIG_IsOK(ecode5)) { | |
22072 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyPanel" "', expected argument " "5"" of type '" "long""'"); | |
22073 | } | |
22074 | arg5 = static_cast< long >(val5); | |
22075 | } | |
22076 | if (obj5) { | |
d55e5bfc | 22077 | { |
1bd55598 RD |
22078 | arg6 = wxString_in_helper(obj5); |
22079 | if (arg6 == NULL) SWIG_fail; | |
22080 | temp6 = true; | |
d55e5bfc | 22081 | } |
1bd55598 RD |
22082 | } |
22083 | { | |
22084 | if (!wxPyCheckForApp()) SWIG_fail; | |
22085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22086 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22087 | wxPyEndAllowThreads(__tstate); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | } | |
22090 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_NEW | 0 ); | |
22091 | { | |
22092 | if (temp6) | |
22093 | delete arg6; | |
22094 | } | |
22095 | return resultobj; | |
22096 | fail: | |
22097 | { | |
22098 | if (temp6) | |
22099 | delete arg6; | |
22100 | } | |
22101 | return NULL; | |
d55e5bfc RD |
22102 | } |
22103 | ||
22104 | ||
1bd55598 RD |
22105 | SWIGINTERN PyObject *_wrap_new_PrePyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22106 | PyObject *resultobj = 0; | |
22107 | wxPyPanel *result = 0 ; | |
22108 | ||
22109 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyPanel",0,0,0)) SWIG_fail; | |
22110 | { | |
22111 | if (!wxPyCheckForApp()) SWIG_fail; | |
22112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22113 | result = (wxPyPanel *)new wxPyPanel(); | |
22114 | wxPyEndAllowThreads(__tstate); | |
22115 | if (PyErr_Occurred()) SWIG_fail; | |
22116 | } | |
22117 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_OWN | 0 ); | |
22118 | return resultobj; | |
22119 | fail: | |
22120 | return NULL; | |
22121 | } | |
22122 | ||
22123 | ||
22124 | SWIGINTERN PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22125 | PyObject *resultobj = 0; | |
22126 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22127 | PyObject *arg2 = (PyObject *) 0 ; | |
22128 | PyObject *arg3 = (PyObject *) 0 ; | |
22129 | void *argp1 = 0 ; | |
22130 | int res1 = 0 ; | |
22131 | PyObject * obj0 = 0 ; | |
22132 | PyObject * obj1 = 0 ; | |
22133 | PyObject * obj2 = 0 ; | |
22134 | char * kwnames[] = { | |
22135 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22136 | }; | |
22137 | ||
22138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22140 | if (!SWIG_IsOK(res1)) { | |
22141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22142 | } | |
22143 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22144 | arg2 = obj1; | |
22145 | arg3 = obj2; | |
22146 | { | |
22147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22148 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22149 | wxPyEndAllowThreads(__tstate); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
22152 | resultobj = SWIG_Py_Void(); | |
22153 | return resultobj; | |
22154 | fail: | |
22155 | return NULL; | |
22156 | } | |
22157 | ||
22158 | ||
22159 | SWIGINTERN PyObject *_wrap_PyPanel_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22160 | PyObject *resultobj = 0; | |
22161 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22162 | wxSize *arg2 = 0 ; | |
22163 | void *argp1 = 0 ; | |
22164 | int res1 = 0 ; | |
22165 | wxSize temp2 ; | |
22166 | PyObject * obj0 = 0 ; | |
22167 | PyObject * obj1 = 0 ; | |
22168 | char * kwnames[] = { | |
22169 | (char *) "self",(char *) "size", NULL | |
22170 | }; | |
22171 | ||
22172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22174 | if (!SWIG_IsOK(res1)) { | |
22175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_SetBestSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22176 | } | |
22177 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22178 | { | |
22179 | arg2 = &temp2; | |
22180 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22181 | } | |
22182 | { | |
22183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22184 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
22185 | wxPyEndAllowThreads(__tstate); | |
22186 | if (PyErr_Occurred()) SWIG_fail; | |
22187 | } | |
22188 | resultobj = SWIG_Py_Void(); | |
22189 | return resultobj; | |
22190 | fail: | |
22191 | return NULL; | |
22192 | } | |
22193 | ||
22194 | ||
22195 | SWIGINTERN PyObject *_wrap_PyPanel_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22196 | PyObject *resultobj = 0; | |
22197 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22198 | wxDC *arg2 = (wxDC *) 0 ; | |
22199 | bool result; | |
22200 | void *argp1 = 0 ; | |
22201 | int res1 = 0 ; | |
22202 | void *argp2 = 0 ; | |
22203 | int res2 = 0 ; | |
22204 | PyObject * obj0 = 0 ; | |
22205 | PyObject * obj1 = 0 ; | |
22206 | char * kwnames[] = { | |
22207 | (char *) "self",(char *) "dc", NULL | |
22208 | }; | |
22209 | ||
22210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22212 | if (!SWIG_IsOK(res1)) { | |
22213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22214 | } | |
22215 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22216 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22217 | if (!SWIG_IsOK(res2)) { | |
22218 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22219 | } | |
22220 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22221 | { | |
22222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22223 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22224 | wxPyEndAllowThreads(__tstate); | |
22225 | if (PyErr_Occurred()) SWIG_fail; | |
22226 | } | |
22227 | { | |
22228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22229 | } | |
22230 | return resultobj; | |
22231 | fail: | |
22232 | return NULL; | |
22233 | } | |
22234 | ||
22235 | ||
22236 | SWIGINTERN PyObject *_wrap_PyPanel_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22237 | PyObject *resultobj = 0; | |
22238 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22239 | int arg2 ; | |
22240 | int arg3 ; | |
22241 | int arg4 ; | |
22242 | int arg5 ; | |
22243 | void *argp1 = 0 ; | |
22244 | int res1 = 0 ; | |
22245 | int val2 ; | |
22246 | int ecode2 = 0 ; | |
22247 | int val3 ; | |
22248 | int ecode3 = 0 ; | |
22249 | int val4 ; | |
22250 | int ecode4 = 0 ; | |
22251 | int val5 ; | |
22252 | int ecode5 = 0 ; | |
22253 | PyObject * obj0 = 0 ; | |
22254 | PyObject * obj1 = 0 ; | |
22255 | PyObject * obj2 = 0 ; | |
22256 | PyObject * obj3 = 0 ; | |
22257 | PyObject * obj4 = 0 ; | |
22258 | char * kwnames[] = { | |
22259 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22260 | }; | |
22261 | ||
22262 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22263 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22264 | if (!SWIG_IsOK(res1)) { | |
22265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22266 | } | |
22267 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22268 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22269 | if (!SWIG_IsOK(ecode2)) { | |
22270 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22271 | } | |
22272 | arg2 = static_cast< int >(val2); | |
22273 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22274 | if (!SWIG_IsOK(ecode3)) { | |
22275 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22276 | } | |
22277 | arg3 = static_cast< int >(val3); | |
22278 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22279 | if (!SWIG_IsOK(ecode4)) { | |
22280 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22281 | } | |
22282 | arg4 = static_cast< int >(val4); | |
22283 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22284 | if (!SWIG_IsOK(ecode5)) { | |
22285 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22286 | } | |
22287 | arg5 = static_cast< int >(val5); | |
22288 | { | |
22289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22290 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22291 | wxPyEndAllowThreads(__tstate); | |
22292 | if (PyErr_Occurred()) SWIG_fail; | |
22293 | } | |
22294 | resultobj = SWIG_Py_Void(); | |
22295 | return resultobj; | |
22296 | fail: | |
22297 | return NULL; | |
22298 | } | |
22299 | ||
22300 | ||
22301 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22302 | PyObject *resultobj = 0; | |
22303 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22304 | int arg2 ; | |
22305 | int arg3 ; | |
22306 | int arg4 ; | |
22307 | int arg5 ; | |
22308 | int arg6 = (int) wxSIZE_AUTO ; | |
22309 | void *argp1 = 0 ; | |
22310 | int res1 = 0 ; | |
22311 | int val2 ; | |
22312 | int ecode2 = 0 ; | |
22313 | int val3 ; | |
22314 | int ecode3 = 0 ; | |
22315 | int val4 ; | |
22316 | int ecode4 = 0 ; | |
22317 | int val5 ; | |
22318 | int ecode5 = 0 ; | |
22319 | int val6 ; | |
22320 | int ecode6 = 0 ; | |
22321 | PyObject * obj0 = 0 ; | |
22322 | PyObject * obj1 = 0 ; | |
22323 | PyObject * obj2 = 0 ; | |
22324 | PyObject * obj3 = 0 ; | |
22325 | PyObject * obj4 = 0 ; | |
22326 | PyObject * obj5 = 0 ; | |
22327 | char * kwnames[] = { | |
22328 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22329 | }; | |
22330 | ||
22331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22333 | if (!SWIG_IsOK(res1)) { | |
22334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22335 | } | |
22336 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22337 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22338 | if (!SWIG_IsOK(ecode2)) { | |
22339 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22340 | } | |
22341 | arg2 = static_cast< int >(val2); | |
22342 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22343 | if (!SWIG_IsOK(ecode3)) { | |
22344 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22345 | } | |
22346 | arg3 = static_cast< int >(val3); | |
22347 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22348 | if (!SWIG_IsOK(ecode4)) { | |
22349 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22350 | } | |
22351 | arg4 = static_cast< int >(val4); | |
22352 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22353 | if (!SWIG_IsOK(ecode5)) { | |
22354 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22355 | } | |
22356 | arg5 = static_cast< int >(val5); | |
22357 | if (obj5) { | |
22358 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22359 | if (!SWIG_IsOK(ecode6)) { | |
22360 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyPanel_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22361 | } | |
22362 | arg6 = static_cast< int >(val6); | |
22363 | } | |
22364 | { | |
22365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22366 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22367 | wxPyEndAllowThreads(__tstate); | |
22368 | if (PyErr_Occurred()) SWIG_fail; | |
22369 | } | |
22370 | resultobj = SWIG_Py_Void(); | |
22371 | return resultobj; | |
22372 | fail: | |
22373 | return NULL; | |
22374 | } | |
22375 | ||
22376 | ||
22377 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22378 | PyObject *resultobj = 0; | |
22379 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22380 | int arg2 ; | |
22381 | int arg3 ; | |
22382 | void *argp1 = 0 ; | |
22383 | int res1 = 0 ; | |
22384 | int val2 ; | |
22385 | int ecode2 = 0 ; | |
22386 | int val3 ; | |
22387 | int ecode3 = 0 ; | |
22388 | PyObject * obj0 = 0 ; | |
22389 | PyObject * obj1 = 0 ; | |
22390 | PyObject * obj2 = 0 ; | |
22391 | char * kwnames[] = { | |
22392 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22393 | }; | |
22394 | ||
22395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22397 | if (!SWIG_IsOK(res1)) { | |
22398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22399 | } | |
22400 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22401 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22402 | if (!SWIG_IsOK(ecode2)) { | |
22403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22404 | } | |
22405 | arg2 = static_cast< int >(val2); | |
22406 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22407 | if (!SWIG_IsOK(ecode3)) { | |
22408 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22409 | } | |
22410 | arg3 = static_cast< int >(val3); | |
22411 | { | |
22412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22413 | (arg1)->DoSetClientSize(arg2,arg3); | |
22414 | wxPyEndAllowThreads(__tstate); | |
22415 | if (PyErr_Occurred()) SWIG_fail; | |
22416 | } | |
22417 | resultobj = SWIG_Py_Void(); | |
22418 | return resultobj; | |
22419 | fail: | |
22420 | return NULL; | |
22421 | } | |
22422 | ||
22423 | ||
22424 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22425 | PyObject *resultobj = 0; | |
22426 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22427 | int arg2 ; | |
22428 | int arg3 ; | |
22429 | void *argp1 = 0 ; | |
22430 | int res1 = 0 ; | |
22431 | int val2 ; | |
22432 | int ecode2 = 0 ; | |
22433 | int val3 ; | |
22434 | int ecode3 = 0 ; | |
22435 | PyObject * obj0 = 0 ; | |
22436 | PyObject * obj1 = 0 ; | |
22437 | PyObject * obj2 = 0 ; | |
22438 | char * kwnames[] = { | |
22439 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22440 | }; | |
22441 | ||
22442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22444 | if (!SWIG_IsOK(res1)) { | |
22445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22446 | } | |
22447 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22448 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22449 | if (!SWIG_IsOK(ecode2)) { | |
22450 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22451 | } | |
22452 | arg2 = static_cast< int >(val2); | |
22453 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22454 | if (!SWIG_IsOK(ecode3)) { | |
22455 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22456 | } | |
22457 | arg3 = static_cast< int >(val3); | |
22458 | { | |
22459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22460 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22461 | wxPyEndAllowThreads(__tstate); | |
22462 | if (PyErr_Occurred()) SWIG_fail; | |
22463 | } | |
22464 | resultobj = SWIG_Py_Void(); | |
22465 | return resultobj; | |
22466 | fail: | |
22467 | return NULL; | |
22468 | } | |
22469 | ||
22470 | ||
22471 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22472 | PyObject *resultobj = 0; | |
22473 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22474 | int *arg2 = (int *) 0 ; | |
22475 | int *arg3 = (int *) 0 ; | |
22476 | void *argp1 = 0 ; | |
22477 | int res1 = 0 ; | |
22478 | int temp2 ; | |
22479 | int res2 = SWIG_TMPOBJ ; | |
22480 | int temp3 ; | |
22481 | int res3 = SWIG_TMPOBJ ; | |
22482 | PyObject *swig_obj[1] ; | |
22483 | ||
22484 | arg2 = &temp2; | |
22485 | arg3 = &temp3; | |
22486 | if (!args) SWIG_fail; | |
22487 | swig_obj[0] = args; | |
22488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22489 | if (!SWIG_IsOK(res1)) { | |
22490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22491 | } | |
22492 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22493 | { | |
22494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22495 | ((wxPyPanel const *)arg1)->DoGetSize(arg2,arg3); | |
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | resultobj = SWIG_Py_Void(); | |
22500 | if (SWIG_IsTmpObj(res2)) { | |
22501 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22502 | } else { | |
22503 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22504 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22505 | } | |
22506 | if (SWIG_IsTmpObj(res3)) { | |
22507 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22508 | } else { | |
22509 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22510 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22511 | } | |
22512 | return resultobj; | |
22513 | fail: | |
22514 | return NULL; | |
22515 | } | |
22516 | ||
22517 | ||
22518 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22519 | PyObject *resultobj = 0; | |
22520 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22521 | int *arg2 = (int *) 0 ; | |
22522 | int *arg3 = (int *) 0 ; | |
22523 | void *argp1 = 0 ; | |
22524 | int res1 = 0 ; | |
22525 | int temp2 ; | |
22526 | int res2 = SWIG_TMPOBJ ; | |
22527 | int temp3 ; | |
22528 | int res3 = SWIG_TMPOBJ ; | |
22529 | PyObject *swig_obj[1] ; | |
22530 | ||
22531 | arg2 = &temp2; | |
22532 | arg3 = &temp3; | |
22533 | if (!args) SWIG_fail; | |
22534 | swig_obj[0] = args; | |
22535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22536 | if (!SWIG_IsOK(res1)) { | |
22537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22538 | } | |
22539 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22540 | { | |
22541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22542 | ((wxPyPanel const *)arg1)->DoGetClientSize(arg2,arg3); | |
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
22546 | resultobj = SWIG_Py_Void(); | |
22547 | if (SWIG_IsTmpObj(res2)) { | |
22548 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22549 | } else { | |
22550 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22551 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22552 | } | |
22553 | if (SWIG_IsTmpObj(res3)) { | |
22554 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22555 | } else { | |
22556 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22557 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22558 | } | |
22559 | return resultobj; | |
22560 | fail: | |
22561 | return NULL; | |
22562 | } | |
22563 | ||
22564 | ||
22565 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22566 | PyObject *resultobj = 0; | |
22567 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22568 | int *arg2 = (int *) 0 ; | |
22569 | int *arg3 = (int *) 0 ; | |
22570 | void *argp1 = 0 ; | |
22571 | int res1 = 0 ; | |
22572 | int temp2 ; | |
22573 | int res2 = SWIG_TMPOBJ ; | |
22574 | int temp3 ; | |
22575 | int res3 = SWIG_TMPOBJ ; | |
22576 | PyObject *swig_obj[1] ; | |
22577 | ||
22578 | arg2 = &temp2; | |
22579 | arg3 = &temp3; | |
22580 | if (!args) SWIG_fail; | |
22581 | swig_obj[0] = args; | |
22582 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22583 | if (!SWIG_IsOK(res1)) { | |
22584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetPosition" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22585 | } | |
22586 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22587 | { | |
22588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22589 | ((wxPyPanel const *)arg1)->DoGetPosition(arg2,arg3); | |
22590 | wxPyEndAllowThreads(__tstate); | |
22591 | if (PyErr_Occurred()) SWIG_fail; | |
22592 | } | |
22593 | resultobj = SWIG_Py_Void(); | |
22594 | if (SWIG_IsTmpObj(res2)) { | |
22595 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22596 | } else { | |
22597 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22598 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22599 | } | |
22600 | if (SWIG_IsTmpObj(res3)) { | |
22601 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22602 | } else { | |
22603 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22604 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22605 | } | |
22606 | return resultobj; | |
22607 | fail: | |
22608 | return NULL; | |
d55e5bfc RD |
22609 | } |
22610 | ||
22611 | ||
1bd55598 RD |
22612 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22613 | PyObject *resultobj = 0; | |
22614 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22615 | wxSize result; | |
22616 | void *argp1 = 0 ; | |
22617 | int res1 = 0 ; | |
22618 | PyObject *swig_obj[1] ; | |
22619 | ||
22620 | if (!args) SWIG_fail; | |
22621 | swig_obj[0] = args; | |
22622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22623 | if (!SWIG_IsOK(res1)) { | |
22624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22625 | } | |
22626 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22627 | { | |
22628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22629 | result = ((wxPyPanel const *)arg1)->DoGetVirtualSize(); | |
22630 | wxPyEndAllowThreads(__tstate); | |
22631 | if (PyErr_Occurred()) SWIG_fail; | |
22632 | } | |
22633 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22634 | return resultobj; | |
22635 | fail: | |
22636 | return NULL; | |
d55e5bfc RD |
22637 | } |
22638 | ||
22639 | ||
1bd55598 RD |
22640 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22641 | PyObject *resultobj = 0; | |
22642 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22643 | wxSize result; | |
22644 | void *argp1 = 0 ; | |
22645 | int res1 = 0 ; | |
22646 | PyObject *swig_obj[1] ; | |
22647 | ||
22648 | if (!args) SWIG_fail; | |
22649 | swig_obj[0] = args; | |
22650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22651 | if (!SWIG_IsOK(res1)) { | |
22652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22653 | } | |
22654 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22655 | { | |
22656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22657 | result = ((wxPyPanel const *)arg1)->DoGetBestSize(); | |
22658 | wxPyEndAllowThreads(__tstate); | |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
22660 | } | |
22661 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22662 | return resultobj; | |
22663 | fail: | |
22664 | return NULL; | |
d55e5bfc RD |
22665 | } |
22666 | ||
22667 | ||
1bd55598 RD |
22668 | SWIGINTERN PyObject *_wrap_PyPanel_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22669 | PyObject *resultobj = 0; | |
22670 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22671 | SwigValueWrapper<wxVisualAttributes > result; | |
22672 | void *argp1 = 0 ; | |
22673 | int res1 = 0 ; | |
22674 | PyObject *swig_obj[1] ; | |
22675 | ||
22676 | if (!args) SWIG_fail; | |
22677 | swig_obj[0] = args; | |
22678 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22679 | if (!SWIG_IsOK(res1)) { | |
22680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22681 | } | |
22682 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22683 | { | |
22684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22685 | result = (arg1)->GetDefaultAttributes(); | |
22686 | wxPyEndAllowThreads(__tstate); | |
22687 | if (PyErr_Occurred()) SWIG_fail; | |
22688 | } | |
22689 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22690 | return resultobj; | |
22691 | fail: | |
22692 | return NULL; | |
d55e5bfc RD |
22693 | } |
22694 | ||
22695 | ||
1bd55598 RD |
22696 | SWIGINTERN PyObject *_wrap_PyPanel_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22697 | PyObject *resultobj = 0; | |
22698 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22699 | void *argp1 = 0 ; | |
22700 | int res1 = 0 ; | |
22701 | PyObject *swig_obj[1] ; | |
22702 | ||
22703 | if (!args) SWIG_fail; | |
22704 | swig_obj[0] = args; | |
22705 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22706 | if (!SWIG_IsOK(res1)) { | |
22707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22708 | } | |
22709 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22710 | { | |
22711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22712 | (arg1)->OnInternalIdle(); | |
22713 | wxPyEndAllowThreads(__tstate); | |
22714 | if (PyErr_Occurred()) SWIG_fail; | |
22715 | } | |
22716 | resultobj = SWIG_Py_Void(); | |
22717 | return resultobj; | |
22718 | fail: | |
22719 | return NULL; | |
22720 | } | |
22721 | ||
22722 | ||
22723 | SWIGINTERN PyObject *PyPanel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22724 | PyObject *obj; | |
22725 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22726 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPanel, SWIG_NewClientData(obj)); | |
22727 | return SWIG_Py_Void(); | |
22728 | } | |
22729 | ||
22730 | SWIGINTERN PyObject *PyPanel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22731 | return SWIG_Python_InitShadowInstance(args); | |
22732 | } | |
22733 | ||
22734 | SWIGINTERN PyObject *_wrap_new_PyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22735 | PyObject *resultobj = 0; | |
22736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22737 | int arg2 = (int) (int)-1 ; | |
22738 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22739 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22740 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22741 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22742 | long arg5 = (long) 0 ; | |
22743 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22744 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22745 | wxPyScrolledWindow *result = 0 ; | |
22746 | void *argp1 = 0 ; | |
22747 | int res1 = 0 ; | |
22748 | int val2 ; | |
22749 | int ecode2 = 0 ; | |
22750 | wxPoint temp3 ; | |
22751 | wxSize temp4 ; | |
22752 | long val5 ; | |
22753 | int ecode5 = 0 ; | |
22754 | bool temp6 = false ; | |
22755 | PyObject * obj0 = 0 ; | |
22756 | PyObject * obj1 = 0 ; | |
22757 | PyObject * obj2 = 0 ; | |
22758 | PyObject * obj3 = 0 ; | |
22759 | PyObject * obj4 = 0 ; | |
22760 | PyObject * obj5 = 0 ; | |
22761 | char * kwnames[] = { | |
22762 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22763 | }; | |
22764 | ||
22765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22767 | if (!SWIG_IsOK(res1)) { | |
22768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22769 | } | |
22770 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22771 | if (obj1) { | |
22772 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22773 | if (!SWIG_IsOK(ecode2)) { | |
22774 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
22775 | } | |
22776 | arg2 = static_cast< int >(val2); | |
22777 | } | |
22778 | if (obj2) { | |
d55e5bfc | 22779 | { |
1bd55598 RD |
22780 | arg3 = &temp3; |
22781 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 22782 | } |
1bd55598 RD |
22783 | } |
22784 | if (obj3) { | |
d55e5bfc | 22785 | { |
1bd55598 RD |
22786 | arg4 = &temp4; |
22787 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 22788 | } |
1bd55598 RD |
22789 | } |
22790 | if (obj4) { | |
22791 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22792 | if (!SWIG_IsOK(ecode5)) { | |
22793 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
22794 | } | |
22795 | arg5 = static_cast< long >(val5); | |
22796 | } | |
22797 | if (obj5) { | |
d55e5bfc | 22798 | { |
1bd55598 RD |
22799 | arg6 = wxString_in_helper(obj5); |
22800 | if (arg6 == NULL) SWIG_fail; | |
22801 | temp6 = true; | |
d55e5bfc | 22802 | } |
1bd55598 RD |
22803 | } |
22804 | { | |
22805 | if (!wxPyCheckForApp()) SWIG_fail; | |
22806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22807 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22808 | wxPyEndAllowThreads(__tstate); | |
22809 | if (PyErr_Occurred()) SWIG_fail; | |
22810 | } | |
22811 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
22812 | { | |
22813 | if (temp6) | |
22814 | delete arg6; | |
22815 | } | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | { | |
22819 | if (temp6) | |
22820 | delete arg6; | |
22821 | } | |
22822 | return NULL; | |
d55e5bfc RD |
22823 | } |
22824 | ||
22825 | ||
1bd55598 RD |
22826 | SWIGINTERN PyObject *_wrap_new_PrePyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22827 | PyObject *resultobj = 0; | |
22828 | wxPyScrolledWindow *result = 0 ; | |
22829 | ||
22830 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyScrolledWindow",0,0,0)) SWIG_fail; | |
22831 | { | |
22832 | if (!wxPyCheckForApp()) SWIG_fail; | |
22833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22834 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
22835 | wxPyEndAllowThreads(__tstate); | |
22836 | if (PyErr_Occurred()) SWIG_fail; | |
22837 | } | |
22838 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
22845 | SWIGINTERN PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22846 | PyObject *resultobj = 0; | |
22847 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22848 | PyObject *arg2 = (PyObject *) 0 ; | |
22849 | PyObject *arg3 = (PyObject *) 0 ; | |
22850 | void *argp1 = 0 ; | |
22851 | int res1 = 0 ; | |
22852 | PyObject * obj0 = 0 ; | |
22853 | PyObject * obj1 = 0 ; | |
22854 | PyObject * obj2 = 0 ; | |
22855 | char * kwnames[] = { | |
22856 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22857 | }; | |
22858 | ||
22859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22861 | if (!SWIG_IsOK(res1)) { | |
22862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22863 | } | |
22864 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22865 | arg2 = obj1; | |
22866 | arg3 = obj2; | |
22867 | { | |
22868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22869 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22870 | wxPyEndAllowThreads(__tstate); | |
22871 | if (PyErr_Occurred()) SWIG_fail; | |
22872 | } | |
22873 | resultobj = SWIG_Py_Void(); | |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22881 | PyObject *resultobj = 0; | |
22882 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22883 | wxSize *arg2 = 0 ; | |
22884 | void *argp1 = 0 ; | |
22885 | int res1 = 0 ; | |
22886 | wxSize temp2 ; | |
22887 | PyObject * obj0 = 0 ; | |
22888 | PyObject * obj1 = 0 ; | |
22889 | char * kwnames[] = { | |
22890 | (char *) "self",(char *) "size", NULL | |
22891 | }; | |
22892 | ||
22893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22895 | if (!SWIG_IsOK(res1)) { | |
22896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22897 | } | |
22898 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22899 | { | |
22900 | arg2 = &temp2; | |
22901 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22902 | } | |
22903 | { | |
22904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22905 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
22906 | wxPyEndAllowThreads(__tstate); | |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
22908 | } | |
22909 | resultobj = SWIG_Py_Void(); | |
22910 | return resultobj; | |
22911 | fail: | |
22912 | return NULL; | |
22913 | } | |
22914 | ||
22915 | ||
22916 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22917 | PyObject *resultobj = 0; | |
22918 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22919 | wxDC *arg2 = (wxDC *) 0 ; | |
22920 | bool result; | |
22921 | void *argp1 = 0 ; | |
22922 | int res1 = 0 ; | |
22923 | void *argp2 = 0 ; | |
22924 | int res2 = 0 ; | |
22925 | PyObject * obj0 = 0 ; | |
22926 | PyObject * obj1 = 0 ; | |
22927 | char * kwnames[] = { | |
22928 | (char *) "self",(char *) "dc", NULL | |
22929 | }; | |
22930 | ||
22931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22933 | if (!SWIG_IsOK(res1)) { | |
22934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22935 | } | |
22936 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22937 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22938 | if (!SWIG_IsOK(res2)) { | |
22939 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22940 | } | |
22941 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22942 | { | |
22943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22944 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22945 | wxPyEndAllowThreads(__tstate); | |
22946 | if (PyErr_Occurred()) SWIG_fail; | |
22947 | } | |
22948 | { | |
22949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22950 | } | |
22951 | return resultobj; | |
22952 | fail: | |
22953 | return NULL; | |
22954 | } | |
22955 | ||
22956 | ||
22957 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22958 | PyObject *resultobj = 0; | |
22959 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22960 | int arg2 ; | |
22961 | int arg3 ; | |
22962 | int arg4 ; | |
22963 | int arg5 ; | |
22964 | void *argp1 = 0 ; | |
22965 | int res1 = 0 ; | |
22966 | int val2 ; | |
22967 | int ecode2 = 0 ; | |
22968 | int val3 ; | |
22969 | int ecode3 = 0 ; | |
22970 | int val4 ; | |
22971 | int ecode4 = 0 ; | |
22972 | int val5 ; | |
22973 | int ecode5 = 0 ; | |
22974 | PyObject * obj0 = 0 ; | |
22975 | PyObject * obj1 = 0 ; | |
22976 | PyObject * obj2 = 0 ; | |
22977 | PyObject * obj3 = 0 ; | |
22978 | PyObject * obj4 = 0 ; | |
22979 | char * kwnames[] = { | |
22980 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22981 | }; | |
22982 | ||
22983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22985 | if (!SWIG_IsOK(res1)) { | |
22986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22987 | } | |
22988 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22989 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22990 | if (!SWIG_IsOK(ecode2)) { | |
22991 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22992 | } | |
22993 | arg2 = static_cast< int >(val2); | |
22994 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22995 | if (!SWIG_IsOK(ecode3)) { | |
22996 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22997 | } | |
22998 | arg3 = static_cast< int >(val3); | |
22999 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23000 | if (!SWIG_IsOK(ecode4)) { | |
23001 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
23002 | } | |
23003 | arg4 = static_cast< int >(val4); | |
23004 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23005 | if (!SWIG_IsOK(ecode5)) { | |
23006 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
23007 | } | |
23008 | arg5 = static_cast< int >(val5); | |
23009 | { | |
23010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23011 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
23012 | wxPyEndAllowThreads(__tstate); | |
23013 | if (PyErr_Occurred()) SWIG_fail; | |
23014 | } | |
23015 | resultobj = SWIG_Py_Void(); | |
23016 | return resultobj; | |
23017 | fail: | |
23018 | return NULL; | |
23019 | } | |
23020 | ||
23021 | ||
23022 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23023 | PyObject *resultobj = 0; | |
23024 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23025 | int arg2 ; | |
23026 | int arg3 ; | |
23027 | int arg4 ; | |
23028 | int arg5 ; | |
23029 | int arg6 = (int) wxSIZE_AUTO ; | |
23030 | void *argp1 = 0 ; | |
23031 | int res1 = 0 ; | |
23032 | int val2 ; | |
23033 | int ecode2 = 0 ; | |
23034 | int val3 ; | |
23035 | int ecode3 = 0 ; | |
23036 | int val4 ; | |
23037 | int ecode4 = 0 ; | |
23038 | int val5 ; | |
23039 | int ecode5 = 0 ; | |
23040 | int val6 ; | |
23041 | int ecode6 = 0 ; | |
23042 | PyObject * obj0 = 0 ; | |
23043 | PyObject * obj1 = 0 ; | |
23044 | PyObject * obj2 = 0 ; | |
23045 | PyObject * obj3 = 0 ; | |
23046 | PyObject * obj4 = 0 ; | |
23047 | PyObject * obj5 = 0 ; | |
23048 | char * kwnames[] = { | |
23049 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
23050 | }; | |
23051 | ||
23052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
23053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23054 | if (!SWIG_IsOK(res1)) { | |
23055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23056 | } | |
23057 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23058 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23059 | if (!SWIG_IsOK(ecode2)) { | |
23060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
23061 | } | |
23062 | arg2 = static_cast< int >(val2); | |
23063 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23064 | if (!SWIG_IsOK(ecode3)) { | |
23065 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
23066 | } | |
23067 | arg3 = static_cast< int >(val3); | |
23068 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23069 | if (!SWIG_IsOK(ecode4)) { | |
23070 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
23071 | } | |
23072 | arg4 = static_cast< int >(val4); | |
23073 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23074 | if (!SWIG_IsOK(ecode5)) { | |
23075 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
23076 | } | |
23077 | arg5 = static_cast< int >(val5); | |
23078 | if (obj5) { | |
23079 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23080 | if (!SWIG_IsOK(ecode6)) { | |
23081 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
23082 | } | |
23083 | arg6 = static_cast< int >(val6); | |
23084 | } | |
23085 | { | |
23086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23087 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
23088 | wxPyEndAllowThreads(__tstate); | |
23089 | if (PyErr_Occurred()) SWIG_fail; | |
23090 | } | |
23091 | resultobj = SWIG_Py_Void(); | |
23092 | return resultobj; | |
23093 | fail: | |
23094 | return NULL; | |
23095 | } | |
23096 | ||
23097 | ||
23098 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23099 | PyObject *resultobj = 0; | |
23100 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23101 | int arg2 ; | |
23102 | int arg3 ; | |
23103 | void *argp1 = 0 ; | |
23104 | int res1 = 0 ; | |
23105 | int val2 ; | |
23106 | int ecode2 = 0 ; | |
23107 | int val3 ; | |
23108 | int ecode3 = 0 ; | |
23109 | PyObject * obj0 = 0 ; | |
23110 | PyObject * obj1 = 0 ; | |
23111 | PyObject * obj2 = 0 ; | |
23112 | char * kwnames[] = { | |
23113 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23114 | }; | |
23115 | ||
23116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23118 | if (!SWIG_IsOK(res1)) { | |
23119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23120 | } | |
23121 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23122 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23123 | if (!SWIG_IsOK(ecode2)) { | |
23124 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
23125 | } | |
23126 | arg2 = static_cast< int >(val2); | |
23127 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23128 | if (!SWIG_IsOK(ecode3)) { | |
23129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
23130 | } | |
23131 | arg3 = static_cast< int >(val3); | |
23132 | { | |
23133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23134 | (arg1)->DoSetClientSize(arg2,arg3); | |
23135 | wxPyEndAllowThreads(__tstate); | |
23136 | if (PyErr_Occurred()) SWIG_fail; | |
23137 | } | |
23138 | resultobj = SWIG_Py_Void(); | |
23139 | return resultobj; | |
23140 | fail: | |
23141 | return NULL; | |
23142 | } | |
23143 | ||
23144 | ||
23145 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23146 | PyObject *resultobj = 0; | |
23147 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23148 | int arg2 ; | |
23149 | int arg3 ; | |
23150 | void *argp1 = 0 ; | |
23151 | int res1 = 0 ; | |
23152 | int val2 ; | |
23153 | int ecode2 = 0 ; | |
23154 | int val3 ; | |
23155 | int ecode3 = 0 ; | |
23156 | PyObject * obj0 = 0 ; | |
23157 | PyObject * obj1 = 0 ; | |
23158 | PyObject * obj2 = 0 ; | |
23159 | char * kwnames[] = { | |
23160 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23161 | }; | |
23162 | ||
23163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23165 | if (!SWIG_IsOK(res1)) { | |
23166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23167 | } | |
23168 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23169 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23170 | if (!SWIG_IsOK(ecode2)) { | |
23171 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
23172 | } | |
23173 | arg2 = static_cast< int >(val2); | |
23174 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23175 | if (!SWIG_IsOK(ecode3)) { | |
23176 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
23177 | } | |
23178 | arg3 = static_cast< int >(val3); | |
23179 | { | |
23180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23181 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
23182 | wxPyEndAllowThreads(__tstate); | |
23183 | if (PyErr_Occurred()) SWIG_fail; | |
23184 | } | |
23185 | resultobj = SWIG_Py_Void(); | |
23186 | return resultobj; | |
23187 | fail: | |
23188 | return NULL; | |
23189 | } | |
23190 | ||
23191 | ||
23192 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23193 | PyObject *resultobj = 0; | |
23194 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23195 | int *arg2 = (int *) 0 ; | |
23196 | int *arg3 = (int *) 0 ; | |
23197 | void *argp1 = 0 ; | |
23198 | int res1 = 0 ; | |
23199 | int temp2 ; | |
23200 | int res2 = SWIG_TMPOBJ ; | |
23201 | int temp3 ; | |
23202 | int res3 = SWIG_TMPOBJ ; | |
23203 | PyObject *swig_obj[1] ; | |
23204 | ||
23205 | arg2 = &temp2; | |
23206 | arg3 = &temp3; | |
23207 | if (!args) SWIG_fail; | |
23208 | swig_obj[0] = args; | |
23209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23210 | if (!SWIG_IsOK(res1)) { | |
23211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23212 | } | |
23213 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23214 | { | |
23215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23216 | ((wxPyScrolledWindow const *)arg1)->DoGetSize(arg2,arg3); | |
23217 | wxPyEndAllowThreads(__tstate); | |
23218 | if (PyErr_Occurred()) SWIG_fail; | |
23219 | } | |
23220 | resultobj = SWIG_Py_Void(); | |
23221 | if (SWIG_IsTmpObj(res2)) { | |
23222 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23223 | } else { | |
23224 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23225 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23226 | } | |
23227 | if (SWIG_IsTmpObj(res3)) { | |
23228 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23229 | } else { | |
23230 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23231 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23232 | } | |
23233 | return resultobj; | |
23234 | fail: | |
23235 | return NULL; | |
23236 | } | |
23237 | ||
23238 | ||
23239 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23240 | PyObject *resultobj = 0; | |
23241 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23242 | int *arg2 = (int *) 0 ; | |
23243 | int *arg3 = (int *) 0 ; | |
23244 | void *argp1 = 0 ; | |
23245 | int res1 = 0 ; | |
23246 | int temp2 ; | |
23247 | int res2 = SWIG_TMPOBJ ; | |
23248 | int temp3 ; | |
23249 | int res3 = SWIG_TMPOBJ ; | |
23250 | PyObject *swig_obj[1] ; | |
23251 | ||
23252 | arg2 = &temp2; | |
23253 | arg3 = &temp3; | |
23254 | if (!args) SWIG_fail; | |
23255 | swig_obj[0] = args; | |
23256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23257 | if (!SWIG_IsOK(res1)) { | |
23258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23259 | } | |
23260 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23261 | { | |
23262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23263 | ((wxPyScrolledWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
23267 | resultobj = SWIG_Py_Void(); | |
23268 | if (SWIG_IsTmpObj(res2)) { | |
23269 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23270 | } else { | |
23271 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23272 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23273 | } | |
23274 | if (SWIG_IsTmpObj(res3)) { | |
23275 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23276 | } else { | |
23277 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23278 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23279 | } | |
23280 | return resultobj; | |
23281 | fail: | |
23282 | return NULL; | |
23283 | } | |
23284 | ||
23285 | ||
23286 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23287 | PyObject *resultobj = 0; | |
23288 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23289 | int *arg2 = (int *) 0 ; | |
23290 | int *arg3 = (int *) 0 ; | |
23291 | void *argp1 = 0 ; | |
23292 | int res1 = 0 ; | |
23293 | int temp2 ; | |
23294 | int res2 = SWIG_TMPOBJ ; | |
23295 | int temp3 ; | |
23296 | int res3 = SWIG_TMPOBJ ; | |
23297 | PyObject *swig_obj[1] ; | |
23298 | ||
23299 | arg2 = &temp2; | |
23300 | arg3 = &temp3; | |
23301 | if (!args) SWIG_fail; | |
23302 | swig_obj[0] = args; | |
23303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23304 | if (!SWIG_IsOK(res1)) { | |
23305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23306 | } | |
23307 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23308 | { | |
23309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23310 | ((wxPyScrolledWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
23311 | wxPyEndAllowThreads(__tstate); | |
23312 | if (PyErr_Occurred()) SWIG_fail; | |
23313 | } | |
23314 | resultobj = SWIG_Py_Void(); | |
23315 | if (SWIG_IsTmpObj(res2)) { | |
23316 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23317 | } else { | |
23318 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23319 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23320 | } | |
23321 | if (SWIG_IsTmpObj(res3)) { | |
23322 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23323 | } else { | |
23324 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23325 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23326 | } | |
23327 | return resultobj; | |
23328 | fail: | |
23329 | return NULL; | |
d55e5bfc RD |
23330 | } |
23331 | ||
23332 | ||
1bd55598 RD |
23333 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23334 | PyObject *resultobj = 0; | |
23335 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23336 | wxSize result; | |
23337 | void *argp1 = 0 ; | |
23338 | int res1 = 0 ; | |
23339 | PyObject *swig_obj[1] ; | |
23340 | ||
23341 | if (!args) SWIG_fail; | |
23342 | swig_obj[0] = args; | |
23343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23344 | if (!SWIG_IsOK(res1)) { | |
23345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23346 | } | |
23347 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23348 | { | |
23349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23350 | result = ((wxPyScrolledWindow const *)arg1)->DoGetVirtualSize(); | |
23351 | wxPyEndAllowThreads(__tstate); | |
23352 | if (PyErr_Occurred()) SWIG_fail; | |
23353 | } | |
23354 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23355 | return resultobj; | |
23356 | fail: | |
23357 | return NULL; | |
d55e5bfc RD |
23358 | } |
23359 | ||
23360 | ||
1bd55598 RD |
23361 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23362 | PyObject *resultobj = 0; | |
23363 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23364 | wxSize result; | |
23365 | void *argp1 = 0 ; | |
23366 | int res1 = 0 ; | |
23367 | PyObject *swig_obj[1] ; | |
23368 | ||
23369 | if (!args) SWIG_fail; | |
23370 | swig_obj[0] = args; | |
23371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23372 | if (!SWIG_IsOK(res1)) { | |
23373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23374 | } | |
23375 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23376 | { | |
23377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23378 | result = ((wxPyScrolledWindow const *)arg1)->DoGetBestSize(); | |
23379 | wxPyEndAllowThreads(__tstate); | |
23380 | if (PyErr_Occurred()) SWIG_fail; | |
23381 | } | |
23382 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23383 | return resultobj; | |
23384 | fail: | |
23385 | return NULL; | |
d55e5bfc RD |
23386 | } |
23387 | ||
23388 | ||
1bd55598 RD |
23389 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23390 | PyObject *resultobj = 0; | |
23391 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23392 | SwigValueWrapper<wxVisualAttributes > result; | |
23393 | void *argp1 = 0 ; | |
23394 | int res1 = 0 ; | |
23395 | PyObject *swig_obj[1] ; | |
23396 | ||
23397 | if (!args) SWIG_fail; | |
23398 | swig_obj[0] = args; | |
23399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23400 | if (!SWIG_IsOK(res1)) { | |
23401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23402 | } | |
23403 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23404 | { | |
23405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23406 | result = (arg1)->GetDefaultAttributes(); | |
23407 | wxPyEndAllowThreads(__tstate); | |
23408 | if (PyErr_Occurred()) SWIG_fail; | |
23409 | } | |
23410 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
23411 | return resultobj; | |
23412 | fail: | |
23413 | return NULL; | |
d55e5bfc RD |
23414 | } |
23415 | ||
23416 | ||
1bd55598 RD |
23417 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23418 | PyObject *resultobj = 0; | |
23419 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23420 | void *argp1 = 0 ; | |
23421 | int res1 = 0 ; | |
23422 | PyObject *swig_obj[1] ; | |
23423 | ||
23424 | if (!args) SWIG_fail; | |
23425 | swig_obj[0] = args; | |
23426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23427 | if (!SWIG_IsOK(res1)) { | |
23428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23429 | } | |
23430 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23431 | { | |
23432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23433 | (arg1)->OnInternalIdle(); | |
23434 | wxPyEndAllowThreads(__tstate); | |
23435 | if (PyErr_Occurred()) SWIG_fail; | |
23436 | } | |
23437 | resultobj = SWIG_Py_Void(); | |
23438 | return resultobj; | |
23439 | fail: | |
23440 | return NULL; | |
d55e5bfc RD |
23441 | } |
23442 | ||
23443 | ||
1bd55598 RD |
23444 | SWIGINTERN PyObject *PyScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23445 | PyObject *obj; | |
23446 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23447 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyScrolledWindow, SWIG_NewClientData(obj)); | |
23448 | return SWIG_Py_Void(); | |
d55e5bfc RD |
23449 | } |
23450 | ||
1bd55598 RD |
23451 | SWIGINTERN PyObject *PyScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23452 | return SWIG_Python_InitShadowInstance(args); | |
23453 | } | |
d55e5bfc | 23454 | |
1bd55598 RD |
23455 | SWIGINTERN int PrintoutTitleStr_set(PyObject *) { |
23456 | SWIG_Error(SWIG_AttributeError,"Variable PrintoutTitleStr is read-only."); | |
23457 | return 1; | |
d55e5bfc RD |
23458 | } |
23459 | ||
23460 | ||
1bd55598 RD |
23461 | SWIGINTERN PyObject *PrintoutTitleStr_get(void) { |
23462 | PyObject *pyobj = 0; | |
23463 | ||
23464 | { | |
d55e5bfc | 23465 | #if wxUSE_UNICODE |
1bd55598 | 23466 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); |
d55e5bfc | 23467 | #else |
1bd55598 | 23468 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); |
d55e5bfc | 23469 | #endif |
1bd55598 RD |
23470 | } |
23471 | return pyobj; | |
d55e5bfc RD |
23472 | } |
23473 | ||
23474 | ||
1bd55598 RD |
23475 | SWIGINTERN int PreviewCanvasNameStr_set(PyObject *) { |
23476 | SWIG_Error(SWIG_AttributeError,"Variable PreviewCanvasNameStr is read-only."); | |
23477 | return 1; | |
23478 | } | |
23479 | ||
23480 | ||
23481 | SWIGINTERN PyObject *PreviewCanvasNameStr_get(void) { | |
23482 | PyObject *pyobj = 0; | |
23483 | ||
23484 | { | |
d55e5bfc | 23485 | #if wxUSE_UNICODE |
1bd55598 | 23486 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); |
d55e5bfc | 23487 | #else |
1bd55598 | 23488 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); |
d55e5bfc | 23489 | #endif |
1bd55598 RD |
23490 | } |
23491 | return pyobj; | |
d55e5bfc RD |
23492 | } |
23493 | ||
23494 | ||
1bd55598 RD |
23495 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
23496 | PyObject *resultobj = 0; | |
23497 | wxPrintData *result = 0 ; | |
23498 | ||
23499 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
23500 | { | |
23501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23502 | result = (wxPrintData *)new wxPrintData(); | |
23503 | wxPyEndAllowThreads(__tstate); | |
23504 | if (PyErr_Occurred()) SWIG_fail; | |
23505 | } | |
23506 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23507 | return resultobj; | |
23508 | fail: | |
23509 | return NULL; | |
d55e5bfc RD |
23510 | } |
23511 | ||
23512 | ||
1bd55598 RD |
23513 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
23514 | PyObject *resultobj = 0; | |
23515 | wxPrintData *arg1 = 0 ; | |
23516 | wxPrintData *result = 0 ; | |
23517 | void *argp1 = 0 ; | |
23518 | int res1 = 0 ; | |
23519 | ||
23520 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
23521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23522 | if (!SWIG_IsOK(res1)) { | |
23523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23524 | } | |
23525 | if (!argp1) { | |
23526 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23527 | } | |
23528 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23529 | { | |
23530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23531 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
23532 | wxPyEndAllowThreads(__tstate); | |
23533 | if (PyErr_Occurred()) SWIG_fail; | |
23534 | } | |
23535 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23536 | return resultobj; | |
23537 | fail: | |
23538 | return NULL; | |
d55e5bfc RD |
23539 | } |
23540 | ||
23541 | ||
1bd55598 RD |
23542 | SWIGINTERN PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { |
23543 | int argc; | |
23544 | PyObject *argv[2]; | |
23545 | ||
23546 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintData",0,1,argv))) SWIG_fail; | |
23547 | --argc; | |
23548 | if (argc == 0) { | |
23549 | return _wrap_new_PrintData__SWIG_0(self, argc, argv); | |
23550 | } | |
23551 | if (argc == 1) { | |
23552 | return _wrap_new_PrintData__SWIG_1(self, argc, argv); | |
23553 | } | |
23554 | ||
23555 | fail: | |
23556 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintData'"); | |
23557 | return NULL; | |
d55e5bfc RD |
23558 | } |
23559 | ||
23560 | ||
1bd55598 RD |
23561 | SWIGINTERN PyObject *_wrap_delete_PrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23562 | PyObject *resultobj = 0; | |
23563 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23564 | void *argp1 = 0 ; | |
23565 | int res1 = 0 ; | |
23566 | PyObject *swig_obj[1] ; | |
23567 | ||
23568 | if (!args) SWIG_fail; | |
23569 | swig_obj[0] = args; | |
23570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, SWIG_POINTER_DISOWN | 0 ); | |
23571 | if (!SWIG_IsOK(res1)) { | |
23572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23573 | } | |
23574 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23575 | { | |
23576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23577 | delete arg1; | |
d55e5bfc | 23578 | |
1bd55598 RD |
23579 | wxPyEndAllowThreads(__tstate); |
23580 | if (PyErr_Occurred()) SWIG_fail; | |
23581 | } | |
23582 | resultobj = SWIG_Py_Void(); | |
23583 | return resultobj; | |
23584 | fail: | |
23585 | return NULL; | |
d55e5bfc RD |
23586 | } |
23587 | ||
23588 | ||
1bd55598 RD |
23589 | SWIGINTERN PyObject *_wrap_PrintData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23590 | PyObject *resultobj = 0; | |
23591 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23592 | int result; | |
23593 | void *argp1 = 0 ; | |
23594 | int res1 = 0 ; | |
23595 | PyObject *swig_obj[1] ; | |
23596 | ||
23597 | if (!args) SWIG_fail; | |
23598 | swig_obj[0] = args; | |
23599 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23600 | if (!SWIG_IsOK(res1)) { | |
23601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23602 | } | |
23603 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23604 | { | |
23605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23606 | result = (int)(arg1)->GetNoCopies(); | |
23607 | wxPyEndAllowThreads(__tstate); | |
23608 | if (PyErr_Occurred()) SWIG_fail; | |
23609 | } | |
23610 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23611 | return resultobj; | |
23612 | fail: | |
23613 | return NULL; | |
d55e5bfc RD |
23614 | } |
23615 | ||
23616 | ||
1bd55598 RD |
23617 | SWIGINTERN PyObject *_wrap_PrintData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23618 | PyObject *resultobj = 0; | |
23619 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23620 | bool result; | |
23621 | void *argp1 = 0 ; | |
23622 | int res1 = 0 ; | |
23623 | PyObject *swig_obj[1] ; | |
23624 | ||
23625 | if (!args) SWIG_fail; | |
23626 | swig_obj[0] = args; | |
23627 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23628 | if (!SWIG_IsOK(res1)) { | |
23629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23630 | } | |
23631 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23632 | { | |
23633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23634 | result = (bool)(arg1)->GetCollate(); | |
23635 | wxPyEndAllowThreads(__tstate); | |
23636 | if (PyErr_Occurred()) SWIG_fail; | |
23637 | } | |
23638 | { | |
23639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23640 | } | |
23641 | return resultobj; | |
23642 | fail: | |
23643 | return NULL; | |
d55e5bfc RD |
23644 | } |
23645 | ||
23646 | ||
1bd55598 RD |
23647 | SWIGINTERN PyObject *_wrap_PrintData_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23648 | PyObject *resultobj = 0; | |
23649 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23650 | int result; | |
23651 | void *argp1 = 0 ; | |
23652 | int res1 = 0 ; | |
23653 | PyObject *swig_obj[1] ; | |
23654 | ||
23655 | if (!args) SWIG_fail; | |
23656 | swig_obj[0] = args; | |
23657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23658 | if (!SWIG_IsOK(res1)) { | |
23659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23660 | } | |
23661 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23662 | { | |
23663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23664 | result = (int)(arg1)->GetOrientation(); | |
23665 | wxPyEndAllowThreads(__tstate); | |
23666 | if (PyErr_Occurred()) SWIG_fail; | |
23667 | } | |
23668 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23669 | return resultobj; | |
23670 | fail: | |
23671 | return NULL; | |
d55e5bfc RD |
23672 | } |
23673 | ||
23674 | ||
b39fe951 | 23675 | SWIGINTERN PyObject *_wrap_PrintData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
1bd55598 RD |
23676 | PyObject *resultobj = 0; |
23677 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23678 | bool result; | |
23679 | void *argp1 = 0 ; | |
23680 | int res1 = 0 ; | |
23681 | PyObject *swig_obj[1] ; | |
23682 | ||
23683 | if (!args) SWIG_fail; | |
23684 | swig_obj[0] = args; | |
23685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23686 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 23687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_IsOk" "', expected argument " "1"" of type '" "wxPrintData *""'"); |
1bd55598 RD |
23688 | } |
23689 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23690 | { | |
23691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 23692 | result = (bool)(arg1)->IsOk(); |
1bd55598 RD |
23693 | wxPyEndAllowThreads(__tstate); |
23694 | if (PyErr_Occurred()) SWIG_fail; | |
23695 | } | |
23696 | { | |
23697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23698 | } | |
23699 | return resultobj; | |
23700 | fail: | |
23701 | return NULL; | |
d55e5bfc RD |
23702 | } |
23703 | ||
23704 | ||
1bd55598 RD |
23705 | SWIGINTERN PyObject *_wrap_PrintData_GetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23706 | PyObject *resultobj = 0; | |
23707 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23708 | wxString *result = 0 ; | |
23709 | void *argp1 = 0 ; | |
23710 | int res1 = 0 ; | |
23711 | PyObject *swig_obj[1] ; | |
23712 | ||
23713 | if (!args) SWIG_fail; | |
23714 | swig_obj[0] = args; | |
23715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23716 | if (!SWIG_IsOK(res1)) { | |
23717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23718 | } | |
23719 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23720 | { | |
23721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 23722 | { |
1bd55598 RD |
23723 | wxString const &_result_ref = (arg1)->GetPrinterName(); |
23724 | result = (wxString *) &_result_ref; | |
d55e5bfc | 23725 | } |
1bd55598 RD |
23726 | wxPyEndAllowThreads(__tstate); |
23727 | if (PyErr_Occurred()) SWIG_fail; | |
23728 | } | |
23729 | { | |
d55e5bfc | 23730 | #if wxUSE_UNICODE |
1bd55598 | 23731 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d55e5bfc | 23732 | #else |
1bd55598 | 23733 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d55e5bfc | 23734 | #endif |
1bd55598 RD |
23735 | } |
23736 | return resultobj; | |
23737 | fail: | |
23738 | return NULL; | |
d55e5bfc RD |
23739 | } |
23740 | ||
23741 | ||
1bd55598 RD |
23742 | SWIGINTERN PyObject *_wrap_PrintData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23743 | PyObject *resultobj = 0; | |
23744 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23745 | bool result; | |
23746 | void *argp1 = 0 ; | |
23747 | int res1 = 0 ; | |
23748 | PyObject *swig_obj[1] ; | |
23749 | ||
23750 | if (!args) SWIG_fail; | |
23751 | swig_obj[0] = args; | |
23752 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23753 | if (!SWIG_IsOK(res1)) { | |
23754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23755 | } | |
23756 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23757 | { | |
23758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23759 | result = (bool)(arg1)->GetColour(); | |
23760 | wxPyEndAllowThreads(__tstate); | |
23761 | if (PyErr_Occurred()) SWIG_fail; | |
23762 | } | |
23763 | { | |
23764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23765 | } | |
23766 | return resultobj; | |
23767 | fail: | |
23768 | return NULL; | |
d55e5bfc RD |
23769 | } |
23770 | ||
23771 | ||
1bd55598 RD |
23772 | SWIGINTERN PyObject *_wrap_PrintData_GetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23773 | PyObject *resultobj = 0; | |
23774 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23775 | wxDuplexMode result; | |
23776 | void *argp1 = 0 ; | |
23777 | int res1 = 0 ; | |
23778 | PyObject *swig_obj[1] ; | |
23779 | ||
23780 | if (!args) SWIG_fail; | |
23781 | swig_obj[0] = args; | |
23782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23783 | if (!SWIG_IsOK(res1)) { | |
23784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23785 | } | |
23786 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23787 | { | |
23788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23789 | result = (wxDuplexMode)(arg1)->GetDuplex(); | |
23790 | wxPyEndAllowThreads(__tstate); | |
23791 | if (PyErr_Occurred()) SWIG_fail; | |
23792 | } | |
23793 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23794 | return resultobj; | |
23795 | fail: | |
23796 | return NULL; | |
d55e5bfc RD |
23797 | } |
23798 | ||
23799 | ||
1bd55598 RD |
23800 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23801 | PyObject *resultobj = 0; | |
23802 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23803 | wxPaperSize result; | |
23804 | void *argp1 = 0 ; | |
23805 | int res1 = 0 ; | |
23806 | PyObject *swig_obj[1] ; | |
23807 | ||
23808 | if (!args) SWIG_fail; | |
23809 | swig_obj[0] = args; | |
23810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23811 | if (!SWIG_IsOK(res1)) { | |
23812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23813 | } | |
23814 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23815 | { | |
23816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23817 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
23818 | wxPyEndAllowThreads(__tstate); | |
23819 | if (PyErr_Occurred()) SWIG_fail; | |
23820 | } | |
23821 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23822 | return resultobj; | |
23823 | fail: | |
23824 | return NULL; | |
070c48b4 RD |
23825 | } |
23826 | ||
23827 | ||
1bd55598 RD |
23828 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23829 | PyObject *resultobj = 0; | |
23830 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23831 | wxSize *result = 0 ; | |
23832 | void *argp1 = 0 ; | |
23833 | int res1 = 0 ; | |
23834 | PyObject *swig_obj[1] ; | |
23835 | ||
23836 | if (!args) SWIG_fail; | |
23837 | swig_obj[0] = args; | |
23838 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23839 | if (!SWIG_IsOK(res1)) { | |
23840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23841 | } | |
23842 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23843 | { | |
23844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 23845 | { |
1bd55598 RD |
23846 | wxSize const &_result_ref = (arg1)->GetPaperSize(); |
23847 | result = (wxSize *) &_result_ref; | |
070c48b4 | 23848 | } |
1bd55598 RD |
23849 | wxPyEndAllowThreads(__tstate); |
23850 | if (PyErr_Occurred()) SWIG_fail; | |
23851 | } | |
23852 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 ); | |
23853 | return resultobj; | |
23854 | fail: | |
23855 | return NULL; | |
d55e5bfc RD |
23856 | } |
23857 | ||
23858 | ||
1bd55598 RD |
23859 | SWIGINTERN PyObject *_wrap_PrintData_GetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23860 | PyObject *resultobj = 0; | |
23861 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23862 | int result; | |
23863 | void *argp1 = 0 ; | |
23864 | int res1 = 0 ; | |
23865 | PyObject *swig_obj[1] ; | |
23866 | ||
23867 | if (!args) SWIG_fail; | |
23868 | swig_obj[0] = args; | |
23869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23870 | if (!SWIG_IsOK(res1)) { | |
23871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23872 | } | |
23873 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23874 | { | |
23875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23876 | result = (int)(arg1)->GetQuality(); | |
23877 | wxPyEndAllowThreads(__tstate); | |
23878 | if (PyErr_Occurred()) SWIG_fail; | |
23879 | } | |
23880 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23881 | return resultobj; | |
23882 | fail: | |
23883 | return NULL; | |
d55e5bfc RD |
23884 | } |
23885 | ||
23886 | ||
1bd55598 RD |
23887 | SWIGINTERN PyObject *_wrap_PrintData_GetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23888 | PyObject *resultobj = 0; | |
23889 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23890 | wxPrintBin result; | |
23891 | void *argp1 = 0 ; | |
23892 | int res1 = 0 ; | |
23893 | PyObject *swig_obj[1] ; | |
23894 | ||
23895 | if (!args) SWIG_fail; | |
23896 | swig_obj[0] = args; | |
23897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23898 | if (!SWIG_IsOK(res1)) { | |
23899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23900 | } | |
23901 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23902 | { | |
23903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23904 | result = (wxPrintBin)(arg1)->GetBin(); | |
23905 | wxPyEndAllowThreads(__tstate); | |
23906 | if (PyErr_Occurred()) SWIG_fail; | |
23907 | } | |
23908 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23909 | return resultobj; | |
23910 | fail: | |
23911 | return NULL; | |
d55e5bfc RD |
23912 | } |
23913 | ||
23914 | ||
1bd55598 RD |
23915 | SWIGINTERN PyObject *_wrap_PrintData_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23916 | PyObject *resultobj = 0; | |
23917 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23918 | wxPrintMode result; | |
23919 | void *argp1 = 0 ; | |
23920 | int res1 = 0 ; | |
23921 | PyObject *swig_obj[1] ; | |
23922 | ||
23923 | if (!args) SWIG_fail; | |
23924 | swig_obj[0] = args; | |
23925 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23926 | if (!SWIG_IsOK(res1)) { | |
23927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrintMode" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
23928 | } | |
23929 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23930 | { | |
23931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23932 | result = (wxPrintMode)((wxPrintData const *)arg1)->GetPrintMode(); | |
23933 | wxPyEndAllowThreads(__tstate); | |
23934 | if (PyErr_Occurred()) SWIG_fail; | |
23935 | } | |
23936 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23937 | return resultobj; | |
23938 | fail: | |
23939 | return NULL; | |
23940 | } | |
23941 | ||
23942 | ||
23943 | SWIGINTERN PyObject *_wrap_PrintData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23944 | PyObject *resultobj = 0; | |
23945 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23946 | int arg2 ; | |
23947 | void *argp1 = 0 ; | |
23948 | int res1 = 0 ; | |
23949 | int val2 ; | |
23950 | int ecode2 = 0 ; | |
23951 | PyObject * obj0 = 0 ; | |
23952 | PyObject * obj1 = 0 ; | |
23953 | char * kwnames[] = { | |
23954 | (char *) "self",(char *) "v", NULL | |
23955 | }; | |
23956 | ||
23957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
23958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23959 | if (!SWIG_IsOK(res1)) { | |
23960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23961 | } | |
23962 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23963 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23964 | if (!SWIG_IsOK(ecode2)) { | |
23965 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
23966 | } | |
23967 | arg2 = static_cast< int >(val2); | |
23968 | { | |
23969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23970 | (arg1)->SetNoCopies(arg2); | |
23971 | wxPyEndAllowThreads(__tstate); | |
23972 | if (PyErr_Occurred()) SWIG_fail; | |
23973 | } | |
23974 | resultobj = SWIG_Py_Void(); | |
23975 | return resultobj; | |
23976 | fail: | |
23977 | return NULL; | |
23978 | } | |
23979 | ||
23980 | ||
23981 | SWIGINTERN PyObject *_wrap_PrintData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23982 | PyObject *resultobj = 0; | |
23983 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23984 | bool arg2 ; | |
23985 | void *argp1 = 0 ; | |
23986 | int res1 = 0 ; | |
23987 | bool val2 ; | |
23988 | int ecode2 = 0 ; | |
23989 | PyObject * obj0 = 0 ; | |
23990 | PyObject * obj1 = 0 ; | |
23991 | char * kwnames[] = { | |
23992 | (char *) "self",(char *) "flag", NULL | |
23993 | }; | |
23994 | ||
23995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
23996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23997 | if (!SWIG_IsOK(res1)) { | |
23998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23999 | } | |
24000 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24001 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24002 | if (!SWIG_IsOK(ecode2)) { | |
24003 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
24004 | } | |
24005 | arg2 = static_cast< bool >(val2); | |
24006 | { | |
24007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24008 | (arg1)->SetCollate(arg2); | |
24009 | wxPyEndAllowThreads(__tstate); | |
24010 | if (PyErr_Occurred()) SWIG_fail; | |
24011 | } | |
24012 | resultobj = SWIG_Py_Void(); | |
24013 | return resultobj; | |
24014 | fail: | |
24015 | return NULL; | |
24016 | } | |
24017 | ||
24018 | ||
24019 | SWIGINTERN PyObject *_wrap_PrintData_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24020 | PyObject *resultobj = 0; | |
24021 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24022 | int arg2 ; | |
24023 | void *argp1 = 0 ; | |
24024 | int res1 = 0 ; | |
24025 | int val2 ; | |
24026 | int ecode2 = 0 ; | |
24027 | PyObject * obj0 = 0 ; | |
24028 | PyObject * obj1 = 0 ; | |
24029 | char * kwnames[] = { | |
24030 | (char *) "self",(char *) "orient", NULL | |
24031 | }; | |
24032 | ||
24033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24035 | if (!SWIG_IsOK(res1)) { | |
24036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24037 | } | |
24038 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24039 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24040 | if (!SWIG_IsOK(ecode2)) { | |
24041 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientation" "', expected argument " "2"" of type '" "int""'"); | |
24042 | } | |
24043 | arg2 = static_cast< int >(val2); | |
24044 | { | |
24045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24046 | (arg1)->SetOrientation(arg2); | |
24047 | wxPyEndAllowThreads(__tstate); | |
24048 | if (PyErr_Occurred()) SWIG_fail; | |
24049 | } | |
24050 | resultobj = SWIG_Py_Void(); | |
24051 | return resultobj; | |
24052 | fail: | |
24053 | return NULL; | |
24054 | } | |
24055 | ||
24056 | ||
24057 | SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24058 | PyObject *resultobj = 0; | |
24059 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24060 | wxString *arg2 = 0 ; | |
24061 | void *argp1 = 0 ; | |
24062 | int res1 = 0 ; | |
24063 | bool temp2 = false ; | |
24064 | PyObject * obj0 = 0 ; | |
24065 | PyObject * obj1 = 0 ; | |
24066 | char * kwnames[] = { | |
24067 | (char *) "self",(char *) "name", NULL | |
24068 | }; | |
24069 | ||
24070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) SWIG_fail; | |
24071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24072 | if (!SWIG_IsOK(res1)) { | |
24073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24074 | } | |
24075 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24076 | { | |
24077 | arg2 = wxString_in_helper(obj1); | |
24078 | if (arg2 == NULL) SWIG_fail; | |
24079 | temp2 = true; | |
24080 | } | |
24081 | { | |
24082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24083 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
24084 | wxPyEndAllowThreads(__tstate); | |
24085 | if (PyErr_Occurred()) SWIG_fail; | |
24086 | } | |
24087 | resultobj = SWIG_Py_Void(); | |
24088 | { | |
24089 | if (temp2) | |
24090 | delete arg2; | |
24091 | } | |
24092 | return resultobj; | |
24093 | fail: | |
24094 | { | |
24095 | if (temp2) | |
24096 | delete arg2; | |
24097 | } | |
24098 | return NULL; | |
24099 | } | |
24100 | ||
24101 | ||
24102 | SWIGINTERN PyObject *_wrap_PrintData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24103 | PyObject *resultobj = 0; | |
24104 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24105 | bool arg2 ; | |
24106 | void *argp1 = 0 ; | |
24107 | int res1 = 0 ; | |
24108 | bool val2 ; | |
24109 | int ecode2 = 0 ; | |
24110 | PyObject * obj0 = 0 ; | |
24111 | PyObject * obj1 = 0 ; | |
24112 | char * kwnames[] = { | |
24113 | (char *) "self",(char *) "colour", NULL | |
24114 | }; | |
24115 | ||
24116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24118 | if (!SWIG_IsOK(res1)) { | |
24119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24120 | } | |
24121 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24122 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24123 | if (!SWIG_IsOK(ecode2)) { | |
24124 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetColour" "', expected argument " "2"" of type '" "bool""'"); | |
24125 | } | |
24126 | arg2 = static_cast< bool >(val2); | |
24127 | { | |
24128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24129 | (arg1)->SetColour(arg2); | |
24130 | wxPyEndAllowThreads(__tstate); | |
24131 | if (PyErr_Occurred()) SWIG_fail; | |
24132 | } | |
24133 | resultobj = SWIG_Py_Void(); | |
24134 | return resultobj; | |
24135 | fail: | |
24136 | return NULL; | |
24137 | } | |
24138 | ||
24139 | ||
24140 | SWIGINTERN PyObject *_wrap_PrintData_SetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24141 | PyObject *resultobj = 0; | |
24142 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24143 | wxDuplexMode arg2 ; | |
24144 | void *argp1 = 0 ; | |
24145 | int res1 = 0 ; | |
24146 | int val2 ; | |
24147 | int ecode2 = 0 ; | |
24148 | PyObject * obj0 = 0 ; | |
24149 | PyObject * obj1 = 0 ; | |
24150 | char * kwnames[] = { | |
24151 | (char *) "self",(char *) "duplex", NULL | |
24152 | }; | |
24153 | ||
24154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) SWIG_fail; | |
24155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24156 | if (!SWIG_IsOK(res1)) { | |
24157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24158 | } | |
24159 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24160 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24161 | if (!SWIG_IsOK(ecode2)) { | |
24162 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetDuplex" "', expected argument " "2"" of type '" "wxDuplexMode""'"); | |
24163 | } | |
24164 | arg2 = static_cast< wxDuplexMode >(val2); | |
24165 | { | |
24166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24167 | (arg1)->SetDuplex(arg2); | |
24168 | wxPyEndAllowThreads(__tstate); | |
24169 | if (PyErr_Occurred()) SWIG_fail; | |
24170 | } | |
24171 | resultobj = SWIG_Py_Void(); | |
24172 | return resultobj; | |
24173 | fail: | |
24174 | return NULL; | |
24175 | } | |
24176 | ||
24177 | ||
24178 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24179 | PyObject *resultobj = 0; | |
24180 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24181 | wxPaperSize arg2 ; | |
24182 | void *argp1 = 0 ; | |
24183 | int res1 = 0 ; | |
24184 | int val2 ; | |
24185 | int ecode2 = 0 ; | |
24186 | PyObject * obj0 = 0 ; | |
24187 | PyObject * obj1 = 0 ; | |
24188 | char * kwnames[] = { | |
24189 | (char *) "self",(char *) "sizeId", NULL | |
24190 | }; | |
24191 | ||
24192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
24193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24194 | if (!SWIG_IsOK(res1)) { | |
24195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24196 | } | |
24197 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24198 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24199 | if (!SWIG_IsOK(ecode2)) { | |
24200 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
24201 | } | |
24202 | arg2 = static_cast< wxPaperSize >(val2); | |
24203 | { | |
24204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24205 | (arg1)->SetPaperId(arg2); | |
24206 | wxPyEndAllowThreads(__tstate); | |
24207 | if (PyErr_Occurred()) SWIG_fail; | |
24208 | } | |
24209 | resultobj = SWIG_Py_Void(); | |
24210 | return resultobj; | |
24211 | fail: | |
24212 | return NULL; | |
24213 | } | |
24214 | ||
24215 | ||
24216 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24217 | PyObject *resultobj = 0; | |
24218 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24219 | wxSize *arg2 = 0 ; | |
24220 | void *argp1 = 0 ; | |
24221 | int res1 = 0 ; | |
24222 | wxSize temp2 ; | |
24223 | PyObject * obj0 = 0 ; | |
24224 | PyObject * obj1 = 0 ; | |
24225 | char * kwnames[] = { | |
24226 | (char *) "self",(char *) "sz", NULL | |
24227 | }; | |
24228 | ||
24229 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
24230 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24231 | if (!SWIG_IsOK(res1)) { | |
24232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24233 | } | |
24234 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24235 | { | |
24236 | arg2 = &temp2; | |
24237 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24238 | } | |
24239 | { | |
24240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24241 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
24242 | wxPyEndAllowThreads(__tstate); | |
24243 | if (PyErr_Occurred()) SWIG_fail; | |
24244 | } | |
24245 | resultobj = SWIG_Py_Void(); | |
24246 | return resultobj; | |
24247 | fail: | |
24248 | return NULL; | |
24249 | } | |
24250 | ||
24251 | ||
24252 | SWIGINTERN PyObject *_wrap_PrintData_SetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24253 | PyObject *resultobj = 0; | |
24254 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24255 | int arg2 ; | |
24256 | void *argp1 = 0 ; | |
24257 | int res1 = 0 ; | |
24258 | int val2 ; | |
24259 | int ecode2 = 0 ; | |
24260 | PyObject * obj0 = 0 ; | |
24261 | PyObject * obj1 = 0 ; | |
24262 | char * kwnames[] = { | |
24263 | (char *) "self",(char *) "quality", NULL | |
24264 | }; | |
24265 | ||
24266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) SWIG_fail; | |
24267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24268 | if (!SWIG_IsOK(res1)) { | |
24269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24270 | } | |
24271 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24272 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24273 | if (!SWIG_IsOK(ecode2)) { | |
24274 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetQuality" "', expected argument " "2"" of type '" "int""'"); | |
24275 | } | |
24276 | arg2 = static_cast< int >(val2); | |
24277 | { | |
24278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24279 | (arg1)->SetQuality(arg2); | |
24280 | wxPyEndAllowThreads(__tstate); | |
24281 | if (PyErr_Occurred()) SWIG_fail; | |
24282 | } | |
24283 | resultobj = SWIG_Py_Void(); | |
24284 | return resultobj; | |
24285 | fail: | |
24286 | return NULL; | |
24287 | } | |
24288 | ||
24289 | ||
24290 | SWIGINTERN PyObject *_wrap_PrintData_SetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24291 | PyObject *resultobj = 0; | |
24292 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24293 | wxPrintBin arg2 ; | |
24294 | void *argp1 = 0 ; | |
24295 | int res1 = 0 ; | |
24296 | int val2 ; | |
24297 | int ecode2 = 0 ; | |
24298 | PyObject * obj0 = 0 ; | |
24299 | PyObject * obj1 = 0 ; | |
24300 | char * kwnames[] = { | |
24301 | (char *) "self",(char *) "bin", NULL | |
24302 | }; | |
24303 | ||
24304 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetBin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24305 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24306 | if (!SWIG_IsOK(res1)) { | |
24307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24308 | } | |
24309 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24310 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24311 | if (!SWIG_IsOK(ecode2)) { | |
24312 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetBin" "', expected argument " "2"" of type '" "wxPrintBin""'"); | |
24313 | } | |
24314 | arg2 = static_cast< wxPrintBin >(val2); | |
24315 | { | |
24316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24317 | (arg1)->SetBin(arg2); | |
24318 | wxPyEndAllowThreads(__tstate); | |
24319 | if (PyErr_Occurred()) SWIG_fail; | |
24320 | } | |
24321 | resultobj = SWIG_Py_Void(); | |
24322 | return resultobj; | |
24323 | fail: | |
24324 | return NULL; | |
24325 | } | |
24326 | ||
24327 | ||
24328 | SWIGINTERN PyObject *_wrap_PrintData_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24329 | PyObject *resultobj = 0; | |
24330 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24331 | wxPrintMode arg2 ; | |
24332 | void *argp1 = 0 ; | |
24333 | int res1 = 0 ; | |
24334 | int val2 ; | |
24335 | int ecode2 = 0 ; | |
24336 | PyObject * obj0 = 0 ; | |
24337 | PyObject * obj1 = 0 ; | |
24338 | char * kwnames[] = { | |
24339 | (char *) "self",(char *) "printMode", NULL | |
24340 | }; | |
24341 | ||
24342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
24343 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24344 | if (!SWIG_IsOK(res1)) { | |
24345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrintMode" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24346 | } | |
24347 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24348 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24349 | if (!SWIG_IsOK(ecode2)) { | |
24350 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPrintMode" "', expected argument " "2"" of type '" "wxPrintMode""'"); | |
24351 | } | |
24352 | arg2 = static_cast< wxPrintMode >(val2); | |
24353 | { | |
24354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24355 | (arg1)->SetPrintMode(arg2); | |
24356 | wxPyEndAllowThreads(__tstate); | |
24357 | if (PyErr_Occurred()) SWIG_fail; | |
24358 | } | |
24359 | resultobj = SWIG_Py_Void(); | |
24360 | return resultobj; | |
24361 | fail: | |
24362 | return NULL; | |
24363 | } | |
d55e5bfc RD |
24364 | |
24365 | ||
1bd55598 RD |
24366 | SWIGINTERN PyObject *_wrap_PrintData_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24367 | PyObject *resultobj = 0; | |
24368 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24369 | wxString result; | |
24370 | void *argp1 = 0 ; | |
24371 | int res1 = 0 ; | |
24372 | PyObject *swig_obj[1] ; | |
24373 | ||
24374 | if (!args) SWIG_fail; | |
24375 | swig_obj[0] = args; | |
24376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24377 | if (!SWIG_IsOK(res1)) { | |
24378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetFilename" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24379 | } | |
24380 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24381 | { | |
24382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24383 | result = ((wxPrintData const *)arg1)->GetFilename(); | |
24384 | wxPyEndAllowThreads(__tstate); | |
24385 | if (PyErr_Occurred()) SWIG_fail; | |
24386 | } | |
24387 | { | |
24388 | #if wxUSE_UNICODE | |
24389 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24390 | #else | |
24391 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24392 | #endif | |
24393 | } | |
24394 | return resultobj; | |
24395 | fail: | |
24396 | return NULL; | |
24397 | } | |
24398 | ||
24399 | ||
24400 | SWIGINTERN PyObject *_wrap_PrintData_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24401 | PyObject *resultobj = 0; | |
24402 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24403 | wxString *arg2 = 0 ; | |
24404 | void *argp1 = 0 ; | |
24405 | int res1 = 0 ; | |
24406 | bool temp2 = false ; | |
24407 | PyObject * obj0 = 0 ; | |
24408 | PyObject * obj1 = 0 ; | |
24409 | char * kwnames[] = { | |
24410 | (char *) "self",(char *) "filename", NULL | |
24411 | }; | |
24412 | ||
24413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
24414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24415 | if (!SWIG_IsOK(res1)) { | |
24416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetFilename" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24417 | } | |
24418 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24419 | { | |
24420 | arg2 = wxString_in_helper(obj1); | |
24421 | if (arg2 == NULL) SWIG_fail; | |
24422 | temp2 = true; | |
24423 | } | |
24424 | { | |
24425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24426 | (arg1)->SetFilename((wxString const &)*arg2); | |
24427 | wxPyEndAllowThreads(__tstate); | |
24428 | if (PyErr_Occurred()) SWIG_fail; | |
24429 | } | |
24430 | resultobj = SWIG_Py_Void(); | |
24431 | { | |
24432 | if (temp2) | |
24433 | delete arg2; | |
24434 | } | |
24435 | return resultobj; | |
24436 | fail: | |
24437 | { | |
24438 | if (temp2) | |
24439 | delete arg2; | |
24440 | } | |
24441 | return NULL; | |
d55e5bfc RD |
24442 | } |
24443 | ||
24444 | ||
1bd55598 RD |
24445 | SWIGINTERN PyObject *_wrap_PrintData_GetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24446 | PyObject *resultobj = 0; | |
24447 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24448 | PyObject *result = 0 ; | |
24449 | void *argp1 = 0 ; | |
24450 | int res1 = 0 ; | |
24451 | PyObject *swig_obj[1] ; | |
24452 | ||
24453 | if (!args) SWIG_fail; | |
24454 | swig_obj[0] = args; | |
24455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24456 | if (!SWIG_IsOK(res1)) { | |
24457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24458 | } | |
24459 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24460 | { | |
24461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24462 | result = (PyObject *)wxPrintData_GetPrivData(arg1); | |
24463 | wxPyEndAllowThreads(__tstate); | |
24464 | if (PyErr_Occurred()) SWIG_fail; | |
24465 | } | |
24466 | resultobj = result; | |
24467 | return resultobj; | |
24468 | fail: | |
24469 | return NULL; | |
24470 | } | |
24471 | ||
24472 | ||
24473 | SWIGINTERN PyObject *_wrap_PrintData_SetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24474 | PyObject *resultobj = 0; | |
24475 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24476 | PyObject *arg2 = (PyObject *) 0 ; | |
24477 | void *argp1 = 0 ; | |
24478 | int res1 = 0 ; | |
24479 | PyObject * obj0 = 0 ; | |
24480 | PyObject * obj1 = 0 ; | |
24481 | char * kwnames[] = { | |
24482 | (char *) "self",(char *) "data", NULL | |
24483 | }; | |
24484 | ||
24485 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrivData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24486 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24487 | if (!SWIG_IsOK(res1)) { | |
24488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24489 | } | |
24490 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24491 | arg2 = obj1; | |
24492 | { | |
24493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24494 | wxPrintData_SetPrivData(arg1,arg2); | |
24495 | wxPyEndAllowThreads(__tstate); | |
24496 | if (PyErr_Occurred()) SWIG_fail; | |
24497 | } | |
24498 | resultobj = SWIG_Py_Void(); | |
24499 | return resultobj; | |
24500 | fail: | |
24501 | return NULL; | |
d55e5bfc RD |
24502 | } |
24503 | ||
24504 | ||
1bd55598 RD |
24505 | SWIGINTERN PyObject *PrintData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24506 | PyObject *obj; | |
24507 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24508 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintData, SWIG_NewClientData(obj)); | |
24509 | return SWIG_Py_Void(); | |
d55e5bfc RD |
24510 | } |
24511 | ||
1bd55598 RD |
24512 | SWIGINTERN PyObject *PrintData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24513 | return SWIG_Python_InitShadowInstance(args); | |
24514 | } | |
d55e5bfc | 24515 | |
1bd55598 RD |
24516 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
24517 | PyObject *resultobj = 0; | |
24518 | wxPageSetupDialogData *result = 0 ; | |
24519 | ||
24520 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
24521 | { | |
24522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24523 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
24524 | wxPyEndAllowThreads(__tstate); | |
24525 | if (PyErr_Occurred()) SWIG_fail; | |
24526 | } | |
24527 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24528 | return resultobj; | |
24529 | fail: | |
24530 | return NULL; | |
d55e5bfc RD |
24531 | } |
24532 | ||
24533 | ||
1bd55598 RD |
24534 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24535 | PyObject *resultobj = 0; | |
24536 | wxPageSetupDialogData *arg1 = 0 ; | |
24537 | wxPageSetupDialogData *result = 0 ; | |
24538 | void *argp1 = 0 ; | |
24539 | int res1 = 0 ; | |
24540 | ||
24541 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
24543 | if (!SWIG_IsOK(res1)) { | |
24544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24545 | } | |
24546 | if (!argp1) { | |
24547 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24548 | } | |
24549 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24550 | { | |
24551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24552 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
24553 | wxPyEndAllowThreads(__tstate); | |
24554 | if (PyErr_Occurred()) SWIG_fail; | |
24555 | } | |
24556 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24557 | return resultobj; | |
24558 | fail: | |
24559 | return NULL; | |
d55e5bfc RD |
24560 | } |
24561 | ||
24562 | ||
1bd55598 RD |
24563 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24564 | PyObject *resultobj = 0; | |
24565 | wxPrintData *arg1 = 0 ; | |
24566 | wxPageSetupDialogData *result = 0 ; | |
24567 | void *argp1 = 0 ; | |
24568 | int res1 = 0 ; | |
24569 | ||
24570 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24572 | if (!SWIG_IsOK(res1)) { | |
24573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24574 | } | |
24575 | if (!argp1) { | |
24576 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24577 | } | |
24578 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24579 | { | |
24580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24581 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPrintData const &)*arg1); | |
24582 | wxPyEndAllowThreads(__tstate); | |
24583 | if (PyErr_Occurred()) SWIG_fail; | |
24584 | } | |
24585 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24586 | return resultobj; | |
24587 | fail: | |
24588 | return NULL; | |
d55e5bfc RD |
24589 | } |
24590 | ||
24591 | ||
1bd55598 RD |
24592 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { |
24593 | int argc; | |
24594 | PyObject *argv[2]; | |
24595 | ||
24596 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PageSetupDialogData",0,1,argv))) SWIG_fail; | |
24597 | --argc; | |
24598 | if (argc == 0) { | |
24599 | return _wrap_new_PageSetupDialogData__SWIG_0(self, argc, argv); | |
24600 | } | |
24601 | if (argc == 1) { | |
24602 | int _v = 0; | |
36ed4f51 | 24603 | { |
1bd55598 RD |
24604 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPageSetupDialogData, 0); |
24605 | _v = SWIG_CheckState(res); | |
d55e5bfc | 24606 | } |
1bd55598 RD |
24607 | if (!_v) goto check_2; |
24608 | return _wrap_new_PageSetupDialogData__SWIG_1(self, argc, argv); | |
24609 | } | |
24610 | check_2: | |
24611 | ||
24612 | if (argc == 1) { | |
24613 | return _wrap_new_PageSetupDialogData__SWIG_2(self, argc, argv); | |
24614 | } | |
24615 | ||
24616 | fail: | |
24617 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
24618 | return NULL; | |
d55e5bfc RD |
24619 | } |
24620 | ||
24621 | ||
1bd55598 RD |
24622 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24623 | PyObject *resultobj = 0; | |
24624 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24625 | void *argp1 = 0 ; | |
24626 | int res1 = 0 ; | |
24627 | PyObject *swig_obj[1] ; | |
24628 | ||
24629 | if (!args) SWIG_fail; | |
24630 | swig_obj[0] = args; | |
24631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_DISOWN | 0 ); | |
24632 | if (!SWIG_IsOK(res1)) { | |
24633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24634 | } | |
24635 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24636 | { | |
24637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24638 | delete arg1; | |
d55e5bfc | 24639 | |
1bd55598 RD |
24640 | wxPyEndAllowThreads(__tstate); |
24641 | if (PyErr_Occurred()) SWIG_fail; | |
24642 | } | |
24643 | resultobj = SWIG_Py_Void(); | |
24644 | return resultobj; | |
24645 | fail: | |
24646 | return NULL; | |
24647 | } | |
24648 | ||
24649 | ||
24650 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24651 | PyObject *resultobj = 0; | |
24652 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24653 | bool arg2 ; | |
24654 | void *argp1 = 0 ; | |
24655 | int res1 = 0 ; | |
24656 | bool val2 ; | |
24657 | int ecode2 = 0 ; | |
24658 | PyObject * obj0 = 0 ; | |
24659 | PyObject * obj1 = 0 ; | |
24660 | char * kwnames[] = { | |
24661 | (char *) "self",(char *) "flag", NULL | |
24662 | }; | |
24663 | ||
24664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24666 | if (!SWIG_IsOK(res1)) { | |
24667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24668 | } | |
24669 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24670 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24671 | if (!SWIG_IsOK(ecode2)) { | |
24672 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
24673 | } | |
24674 | arg2 = static_cast< bool >(val2); | |
24675 | { | |
24676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24677 | (arg1)->EnableHelp(arg2); | |
24678 | wxPyEndAllowThreads(__tstate); | |
24679 | if (PyErr_Occurred()) SWIG_fail; | |
24680 | } | |
24681 | resultobj = SWIG_Py_Void(); | |
24682 | return resultobj; | |
24683 | fail: | |
24684 | return NULL; | |
24685 | } | |
24686 | ||
24687 | ||
24688 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24689 | PyObject *resultobj = 0; | |
24690 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24691 | bool arg2 ; | |
24692 | void *argp1 = 0 ; | |
24693 | int res1 = 0 ; | |
24694 | bool val2 ; | |
24695 | int ecode2 = 0 ; | |
24696 | PyObject * obj0 = 0 ; | |
24697 | PyObject * obj1 = 0 ; | |
24698 | char * kwnames[] = { | |
24699 | (char *) "self",(char *) "flag", NULL | |
24700 | }; | |
24701 | ||
24702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24704 | if (!SWIG_IsOK(res1)) { | |
24705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24706 | } | |
24707 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24708 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24709 | if (!SWIG_IsOK(ecode2)) { | |
24710 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "2"" of type '" "bool""'"); | |
24711 | } | |
24712 | arg2 = static_cast< bool >(val2); | |
24713 | { | |
24714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24715 | (arg1)->EnableMargins(arg2); | |
24716 | wxPyEndAllowThreads(__tstate); | |
24717 | if (PyErr_Occurred()) SWIG_fail; | |
24718 | } | |
24719 | resultobj = SWIG_Py_Void(); | |
24720 | return resultobj; | |
24721 | fail: | |
24722 | return NULL; | |
24723 | } | |
24724 | ||
24725 | ||
24726 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24727 | PyObject *resultobj = 0; | |
24728 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24729 | bool arg2 ; | |
24730 | void *argp1 = 0 ; | |
24731 | int res1 = 0 ; | |
24732 | bool val2 ; | |
24733 | int ecode2 = 0 ; | |
24734 | PyObject * obj0 = 0 ; | |
24735 | PyObject * obj1 = 0 ; | |
24736 | char * kwnames[] = { | |
24737 | (char *) "self",(char *) "flag", NULL | |
24738 | }; | |
24739 | ||
24740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24742 | if (!SWIG_IsOK(res1)) { | |
24743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24744 | } | |
24745 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24746 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24747 | if (!SWIG_IsOK(ecode2)) { | |
24748 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
24749 | } | |
24750 | arg2 = static_cast< bool >(val2); | |
24751 | { | |
24752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24753 | (arg1)->EnableOrientation(arg2); | |
24754 | wxPyEndAllowThreads(__tstate); | |
24755 | if (PyErr_Occurred()) SWIG_fail; | |
24756 | } | |
24757 | resultobj = SWIG_Py_Void(); | |
24758 | return resultobj; | |
24759 | fail: | |
24760 | return NULL; | |
24761 | } | |
24762 | ||
24763 | ||
24764 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24765 | PyObject *resultobj = 0; | |
24766 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24767 | bool arg2 ; | |
24768 | void *argp1 = 0 ; | |
24769 | int res1 = 0 ; | |
24770 | bool val2 ; | |
24771 | int ecode2 = 0 ; | |
24772 | PyObject * obj0 = 0 ; | |
24773 | PyObject * obj1 = 0 ; | |
24774 | char * kwnames[] = { | |
24775 | (char *) "self",(char *) "flag", NULL | |
24776 | }; | |
24777 | ||
24778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
24779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24780 | if (!SWIG_IsOK(res1)) { | |
24781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24782 | } | |
24783 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24784 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24785 | if (!SWIG_IsOK(ecode2)) { | |
24786 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "2"" of type '" "bool""'"); | |
24787 | } | |
24788 | arg2 = static_cast< bool >(val2); | |
24789 | { | |
24790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24791 | (arg1)->EnablePaper(arg2); | |
24792 | wxPyEndAllowThreads(__tstate); | |
24793 | if (PyErr_Occurred()) SWIG_fail; | |
24794 | } | |
24795 | resultobj = SWIG_Py_Void(); | |
24796 | return resultobj; | |
24797 | fail: | |
24798 | return NULL; | |
24799 | } | |
24800 | ||
24801 | ||
24802 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24803 | PyObject *resultobj = 0; | |
24804 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24805 | bool arg2 ; | |
24806 | void *argp1 = 0 ; | |
24807 | int res1 = 0 ; | |
24808 | bool val2 ; | |
24809 | int ecode2 = 0 ; | |
24810 | PyObject * obj0 = 0 ; | |
24811 | PyObject * obj1 = 0 ; | |
24812 | char * kwnames[] = { | |
24813 | (char *) "self",(char *) "flag", NULL | |
24814 | }; | |
24815 | ||
24816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) SWIG_fail; | |
24817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24818 | if (!SWIG_IsOK(res1)) { | |
24819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24820 | } | |
24821 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24822 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24823 | if (!SWIG_IsOK(ecode2)) { | |
24824 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "2"" of type '" "bool""'"); | |
24825 | } | |
24826 | arg2 = static_cast< bool >(val2); | |
24827 | { | |
24828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24829 | (arg1)->EnablePrinter(arg2); | |
24830 | wxPyEndAllowThreads(__tstate); | |
24831 | if (PyErr_Occurred()) SWIG_fail; | |
24832 | } | |
24833 | resultobj = SWIG_Py_Void(); | |
24834 | return resultobj; | |
24835 | fail: | |
24836 | return NULL; | |
d55e5bfc RD |
24837 | } |
24838 | ||
24839 | ||
1bd55598 RD |
24840 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24841 | PyObject *resultobj = 0; | |
24842 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24843 | bool result; | |
24844 | void *argp1 = 0 ; | |
24845 | int res1 = 0 ; | |
24846 | PyObject *swig_obj[1] ; | |
24847 | ||
24848 | if (!args) SWIG_fail; | |
24849 | swig_obj[0] = args; | |
24850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24851 | if (!SWIG_IsOK(res1)) { | |
24852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24853 | } | |
24854 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24855 | { | |
24856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24857 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
24858 | wxPyEndAllowThreads(__tstate); | |
24859 | if (PyErr_Occurred()) SWIG_fail; | |
24860 | } | |
24861 | { | |
24862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24863 | } | |
24864 | return resultobj; | |
24865 | fail: | |
24866 | return NULL; | |
d55e5bfc RD |
24867 | } |
24868 | ||
24869 | ||
1bd55598 RD |
24870 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24871 | PyObject *resultobj = 0; | |
24872 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24873 | bool result; | |
24874 | void *argp1 = 0 ; | |
24875 | int res1 = 0 ; | |
24876 | PyObject *swig_obj[1] ; | |
24877 | ||
24878 | if (!args) SWIG_fail; | |
24879 | swig_obj[0] = args; | |
24880 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24881 | if (!SWIG_IsOK(res1)) { | |
24882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24883 | } | |
24884 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24885 | { | |
24886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24887 | result = (bool)(arg1)->GetEnableMargins(); | |
24888 | wxPyEndAllowThreads(__tstate); | |
24889 | if (PyErr_Occurred()) SWIG_fail; | |
24890 | } | |
24891 | { | |
24892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24893 | } | |
24894 | return resultobj; | |
24895 | fail: | |
24896 | return NULL; | |
d55e5bfc RD |
24897 | } |
24898 | ||
24899 | ||
1bd55598 RD |
24900 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24901 | PyObject *resultobj = 0; | |
24902 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24903 | bool result; | |
24904 | void *argp1 = 0 ; | |
24905 | int res1 = 0 ; | |
24906 | PyObject *swig_obj[1] ; | |
24907 | ||
24908 | if (!args) SWIG_fail; | |
24909 | swig_obj[0] = args; | |
24910 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24911 | if (!SWIG_IsOK(res1)) { | |
24912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24913 | } | |
24914 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24915 | { | |
24916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24917 | result = (bool)(arg1)->GetEnableOrientation(); | |
24918 | wxPyEndAllowThreads(__tstate); | |
24919 | if (PyErr_Occurred()) SWIG_fail; | |
24920 | } | |
24921 | { | |
24922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24923 | } | |
24924 | return resultobj; | |
24925 | fail: | |
24926 | return NULL; | |
d55e5bfc RD |
24927 | } |
24928 | ||
24929 | ||
1bd55598 RD |
24930 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24931 | PyObject *resultobj = 0; | |
24932 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24933 | bool result; | |
24934 | void *argp1 = 0 ; | |
24935 | int res1 = 0 ; | |
24936 | PyObject *swig_obj[1] ; | |
24937 | ||
24938 | if (!args) SWIG_fail; | |
24939 | swig_obj[0] = args; | |
24940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24941 | if (!SWIG_IsOK(res1)) { | |
24942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24943 | } | |
24944 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24945 | { | |
24946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24947 | result = (bool)(arg1)->GetEnablePaper(); | |
24948 | wxPyEndAllowThreads(__tstate); | |
24949 | if (PyErr_Occurred()) SWIG_fail; | |
24950 | } | |
24951 | { | |
24952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24953 | } | |
24954 | return resultobj; | |
24955 | fail: | |
24956 | return NULL; | |
d55e5bfc RD |
24957 | } |
24958 | ||
24959 | ||
1bd55598 RD |
24960 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24961 | PyObject *resultobj = 0; | |
24962 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24963 | bool result; | |
24964 | void *argp1 = 0 ; | |
24965 | int res1 = 0 ; | |
24966 | PyObject *swig_obj[1] ; | |
24967 | ||
24968 | if (!args) SWIG_fail; | |
24969 | swig_obj[0] = args; | |
24970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24971 | if (!SWIG_IsOK(res1)) { | |
24972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24973 | } | |
24974 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24975 | { | |
24976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24977 | result = (bool)(arg1)->GetEnablePrinter(); | |
24978 | wxPyEndAllowThreads(__tstate); | |
24979 | if (PyErr_Occurred()) SWIG_fail; | |
24980 | } | |
24981 | { | |
24982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24983 | } | |
24984 | return resultobj; | |
24985 | fail: | |
24986 | return NULL; | |
32fe5131 RD |
24987 | } |
24988 | ||
24989 | ||
1bd55598 RD |
24990 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24991 | PyObject *resultobj = 0; | |
24992 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24993 | bool result; | |
24994 | void *argp1 = 0 ; | |
24995 | int res1 = 0 ; | |
24996 | PyObject *swig_obj[1] ; | |
24997 | ||
24998 | if (!args) SWIG_fail; | |
24999 | swig_obj[0] = args; | |
25000 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25001 | if (!SWIG_IsOK(res1)) { | |
25002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25003 | } | |
25004 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25005 | { | |
25006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25007 | result = (bool)(arg1)->GetEnableHelp(); | |
25008 | wxPyEndAllowThreads(__tstate); | |
25009 | if (PyErr_Occurred()) SWIG_fail; | |
25010 | } | |
25011 | { | |
25012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25013 | } | |
25014 | return resultobj; | |
25015 | fail: | |
25016 | return NULL; | |
d55e5bfc RD |
25017 | } |
25018 | ||
25019 | ||
1bd55598 RD |
25020 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25021 | PyObject *resultobj = 0; | |
25022 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25023 | bool result; | |
25024 | void *argp1 = 0 ; | |
25025 | int res1 = 0 ; | |
25026 | PyObject *swig_obj[1] ; | |
25027 | ||
25028 | if (!args) SWIG_fail; | |
25029 | swig_obj[0] = args; | |
25030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25031 | if (!SWIG_IsOK(res1)) { | |
25032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25033 | } | |
25034 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25035 | { | |
25036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25037 | result = (bool)(arg1)->GetDefaultInfo(); | |
25038 | wxPyEndAllowThreads(__tstate); | |
25039 | if (PyErr_Occurred()) SWIG_fail; | |
25040 | } | |
25041 | { | |
25042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25043 | } | |
25044 | return resultobj; | |
25045 | fail: | |
25046 | return NULL; | |
d55e5bfc RD |
25047 | } |
25048 | ||
25049 | ||
1bd55598 RD |
25050 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25051 | PyObject *resultobj = 0; | |
25052 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25053 | wxPoint result; | |
25054 | void *argp1 = 0 ; | |
25055 | int res1 = 0 ; | |
25056 | PyObject *swig_obj[1] ; | |
25057 | ||
25058 | if (!args) SWIG_fail; | |
25059 | swig_obj[0] = args; | |
25060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25061 | if (!SWIG_IsOK(res1)) { | |
25062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25063 | } | |
25064 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25065 | { | |
25066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25067 | result = (arg1)->GetMarginTopLeft(); | |
25068 | wxPyEndAllowThreads(__tstate); | |
25069 | if (PyErr_Occurred()) SWIG_fail; | |
25070 | } | |
25071 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25072 | return resultobj; | |
25073 | fail: | |
25074 | return NULL; | |
d55e5bfc RD |
25075 | } |
25076 | ||
25077 | ||
1bd55598 RD |
25078 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25079 | PyObject *resultobj = 0; | |
25080 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25081 | wxPoint result; | |
25082 | void *argp1 = 0 ; | |
25083 | int res1 = 0 ; | |
25084 | PyObject *swig_obj[1] ; | |
25085 | ||
25086 | if (!args) SWIG_fail; | |
25087 | swig_obj[0] = args; | |
25088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25089 | if (!SWIG_IsOK(res1)) { | |
25090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25091 | } | |
25092 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25093 | { | |
25094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25095 | result = (arg1)->GetMarginBottomRight(); | |
25096 | wxPyEndAllowThreads(__tstate); | |
25097 | if (PyErr_Occurred()) SWIG_fail; | |
25098 | } | |
25099 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25100 | return resultobj; | |
25101 | fail: | |
25102 | return NULL; | |
d55e5bfc RD |
25103 | } |
25104 | ||
25105 | ||
1bd55598 RD |
25106 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25107 | PyObject *resultobj = 0; | |
25108 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25109 | wxPoint result; | |
25110 | void *argp1 = 0 ; | |
25111 | int res1 = 0 ; | |
25112 | PyObject *swig_obj[1] ; | |
25113 | ||
25114 | if (!args) SWIG_fail; | |
25115 | swig_obj[0] = args; | |
25116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25117 | if (!SWIG_IsOK(res1)) { | |
25118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25119 | } | |
25120 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25121 | { | |
25122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25123 | result = (arg1)->GetMinMarginTopLeft(); | |
25124 | wxPyEndAllowThreads(__tstate); | |
25125 | if (PyErr_Occurred()) SWIG_fail; | |
25126 | } | |
25127 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25128 | return resultobj; | |
25129 | fail: | |
25130 | return NULL; | |
d55e5bfc RD |
25131 | } |
25132 | ||
25133 | ||
1bd55598 RD |
25134 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25135 | PyObject *resultobj = 0; | |
25136 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25137 | wxPoint result; | |
25138 | void *argp1 = 0 ; | |
25139 | int res1 = 0 ; | |
25140 | PyObject *swig_obj[1] ; | |
25141 | ||
25142 | if (!args) SWIG_fail; | |
25143 | swig_obj[0] = args; | |
25144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25145 | if (!SWIG_IsOK(res1)) { | |
25146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25147 | } | |
25148 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25149 | { | |
25150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25151 | result = (arg1)->GetMinMarginBottomRight(); | |
25152 | wxPyEndAllowThreads(__tstate); | |
25153 | if (PyErr_Occurred()) SWIG_fail; | |
25154 | } | |
25155 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25156 | return resultobj; | |
25157 | fail: | |
25158 | return NULL; | |
d55e5bfc RD |
25159 | } |
25160 | ||
25161 | ||
1bd55598 RD |
25162 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25163 | PyObject *resultobj = 0; | |
25164 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25165 | wxPaperSize result; | |
25166 | void *argp1 = 0 ; | |
25167 | int res1 = 0 ; | |
25168 | PyObject *swig_obj[1] ; | |
25169 | ||
25170 | if (!args) SWIG_fail; | |
25171 | swig_obj[0] = args; | |
25172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25173 | if (!SWIG_IsOK(res1)) { | |
25174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25175 | } | |
25176 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25177 | { | |
25178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25179 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
25180 | wxPyEndAllowThreads(__tstate); | |
25181 | if (PyErr_Occurred()) SWIG_fail; | |
25182 | } | |
25183 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25184 | return resultobj; | |
25185 | fail: | |
25186 | return NULL; | |
d55e5bfc RD |
25187 | } |
25188 | ||
25189 | ||
1bd55598 RD |
25190 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25191 | PyObject *resultobj = 0; | |
25192 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25193 | wxSize result; | |
25194 | void *argp1 = 0 ; | |
25195 | int res1 = 0 ; | |
25196 | PyObject *swig_obj[1] ; | |
25197 | ||
25198 | if (!args) SWIG_fail; | |
25199 | swig_obj[0] = args; | |
25200 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25201 | if (!SWIG_IsOK(res1)) { | |
25202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25203 | } | |
25204 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25205 | { | |
25206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25207 | result = (arg1)->GetPaperSize(); | |
25208 | wxPyEndAllowThreads(__tstate); | |
25209 | if (PyErr_Occurred()) SWIG_fail; | |
25210 | } | |
25211 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25212 | return resultobj; | |
25213 | fail: | |
25214 | return NULL; | |
d55e5bfc RD |
25215 | } |
25216 | ||
25217 | ||
1bd55598 RD |
25218 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25219 | PyObject *resultobj = 0; | |
25220 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25221 | wxPrintData *result = 0 ; | |
25222 | void *argp1 = 0 ; | |
25223 | int res1 = 0 ; | |
25224 | PyObject *swig_obj[1] ; | |
25225 | ||
25226 | if (!args) SWIG_fail; | |
25227 | swig_obj[0] = args; | |
25228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25229 | if (!SWIG_IsOK(res1)) { | |
25230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25231 | } | |
25232 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25233 | { | |
25234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 25235 | { |
1bd55598 RD |
25236 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25237 | result = (wxPrintData *) &_result_ref; | |
d55e5bfc | 25238 | } |
1bd55598 RD |
25239 | wxPyEndAllowThreads(__tstate); |
25240 | if (PyErr_Occurred()) SWIG_fail; | |
25241 | } | |
25242 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25243 | return resultobj; | |
25244 | fail: | |
25245 | return NULL; | |
d55e5bfc RD |
25246 | } |
25247 | ||
25248 | ||
b39fe951 | 25249 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
1bd55598 RD |
25250 | PyObject *resultobj = 0; |
25251 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25252 | bool result; | |
25253 | void *argp1 = 0 ; | |
25254 | int res1 = 0 ; | |
25255 | PyObject *swig_obj[1] ; | |
25256 | ||
25257 | if (!args) SWIG_fail; | |
25258 | swig_obj[0] = args; | |
25259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25260 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 25261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_IsOk" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); |
1bd55598 RD |
25262 | } |
25263 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25264 | { | |
25265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 25266 | result = (bool)(arg1)->IsOk(); |
1bd55598 RD |
25267 | wxPyEndAllowThreads(__tstate); |
25268 | if (PyErr_Occurred()) SWIG_fail; | |
25269 | } | |
25270 | { | |
25271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25272 | } | |
25273 | return resultobj; | |
25274 | fail: | |
25275 | return NULL; | |
25276 | } | |
25277 | ||
25278 | ||
25279 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25280 | PyObject *resultobj = 0; | |
25281 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25282 | bool arg2 ; | |
25283 | void *argp1 = 0 ; | |
25284 | int res1 = 0 ; | |
25285 | bool val2 ; | |
25286 | int ecode2 = 0 ; | |
25287 | PyObject * obj0 = 0 ; | |
25288 | PyObject * obj1 = 0 ; | |
25289 | char * kwnames[] = { | |
25290 | (char *) "self",(char *) "flag", NULL | |
25291 | }; | |
25292 | ||
25293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
25294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25295 | if (!SWIG_IsOK(res1)) { | |
25296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25297 | } | |
25298 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25299 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25300 | if (!SWIG_IsOK(ecode2)) { | |
25301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "2"" of type '" "bool""'"); | |
25302 | } | |
25303 | arg2 = static_cast< bool >(val2); | |
25304 | { | |
25305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25306 | (arg1)->SetDefaultInfo(arg2); | |
25307 | wxPyEndAllowThreads(__tstate); | |
25308 | if (PyErr_Occurred()) SWIG_fail; | |
25309 | } | |
25310 | resultobj = SWIG_Py_Void(); | |
25311 | return resultobj; | |
25312 | fail: | |
25313 | return NULL; | |
25314 | } | |
25315 | ||
25316 | ||
25317 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25318 | PyObject *resultobj = 0; | |
25319 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25320 | bool arg2 ; | |
25321 | void *argp1 = 0 ; | |
25322 | int res1 = 0 ; | |
25323 | bool val2 ; | |
25324 | int ecode2 = 0 ; | |
25325 | PyObject * obj0 = 0 ; | |
25326 | PyObject * obj1 = 0 ; | |
25327 | char * kwnames[] = { | |
25328 | (char *) "self",(char *) "flag", NULL | |
25329 | }; | |
25330 | ||
25331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25333 | if (!SWIG_IsOK(res1)) { | |
25334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25335 | } | |
25336 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25337 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25338 | if (!SWIG_IsOK(ecode2)) { | |
25339 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "2"" of type '" "bool""'"); | |
25340 | } | |
25341 | arg2 = static_cast< bool >(val2); | |
25342 | { | |
25343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25344 | (arg1)->SetDefaultMinMargins(arg2); | |
25345 | wxPyEndAllowThreads(__tstate); | |
25346 | if (PyErr_Occurred()) SWIG_fail; | |
25347 | } | |
25348 | resultobj = SWIG_Py_Void(); | |
25349 | return resultobj; | |
25350 | fail: | |
25351 | return NULL; | |
25352 | } | |
25353 | ||
25354 | ||
25355 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25356 | PyObject *resultobj = 0; | |
25357 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25358 | wxPoint *arg2 = 0 ; | |
25359 | void *argp1 = 0 ; | |
25360 | int res1 = 0 ; | |
25361 | wxPoint temp2 ; | |
25362 | PyObject * obj0 = 0 ; | |
25363 | PyObject * obj1 = 0 ; | |
25364 | char * kwnames[] = { | |
25365 | (char *) "self",(char *) "pt", NULL | |
25366 | }; | |
25367 | ||
25368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25370 | if (!SWIG_IsOK(res1)) { | |
25371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25372 | } | |
25373 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25374 | { | |
25375 | arg2 = &temp2; | |
25376 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25377 | } | |
25378 | { | |
25379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25380 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
25381 | wxPyEndAllowThreads(__tstate); | |
25382 | if (PyErr_Occurred()) SWIG_fail; | |
25383 | } | |
25384 | resultobj = SWIG_Py_Void(); | |
25385 | return resultobj; | |
25386 | fail: | |
25387 | return NULL; | |
25388 | } | |
25389 | ||
25390 | ||
25391 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25392 | PyObject *resultobj = 0; | |
25393 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25394 | wxPoint *arg2 = 0 ; | |
25395 | void *argp1 = 0 ; | |
25396 | int res1 = 0 ; | |
25397 | wxPoint temp2 ; | |
25398 | PyObject * obj0 = 0 ; | |
25399 | PyObject * obj1 = 0 ; | |
25400 | char * kwnames[] = { | |
25401 | (char *) "self",(char *) "pt", NULL | |
25402 | }; | |
25403 | ||
25404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25406 | if (!SWIG_IsOK(res1)) { | |
25407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25408 | } | |
25409 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25410 | { | |
25411 | arg2 = &temp2; | |
25412 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25413 | } | |
25414 | { | |
25415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25416 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
25417 | wxPyEndAllowThreads(__tstate); | |
25418 | if (PyErr_Occurred()) SWIG_fail; | |
25419 | } | |
25420 | resultobj = SWIG_Py_Void(); | |
25421 | return resultobj; | |
25422 | fail: | |
25423 | return NULL; | |
25424 | } | |
25425 | ||
25426 | ||
25427 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25428 | PyObject *resultobj = 0; | |
25429 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25430 | wxPoint *arg2 = 0 ; | |
25431 | void *argp1 = 0 ; | |
25432 | int res1 = 0 ; | |
25433 | wxPoint temp2 ; | |
25434 | PyObject * obj0 = 0 ; | |
25435 | PyObject * obj1 = 0 ; | |
25436 | char * kwnames[] = { | |
25437 | (char *) "self",(char *) "pt", NULL | |
25438 | }; | |
25439 | ||
25440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25442 | if (!SWIG_IsOK(res1)) { | |
25443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25444 | } | |
25445 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25446 | { | |
25447 | arg2 = &temp2; | |
25448 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25449 | } | |
25450 | { | |
25451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25452 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
25453 | wxPyEndAllowThreads(__tstate); | |
25454 | if (PyErr_Occurred()) SWIG_fail; | |
25455 | } | |
25456 | resultobj = SWIG_Py_Void(); | |
25457 | return resultobj; | |
25458 | fail: | |
25459 | return NULL; | |
25460 | } | |
25461 | ||
25462 | ||
25463 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25464 | PyObject *resultobj = 0; | |
25465 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25466 | wxPoint *arg2 = 0 ; | |
25467 | void *argp1 = 0 ; | |
25468 | int res1 = 0 ; | |
25469 | wxPoint temp2 ; | |
25470 | PyObject * obj0 = 0 ; | |
25471 | PyObject * obj1 = 0 ; | |
25472 | char * kwnames[] = { | |
25473 | (char *) "self",(char *) "pt", NULL | |
25474 | }; | |
25475 | ||
25476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25478 | if (!SWIG_IsOK(res1)) { | |
25479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25480 | } | |
25481 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25482 | { | |
25483 | arg2 = &temp2; | |
25484 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25485 | } | |
25486 | { | |
25487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25488 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
25489 | wxPyEndAllowThreads(__tstate); | |
25490 | if (PyErr_Occurred()) SWIG_fail; | |
25491 | } | |
25492 | resultobj = SWIG_Py_Void(); | |
25493 | return resultobj; | |
25494 | fail: | |
25495 | return NULL; | |
25496 | } | |
25497 | ||
25498 | ||
25499 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25500 | PyObject *resultobj = 0; | |
25501 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25502 | wxPaperSize arg2 ; | |
25503 | void *argp1 = 0 ; | |
25504 | int res1 = 0 ; | |
25505 | int val2 ; | |
25506 | int ecode2 = 0 ; | |
25507 | PyObject * obj0 = 0 ; | |
25508 | PyObject * obj1 = 0 ; | |
25509 | char * kwnames[] = { | |
25510 | (char *) "self",(char *) "id", NULL | |
25511 | }; | |
25512 | ||
25513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
25514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25515 | if (!SWIG_IsOK(res1)) { | |
25516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25517 | } | |
25518 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25519 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25520 | if (!SWIG_IsOK(ecode2)) { | |
25521 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
25522 | } | |
25523 | arg2 = static_cast< wxPaperSize >(val2); | |
25524 | { | |
25525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25526 | (arg1)->SetPaperId(arg2); | |
25527 | wxPyEndAllowThreads(__tstate); | |
25528 | if (PyErr_Occurred()) SWIG_fail; | |
25529 | } | |
25530 | resultobj = SWIG_Py_Void(); | |
25531 | return resultobj; | |
25532 | fail: | |
25533 | return NULL; | |
25534 | } | |
25535 | ||
25536 | ||
25537 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25538 | PyObject *resultobj = 0; | |
25539 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25540 | wxSize *arg2 = 0 ; | |
25541 | void *argp1 = 0 ; | |
25542 | int res1 = 0 ; | |
25543 | wxSize temp2 ; | |
25544 | PyObject * obj0 = 0 ; | |
25545 | PyObject * obj1 = 0 ; | |
25546 | char * kwnames[] = { | |
25547 | (char *) "self",(char *) "size", NULL | |
25548 | }; | |
25549 | ||
25550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25552 | if (!SWIG_IsOK(res1)) { | |
25553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25554 | } | |
25555 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25556 | { | |
25557 | arg2 = &temp2; | |
25558 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25559 | } | |
25560 | { | |
25561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25562 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
25563 | wxPyEndAllowThreads(__tstate); | |
25564 | if (PyErr_Occurred()) SWIG_fail; | |
25565 | } | |
25566 | resultobj = SWIG_Py_Void(); | |
25567 | return resultobj; | |
25568 | fail: | |
25569 | return NULL; | |
25570 | } | |
25571 | ||
25572 | ||
25573 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25574 | PyObject *resultobj = 0; | |
25575 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25576 | wxPrintData *arg2 = 0 ; | |
25577 | void *argp1 = 0 ; | |
25578 | int res1 = 0 ; | |
25579 | void *argp2 = 0 ; | |
25580 | int res2 = 0 ; | |
25581 | PyObject * obj0 = 0 ; | |
25582 | PyObject * obj1 = 0 ; | |
25583 | char * kwnames[] = { | |
25584 | (char *) "self",(char *) "printData", NULL | |
25585 | }; | |
25586 | ||
25587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25589 | if (!SWIG_IsOK(res1)) { | |
25590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25591 | } | |
25592 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25593 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25594 | if (!SWIG_IsOK(res2)) { | |
25595 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25596 | } | |
25597 | if (!argp2) { | |
25598 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25599 | } | |
25600 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25601 | { | |
25602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25603 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25604 | wxPyEndAllowThreads(__tstate); | |
25605 | if (PyErr_Occurred()) SWIG_fail; | |
25606 | } | |
25607 | resultobj = SWIG_Py_Void(); | |
25608 | return resultobj; | |
25609 | fail: | |
25610 | return NULL; | |
d55e5bfc RD |
25611 | } |
25612 | ||
25613 | ||
1bd55598 RD |
25614 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculateIdFromPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25615 | PyObject *resultobj = 0; | |
25616 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25617 | void *argp1 = 0 ; | |
25618 | int res1 = 0 ; | |
25619 | PyObject *swig_obj[1] ; | |
25620 | ||
25621 | if (!args) SWIG_fail; | |
25622 | swig_obj[0] = args; | |
25623 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25624 | if (!SWIG_IsOK(res1)) { | |
25625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculateIdFromPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25626 | } | |
25627 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25628 | { | |
25629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25630 | (arg1)->CalculateIdFromPaperSize(); | |
25631 | wxPyEndAllowThreads(__tstate); | |
25632 | if (PyErr_Occurred()) SWIG_fail; | |
25633 | } | |
25634 | resultobj = SWIG_Py_Void(); | |
25635 | return resultobj; | |
25636 | fail: | |
25637 | return NULL; | |
d55e5bfc RD |
25638 | } |
25639 | ||
25640 | ||
1bd55598 RD |
25641 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculatePaperSizeFromId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25642 | PyObject *resultobj = 0; | |
25643 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25644 | void *argp1 = 0 ; | |
25645 | int res1 = 0 ; | |
25646 | PyObject *swig_obj[1] ; | |
25647 | ||
25648 | if (!args) SWIG_fail; | |
25649 | swig_obj[0] = args; | |
25650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25651 | if (!SWIG_IsOK(res1)) { | |
25652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculatePaperSizeFromId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25653 | } | |
25654 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25655 | { | |
25656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25657 | (arg1)->CalculatePaperSizeFromId(); | |
25658 | wxPyEndAllowThreads(__tstate); | |
25659 | if (PyErr_Occurred()) SWIG_fail; | |
25660 | } | |
25661 | resultobj = SWIG_Py_Void(); | |
25662 | return resultobj; | |
25663 | fail: | |
25664 | return NULL; | |
d55e5bfc RD |
25665 | } |
25666 | ||
25667 | ||
1bd55598 RD |
25668 | SWIGINTERN PyObject *PageSetupDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25669 | PyObject *obj; | |
25670 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25671 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialogData, SWIG_NewClientData(obj)); | |
25672 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25673 | } |
25674 | ||
1bd55598 RD |
25675 | SWIGINTERN PyObject *PageSetupDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25676 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
25677 | } |
25678 | ||
1bd55598 RD |
25679 | SWIGINTERN PyObject *_wrap_new_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25680 | PyObject *resultobj = 0; | |
25681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25682 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
25683 | wxPageSetupDialog *result = 0 ; | |
25684 | void *argp1 = 0 ; | |
25685 | int res1 = 0 ; | |
25686 | void *argp2 = 0 ; | |
25687 | int res2 = 0 ; | |
25688 | PyObject * obj0 = 0 ; | |
25689 | PyObject * obj1 = 0 ; | |
25690 | char * kwnames[] = { | |
25691 | (char *) "parent",(char *) "data", NULL | |
25692 | }; | |
25693 | ||
25694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
25695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25696 | if (!SWIG_IsOK(res1)) { | |
25697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25698 | } | |
25699 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25700 | if (obj1) { | |
25701 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25702 | if (!SWIG_IsOK(res2)) { | |
25703 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PageSetupDialog" "', expected argument " "2"" of type '" "wxPageSetupDialogData *""'"); | |
36ed4f51 | 25704 | } |
1bd55598 RD |
25705 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); |
25706 | } | |
25707 | { | |
25708 | if (!wxPyCheckForApp()) SWIG_fail; | |
25709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25710 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
25711 | wxPyEndAllowThreads(__tstate); | |
25712 | if (PyErr_Occurred()) SWIG_fail; | |
25713 | } | |
25714 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_NEW | 0 ); | |
25715 | return resultobj; | |
25716 | fail: | |
25717 | return NULL; | |
d55e5bfc RD |
25718 | } |
25719 | ||
25720 | ||
06810ecf RD |
25721 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25722 | PyObject *resultobj = 0; | |
25723 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25724 | void *argp1 = 0 ; | |
25725 | int res1 = 0 ; | |
25726 | PyObject *swig_obj[1] ; | |
25727 | ||
25728 | if (!args) SWIG_fail; | |
25729 | swig_obj[0] = args; | |
25730 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_DISOWN | 0 ); | |
25731 | if (!SWIG_IsOK(res1)) { | |
25732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialog" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25733 | } | |
25734 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25735 | { | |
25736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25737 | delete arg1; | |
25738 | ||
25739 | wxPyEndAllowThreads(__tstate); | |
25740 | if (PyErr_Occurred()) SWIG_fail; | |
25741 | } | |
25742 | resultobj = SWIG_Py_Void(); | |
25743 | return resultobj; | |
25744 | fail: | |
25745 | return NULL; | |
25746 | } | |
25747 | ||
25748 | ||
1bd55598 RD |
25749 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25750 | PyObject *resultobj = 0; | |
25751 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25752 | wxPageSetupDialogData *result = 0 ; | |
25753 | void *argp1 = 0 ; | |
25754 | int res1 = 0 ; | |
25755 | PyObject *swig_obj[1] ; | |
25756 | ||
25757 | if (!args) SWIG_fail; | |
25758 | swig_obj[0] = args; | |
25759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25760 | if (!SWIG_IsOK(res1)) { | |
25761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25762 | } | |
25763 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25764 | { | |
25765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 25766 | { |
1bd55598 RD |
25767 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); |
25768 | result = (wxPageSetupDialogData *) &_result_ref; | |
36ed4f51 | 25769 | } |
1bd55598 RD |
25770 | wxPyEndAllowThreads(__tstate); |
25771 | if (PyErr_Occurred()) SWIG_fail; | |
25772 | } | |
25773 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25774 | return resultobj; | |
25775 | fail: | |
25776 | return NULL; | |
d55e5bfc RD |
25777 | } |
25778 | ||
25779 | ||
1bd55598 RD |
25780 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25781 | PyObject *resultobj = 0; | |
25782 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25783 | wxPageSetupDialogData *result = 0 ; | |
25784 | void *argp1 = 0 ; | |
25785 | int res1 = 0 ; | |
25786 | PyObject *swig_obj[1] ; | |
25787 | ||
25788 | if (!args) SWIG_fail; | |
25789 | swig_obj[0] = args; | |
25790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25791 | if (!SWIG_IsOK(res1)) { | |
25792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25793 | } | |
25794 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25795 | { | |
25796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 25797 | { |
1bd55598 RD |
25798 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupDialogData(); |
25799 | result = (wxPageSetupDialogData *) &_result_ref; | |
d55e5bfc | 25800 | } |
1bd55598 RD |
25801 | wxPyEndAllowThreads(__tstate); |
25802 | if (PyErr_Occurred()) SWIG_fail; | |
25803 | } | |
25804 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25805 | return resultobj; | |
25806 | fail: | |
25807 | return NULL; | |
d55e5bfc RD |
25808 | } |
25809 | ||
25810 | ||
1bd55598 RD |
25811 | SWIGINTERN PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25812 | PyObject *resultobj = 0; | |
25813 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25814 | int result; | |
25815 | void *argp1 = 0 ; | |
25816 | int res1 = 0 ; | |
25817 | PyObject *swig_obj[1] ; | |
25818 | ||
25819 | if (!args) SWIG_fail; | |
25820 | swig_obj[0] = args; | |
25821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25822 | if (!SWIG_IsOK(res1)) { | |
25823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_ShowModal" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25824 | } | |
25825 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25826 | { | |
25827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25828 | result = (int)(arg1)->ShowModal(); | |
25829 | wxPyEndAllowThreads(__tstate); | |
25830 | if (PyErr_Occurred()) SWIG_fail; | |
25831 | } | |
25832 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25833 | return resultobj; | |
25834 | fail: | |
25835 | return NULL; | |
d55e5bfc RD |
25836 | } |
25837 | ||
25838 | ||
1bd55598 RD |
25839 | SWIGINTERN PyObject *PageSetupDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25840 | PyObject *obj; | |
25841 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25842 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialog, SWIG_NewClientData(obj)); | |
25843 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25844 | } |
25845 | ||
1bd55598 RD |
25846 | SWIGINTERN PyObject *PageSetupDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25847 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
25848 | } |
25849 | ||
1bd55598 RD |
25850 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
25851 | PyObject *resultobj = 0; | |
25852 | wxPrintDialogData *result = 0 ; | |
25853 | ||
25854 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
25855 | { | |
25856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25857 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
25858 | wxPyEndAllowThreads(__tstate); | |
25859 | if (PyErr_Occurred()) SWIG_fail; | |
25860 | } | |
25861 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25862 | return resultobj; | |
25863 | fail: | |
25864 | return NULL; | |
d55e5bfc RD |
25865 | } |
25866 | ||
25867 | ||
1bd55598 RD |
25868 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25869 | PyObject *resultobj = 0; | |
25870 | wxPrintData *arg1 = 0 ; | |
25871 | wxPrintDialogData *result = 0 ; | |
25872 | void *argp1 = 0 ; | |
25873 | int res1 = 0 ; | |
25874 | ||
25875 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25876 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25877 | if (!SWIG_IsOK(res1)) { | |
25878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25879 | } | |
25880 | if (!argp1) { | |
25881 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25882 | } | |
25883 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25884 | { | |
25885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25886 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
25887 | wxPyEndAllowThreads(__tstate); | |
25888 | if (PyErr_Occurred()) SWIG_fail; | |
25889 | } | |
25890 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25891 | return resultobj; | |
25892 | fail: | |
25893 | return NULL; | |
d55e5bfc RD |
25894 | } |
25895 | ||
25896 | ||
1bd55598 RD |
25897 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25898 | PyObject *resultobj = 0; | |
25899 | wxPrintDialogData *arg1 = 0 ; | |
25900 | wxPrintDialogData *result = 0 ; | |
25901 | void *argp1 = 0 ; | |
25902 | int res1 = 0 ; | |
25903 | ||
25904 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25905 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintDialogData, 0 | 0); | |
25906 | if (!SWIG_IsOK(res1)) { | |
25907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
25908 | } | |
25909 | if (!argp1) { | |
25910 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
25911 | } | |
25912 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25913 | { | |
25914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25915 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintDialogData const &)*arg1); | |
25916 | wxPyEndAllowThreads(__tstate); | |
25917 | if (PyErr_Occurred()) SWIG_fail; | |
25918 | } | |
25919 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25920 | return resultobj; | |
25921 | fail: | |
25922 | return NULL; | |
d55e5bfc RD |
25923 | } |
25924 | ||
25925 | ||
1bd55598 RD |
25926 | SWIGINTERN PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { |
25927 | int argc; | |
25928 | PyObject *argv[2]; | |
25929 | ||
25930 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintDialogData",0,1,argv))) SWIG_fail; | |
25931 | --argc; | |
25932 | if (argc == 0) { | |
25933 | return _wrap_new_PrintDialogData__SWIG_0(self, argc, argv); | |
25934 | } | |
25935 | if (argc == 1) { | |
25936 | int _v = 0; | |
d55e5bfc | 25937 | { |
1bd55598 RD |
25938 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPrintData, 0); |
25939 | _v = SWIG_CheckState(res); | |
d55e5bfc | 25940 | } |
1bd55598 RD |
25941 | if (!_v) goto check_2; |
25942 | return _wrap_new_PrintDialogData__SWIG_1(self, argc, argv); | |
25943 | } | |
25944 | check_2: | |
25945 | ||
25946 | if (argc == 1) { | |
25947 | return _wrap_new_PrintDialogData__SWIG_2(self, argc, argv); | |
25948 | } | |
25949 | ||
25950 | fail: | |
25951 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintDialogData'"); | |
25952 | return NULL; | |
d55e5bfc RD |
25953 | } |
25954 | ||
25955 | ||
1bd55598 RD |
25956 | SWIGINTERN PyObject *_wrap_delete_PrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25957 | PyObject *resultobj = 0; | |
25958 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25959 | void *argp1 = 0 ; | |
25960 | int res1 = 0 ; | |
25961 | PyObject *swig_obj[1] ; | |
25962 | ||
25963 | if (!args) SWIG_fail; | |
25964 | swig_obj[0] = args; | |
25965 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_DISOWN | 0 ); | |
25966 | if (!SWIG_IsOK(res1)) { | |
25967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25968 | } | |
25969 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25970 | { | |
25971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25972 | delete arg1; | |
d55e5bfc | 25973 | |
1bd55598 RD |
25974 | wxPyEndAllowThreads(__tstate); |
25975 | if (PyErr_Occurred()) SWIG_fail; | |
25976 | } | |
25977 | resultobj = SWIG_Py_Void(); | |
25978 | return resultobj; | |
25979 | fail: | |
25980 | return NULL; | |
d55e5bfc RD |
25981 | } |
25982 | ||
25983 | ||
1bd55598 RD |
25984 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25985 | PyObject *resultobj = 0; | |
25986 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25987 | int result; | |
25988 | void *argp1 = 0 ; | |
25989 | int res1 = 0 ; | |
25990 | PyObject *swig_obj[1] ; | |
25991 | ||
25992 | if (!args) SWIG_fail; | |
25993 | swig_obj[0] = args; | |
25994 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25995 | if (!SWIG_IsOK(res1)) { | |
25996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25997 | } | |
25998 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25999 | { | |
26000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26001 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
26002 | wxPyEndAllowThreads(__tstate); | |
26003 | if (PyErr_Occurred()) SWIG_fail; | |
26004 | } | |
26005 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26006 | return resultobj; | |
26007 | fail: | |
26008 | return NULL; | |
d55e5bfc RD |
26009 | } |
26010 | ||
26011 | ||
1bd55598 RD |
26012 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26013 | PyObject *resultobj = 0; | |
26014 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26015 | int result; | |
26016 | void *argp1 = 0 ; | |
26017 | int res1 = 0 ; | |
26018 | PyObject *swig_obj[1] ; | |
26019 | ||
26020 | if (!args) SWIG_fail; | |
26021 | swig_obj[0] = args; | |
26022 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26023 | if (!SWIG_IsOK(res1)) { | |
26024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26025 | } | |
26026 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26027 | { | |
26028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26029 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
26030 | wxPyEndAllowThreads(__tstate); | |
26031 | if (PyErr_Occurred()) SWIG_fail; | |
26032 | } | |
26033 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26034 | return resultobj; | |
26035 | fail: | |
26036 | return NULL; | |
d55e5bfc RD |
26037 | } |
26038 | ||
26039 | ||
1bd55598 RD |
26040 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26041 | PyObject *resultobj = 0; | |
26042 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26043 | int result; | |
26044 | void *argp1 = 0 ; | |
26045 | int res1 = 0 ; | |
26046 | PyObject *swig_obj[1] ; | |
26047 | ||
26048 | if (!args) SWIG_fail; | |
26049 | swig_obj[0] = args; | |
26050 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26051 | if (!SWIG_IsOK(res1)) { | |
26052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26053 | } | |
26054 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26055 | { | |
26056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26057 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
26058 | wxPyEndAllowThreads(__tstate); | |
26059 | if (PyErr_Occurred()) SWIG_fail; | |
26060 | } | |
26061 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26062 | return resultobj; | |
26063 | fail: | |
26064 | return NULL; | |
d55e5bfc RD |
26065 | } |
26066 | ||
26067 | ||
1bd55598 RD |
26068 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26069 | PyObject *resultobj = 0; | |
26070 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26071 | int result; | |
26072 | void *argp1 = 0 ; | |
26073 | int res1 = 0 ; | |
26074 | PyObject *swig_obj[1] ; | |
26075 | ||
26076 | if (!args) SWIG_fail; | |
26077 | swig_obj[0] = args; | |
26078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26079 | if (!SWIG_IsOK(res1)) { | |
26080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26081 | } | |
26082 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26083 | { | |
26084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26085 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
26086 | wxPyEndAllowThreads(__tstate); | |
26087 | if (PyErr_Occurred()) SWIG_fail; | |
26088 | } | |
26089 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26090 | return resultobj; | |
26091 | fail: | |
26092 | return NULL; | |
d55e5bfc RD |
26093 | } |
26094 | ||
26095 | ||
1bd55598 RD |
26096 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26097 | PyObject *resultobj = 0; | |
26098 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26099 | int result; | |
26100 | void *argp1 = 0 ; | |
26101 | int res1 = 0 ; | |
26102 | PyObject *swig_obj[1] ; | |
26103 | ||
26104 | if (!args) SWIG_fail; | |
26105 | swig_obj[0] = args; | |
26106 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26107 | if (!SWIG_IsOK(res1)) { | |
26108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26109 | } | |
26110 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26111 | { | |
26112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26113 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
26114 | wxPyEndAllowThreads(__tstate); | |
26115 | if (PyErr_Occurred()) SWIG_fail; | |
26116 | } | |
26117 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26118 | return resultobj; | |
26119 | fail: | |
26120 | return NULL; | |
d55e5bfc RD |
26121 | } |
26122 | ||
26123 | ||
1bd55598 RD |
26124 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26125 | PyObject *resultobj = 0; | |
26126 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26127 | bool result; | |
26128 | void *argp1 = 0 ; | |
26129 | int res1 = 0 ; | |
26130 | PyObject *swig_obj[1] ; | |
26131 | ||
26132 | if (!args) SWIG_fail; | |
26133 | swig_obj[0] = args; | |
26134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26135 | if (!SWIG_IsOK(res1)) { | |
26136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26137 | } | |
26138 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26139 | { | |
26140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26141 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
26142 | wxPyEndAllowThreads(__tstate); | |
26143 | if (PyErr_Occurred()) SWIG_fail; | |
26144 | } | |
26145 | { | |
26146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26147 | } | |
26148 | return resultobj; | |
26149 | fail: | |
26150 | return NULL; | |
d55e5bfc RD |
26151 | } |
26152 | ||
26153 | ||
1bd55598 RD |
26154 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26155 | PyObject *resultobj = 0; | |
26156 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26157 | bool result; | |
26158 | void *argp1 = 0 ; | |
26159 | int res1 = 0 ; | |
26160 | PyObject *swig_obj[1] ; | |
26161 | ||
26162 | if (!args) SWIG_fail; | |
26163 | swig_obj[0] = args; | |
26164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26165 | if (!SWIG_IsOK(res1)) { | |
26166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26167 | } | |
26168 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26169 | { | |
26170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26171 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
26172 | wxPyEndAllowThreads(__tstate); | |
26173 | if (PyErr_Occurred()) SWIG_fail; | |
26174 | } | |
26175 | { | |
26176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26177 | } | |
26178 | return resultobj; | |
26179 | fail: | |
26180 | return NULL; | |
d55e5bfc RD |
26181 | } |
26182 | ||
26183 | ||
1bd55598 RD |
26184 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26185 | PyObject *resultobj = 0; | |
26186 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26187 | bool result; | |
26188 | void *argp1 = 0 ; | |
26189 | int res1 = 0 ; | |
26190 | PyObject *swig_obj[1] ; | |
26191 | ||
26192 | if (!args) SWIG_fail; | |
26193 | swig_obj[0] = args; | |
26194 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26195 | if (!SWIG_IsOK(res1)) { | |
26196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26197 | } | |
26198 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26199 | { | |
26200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26201 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
26202 | wxPyEndAllowThreads(__tstate); | |
26203 | if (PyErr_Occurred()) SWIG_fail; | |
26204 | } | |
26205 | { | |
26206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26207 | } | |
26208 | return resultobj; | |
26209 | fail: | |
26210 | return NULL; | |
d55e5bfc RD |
26211 | } |
26212 | ||
26213 | ||
1bd55598 RD |
26214 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26215 | PyObject *resultobj = 0; | |
26216 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26217 | bool result; | |
26218 | void *argp1 = 0 ; | |
26219 | int res1 = 0 ; | |
26220 | PyObject *swig_obj[1] ; | |
26221 | ||
26222 | if (!args) SWIG_fail; | |
26223 | swig_obj[0] = args; | |
26224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26225 | if (!SWIG_IsOK(res1)) { | |
26226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26227 | } | |
26228 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26229 | { | |
26230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26231 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
26232 | wxPyEndAllowThreads(__tstate); | |
26233 | if (PyErr_Occurred()) SWIG_fail; | |
26234 | } | |
26235 | { | |
26236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26237 | } | |
26238 | return resultobj; | |
26239 | fail: | |
26240 | return NULL; | |
26241 | } | |
26242 | ||
26243 | ||
26244 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26245 | PyObject *resultobj = 0; | |
26246 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26247 | int arg2 ; | |
26248 | void *argp1 = 0 ; | |
26249 | int res1 = 0 ; | |
26250 | int val2 ; | |
26251 | int ecode2 = 0 ; | |
26252 | PyObject * obj0 = 0 ; | |
26253 | PyObject * obj1 = 0 ; | |
26254 | char * kwnames[] = { | |
26255 | (char *) "self",(char *) "v", NULL | |
26256 | }; | |
26257 | ||
26258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26260 | if (!SWIG_IsOK(res1)) { | |
26261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26262 | } | |
26263 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26264 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26265 | if (!SWIG_IsOK(ecode2)) { | |
26266 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "2"" of type '" "int""'"); | |
26267 | } | |
26268 | arg2 = static_cast< int >(val2); | |
26269 | { | |
26270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26271 | (arg1)->SetFromPage(arg2); | |
26272 | wxPyEndAllowThreads(__tstate); | |
26273 | if (PyErr_Occurred()) SWIG_fail; | |
26274 | } | |
26275 | resultobj = SWIG_Py_Void(); | |
26276 | return resultobj; | |
26277 | fail: | |
26278 | return NULL; | |
26279 | } | |
26280 | ||
26281 | ||
26282 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26283 | PyObject *resultobj = 0; | |
26284 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26285 | int arg2 ; | |
26286 | void *argp1 = 0 ; | |
26287 | int res1 = 0 ; | |
26288 | int val2 ; | |
26289 | int ecode2 = 0 ; | |
26290 | PyObject * obj0 = 0 ; | |
26291 | PyObject * obj1 = 0 ; | |
26292 | char * kwnames[] = { | |
26293 | (char *) "self",(char *) "v", NULL | |
26294 | }; | |
26295 | ||
26296 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26297 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26298 | if (!SWIG_IsOK(res1)) { | |
26299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26300 | } | |
26301 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26302 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26303 | if (!SWIG_IsOK(ecode2)) { | |
26304 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetToPage" "', expected argument " "2"" of type '" "int""'"); | |
26305 | } | |
26306 | arg2 = static_cast< int >(val2); | |
26307 | { | |
26308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26309 | (arg1)->SetToPage(arg2); | |
26310 | wxPyEndAllowThreads(__tstate); | |
26311 | if (PyErr_Occurred()) SWIG_fail; | |
26312 | } | |
26313 | resultobj = SWIG_Py_Void(); | |
26314 | return resultobj; | |
26315 | fail: | |
26316 | return NULL; | |
26317 | } | |
26318 | ||
26319 | ||
26320 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26321 | PyObject *resultobj = 0; | |
26322 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26323 | int arg2 ; | |
26324 | void *argp1 = 0 ; | |
26325 | int res1 = 0 ; | |
26326 | int val2 ; | |
26327 | int ecode2 = 0 ; | |
26328 | PyObject * obj0 = 0 ; | |
26329 | PyObject * obj1 = 0 ; | |
26330 | char * kwnames[] = { | |
26331 | (char *) "self",(char *) "v", NULL | |
26332 | }; | |
26333 | ||
26334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26336 | if (!SWIG_IsOK(res1)) { | |
26337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26338 | } | |
26339 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26340 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26341 | if (!SWIG_IsOK(ecode2)) { | |
26342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "2"" of type '" "int""'"); | |
26343 | } | |
26344 | arg2 = static_cast< int >(val2); | |
26345 | { | |
26346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26347 | (arg1)->SetMinPage(arg2); | |
26348 | wxPyEndAllowThreads(__tstate); | |
26349 | if (PyErr_Occurred()) SWIG_fail; | |
26350 | } | |
26351 | resultobj = SWIG_Py_Void(); | |
26352 | return resultobj; | |
26353 | fail: | |
26354 | return NULL; | |
26355 | } | |
26356 | ||
26357 | ||
26358 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26359 | PyObject *resultobj = 0; | |
26360 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26361 | int arg2 ; | |
26362 | void *argp1 = 0 ; | |
26363 | int res1 = 0 ; | |
26364 | int val2 ; | |
26365 | int ecode2 = 0 ; | |
26366 | PyObject * obj0 = 0 ; | |
26367 | PyObject * obj1 = 0 ; | |
26368 | char * kwnames[] = { | |
26369 | (char *) "self",(char *) "v", NULL | |
26370 | }; | |
26371 | ||
26372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26374 | if (!SWIG_IsOK(res1)) { | |
26375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26376 | } | |
26377 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26378 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26379 | if (!SWIG_IsOK(ecode2)) { | |
26380 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "2"" of type '" "int""'"); | |
26381 | } | |
26382 | arg2 = static_cast< int >(val2); | |
26383 | { | |
26384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26385 | (arg1)->SetMaxPage(arg2); | |
26386 | wxPyEndAllowThreads(__tstate); | |
26387 | if (PyErr_Occurred()) SWIG_fail; | |
26388 | } | |
26389 | resultobj = SWIG_Py_Void(); | |
26390 | return resultobj; | |
26391 | fail: | |
26392 | return NULL; | |
26393 | } | |
26394 | ||
26395 | ||
26396 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26397 | PyObject *resultobj = 0; | |
26398 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26399 | int arg2 ; | |
26400 | void *argp1 = 0 ; | |
26401 | int res1 = 0 ; | |
26402 | int val2 ; | |
26403 | int ecode2 = 0 ; | |
26404 | PyObject * obj0 = 0 ; | |
26405 | PyObject * obj1 = 0 ; | |
26406 | char * kwnames[] = { | |
26407 | (char *) "self",(char *) "v", NULL | |
26408 | }; | |
26409 | ||
26410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
26411 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26412 | if (!SWIG_IsOK(res1)) { | |
26413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26414 | } | |
26415 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26416 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26417 | if (!SWIG_IsOK(ecode2)) { | |
26418 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
26419 | } | |
26420 | arg2 = static_cast< int >(val2); | |
26421 | { | |
26422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26423 | (arg1)->SetNoCopies(arg2); | |
26424 | wxPyEndAllowThreads(__tstate); | |
26425 | if (PyErr_Occurred()) SWIG_fail; | |
26426 | } | |
26427 | resultobj = SWIG_Py_Void(); | |
26428 | return resultobj; | |
26429 | fail: | |
26430 | return NULL; | |
26431 | } | |
26432 | ||
26433 | ||
26434 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26435 | PyObject *resultobj = 0; | |
26436 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26437 | bool arg2 ; | |
26438 | void *argp1 = 0 ; | |
26439 | int res1 = 0 ; | |
26440 | bool val2 ; | |
26441 | int ecode2 = 0 ; | |
26442 | PyObject * obj0 = 0 ; | |
26443 | PyObject * obj1 = 0 ; | |
26444 | char * kwnames[] = { | |
26445 | (char *) "self",(char *) "flag", NULL | |
26446 | }; | |
26447 | ||
26448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) SWIG_fail; | |
26449 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26450 | if (!SWIG_IsOK(res1)) { | |
26451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26452 | } | |
26453 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26454 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26455 | if (!SWIG_IsOK(ecode2)) { | |
26456 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "2"" of type '" "bool""'"); | |
26457 | } | |
26458 | arg2 = static_cast< bool >(val2); | |
26459 | { | |
26460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26461 | (arg1)->SetAllPages(arg2); | |
26462 | wxPyEndAllowThreads(__tstate); | |
26463 | if (PyErr_Occurred()) SWIG_fail; | |
26464 | } | |
26465 | resultobj = SWIG_Py_Void(); | |
26466 | return resultobj; | |
26467 | fail: | |
26468 | return NULL; | |
26469 | } | |
26470 | ||
26471 | ||
26472 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26473 | PyObject *resultobj = 0; | |
26474 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26475 | bool arg2 ; | |
26476 | void *argp1 = 0 ; | |
26477 | int res1 = 0 ; | |
26478 | bool val2 ; | |
26479 | int ecode2 = 0 ; | |
26480 | PyObject * obj0 = 0 ; | |
26481 | PyObject * obj1 = 0 ; | |
26482 | char * kwnames[] = { | |
26483 | (char *) "self",(char *) "flag", NULL | |
26484 | }; | |
26485 | ||
26486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26488 | if (!SWIG_IsOK(res1)) { | |
26489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26490 | } | |
26491 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26492 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26493 | if (!SWIG_IsOK(ecode2)) { | |
26494 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26495 | } | |
26496 | arg2 = static_cast< bool >(val2); | |
26497 | { | |
26498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26499 | (arg1)->SetSelection(arg2); | |
26500 | wxPyEndAllowThreads(__tstate); | |
26501 | if (PyErr_Occurred()) SWIG_fail; | |
26502 | } | |
26503 | resultobj = SWIG_Py_Void(); | |
26504 | return resultobj; | |
26505 | fail: | |
26506 | return NULL; | |
26507 | } | |
26508 | ||
26509 | ||
26510 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26511 | PyObject *resultobj = 0; | |
26512 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26513 | bool arg2 ; | |
26514 | void *argp1 = 0 ; | |
26515 | int res1 = 0 ; | |
26516 | bool val2 ; | |
26517 | int ecode2 = 0 ; | |
26518 | PyObject * obj0 = 0 ; | |
26519 | PyObject * obj1 = 0 ; | |
26520 | char * kwnames[] = { | |
26521 | (char *) "self",(char *) "flag", NULL | |
26522 | }; | |
26523 | ||
26524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
26525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26526 | if (!SWIG_IsOK(res1)) { | |
26527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26528 | } | |
26529 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26530 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26531 | if (!SWIG_IsOK(ecode2)) { | |
26532 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
26533 | } | |
26534 | arg2 = static_cast< bool >(val2); | |
26535 | { | |
26536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26537 | (arg1)->SetCollate(arg2); | |
26538 | wxPyEndAllowThreads(__tstate); | |
26539 | if (PyErr_Occurred()) SWIG_fail; | |
26540 | } | |
26541 | resultobj = SWIG_Py_Void(); | |
26542 | return resultobj; | |
26543 | fail: | |
26544 | return NULL; | |
26545 | } | |
26546 | ||
26547 | ||
26548 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26549 | PyObject *resultobj = 0; | |
26550 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26551 | bool arg2 ; | |
26552 | void *argp1 = 0 ; | |
26553 | int res1 = 0 ; | |
26554 | bool val2 ; | |
26555 | int ecode2 = 0 ; | |
26556 | PyObject * obj0 = 0 ; | |
26557 | PyObject * obj1 = 0 ; | |
26558 | char * kwnames[] = { | |
26559 | (char *) "self",(char *) "flag", NULL | |
26560 | }; | |
26561 | ||
26562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26563 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26564 | if (!SWIG_IsOK(res1)) { | |
26565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26566 | } | |
26567 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26568 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26569 | if (!SWIG_IsOK(ecode2)) { | |
26570 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26571 | } | |
26572 | arg2 = static_cast< bool >(val2); | |
26573 | { | |
26574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26575 | (arg1)->SetPrintToFile(arg2); | |
26576 | wxPyEndAllowThreads(__tstate); | |
26577 | if (PyErr_Occurred()) SWIG_fail; | |
26578 | } | |
26579 | resultobj = SWIG_Py_Void(); | |
26580 | return resultobj; | |
26581 | fail: | |
26582 | return NULL; | |
26583 | } | |
26584 | ||
26585 | ||
26586 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26587 | PyObject *resultobj = 0; | |
26588 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26589 | bool arg2 ; | |
26590 | void *argp1 = 0 ; | |
26591 | int res1 = 0 ; | |
26592 | bool val2 ; | |
26593 | int ecode2 = 0 ; | |
26594 | PyObject * obj0 = 0 ; | |
26595 | PyObject * obj1 = 0 ; | |
26596 | char * kwnames[] = { | |
26597 | (char *) "self",(char *) "flag", NULL | |
26598 | }; | |
26599 | ||
26600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26602 | if (!SWIG_IsOK(res1)) { | |
26603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26604 | } | |
26605 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26606 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26607 | if (!SWIG_IsOK(ecode2)) { | |
26608 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26609 | } | |
26610 | arg2 = static_cast< bool >(val2); | |
26611 | { | |
26612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26613 | (arg1)->EnablePrintToFile(arg2); | |
26614 | wxPyEndAllowThreads(__tstate); | |
26615 | if (PyErr_Occurred()) SWIG_fail; | |
26616 | } | |
26617 | resultobj = SWIG_Py_Void(); | |
26618 | return resultobj; | |
26619 | fail: | |
26620 | return NULL; | |
26621 | } | |
26622 | ||
26623 | ||
26624 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26625 | PyObject *resultobj = 0; | |
26626 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26627 | bool arg2 ; | |
26628 | void *argp1 = 0 ; | |
26629 | int res1 = 0 ; | |
26630 | bool val2 ; | |
26631 | int ecode2 = 0 ; | |
26632 | PyObject * obj0 = 0 ; | |
26633 | PyObject * obj1 = 0 ; | |
26634 | char * kwnames[] = { | |
26635 | (char *) "self",(char *) "flag", NULL | |
26636 | }; | |
26637 | ||
26638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26640 | if (!SWIG_IsOK(res1)) { | |
26641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26642 | } | |
26643 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26644 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26645 | if (!SWIG_IsOK(ecode2)) { | |
26646 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26647 | } | |
26648 | arg2 = static_cast< bool >(val2); | |
26649 | { | |
26650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26651 | (arg1)->EnableSelection(arg2); | |
26652 | wxPyEndAllowThreads(__tstate); | |
26653 | if (PyErr_Occurred()) SWIG_fail; | |
26654 | } | |
26655 | resultobj = SWIG_Py_Void(); | |
26656 | return resultobj; | |
26657 | fail: | |
26658 | return NULL; | |
26659 | } | |
26660 | ||
26661 | ||
26662 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26663 | PyObject *resultobj = 0; | |
26664 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26665 | bool arg2 ; | |
26666 | void *argp1 = 0 ; | |
26667 | int res1 = 0 ; | |
26668 | bool val2 ; | |
26669 | int ecode2 = 0 ; | |
26670 | PyObject * obj0 = 0 ; | |
26671 | PyObject * obj1 = 0 ; | |
26672 | char * kwnames[] = { | |
26673 | (char *) "self",(char *) "flag", NULL | |
26674 | }; | |
26675 | ||
26676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) SWIG_fail; | |
26677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26678 | if (!SWIG_IsOK(res1)) { | |
26679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26680 | } | |
26681 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26682 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26683 | if (!SWIG_IsOK(ecode2)) { | |
26684 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "2"" of type '" "bool""'"); | |
26685 | } | |
26686 | arg2 = static_cast< bool >(val2); | |
26687 | { | |
26688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26689 | (arg1)->EnablePageNumbers(arg2); | |
26690 | wxPyEndAllowThreads(__tstate); | |
26691 | if (PyErr_Occurred()) SWIG_fail; | |
26692 | } | |
26693 | resultobj = SWIG_Py_Void(); | |
26694 | return resultobj; | |
26695 | fail: | |
26696 | return NULL; | |
26697 | } | |
26698 | ||
26699 | ||
26700 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26701 | PyObject *resultobj = 0; | |
26702 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26703 | bool arg2 ; | |
26704 | void *argp1 = 0 ; | |
26705 | int res1 = 0 ; | |
26706 | bool val2 ; | |
26707 | int ecode2 = 0 ; | |
26708 | PyObject * obj0 = 0 ; | |
26709 | PyObject * obj1 = 0 ; | |
26710 | char * kwnames[] = { | |
26711 | (char *) "self",(char *) "flag", NULL | |
26712 | }; | |
26713 | ||
26714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
26715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26716 | if (!SWIG_IsOK(res1)) { | |
26717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26718 | } | |
26719 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26720 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26721 | if (!SWIG_IsOK(ecode2)) { | |
26722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
26723 | } | |
26724 | arg2 = static_cast< bool >(val2); | |
26725 | { | |
26726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26727 | (arg1)->EnableHelp(arg2); | |
26728 | wxPyEndAllowThreads(__tstate); | |
26729 | if (PyErr_Occurred()) SWIG_fail; | |
26730 | } | |
26731 | resultobj = SWIG_Py_Void(); | |
26732 | return resultobj; | |
26733 | fail: | |
26734 | return NULL; | |
26735 | } | |
d55e5bfc | 26736 | |
1bd55598 RD |
26737 | |
26738 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26739 | PyObject *resultobj = 0; | |
26740 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26741 | bool result; | |
26742 | void *argp1 = 0 ; | |
26743 | int res1 = 0 ; | |
26744 | PyObject *swig_obj[1] ; | |
26745 | ||
26746 | if (!args) SWIG_fail; | |
26747 | swig_obj[0] = args; | |
26748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26749 | if (!SWIG_IsOK(res1)) { | |
26750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26751 | } | |
26752 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26753 | { | |
26754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26755 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
26756 | wxPyEndAllowThreads(__tstate); | |
26757 | if (PyErr_Occurred()) SWIG_fail; | |
26758 | } | |
26759 | { | |
26760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26761 | } | |
26762 | return resultobj; | |
26763 | fail: | |
26764 | return NULL; | |
d55e5bfc RD |
26765 | } |
26766 | ||
26767 | ||
1bd55598 RD |
26768 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26769 | PyObject *resultobj = 0; | |
26770 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26771 | bool result; | |
26772 | void *argp1 = 0 ; | |
26773 | int res1 = 0 ; | |
26774 | PyObject *swig_obj[1] ; | |
26775 | ||
26776 | if (!args) SWIG_fail; | |
26777 | swig_obj[0] = args; | |
26778 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26779 | if (!SWIG_IsOK(res1)) { | |
26780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26781 | } | |
26782 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26783 | { | |
26784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26785 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
26786 | wxPyEndAllowThreads(__tstate); | |
26787 | if (PyErr_Occurred()) SWIG_fail; | |
26788 | } | |
26789 | { | |
26790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26791 | } | |
26792 | return resultobj; | |
26793 | fail: | |
26794 | return NULL; | |
d55e5bfc RD |
26795 | } |
26796 | ||
26797 | ||
1bd55598 RD |
26798 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26799 | PyObject *resultobj = 0; | |
26800 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26801 | bool result; | |
26802 | void *argp1 = 0 ; | |
26803 | int res1 = 0 ; | |
26804 | PyObject *swig_obj[1] ; | |
26805 | ||
26806 | if (!args) SWIG_fail; | |
26807 | swig_obj[0] = args; | |
26808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26809 | if (!SWIG_IsOK(res1)) { | |
26810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26811 | } | |
26812 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26813 | { | |
26814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26815 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
26816 | wxPyEndAllowThreads(__tstate); | |
26817 | if (PyErr_Occurred()) SWIG_fail; | |
26818 | } | |
26819 | { | |
26820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26821 | } | |
26822 | return resultobj; | |
26823 | fail: | |
26824 | return NULL; | |
d55e5bfc RD |
26825 | } |
26826 | ||
26827 | ||
1bd55598 RD |
26828 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26829 | PyObject *resultobj = 0; | |
26830 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26831 | bool result; | |
26832 | void *argp1 = 0 ; | |
26833 | int res1 = 0 ; | |
26834 | PyObject *swig_obj[1] ; | |
26835 | ||
26836 | if (!args) SWIG_fail; | |
26837 | swig_obj[0] = args; | |
26838 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26839 | if (!SWIG_IsOK(res1)) { | |
26840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26841 | } | |
26842 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26843 | { | |
26844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26845 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
26846 | wxPyEndAllowThreads(__tstate); | |
26847 | if (PyErr_Occurred()) SWIG_fail; | |
26848 | } | |
26849 | { | |
26850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26851 | } | |
26852 | return resultobj; | |
26853 | fail: | |
26854 | return NULL; | |
d55e5bfc RD |
26855 | } |
26856 | ||
26857 | ||
b39fe951 | 26858 | SWIGINTERN PyObject *_wrap_PrintDialogData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
1bd55598 RD |
26859 | PyObject *resultobj = 0; |
26860 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26861 | bool result; | |
26862 | void *argp1 = 0 ; | |
26863 | int res1 = 0 ; | |
26864 | PyObject *swig_obj[1] ; | |
26865 | ||
26866 | if (!args) SWIG_fail; | |
26867 | swig_obj[0] = args; | |
26868 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26869 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 26870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_IsOk" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); |
1bd55598 RD |
26871 | } |
26872 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26873 | { | |
26874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 26875 | result = (bool)((wxPrintDialogData const *)arg1)->IsOk(); |
1bd55598 RD |
26876 | wxPyEndAllowThreads(__tstate); |
26877 | if (PyErr_Occurred()) SWIG_fail; | |
26878 | } | |
26879 | { | |
26880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26881 | } | |
26882 | return resultobj; | |
26883 | fail: | |
26884 | return NULL; | |
d55e5bfc RD |
26885 | } |
26886 | ||
26887 | ||
1bd55598 RD |
26888 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26889 | PyObject *resultobj = 0; | |
26890 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26891 | wxPrintData *result = 0 ; | |
26892 | void *argp1 = 0 ; | |
26893 | int res1 = 0 ; | |
26894 | PyObject *swig_obj[1] ; | |
26895 | ||
26896 | if (!args) SWIG_fail; | |
26897 | swig_obj[0] = args; | |
26898 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26899 | if (!SWIG_IsOK(res1)) { | |
26900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26901 | } | |
26902 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26903 | { | |
26904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 26905 | { |
1bd55598 RD |
26906 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
26907 | result = (wxPrintData *) &_result_ref; | |
26908 | } | |
26909 | wxPyEndAllowThreads(__tstate); | |
26910 | if (PyErr_Occurred()) SWIG_fail; | |
26911 | } | |
26912 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
26913 | return resultobj; | |
26914 | fail: | |
26915 | return NULL; | |
26916 | } | |
26917 | ||
26918 | ||
26919 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26920 | PyObject *resultobj = 0; | |
26921 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26922 | wxPrintData *arg2 = 0 ; | |
26923 | void *argp1 = 0 ; | |
26924 | int res1 = 0 ; | |
26925 | void *argp2 = 0 ; | |
26926 | int res2 = 0 ; | |
26927 | PyObject * obj0 = 0 ; | |
26928 | PyObject * obj1 = 0 ; | |
26929 | char * kwnames[] = { | |
26930 | (char *) "self",(char *) "printData", NULL | |
26931 | }; | |
26932 | ||
26933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26935 | if (!SWIG_IsOK(res1)) { | |
26936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26937 | } | |
26938 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26939 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26940 | if (!SWIG_IsOK(res2)) { | |
26941 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26942 | } | |
26943 | if (!argp2) { | |
26944 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26945 | } | |
26946 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
26947 | { | |
26948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26949 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
26950 | wxPyEndAllowThreads(__tstate); | |
26951 | if (PyErr_Occurred()) SWIG_fail; | |
26952 | } | |
26953 | resultobj = SWIG_Py_Void(); | |
26954 | return resultobj; | |
26955 | fail: | |
26956 | return NULL; | |
d55e5bfc RD |
26957 | } |
26958 | ||
26959 | ||
1bd55598 RD |
26960 | SWIGINTERN PyObject *PrintDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26961 | PyObject *obj; | |
26962 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26963 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialogData, SWIG_NewClientData(obj)); | |
26964 | return SWIG_Py_Void(); | |
26965 | } | |
26966 | ||
26967 | SWIGINTERN PyObject *PrintDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26968 | return SWIG_Python_InitShadowInstance(args); | |
26969 | } | |
26970 | ||
26971 | SWIGINTERN PyObject *_wrap_new_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26972 | PyObject *resultobj = 0; | |
26973 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26974 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
26975 | wxPrintDialog *result = 0 ; | |
26976 | void *argp1 = 0 ; | |
26977 | int res1 = 0 ; | |
26978 | void *argp2 = 0 ; | |
26979 | int res2 = 0 ; | |
26980 | PyObject * obj0 = 0 ; | |
26981 | PyObject * obj1 = 0 ; | |
26982 | char * kwnames[] = { | |
26983 | (char *) "parent",(char *) "data", NULL | |
26984 | }; | |
26985 | ||
26986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
26987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26988 | if (!SWIG_IsOK(res1)) { | |
26989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
26990 | } | |
26991 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
26992 | if (obj1) { | |
26993 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26994 | if (!SWIG_IsOK(res2)) { | |
26995 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintDialog" "', expected argument " "2"" of type '" "wxPrintDialogData *""'"); | |
d55e5bfc | 26996 | } |
1bd55598 RD |
26997 | arg2 = reinterpret_cast< wxPrintDialogData * >(argp2); |
26998 | } | |
26999 | { | |
27000 | if (!wxPyCheckForApp()) SWIG_fail; | |
27001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27002 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
27003 | wxPyEndAllowThreads(__tstate); | |
27004 | if (PyErr_Occurred()) SWIG_fail; | |
27005 | } | |
27006 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_NEW | 0 ); | |
27007 | return resultobj; | |
27008 | fail: | |
27009 | return NULL; | |
d55e5bfc RD |
27010 | } |
27011 | ||
27012 | ||
06810ecf RD |
27013 | SWIGINTERN PyObject *_wrap_delete_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27014 | PyObject *resultobj = 0; | |
27015 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27016 | void *argp1 = 0 ; | |
27017 | int res1 = 0 ; | |
27018 | PyObject *swig_obj[1] ; | |
27019 | ||
27020 | if (!args) SWIG_fail; | |
27021 | swig_obj[0] = args; | |
27022 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_DISOWN | 0 ); | |
27023 | if (!SWIG_IsOK(res1)) { | |
27024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialog" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27025 | } | |
27026 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27027 | { | |
27028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27029 | delete arg1; | |
27030 | ||
27031 | wxPyEndAllowThreads(__tstate); | |
27032 | if (PyErr_Occurred()) SWIG_fail; | |
27033 | } | |
27034 | resultobj = SWIG_Py_Void(); | |
27035 | return resultobj; | |
27036 | fail: | |
27037 | return NULL; | |
27038 | } | |
27039 | ||
27040 | ||
1bd55598 RD |
27041 | SWIGINTERN PyObject *_wrap_PrintDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27042 | PyObject *resultobj = 0; | |
27043 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27044 | int result; | |
27045 | void *argp1 = 0 ; | |
27046 | int res1 = 0 ; | |
27047 | PyObject *swig_obj[1] ; | |
27048 | ||
27049 | if (!args) SWIG_fail; | |
27050 | swig_obj[0] = args; | |
27051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27052 | if (!SWIG_IsOK(res1)) { | |
27053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_ShowModal" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27054 | } | |
27055 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27056 | { | |
27057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27058 | result = (int)(arg1)->ShowModal(); | |
27059 | wxPyEndAllowThreads(__tstate); | |
27060 | if (PyErr_Occurred()) SWIG_fail; | |
27061 | } | |
27062 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27063 | return resultobj; | |
27064 | fail: | |
27065 | return NULL; | |
d55e5bfc RD |
27066 | } |
27067 | ||
27068 | ||
1bd55598 RD |
27069 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27070 | PyObject *resultobj = 0; | |
27071 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27072 | wxPrintDialogData *result = 0 ; | |
27073 | void *argp1 = 0 ; | |
27074 | int res1 = 0 ; | |
27075 | PyObject *swig_obj[1] ; | |
27076 | ||
27077 | if (!args) SWIG_fail; | |
27078 | swig_obj[0] = args; | |
27079 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27080 | if (!SWIG_IsOK(res1)) { | |
27081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27082 | } | |
27083 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27084 | { | |
27085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27086 | { |
1bd55598 RD |
27087 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
27088 | result = (wxPrintDialogData *) &_result_ref; | |
d55e5bfc | 27089 | } |
1bd55598 RD |
27090 | wxPyEndAllowThreads(__tstate); |
27091 | if (PyErr_Occurred()) SWIG_fail; | |
27092 | } | |
27093 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27094 | return resultobj; | |
27095 | fail: | |
27096 | return NULL; | |
d55e5bfc RD |
27097 | } |
27098 | ||
27099 | ||
1bd55598 RD |
27100 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27101 | PyObject *resultobj = 0; | |
27102 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27103 | wxPrintData *result = 0 ; | |
27104 | void *argp1 = 0 ; | |
27105 | int res1 = 0 ; | |
27106 | PyObject *swig_obj[1] ; | |
27107 | ||
27108 | if (!args) SWIG_fail; | |
27109 | swig_obj[0] = args; | |
27110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27111 | if (!SWIG_IsOK(res1)) { | |
27112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27113 | } | |
27114 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27115 | { | |
27116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27117 | { |
1bd55598 RD |
27118 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
27119 | result = (wxPrintData *) &_result_ref; | |
d55e5bfc | 27120 | } |
1bd55598 RD |
27121 | wxPyEndAllowThreads(__tstate); |
27122 | if (PyErr_Occurred()) SWIG_fail; | |
27123 | } | |
27124 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
27125 | return resultobj; | |
27126 | fail: | |
27127 | return NULL; | |
d55e5bfc RD |
27128 | } |
27129 | ||
27130 | ||
1bd55598 RD |
27131 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27132 | PyObject *resultobj = 0; | |
27133 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27134 | wxDC *result = 0 ; | |
27135 | void *argp1 = 0 ; | |
27136 | int res1 = 0 ; | |
27137 | PyObject *swig_obj[1] ; | |
27138 | ||
27139 | if (!args) SWIG_fail; | |
27140 | swig_obj[0] = args; | |
27141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27142 | if (!SWIG_IsOK(res1)) { | |
27143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDC" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27144 | } | |
27145 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27146 | { | |
27147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27148 | result = (wxDC *)(arg1)->GetPrintDC(); | |
27149 | wxPyEndAllowThreads(__tstate); | |
27150 | if (PyErr_Occurred()) SWIG_fail; | |
27151 | } | |
27152 | { | |
27153 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
27154 | } | |
27155 | return resultobj; | |
27156 | fail: | |
27157 | return NULL; | |
d55e5bfc RD |
27158 | } |
27159 | ||
27160 | ||
1bd55598 RD |
27161 | SWIGINTERN PyObject *PrintDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27162 | PyObject *obj; | |
27163 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27164 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialog, SWIG_NewClientData(obj)); | |
27165 | return SWIG_Py_Void(); | |
d55e5bfc RD |
27166 | } |
27167 | ||
1bd55598 RD |
27168 | SWIGINTERN PyObject *PrintDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27169 | return SWIG_Python_InitShadowInstance(args); | |
27170 | } | |
d55e5bfc | 27171 | |
1bd55598 RD |
27172 | SWIGINTERN PyObject *_wrap_new_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27173 | PyObject *resultobj = 0; | |
27174 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
27175 | wxPrinter *result = 0 ; | |
27176 | void *argp1 = 0 ; | |
27177 | int res1 = 0 ; | |
27178 | PyObject * obj0 = 0 ; | |
27179 | char * kwnames[] = { | |
27180 | (char *) "data", NULL | |
27181 | }; | |
27182 | ||
27183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) SWIG_fail; | |
27184 | if (obj0) { | |
27185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27186 | if (!SWIG_IsOK(res1)) { | |
27187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Printer" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
d55e5bfc | 27188 | } |
1bd55598 RD |
27189 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); |
27190 | } | |
27191 | { | |
27192 | if (!wxPyCheckForApp()) SWIG_fail; | |
27193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27194 | result = (wxPrinter *)new wxPrinter(arg1); | |
27195 | wxPyEndAllowThreads(__tstate); | |
27196 | if (PyErr_Occurred()) SWIG_fail; | |
27197 | } | |
27198 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinter, SWIG_POINTER_NEW | 0 ); | |
27199 | return resultobj; | |
27200 | fail: | |
27201 | return NULL; | |
d55e5bfc RD |
27202 | } |
27203 | ||
27204 | ||
1bd55598 RD |
27205 | SWIGINTERN PyObject *_wrap_delete_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27206 | PyObject *resultobj = 0; | |
27207 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27208 | void *argp1 = 0 ; | |
27209 | int res1 = 0 ; | |
27210 | PyObject *swig_obj[1] ; | |
27211 | ||
27212 | if (!args) SWIG_fail; | |
27213 | swig_obj[0] = args; | |
27214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, SWIG_POINTER_DISOWN | 0 ); | |
27215 | if (!SWIG_IsOK(res1)) { | |
27216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printer" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27217 | } | |
27218 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27219 | { | |
27220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27221 | delete arg1; | |
d55e5bfc | 27222 | |
1bd55598 RD |
27223 | wxPyEndAllowThreads(__tstate); |
27224 | if (PyErr_Occurred()) SWIG_fail; | |
27225 | } | |
27226 | resultobj = SWIG_Py_Void(); | |
27227 | return resultobj; | |
27228 | fail: | |
27229 | return NULL; | |
27230 | } | |
27231 | ||
27232 | ||
27233 | SWIGINTERN PyObject *_wrap_Printer_CreateAbortWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27234 | PyObject *resultobj = 0; | |
27235 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27236 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27237 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27238 | wxWindow *result = 0 ; | |
27239 | void *argp1 = 0 ; | |
27240 | int res1 = 0 ; | |
27241 | void *argp2 = 0 ; | |
27242 | int res2 = 0 ; | |
27243 | void *argp3 = 0 ; | |
27244 | int res3 = 0 ; | |
27245 | PyObject * obj0 = 0 ; | |
27246 | PyObject * obj1 = 0 ; | |
27247 | PyObject * obj2 = 0 ; | |
27248 | char * kwnames[] = { | |
27249 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
27250 | }; | |
27251 | ||
27252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27254 | if (!SWIG_IsOK(res1)) { | |
27255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_CreateAbortWindow" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27256 | } | |
27257 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27258 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27259 | if (!SWIG_IsOK(res2)) { | |
27260 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_CreateAbortWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27261 | } | |
27262 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27263 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27264 | if (!SWIG_IsOK(res3)) { | |
27265 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_CreateAbortWindow" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27266 | } | |
27267 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27268 | { | |
27269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27270 | result = (wxWindow *)(arg1)->CreateAbortWindow(arg2,arg3); | |
27271 | wxPyEndAllowThreads(__tstate); | |
27272 | if (PyErr_Occurred()) SWIG_fail; | |
27273 | } | |
27274 | { | |
27275 | resultobj = wxPyMake_wxObject(result, 0); | |
27276 | } | |
27277 | return resultobj; | |
27278 | fail: | |
27279 | return NULL; | |
27280 | } | |
27281 | ||
27282 | ||
27283 | SWIGINTERN PyObject *_wrap_Printer_ReportError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27284 | PyObject *resultobj = 0; | |
27285 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27286 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27287 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27288 | wxString *arg4 = 0 ; | |
27289 | void *argp1 = 0 ; | |
27290 | int res1 = 0 ; | |
27291 | void *argp2 = 0 ; | |
27292 | int res2 = 0 ; | |
27293 | void *argp3 = 0 ; | |
27294 | int res3 = 0 ; | |
27295 | bool temp4 = false ; | |
27296 | PyObject * obj0 = 0 ; | |
27297 | PyObject * obj1 = 0 ; | |
27298 | PyObject * obj2 = 0 ; | |
27299 | PyObject * obj3 = 0 ; | |
27300 | char * kwnames[] = { | |
27301 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
27302 | }; | |
27303 | ||
27304 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27305 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27306 | if (!SWIG_IsOK(res1)) { | |
27307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_ReportError" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27308 | } | |
27309 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27310 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27311 | if (!SWIG_IsOK(res2)) { | |
27312 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_ReportError" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27313 | } | |
27314 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27315 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27316 | if (!SWIG_IsOK(res3)) { | |
27317 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_ReportError" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27318 | } | |
27319 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27320 | { | |
27321 | arg4 = wxString_in_helper(obj3); | |
27322 | if (arg4 == NULL) SWIG_fail; | |
27323 | temp4 = true; | |
27324 | } | |
27325 | { | |
27326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27327 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
27328 | wxPyEndAllowThreads(__tstate); | |
27329 | if (PyErr_Occurred()) SWIG_fail; | |
27330 | } | |
27331 | resultobj = SWIG_Py_Void(); | |
27332 | { | |
27333 | if (temp4) | |
27334 | delete arg4; | |
27335 | } | |
27336 | return resultobj; | |
27337 | fail: | |
27338 | { | |
27339 | if (temp4) | |
27340 | delete arg4; | |
27341 | } | |
27342 | return NULL; | |
27343 | } | |
27344 | ||
27345 | ||
27346 | SWIGINTERN PyObject *_wrap_Printer_Setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27347 | PyObject *resultobj = 0; | |
27348 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27349 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27350 | bool result; | |
27351 | void *argp1 = 0 ; | |
27352 | int res1 = 0 ; | |
27353 | void *argp2 = 0 ; | |
27354 | int res2 = 0 ; | |
27355 | PyObject * obj0 = 0 ; | |
27356 | PyObject * obj1 = 0 ; | |
27357 | char * kwnames[] = { | |
27358 | (char *) "self",(char *) "parent", NULL | |
27359 | }; | |
27360 | ||
27361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) SWIG_fail; | |
27362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27363 | if (!SWIG_IsOK(res1)) { | |
27364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Setup" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27365 | } | |
27366 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27367 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27368 | if (!SWIG_IsOK(res2)) { | |
27369 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Setup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27370 | } | |
27371 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27372 | { | |
27373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27374 | result = (bool)(arg1)->Setup(arg2); | |
27375 | wxPyEndAllowThreads(__tstate); | |
27376 | if (PyErr_Occurred()) SWIG_fail; | |
27377 | } | |
27378 | { | |
27379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27380 | } | |
27381 | return resultobj; | |
27382 | fail: | |
27383 | return NULL; | |
27384 | } | |
27385 | ||
27386 | ||
27387 | SWIGINTERN PyObject *_wrap_Printer_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27388 | PyObject *resultobj = 0; | |
27389 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27390 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27391 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27392 | bool arg4 = (bool) true ; | |
27393 | bool result; | |
27394 | void *argp1 = 0 ; | |
27395 | int res1 = 0 ; | |
27396 | void *argp2 = 0 ; | |
27397 | int res2 = 0 ; | |
27398 | void *argp3 = 0 ; | |
27399 | int res3 = 0 ; | |
27400 | bool val4 ; | |
27401 | int ecode4 = 0 ; | |
27402 | PyObject * obj0 = 0 ; | |
27403 | PyObject * obj1 = 0 ; | |
27404 | PyObject * obj2 = 0 ; | |
27405 | PyObject * obj3 = 0 ; | |
27406 | char * kwnames[] = { | |
27407 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
27408 | }; | |
27409 | ||
27410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27411 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27412 | if (!SWIG_IsOK(res1)) { | |
27413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Print" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27414 | } | |
27415 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27416 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27417 | if (!SWIG_IsOK(res2)) { | |
27418 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Print" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27419 | } | |
27420 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27421 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27422 | if (!SWIG_IsOK(res3)) { | |
27423 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_Print" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27424 | } | |
27425 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27426 | if (obj3) { | |
27427 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
27428 | if (!SWIG_IsOK(ecode4)) { | |
27429 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Printer_Print" "', expected argument " "4"" of type '" "bool""'"); | |
27430 | } | |
27431 | arg4 = static_cast< bool >(val4); | |
27432 | } | |
27433 | { | |
27434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27435 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
27436 | wxPyEndAllowThreads(__tstate); | |
27437 | if (PyErr_Occurred()) SWIG_fail; | |
27438 | } | |
27439 | { | |
27440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27441 | } | |
27442 | return resultobj; | |
27443 | fail: | |
27444 | return NULL; | |
27445 | } | |
27446 | ||
27447 | ||
27448 | SWIGINTERN PyObject *_wrap_Printer_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27449 | PyObject *resultobj = 0; | |
27450 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27451 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27452 | wxDC *result = 0 ; | |
27453 | void *argp1 = 0 ; | |
27454 | int res1 = 0 ; | |
27455 | void *argp2 = 0 ; | |
27456 | int res2 = 0 ; | |
27457 | PyObject * obj0 = 0 ; | |
27458 | PyObject * obj1 = 0 ; | |
27459 | char * kwnames[] = { | |
27460 | (char *) "self",(char *) "parent", NULL | |
27461 | }; | |
27462 | ||
27463 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27464 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27465 | if (!SWIG_IsOK(res1)) { | |
27466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_PrintDialog" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27467 | } | |
27468 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27469 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27470 | if (!SWIG_IsOK(res2)) { | |
27471 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_PrintDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27472 | } | |
27473 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27474 | { | |
27475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27476 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
27477 | wxPyEndAllowThreads(__tstate); | |
27478 | if (PyErr_Occurred()) SWIG_fail; | |
27479 | } | |
27480 | { | |
27481 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27482 | } | |
27483 | return resultobj; | |
27484 | fail: | |
27485 | return NULL; | |
d55e5bfc RD |
27486 | } |
27487 | ||
27488 | ||
1bd55598 RD |
27489 | SWIGINTERN PyObject *_wrap_Printer_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27490 | PyObject *resultobj = 0; | |
27491 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27492 | wxPrintDialogData *result = 0 ; | |
27493 | void *argp1 = 0 ; | |
27494 | int res1 = 0 ; | |
27495 | PyObject *swig_obj[1] ; | |
27496 | ||
27497 | if (!args) SWIG_fail; | |
27498 | swig_obj[0] = args; | |
27499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27500 | if (!SWIG_IsOK(res1)) { | |
27501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrinter const *""'"); | |
27502 | } | |
27503 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27504 | { | |
27505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 27506 | { |
1bd55598 RD |
27507 | wxPrintDialogData &_result_ref = ((wxPrinter const *)arg1)->GetPrintDialogData(); |
27508 | result = (wxPrintDialogData *) &_result_ref; | |
36ed4f51 | 27509 | } |
1bd55598 RD |
27510 | wxPyEndAllowThreads(__tstate); |
27511 | if (PyErr_Occurred()) SWIG_fail; | |
27512 | } | |
27513 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27514 | return resultobj; | |
27515 | fail: | |
27516 | return NULL; | |
d55e5bfc RD |
27517 | } |
27518 | ||
27519 | ||
1bd55598 RD |
27520 | SWIGINTERN PyObject *_wrap_Printer_GetAbort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27521 | PyObject *resultobj = 0; | |
27522 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27523 | bool result; | |
27524 | void *argp1 = 0 ; | |
27525 | int res1 = 0 ; | |
27526 | PyObject *swig_obj[1] ; | |
27527 | ||
27528 | if (!args) SWIG_fail; | |
27529 | swig_obj[0] = args; | |
27530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27531 | if (!SWIG_IsOK(res1)) { | |
27532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetAbort" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27533 | } | |
27534 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27535 | { | |
27536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27537 | result = (bool)(arg1)->GetAbort(); | |
27538 | wxPyEndAllowThreads(__tstate); | |
27539 | if (PyErr_Occurred()) SWIG_fail; | |
27540 | } | |
27541 | { | |
27542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27543 | } | |
27544 | return resultobj; | |
27545 | fail: | |
27546 | return NULL; | |
d55e5bfc RD |
27547 | } |
27548 | ||
27549 | ||
1bd55598 RD |
27550 | SWIGINTERN PyObject *_wrap_Printer_GetLastError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27551 | PyObject *resultobj = 0; | |
27552 | wxPrinterError result; | |
27553 | ||
27554 | if (!SWIG_Python_UnpackTuple(args,"Printer_GetLastError",0,0,0)) SWIG_fail; | |
27555 | { | |
27556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27557 | result = (wxPrinterError)wxPrinter::GetLastError(); | |
27558 | wxPyEndAllowThreads(__tstate); | |
27559 | if (PyErr_Occurred()) SWIG_fail; | |
27560 | } | |
27561 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27562 | return resultobj; | |
27563 | fail: | |
27564 | return NULL; | |
d55e5bfc RD |
27565 | } |
27566 | ||
27567 | ||
1bd55598 RD |
27568 | SWIGINTERN PyObject *Printer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27569 | PyObject *obj; | |
27570 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27571 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinter, SWIG_NewClientData(obj)); | |
27572 | return SWIG_Py_Void(); | |
d55e5bfc RD |
27573 | } |
27574 | ||
1bd55598 RD |
27575 | SWIGINTERN PyObject *Printer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27576 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
27577 | } |
27578 | ||
1bd55598 RD |
27579 | SWIGINTERN PyObject *_wrap_new_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27580 | PyObject *resultobj = 0; | |
27581 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
27582 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27583 | wxPyPrintout *result = 0 ; | |
27584 | bool temp1 = false ; | |
27585 | PyObject * obj0 = 0 ; | |
27586 | char * kwnames[] = { | |
27587 | (char *) "title", NULL | |
27588 | }; | |
27589 | ||
27590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) SWIG_fail; | |
27591 | if (obj0) { | |
d55e5bfc | 27592 | { |
1bd55598 RD |
27593 | arg1 = wxString_in_helper(obj0); |
27594 | if (arg1 == NULL) SWIG_fail; | |
27595 | temp1 = true; | |
d55e5bfc | 27596 | } |
1bd55598 RD |
27597 | } |
27598 | { | |
27599 | if (!wxPyCheckForApp()) SWIG_fail; | |
27600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27601 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
27602 | wxPyEndAllowThreads(__tstate); | |
27603 | if (PyErr_Occurred()) SWIG_fail; | |
27604 | } | |
27605 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_NEW | 0 ); | |
27606 | { | |
27607 | if (temp1) | |
27608 | delete arg1; | |
27609 | } | |
27610 | return resultobj; | |
27611 | fail: | |
27612 | { | |
27613 | if (temp1) | |
27614 | delete arg1; | |
27615 | } | |
27616 | return NULL; | |
d55e5bfc RD |
27617 | } |
27618 | ||
27619 | ||
1bd55598 RD |
27620 | SWIGINTERN PyObject *_wrap_delete_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27621 | PyObject *resultobj = 0; | |
27622 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27623 | void *argp1 = 0 ; | |
27624 | int res1 = 0 ; | |
27625 | PyObject *swig_obj[1] ; | |
27626 | ||
27627 | if (!args) SWIG_fail; | |
27628 | swig_obj[0] = args; | |
27629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
27630 | if (!SWIG_IsOK(res1)) { | |
27631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printout" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27632 | } | |
27633 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27634 | { | |
27635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27636 | delete arg1; | |
d55e5bfc | 27637 | |
1bd55598 RD |
27638 | wxPyEndAllowThreads(__tstate); |
27639 | if (PyErr_Occurred()) SWIG_fail; | |
27640 | } | |
27641 | resultobj = SWIG_Py_Void(); | |
27642 | return resultobj; | |
27643 | fail: | |
27644 | return NULL; | |
27645 | } | |
27646 | ||
27647 | ||
27648 | SWIGINTERN PyObject *_wrap_Printout__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27649 | PyObject *resultobj = 0; | |
27650 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27651 | PyObject *arg2 = (PyObject *) 0 ; | |
27652 | PyObject *arg3 = (PyObject *) 0 ; | |
27653 | void *argp1 = 0 ; | |
27654 | int res1 = 0 ; | |
27655 | PyObject * obj0 = 0 ; | |
27656 | PyObject * obj1 = 0 ; | |
27657 | PyObject * obj2 = 0 ; | |
27658 | char * kwnames[] = { | |
27659 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27660 | }; | |
27661 | ||
27662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27664 | if (!SWIG_IsOK(res1)) { | |
27665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27666 | } | |
27667 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27668 | arg2 = obj1; | |
27669 | arg3 = obj2; | |
27670 | { | |
27671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27672 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27673 | wxPyEndAllowThreads(__tstate); | |
27674 | if (PyErr_Occurred()) SWIG_fail; | |
27675 | } | |
27676 | resultobj = SWIG_Py_Void(); | |
27677 | return resultobj; | |
27678 | fail: | |
27679 | return NULL; | |
d55e5bfc RD |
27680 | } |
27681 | ||
27682 | ||
1bd55598 RD |
27683 | SWIGINTERN PyObject *_wrap_Printout_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27684 | PyObject *resultobj = 0; | |
27685 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27686 | wxString result; | |
27687 | void *argp1 = 0 ; | |
27688 | int res1 = 0 ; | |
27689 | PyObject *swig_obj[1] ; | |
27690 | ||
27691 | if (!args) SWIG_fail; | |
27692 | swig_obj[0] = args; | |
27693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27694 | if (!SWIG_IsOK(res1)) { | |
27695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetTitle" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
27696 | } | |
27697 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27698 | { | |
27699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27700 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
27701 | wxPyEndAllowThreads(__tstate); | |
27702 | if (PyErr_Occurred()) SWIG_fail; | |
27703 | } | |
27704 | { | |
27705 | #if wxUSE_UNICODE | |
27706 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27707 | #else | |
27708 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27709 | #endif | |
27710 | } | |
27711 | return resultobj; | |
27712 | fail: | |
27713 | return NULL; | |
d55e5bfc RD |
27714 | } |
27715 | ||
27716 | ||
1bd55598 RD |
27717 | SWIGINTERN PyObject *_wrap_Printout_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27718 | PyObject *resultobj = 0; | |
27719 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27720 | wxDC *result = 0 ; | |
27721 | void *argp1 = 0 ; | |
27722 | int res1 = 0 ; | |
27723 | PyObject *swig_obj[1] ; | |
27724 | ||
27725 | if (!args) SWIG_fail; | |
27726 | swig_obj[0] = args; | |
27727 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27728 | if (!SWIG_IsOK(res1)) { | |
27729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27730 | } | |
27731 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27732 | { | |
27733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27734 | result = (wxDC *)(arg1)->GetDC(); | |
27735 | wxPyEndAllowThreads(__tstate); | |
27736 | if (PyErr_Occurred()) SWIG_fail; | |
27737 | } | |
27738 | { | |
27739 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27740 | } | |
27741 | return resultobj; | |
27742 | fail: | |
27743 | return NULL; | |
27744 | } | |
27745 | ||
27746 | ||
27747 | SWIGINTERN PyObject *_wrap_Printout_SetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27748 | PyObject *resultobj = 0; | |
27749 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27750 | wxDC *arg2 = (wxDC *) 0 ; | |
27751 | void *argp1 = 0 ; | |
27752 | int res1 = 0 ; | |
27753 | void *argp2 = 0 ; | |
27754 | int res2 = 0 ; | |
27755 | PyObject * obj0 = 0 ; | |
27756 | PyObject * obj1 = 0 ; | |
27757 | char * kwnames[] = { | |
27758 | (char *) "self",(char *) "dc", NULL | |
27759 | }; | |
27760 | ||
27761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
27762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27763 | if (!SWIG_IsOK(res1)) { | |
27764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27765 | } | |
27766 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27767 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
27768 | if (!SWIG_IsOK(res2)) { | |
27769 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_SetDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
27770 | } | |
27771 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
27772 | { | |
27773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27774 | (arg1)->SetDC(arg2); | |
27775 | wxPyEndAllowThreads(__tstate); | |
27776 | if (PyErr_Occurred()) SWIG_fail; | |
27777 | } | |
27778 | resultobj = SWIG_Py_Void(); | |
27779 | return resultobj; | |
27780 | fail: | |
27781 | return NULL; | |
27782 | } | |
27783 | ||
27784 | ||
27785 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27786 | PyObject *resultobj = 0; | |
27787 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27788 | int arg2 ; | |
27789 | int arg3 ; | |
27790 | void *argp1 = 0 ; | |
27791 | int res1 = 0 ; | |
27792 | int val2 ; | |
27793 | int ecode2 = 0 ; | |
27794 | int val3 ; | |
27795 | int ecode3 = 0 ; | |
27796 | PyObject * obj0 = 0 ; | |
27797 | PyObject * obj1 = 0 ; | |
27798 | PyObject * obj2 = 0 ; | |
27799 | char * kwnames[] = { | |
27800 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27801 | }; | |
27802 | ||
27803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27805 | if (!SWIG_IsOK(res1)) { | |
27806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27807 | } | |
27808 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27809 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27810 | if (!SWIG_IsOK(ecode2)) { | |
27811 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizePixels" "', expected argument " "2"" of type '" "int""'"); | |
27812 | } | |
27813 | arg2 = static_cast< int >(val2); | |
27814 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27815 | if (!SWIG_IsOK(ecode3)) { | |
27816 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizePixels" "', expected argument " "3"" of type '" "int""'"); | |
27817 | } | |
27818 | arg3 = static_cast< int >(val3); | |
27819 | { | |
27820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27821 | (arg1)->SetPageSizePixels(arg2,arg3); | |
27822 | wxPyEndAllowThreads(__tstate); | |
27823 | if (PyErr_Occurred()) SWIG_fail; | |
27824 | } | |
27825 | resultobj = SWIG_Py_Void(); | |
27826 | return resultobj; | |
27827 | fail: | |
27828 | return NULL; | |
27829 | } | |
27830 | ||
27831 | ||
27832 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27833 | PyObject *resultobj = 0; | |
27834 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27835 | int *arg2 = (int *) 0 ; | |
27836 | int *arg3 = (int *) 0 ; | |
27837 | void *argp1 = 0 ; | |
27838 | int res1 = 0 ; | |
27839 | int temp2 ; | |
27840 | int res2 = SWIG_TMPOBJ ; | |
27841 | int temp3 ; | |
27842 | int res3 = SWIG_TMPOBJ ; | |
27843 | PyObject *swig_obj[1] ; | |
27844 | ||
27845 | arg2 = &temp2; | |
27846 | arg3 = &temp3; | |
27847 | if (!args) SWIG_fail; | |
27848 | swig_obj[0] = args; | |
27849 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27850 | if (!SWIG_IsOK(res1)) { | |
27851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27852 | } | |
27853 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27854 | { | |
27855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27856 | (arg1)->GetPageSizePixels(arg2,arg3); | |
27857 | wxPyEndAllowThreads(__tstate); | |
27858 | if (PyErr_Occurred()) SWIG_fail; | |
27859 | } | |
27860 | resultobj = SWIG_Py_Void(); | |
27861 | if (SWIG_IsTmpObj(res2)) { | |
27862 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27863 | } else { | |
27864 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27865 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27866 | } | |
27867 | if (SWIG_IsTmpObj(res3)) { | |
27868 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27869 | } else { | |
27870 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27871 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27872 | } | |
27873 | return resultobj; | |
27874 | fail: | |
27875 | return NULL; | |
27876 | } | |
27877 | ||
27878 | ||
27879 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27880 | PyObject *resultobj = 0; | |
27881 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27882 | int arg2 ; | |
27883 | int arg3 ; | |
27884 | void *argp1 = 0 ; | |
27885 | int res1 = 0 ; | |
27886 | int val2 ; | |
27887 | int ecode2 = 0 ; | |
27888 | int val3 ; | |
27889 | int ecode3 = 0 ; | |
27890 | PyObject * obj0 = 0 ; | |
27891 | PyObject * obj1 = 0 ; | |
27892 | PyObject * obj2 = 0 ; | |
27893 | char * kwnames[] = { | |
27894 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27895 | }; | |
27896 | ||
27897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27899 | if (!SWIG_IsOK(res1)) { | |
27900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27901 | } | |
27902 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27904 | if (!SWIG_IsOK(ecode2)) { | |
27905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizeMM" "', expected argument " "2"" of type '" "int""'"); | |
27906 | } | |
27907 | arg2 = static_cast< int >(val2); | |
27908 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27909 | if (!SWIG_IsOK(ecode3)) { | |
27910 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizeMM" "', expected argument " "3"" of type '" "int""'"); | |
27911 | } | |
27912 | arg3 = static_cast< int >(val3); | |
27913 | { | |
27914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27915 | (arg1)->SetPageSizeMM(arg2,arg3); | |
27916 | wxPyEndAllowThreads(__tstate); | |
27917 | if (PyErr_Occurred()) SWIG_fail; | |
27918 | } | |
27919 | resultobj = SWIG_Py_Void(); | |
27920 | return resultobj; | |
27921 | fail: | |
27922 | return NULL; | |
27923 | } | |
27924 | ||
27925 | ||
27926 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27927 | PyObject *resultobj = 0; | |
27928 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27929 | int *arg2 = (int *) 0 ; | |
27930 | int *arg3 = (int *) 0 ; | |
27931 | void *argp1 = 0 ; | |
27932 | int res1 = 0 ; | |
27933 | int temp2 ; | |
27934 | int res2 = SWIG_TMPOBJ ; | |
27935 | int temp3 ; | |
27936 | int res3 = SWIG_TMPOBJ ; | |
27937 | PyObject *swig_obj[1] ; | |
27938 | ||
27939 | arg2 = &temp2; | |
27940 | arg3 = &temp3; | |
27941 | if (!args) SWIG_fail; | |
27942 | swig_obj[0] = args; | |
27943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27944 | if (!SWIG_IsOK(res1)) { | |
27945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27946 | } | |
27947 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27948 | { | |
27949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27950 | (arg1)->GetPageSizeMM(arg2,arg3); | |
27951 | wxPyEndAllowThreads(__tstate); | |
27952 | if (PyErr_Occurred()) SWIG_fail; | |
27953 | } | |
27954 | resultobj = SWIG_Py_Void(); | |
27955 | if (SWIG_IsTmpObj(res2)) { | |
27956 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27957 | } else { | |
27958 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27959 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27960 | } | |
27961 | if (SWIG_IsTmpObj(res3)) { | |
27962 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27963 | } else { | |
27964 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27965 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27966 | } | |
27967 | return resultobj; | |
27968 | fail: | |
27969 | return NULL; | |
27970 | } | |
27971 | ||
27972 | ||
27973 | SWIGINTERN PyObject *_wrap_Printout_SetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27974 | PyObject *resultobj = 0; | |
27975 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27976 | int arg2 ; | |
27977 | int arg3 ; | |
27978 | void *argp1 = 0 ; | |
27979 | int res1 = 0 ; | |
27980 | int val2 ; | |
27981 | int ecode2 = 0 ; | |
27982 | int val3 ; | |
27983 | int ecode3 = 0 ; | |
27984 | PyObject * obj0 = 0 ; | |
27985 | PyObject * obj1 = 0 ; | |
27986 | PyObject * obj2 = 0 ; | |
27987 | char * kwnames[] = { | |
27988 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27989 | }; | |
27990 | ||
27991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27993 | if (!SWIG_IsOK(res1)) { | |
27994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27995 | } | |
27996 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27997 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27998 | if (!SWIG_IsOK(ecode2)) { | |
27999 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIScreen" "', expected argument " "2"" of type '" "int""'"); | |
28000 | } | |
28001 | arg2 = static_cast< int >(val2); | |
28002 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28003 | if (!SWIG_IsOK(ecode3)) { | |
28004 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIScreen" "', expected argument " "3"" of type '" "int""'"); | |
28005 | } | |
28006 | arg3 = static_cast< int >(val3); | |
28007 | { | |
28008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28009 | (arg1)->SetPPIScreen(arg2,arg3); | |
28010 | wxPyEndAllowThreads(__tstate); | |
28011 | if (PyErr_Occurred()) SWIG_fail; | |
28012 | } | |
28013 | resultobj = SWIG_Py_Void(); | |
28014 | return resultobj; | |
28015 | fail: | |
28016 | return NULL; | |
28017 | } | |
28018 | ||
28019 | ||
28020 | SWIGINTERN PyObject *_wrap_Printout_GetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28021 | PyObject *resultobj = 0; | |
28022 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28023 | int *arg2 = (int *) 0 ; | |
28024 | int *arg3 = (int *) 0 ; | |
28025 | void *argp1 = 0 ; | |
28026 | int res1 = 0 ; | |
28027 | int temp2 ; | |
28028 | int res2 = SWIG_TMPOBJ ; | |
28029 | int temp3 ; | |
28030 | int res3 = SWIG_TMPOBJ ; | |
28031 | PyObject *swig_obj[1] ; | |
28032 | ||
28033 | arg2 = &temp2; | |
28034 | arg3 = &temp3; | |
28035 | if (!args) SWIG_fail; | |
28036 | swig_obj[0] = args; | |
28037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28038 | if (!SWIG_IsOK(res1)) { | |
28039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28040 | } | |
28041 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28042 | { | |
28043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28044 | (arg1)->GetPPIScreen(arg2,arg3); | |
28045 | wxPyEndAllowThreads(__tstate); | |
28046 | if (PyErr_Occurred()) SWIG_fail; | |
28047 | } | |
28048 | resultobj = SWIG_Py_Void(); | |
28049 | if (SWIG_IsTmpObj(res2)) { | |
28050 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28051 | } else { | |
28052 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28053 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28054 | } | |
28055 | if (SWIG_IsTmpObj(res3)) { | |
28056 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28057 | } else { | |
28058 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28059 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28060 | } | |
28061 | return resultobj; | |
28062 | fail: | |
28063 | return NULL; | |
28064 | } | |
28065 | ||
28066 | ||
28067 | SWIGINTERN PyObject *_wrap_Printout_SetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28068 | PyObject *resultobj = 0; | |
28069 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28070 | int arg2 ; | |
28071 | int arg3 ; | |
28072 | void *argp1 = 0 ; | |
28073 | int res1 = 0 ; | |
28074 | int val2 ; | |
28075 | int ecode2 = 0 ; | |
28076 | int val3 ; | |
28077 | int ecode3 = 0 ; | |
28078 | PyObject * obj0 = 0 ; | |
28079 | PyObject * obj1 = 0 ; | |
28080 | PyObject * obj2 = 0 ; | |
28081 | char * kwnames[] = { | |
28082 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28083 | }; | |
28084 | ||
28085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28087 | if (!SWIG_IsOK(res1)) { | |
28088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28089 | } | |
28090 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28091 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28092 | if (!SWIG_IsOK(ecode2)) { | |
28093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIPrinter" "', expected argument " "2"" of type '" "int""'"); | |
28094 | } | |
28095 | arg2 = static_cast< int >(val2); | |
28096 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28097 | if (!SWIG_IsOK(ecode3)) { | |
28098 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIPrinter" "', expected argument " "3"" of type '" "int""'"); | |
28099 | } | |
28100 | arg3 = static_cast< int >(val3); | |
28101 | { | |
28102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28103 | (arg1)->SetPPIPrinter(arg2,arg3); | |
28104 | wxPyEndAllowThreads(__tstate); | |
28105 | if (PyErr_Occurred()) SWIG_fail; | |
28106 | } | |
28107 | resultobj = SWIG_Py_Void(); | |
28108 | return resultobj; | |
28109 | fail: | |
28110 | return NULL; | |
28111 | } | |
28112 | ||
28113 | ||
28114 | SWIGINTERN PyObject *_wrap_Printout_GetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28115 | PyObject *resultobj = 0; | |
28116 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28117 | int *arg2 = (int *) 0 ; | |
28118 | int *arg3 = (int *) 0 ; | |
28119 | void *argp1 = 0 ; | |
28120 | int res1 = 0 ; | |
28121 | int temp2 ; | |
28122 | int res2 = SWIG_TMPOBJ ; | |
28123 | int temp3 ; | |
28124 | int res3 = SWIG_TMPOBJ ; | |
28125 | PyObject *swig_obj[1] ; | |
28126 | ||
28127 | arg2 = &temp2; | |
28128 | arg3 = &temp3; | |
28129 | if (!args) SWIG_fail; | |
28130 | swig_obj[0] = args; | |
28131 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28132 | if (!SWIG_IsOK(res1)) { | |
28133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28134 | } | |
28135 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28136 | { | |
28137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28138 | (arg1)->GetPPIPrinter(arg2,arg3); | |
28139 | wxPyEndAllowThreads(__tstate); | |
28140 | if (PyErr_Occurred()) SWIG_fail; | |
28141 | } | |
28142 | resultobj = SWIG_Py_Void(); | |
28143 | if (SWIG_IsTmpObj(res2)) { | |
28144 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28145 | } else { | |
28146 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28147 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28148 | } | |
28149 | if (SWIG_IsTmpObj(res3)) { | |
28150 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28151 | } else { | |
28152 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28153 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28154 | } | |
28155 | return resultobj; | |
28156 | fail: | |
28157 | return NULL; | |
d55e5bfc RD |
28158 | } |
28159 | ||
28160 | ||
1bd55598 RD |
28161 | SWIGINTERN PyObject *_wrap_Printout_IsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28162 | PyObject *resultobj = 0; | |
28163 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28164 | bool result; | |
28165 | void *argp1 = 0 ; | |
28166 | int res1 = 0 ; | |
28167 | PyObject *swig_obj[1] ; | |
28168 | ||
28169 | if (!args) SWIG_fail; | |
28170 | swig_obj[0] = args; | |
28171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28172 | if (!SWIG_IsOK(res1)) { | |
28173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_IsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28174 | } | |
28175 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28176 | { | |
28177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28178 | result = (bool)(arg1)->IsPreview(); | |
28179 | wxPyEndAllowThreads(__tstate); | |
28180 | if (PyErr_Occurred()) SWIG_fail; | |
28181 | } | |
28182 | { | |
28183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28184 | } | |
28185 | return resultobj; | |
28186 | fail: | |
28187 | return NULL; | |
28188 | } | |
28189 | ||
28190 | ||
28191 | SWIGINTERN PyObject *_wrap_Printout_SetIsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28192 | PyObject *resultobj = 0; | |
28193 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28194 | bool arg2 ; | |
28195 | void *argp1 = 0 ; | |
28196 | int res1 = 0 ; | |
28197 | bool val2 ; | |
28198 | int ecode2 = 0 ; | |
28199 | PyObject * obj0 = 0 ; | |
28200 | PyObject * obj1 = 0 ; | |
28201 | char * kwnames[] = { | |
28202 | (char *) "self",(char *) "p", NULL | |
28203 | }; | |
28204 | ||
28205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
28206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28207 | if (!SWIG_IsOK(res1)) { | |
28208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetIsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28209 | } | |
28210 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28211 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28212 | if (!SWIG_IsOK(ecode2)) { | |
28213 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetIsPreview" "', expected argument " "2"" of type '" "bool""'"); | |
28214 | } | |
28215 | arg2 = static_cast< bool >(val2); | |
28216 | { | |
28217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28218 | (arg1)->SetIsPreview(arg2); | |
28219 | wxPyEndAllowThreads(__tstate); | |
28220 | if (PyErr_Occurred()) SWIG_fail; | |
28221 | } | |
28222 | resultobj = SWIG_Py_Void(); | |
28223 | return resultobj; | |
28224 | fail: | |
28225 | return NULL; | |
28226 | } | |
28227 | ||
28228 | ||
28229 | SWIGINTERN PyObject *_wrap_Printout_OnBeginDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28230 | PyObject *resultobj = 0; | |
28231 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28232 | int arg2 ; | |
28233 | int arg3 ; | |
28234 | bool result; | |
28235 | void *argp1 = 0 ; | |
28236 | int res1 = 0 ; | |
28237 | int val2 ; | |
28238 | int ecode2 = 0 ; | |
28239 | int val3 ; | |
28240 | int ecode3 = 0 ; | |
28241 | PyObject * obj0 = 0 ; | |
28242 | PyObject * obj1 = 0 ; | |
28243 | PyObject * obj2 = 0 ; | |
28244 | char * kwnames[] = { | |
28245 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
28246 | }; | |
28247 | ||
28248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28250 | if (!SWIG_IsOK(res1)) { | |
28251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28252 | } | |
28253 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28254 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28255 | if (!SWIG_IsOK(ecode2)) { | |
28256 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OnBeginDocument" "', expected argument " "2"" of type '" "int""'"); | |
28257 | } | |
28258 | arg2 = static_cast< int >(val2); | |
28259 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28260 | if (!SWIG_IsOK(ecode3)) { | |
28261 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OnBeginDocument" "', expected argument " "3"" of type '" "int""'"); | |
28262 | } | |
28263 | arg3 = static_cast< int >(val3); | |
28264 | { | |
28265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28266 | result = (bool)(arg1)->OnBeginDocument(arg2,arg3); | |
28267 | wxPyEndAllowThreads(__tstate); | |
28268 | if (PyErr_Occurred()) SWIG_fail; | |
28269 | } | |
28270 | { | |
28271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28272 | } | |
28273 | return resultobj; | |
28274 | fail: | |
28275 | return NULL; | |
d55e5bfc RD |
28276 | } |
28277 | ||
28278 | ||
1bd55598 RD |
28279 | SWIGINTERN PyObject *_wrap_Printout_OnEndDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28280 | PyObject *resultobj = 0; | |
28281 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28282 | void *argp1 = 0 ; | |
28283 | int res1 = 0 ; | |
28284 | PyObject *swig_obj[1] ; | |
28285 | ||
28286 | if (!args) SWIG_fail; | |
28287 | swig_obj[0] = args; | |
28288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28289 | if (!SWIG_IsOK(res1)) { | |
28290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28291 | } | |
28292 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28293 | { | |
28294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28295 | (arg1)->OnEndDocument(); | |
28296 | wxPyEndAllowThreads(__tstate); | |
28297 | if (PyErr_Occurred()) SWIG_fail; | |
28298 | } | |
28299 | resultobj = SWIG_Py_Void(); | |
28300 | return resultobj; | |
28301 | fail: | |
28302 | return NULL; | |
28303 | } | |
28304 | ||
28305 | ||
28306 | SWIGINTERN PyObject *_wrap_Printout_OnBeginPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28307 | PyObject *resultobj = 0; | |
28308 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28309 | void *argp1 = 0 ; | |
28310 | int res1 = 0 ; | |
28311 | PyObject *swig_obj[1] ; | |
28312 | ||
28313 | if (!args) SWIG_fail; | |
28314 | swig_obj[0] = args; | |
28315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28316 | if (!SWIG_IsOK(res1)) { | |
28317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28318 | } | |
28319 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28320 | { | |
28321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28322 | (arg1)->OnBeginPrinting(); | |
28323 | wxPyEndAllowThreads(__tstate); | |
28324 | if (PyErr_Occurred()) SWIG_fail; | |
28325 | } | |
28326 | resultobj = SWIG_Py_Void(); | |
28327 | return resultobj; | |
28328 | fail: | |
28329 | return NULL; | |
28330 | } | |
28331 | ||
28332 | ||
28333 | SWIGINTERN PyObject *_wrap_Printout_OnEndPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28334 | PyObject *resultobj = 0; | |
28335 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28336 | void *argp1 = 0 ; | |
28337 | int res1 = 0 ; | |
28338 | PyObject *swig_obj[1] ; | |
28339 | ||
28340 | if (!args) SWIG_fail; | |
28341 | swig_obj[0] = args; | |
28342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28343 | if (!SWIG_IsOK(res1)) { | |
28344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28345 | } | |
28346 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28347 | { | |
28348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28349 | (arg1)->OnEndPrinting(); | |
28350 | wxPyEndAllowThreads(__tstate); | |
28351 | if (PyErr_Occurred()) SWIG_fail; | |
28352 | } | |
28353 | resultobj = SWIG_Py_Void(); | |
28354 | return resultobj; | |
28355 | fail: | |
28356 | return NULL; | |
28357 | } | |
28358 | ||
28359 | ||
28360 | SWIGINTERN PyObject *_wrap_Printout_OnPreparePrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28361 | PyObject *resultobj = 0; | |
28362 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28363 | void *argp1 = 0 ; | |
28364 | int res1 = 0 ; | |
28365 | PyObject *swig_obj[1] ; | |
28366 | ||
28367 | if (!args) SWIG_fail; | |
28368 | swig_obj[0] = args; | |
28369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28370 | if (!SWIG_IsOK(res1)) { | |
28371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnPreparePrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28372 | } | |
28373 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28374 | { | |
28375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28376 | (arg1)->OnPreparePrinting(); | |
28377 | wxPyEndAllowThreads(__tstate); | |
28378 | if (PyErr_Occurred()) SWIG_fail; | |
28379 | } | |
28380 | resultobj = SWIG_Py_Void(); | |
28381 | return resultobj; | |
28382 | fail: | |
28383 | return NULL; | |
28384 | } | |
28385 | ||
28386 | ||
28387 | SWIGINTERN PyObject *_wrap_Printout_HasPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28388 | PyObject *resultobj = 0; | |
28389 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28390 | int arg2 ; | |
28391 | bool result; | |
28392 | void *argp1 = 0 ; | |
28393 | int res1 = 0 ; | |
28394 | int val2 ; | |
28395 | int ecode2 = 0 ; | |
28396 | PyObject * obj0 = 0 ; | |
28397 | PyObject * obj1 = 0 ; | |
28398 | char * kwnames[] = { | |
28399 | (char *) "self",(char *) "page", NULL | |
28400 | }; | |
28401 | ||
28402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_HasPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
28403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28404 | if (!SWIG_IsOK(res1)) { | |
28405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_HasPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28406 | } | |
28407 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28408 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28409 | if (!SWIG_IsOK(ecode2)) { | |
28410 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_HasPage" "', expected argument " "2"" of type '" "int""'"); | |
28411 | } | |
28412 | arg2 = static_cast< int >(val2); | |
28413 | { | |
28414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28415 | result = (bool)(arg1)->HasPage(arg2); | |
28416 | wxPyEndAllowThreads(__tstate); | |
28417 | if (PyErr_Occurred()) SWIG_fail; | |
28418 | } | |
28419 | { | |
28420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28421 | } | |
28422 | return resultobj; | |
28423 | fail: | |
28424 | return NULL; | |
28425 | } | |
28426 | ||
28427 | ||
28428 | SWIGINTERN PyObject *_wrap_Printout_GetPageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28429 | PyObject *resultobj = 0; | |
28430 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28431 | int *arg2 = (int *) 0 ; | |
28432 | int *arg3 = (int *) 0 ; | |
28433 | int *arg4 = (int *) 0 ; | |
28434 | int *arg5 = (int *) 0 ; | |
28435 | void *argp1 = 0 ; | |
28436 | int res1 = 0 ; | |
28437 | int temp2 ; | |
28438 | int res2 = SWIG_TMPOBJ ; | |
28439 | int temp3 ; | |
28440 | int res3 = SWIG_TMPOBJ ; | |
28441 | int temp4 ; | |
28442 | int res4 = SWIG_TMPOBJ ; | |
28443 | int temp5 ; | |
28444 | int res5 = SWIG_TMPOBJ ; | |
28445 | PyObject *swig_obj[1] ; | |
28446 | ||
28447 | arg2 = &temp2; | |
28448 | arg3 = &temp3; | |
28449 | arg4 = &temp4; | |
28450 | arg5 = &temp5; | |
28451 | if (!args) SWIG_fail; | |
28452 | swig_obj[0] = args; | |
28453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28454 | if (!SWIG_IsOK(res1)) { | |
28455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28456 | } | |
28457 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28458 | { | |
28459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28460 | (arg1)->GetPageInfo(arg2,arg3,arg4,arg5); | |
28461 | wxPyEndAllowThreads(__tstate); | |
28462 | if (PyErr_Occurred()) SWIG_fail; | |
28463 | } | |
28464 | resultobj = SWIG_Py_Void(); | |
28465 | if (SWIG_IsTmpObj(res2)) { | |
28466 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28467 | } else { | |
28468 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28469 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28470 | } | |
28471 | if (SWIG_IsTmpObj(res3)) { | |
28472 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28473 | } else { | |
28474 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28475 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28476 | } | |
28477 | if (SWIG_IsTmpObj(res4)) { | |
28478 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
28479 | } else { | |
28480 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28481 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
28482 | } | |
28483 | if (SWIG_IsTmpObj(res5)) { | |
28484 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
28485 | } else { | |
28486 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28487 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
28488 | } | |
28489 | return resultobj; | |
28490 | fail: | |
28491 | return NULL; | |
28492 | } | |
28493 | ||
28494 | ||
28495 | SWIGINTERN PyObject *Printout_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28496 | PyObject *obj; | |
28497 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28498 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintout, SWIG_NewClientData(obj)); | |
28499 | return SWIG_Py_Void(); | |
28500 | } | |
28501 | ||
28502 | SWIGINTERN PyObject *Printout_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28503 | return SWIG_Python_InitShadowInstance(args); | |
28504 | } | |
28505 | ||
28506 | SWIGINTERN PyObject *_wrap_new_PreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28507 | PyObject *resultobj = 0; | |
28508 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28509 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28510 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28511 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28512 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28513 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28514 | long arg5 = (long) 0 ; | |
28515 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
28516 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
28517 | wxPreviewCanvas *result = 0 ; | |
28518 | void *argp1 = 0 ; | |
28519 | int res1 = 0 ; | |
28520 | void *argp2 = 0 ; | |
28521 | int res2 = 0 ; | |
28522 | wxPoint temp3 ; | |
28523 | wxSize temp4 ; | |
28524 | long val5 ; | |
28525 | int ecode5 = 0 ; | |
28526 | bool temp6 = false ; | |
28527 | PyObject * obj0 = 0 ; | |
28528 | PyObject * obj1 = 0 ; | |
28529 | PyObject * obj2 = 0 ; | |
28530 | PyObject * obj3 = 0 ; | |
28531 | PyObject * obj4 = 0 ; | |
28532 | PyObject * obj5 = 0 ; | |
28533 | char * kwnames[] = { | |
28534 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28535 | }; | |
28536 | ||
28537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
28538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28539 | if (!SWIG_IsOK(res1)) { | |
28540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28541 | } | |
28542 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28543 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28544 | if (!SWIG_IsOK(res2)) { | |
28545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewCanvas" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
28546 | } | |
28547 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
28548 | if (obj2) { | |
d55e5bfc | 28549 | { |
1bd55598 RD |
28550 | arg3 = &temp3; |
28551 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 28552 | } |
1bd55598 RD |
28553 | } |
28554 | if (obj3) { | |
d55e5bfc | 28555 | { |
1bd55598 RD |
28556 | arg4 = &temp4; |
28557 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 28558 | } |
1bd55598 RD |
28559 | } |
28560 | if (obj4) { | |
28561 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28562 | if (!SWIG_IsOK(ecode5)) { | |
28563 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PreviewCanvas" "', expected argument " "5"" of type '" "long""'"); | |
28564 | } | |
28565 | arg5 = static_cast< long >(val5); | |
28566 | } | |
28567 | if (obj5) { | |
d55e5bfc | 28568 | { |
1bd55598 RD |
28569 | arg6 = wxString_in_helper(obj5); |
28570 | if (arg6 == NULL) SWIG_fail; | |
28571 | temp6 = true; | |
d55e5bfc | 28572 | } |
1bd55598 RD |
28573 | } |
28574 | { | |
28575 | if (!wxPyCheckForApp()) SWIG_fail; | |
28576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28577 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
28578 | wxPyEndAllowThreads(__tstate); | |
28579 | if (PyErr_Occurred()) SWIG_fail; | |
28580 | } | |
28581 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, SWIG_POINTER_NEW | 0 ); | |
28582 | { | |
28583 | if (temp6) | |
28584 | delete arg6; | |
28585 | } | |
28586 | return resultobj; | |
28587 | fail: | |
28588 | { | |
28589 | if (temp6) | |
28590 | delete arg6; | |
28591 | } | |
28592 | return NULL; | |
28593 | } | |
28594 | ||
28595 | ||
28596 | SWIGINTERN PyObject *PreviewCanvas_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28597 | PyObject *obj; | |
28598 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28599 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewCanvas, SWIG_NewClientData(obj)); | |
28600 | return SWIG_Py_Void(); | |
28601 | } | |
28602 | ||
28603 | SWIGINTERN PyObject *PreviewCanvas_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28604 | return SWIG_Python_InitShadowInstance(args); | |
28605 | } | |
28606 | ||
28607 | SWIGINTERN PyObject *_wrap_new_PreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28608 | PyObject *resultobj = 0; | |
28609 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28610 | wxFrame *arg2 = (wxFrame *) 0 ; | |
28611 | wxString *arg3 = 0 ; | |
28612 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28613 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28614 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28615 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28616 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
28617 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
28618 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28619 | wxPreviewFrame *result = 0 ; | |
28620 | int res1 = 0 ; | |
28621 | void *argp2 = 0 ; | |
28622 | int res2 = 0 ; | |
28623 | bool temp3 = false ; | |
28624 | wxPoint temp4 ; | |
28625 | wxSize temp5 ; | |
28626 | long val6 ; | |
28627 | int ecode6 = 0 ; | |
28628 | bool temp7 = false ; | |
28629 | PyObject * obj0 = 0 ; | |
28630 | PyObject * obj1 = 0 ; | |
28631 | PyObject * obj2 = 0 ; | |
28632 | PyObject * obj3 = 0 ; | |
28633 | PyObject * obj4 = 0 ; | |
28634 | PyObject * obj5 = 0 ; | |
28635 | PyObject * obj6 = 0 ; | |
28636 | char * kwnames[] = { | |
28637 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28638 | }; | |
28639 | ||
28640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28641 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
28642 | if (!SWIG_IsOK(res1)) { | |
28643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28644 | } | |
28645 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
28646 | if (!SWIG_IsOK(res2)) { | |
28647 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
28648 | } | |
28649 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
28650 | { | |
28651 | arg3 = wxString_in_helper(obj2); | |
28652 | if (arg3 == NULL) SWIG_fail; | |
28653 | temp3 = true; | |
28654 | } | |
28655 | if (obj3) { | |
d55e5bfc | 28656 | { |
1bd55598 RD |
28657 | arg4 = &temp4; |
28658 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 28659 | } |
1bd55598 RD |
28660 | } |
28661 | if (obj4) { | |
d55e5bfc | 28662 | { |
1bd55598 RD |
28663 | arg5 = &temp5; |
28664 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 28665 | } |
1bd55598 RD |
28666 | } |
28667 | if (obj5) { | |
28668 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28669 | if (!SWIG_IsOK(ecode6)) { | |
28670 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
28671 | } | |
28672 | arg6 = static_cast< long >(val6); | |
28673 | } | |
28674 | if (obj6) { | |
d55e5bfc | 28675 | { |
1bd55598 RD |
28676 | arg7 = wxString_in_helper(obj6); |
28677 | if (arg7 == NULL) SWIG_fail; | |
28678 | temp7 = true; | |
d55e5bfc | 28679 | } |
1bd55598 RD |
28680 | } |
28681 | { | |
28682 | if (!wxPyCheckForApp()) SWIG_fail; | |
28683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28684 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28685 | wxPyEndAllowThreads(__tstate); | |
28686 | if (PyErr_Occurred()) SWIG_fail; | |
28687 | } | |
28688 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
28689 | { | |
28690 | if (temp3) | |
28691 | delete arg3; | |
28692 | } | |
28693 | { | |
28694 | if (temp7) | |
28695 | delete arg7; | |
28696 | } | |
28697 | return resultobj; | |
28698 | fail: | |
28699 | { | |
28700 | if (temp3) | |
28701 | delete arg3; | |
28702 | } | |
28703 | { | |
28704 | if (temp7) | |
28705 | delete arg7; | |
28706 | } | |
28707 | return NULL; | |
d55e5bfc RD |
28708 | } |
28709 | ||
28710 | ||
1bd55598 RD |
28711 | SWIGINTERN PyObject *_wrap_PreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28712 | PyObject *resultobj = 0; | |
28713 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28714 | void *argp1 = 0 ; | |
28715 | int res1 = 0 ; | |
28716 | PyObject *swig_obj[1] ; | |
28717 | ||
28718 | if (!args) SWIG_fail; | |
28719 | swig_obj[0] = args; | |
28720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28721 | if (!SWIG_IsOK(res1)) { | |
28722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28723 | } | |
28724 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28725 | { | |
28726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28727 | (arg1)->Initialize(); | |
28728 | wxPyEndAllowThreads(__tstate); | |
28729 | if (PyErr_Occurred()) SWIG_fail; | |
28730 | } | |
28731 | resultobj = SWIG_Py_Void(); | |
28732 | return resultobj; | |
28733 | fail: | |
28734 | return NULL; | |
d55e5bfc RD |
28735 | } |
28736 | ||
28737 | ||
1bd55598 RD |
28738 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28739 | PyObject *resultobj = 0; | |
28740 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28741 | void *argp1 = 0 ; | |
28742 | int res1 = 0 ; | |
28743 | PyObject *swig_obj[1] ; | |
28744 | ||
28745 | if (!args) SWIG_fail; | |
28746 | swig_obj[0] = args; | |
28747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28748 | if (!SWIG_IsOK(res1)) { | |
28749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28750 | } | |
28751 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28752 | { | |
28753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28754 | (arg1)->CreateControlBar(); | |
28755 | wxPyEndAllowThreads(__tstate); | |
28756 | if (PyErr_Occurred()) SWIG_fail; | |
28757 | } | |
28758 | resultobj = SWIG_Py_Void(); | |
28759 | return resultobj; | |
28760 | fail: | |
28761 | return NULL; | |
d55e5bfc RD |
28762 | } |
28763 | ||
28764 | ||
1bd55598 RD |
28765 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28766 | PyObject *resultobj = 0; | |
28767 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28768 | void *argp1 = 0 ; | |
28769 | int res1 = 0 ; | |
28770 | PyObject *swig_obj[1] ; | |
28771 | ||
28772 | if (!args) SWIG_fail; | |
28773 | swig_obj[0] = args; | |
28774 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28775 | if (!SWIG_IsOK(res1)) { | |
28776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28777 | } | |
28778 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28779 | { | |
28780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28781 | (arg1)->CreateCanvas(); | |
28782 | wxPyEndAllowThreads(__tstate); | |
28783 | if (PyErr_Occurred()) SWIG_fail; | |
28784 | } | |
28785 | resultobj = SWIG_Py_Void(); | |
28786 | return resultobj; | |
28787 | fail: | |
28788 | return NULL; | |
d55e5bfc RD |
28789 | } |
28790 | ||
28791 | ||
1bd55598 RD |
28792 | SWIGINTERN PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28793 | PyObject *resultobj = 0; | |
28794 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28795 | wxPreviewControlBar *result = 0 ; | |
28796 | void *argp1 = 0 ; | |
28797 | int res1 = 0 ; | |
28798 | PyObject *swig_obj[1] ; | |
28799 | ||
28800 | if (!args) SWIG_fail; | |
28801 | swig_obj[0] = args; | |
28802 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28803 | if (!SWIG_IsOK(res1)) { | |
28804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_GetControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame const *""'"); | |
28805 | } | |
28806 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28807 | { | |
28808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28809 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
28810 | wxPyEndAllowThreads(__tstate); | |
28811 | if (PyErr_Occurred()) SWIG_fail; | |
28812 | } | |
28813 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28814 | return resultobj; | |
28815 | fail: | |
28816 | return NULL; | |
28817 | } | |
28818 | ||
28819 | ||
28820 | SWIGINTERN PyObject *PreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28821 | PyObject *obj; | |
28822 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28823 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewFrame, SWIG_NewClientData(obj)); | |
28824 | return SWIG_Py_Void(); | |
28825 | } | |
28826 | ||
28827 | SWIGINTERN PyObject *PreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28828 | return SWIG_Python_InitShadowInstance(args); | |
28829 | } | |
28830 | ||
28831 | SWIGINTERN PyObject *_wrap_new_PreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28832 | PyObject *resultobj = 0; | |
28833 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28834 | long arg2 ; | |
28835 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28836 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28837 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28838 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28839 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28840 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
28841 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
28842 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28843 | wxPreviewControlBar *result = 0 ; | |
28844 | void *argp1 = 0 ; | |
28845 | int res1 = 0 ; | |
28846 | long val2 ; | |
28847 | int ecode2 = 0 ; | |
28848 | void *argp3 = 0 ; | |
28849 | int res3 = 0 ; | |
28850 | wxPoint temp4 ; | |
28851 | wxSize temp5 ; | |
28852 | long val6 ; | |
28853 | int ecode6 = 0 ; | |
28854 | bool temp7 = false ; | |
28855 | PyObject * obj0 = 0 ; | |
28856 | PyObject * obj1 = 0 ; | |
28857 | PyObject * obj2 = 0 ; | |
28858 | PyObject * obj3 = 0 ; | |
28859 | PyObject * obj4 = 0 ; | |
28860 | PyObject * obj5 = 0 ; | |
28861 | PyObject * obj6 = 0 ; | |
28862 | char * kwnames[] = { | |
28863 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28864 | }; | |
28865 | ||
28866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28868 | if (!SWIG_IsOK(res1)) { | |
28869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28870 | } | |
28871 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28872 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28873 | if (!SWIG_IsOK(ecode2)) { | |
28874 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
28875 | } | |
28876 | arg2 = static_cast< long >(val2); | |
28877 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28878 | if (!SWIG_IsOK(res3)) { | |
28879 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
28880 | } | |
28881 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
28882 | if (obj3) { | |
28883 | { | |
28884 | arg4 = &temp4; | |
28885 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28886 | } | |
28887 | } | |
28888 | if (obj4) { | |
a5ee0656 | 28889 | { |
1bd55598 RD |
28890 | arg5 = &temp5; |
28891 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
a5ee0656 | 28892 | } |
1bd55598 RD |
28893 | } |
28894 | if (obj5) { | |
28895 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28896 | if (!SWIG_IsOK(ecode6)) { | |
28897 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
28898 | } | |
28899 | arg6 = static_cast< long >(val6); | |
28900 | } | |
28901 | if (obj6) { | |
a5ee0656 | 28902 | { |
1bd55598 RD |
28903 | arg7 = wxString_in_helper(obj6); |
28904 | if (arg7 == NULL) SWIG_fail; | |
28905 | temp7 = true; | |
a5ee0656 | 28906 | } |
1bd55598 RD |
28907 | } |
28908 | { | |
28909 | if (!wxPyCheckForApp()) SWIG_fail; | |
28910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28911 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28912 | wxPyEndAllowThreads(__tstate); | |
28913 | if (PyErr_Occurred()) SWIG_fail; | |
28914 | } | |
28915 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
28916 | { | |
28917 | if (temp7) | |
28918 | delete arg7; | |
28919 | } | |
28920 | return resultobj; | |
28921 | fail: | |
28922 | { | |
28923 | if (temp7) | |
28924 | delete arg7; | |
28925 | } | |
28926 | return NULL; | |
a5ee0656 RD |
28927 | } |
28928 | ||
28929 | ||
1bd55598 RD |
28930 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28931 | PyObject *resultobj = 0; | |
28932 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28933 | int result; | |
28934 | void *argp1 = 0 ; | |
28935 | int res1 = 0 ; | |
28936 | PyObject *swig_obj[1] ; | |
28937 | ||
28938 | if (!args) SWIG_fail; | |
28939 | swig_obj[0] = args; | |
28940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28941 | if (!SWIG_IsOK(res1)) { | |
28942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28943 | } | |
28944 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28945 | { | |
28946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28947 | result = (int)(arg1)->GetZoomControl(); | |
28948 | wxPyEndAllowThreads(__tstate); | |
28949 | if (PyErr_Occurred()) SWIG_fail; | |
28950 | } | |
28951 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28952 | return resultobj; | |
28953 | fail: | |
28954 | return NULL; | |
28955 | } | |
28956 | ||
28957 | ||
28958 | SWIGINTERN PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28959 | PyObject *resultobj = 0; | |
28960 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28961 | int arg2 ; | |
28962 | void *argp1 = 0 ; | |
28963 | int res1 = 0 ; | |
28964 | int val2 ; | |
28965 | int ecode2 = 0 ; | |
28966 | PyObject * obj0 = 0 ; | |
28967 | PyObject * obj1 = 0 ; | |
28968 | char * kwnames[] = { | |
28969 | (char *) "self",(char *) "zoom", NULL | |
28970 | }; | |
28971 | ||
28972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
28973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28974 | if (!SWIG_IsOK(res1)) { | |
28975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28976 | } | |
28977 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28978 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28979 | if (!SWIG_IsOK(ecode2)) { | |
28980 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
28981 | } | |
28982 | arg2 = static_cast< int >(val2); | |
28983 | { | |
28984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28985 | (arg1)->SetZoomControl(arg2); | |
28986 | wxPyEndAllowThreads(__tstate); | |
28987 | if (PyErr_Occurred()) SWIG_fail; | |
28988 | } | |
28989 | resultobj = SWIG_Py_Void(); | |
28990 | return resultobj; | |
28991 | fail: | |
28992 | return NULL; | |
8d38bd1d RD |
28993 | } |
28994 | ||
28995 | ||
1bd55598 RD |
28996 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28997 | PyObject *resultobj = 0; | |
28998 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28999 | wxPrintPreview *result = 0 ; | |
29000 | void *argp1 = 0 ; | |
29001 | int res1 = 0 ; | |
29002 | PyObject *swig_obj[1] ; | |
29003 | ||
29004 | if (!args) SWIG_fail; | |
29005 | swig_obj[0] = args; | |
29006 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29007 | if (!SWIG_IsOK(res1)) { | |
29008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetPrintPreview" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29009 | } | |
29010 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29011 | { | |
29012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29013 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
29014 | wxPyEndAllowThreads(__tstate); | |
29015 | if (PyErr_Occurred()) SWIG_fail; | |
29016 | } | |
29017 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29018 | return resultobj; | |
29019 | fail: | |
29020 | return NULL; | |
d55e5bfc RD |
29021 | } |
29022 | ||
29023 | ||
1bd55598 RD |
29024 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29025 | PyObject *resultobj = 0; | |
29026 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29027 | void *argp1 = 0 ; | |
29028 | int res1 = 0 ; | |
29029 | PyObject *swig_obj[1] ; | |
29030 | ||
29031 | if (!args) SWIG_fail; | |
29032 | swig_obj[0] = args; | |
29033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29034 | if (!SWIG_IsOK(res1)) { | |
29035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnNext" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29036 | } | |
29037 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29038 | { | |
29039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29040 | (arg1)->OnNext(); | |
29041 | wxPyEndAllowThreads(__tstate); | |
29042 | if (PyErr_Occurred()) SWIG_fail; | |
29043 | } | |
29044 | resultobj = SWIG_Py_Void(); | |
29045 | return resultobj; | |
29046 | fail: | |
29047 | return NULL; | |
d55e5bfc RD |
29048 | } |
29049 | ||
29050 | ||
1bd55598 RD |
29051 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29052 | PyObject *resultobj = 0; | |
29053 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29054 | void *argp1 = 0 ; | |
29055 | int res1 = 0 ; | |
29056 | PyObject *swig_obj[1] ; | |
29057 | ||
29058 | if (!args) SWIG_fail; | |
29059 | swig_obj[0] = args; | |
29060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29061 | if (!SWIG_IsOK(res1)) { | |
29062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnPrevious" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29063 | } | |
29064 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29065 | { | |
29066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29067 | (arg1)->OnPrevious(); | |
29068 | wxPyEndAllowThreads(__tstate); | |
29069 | if (PyErr_Occurred()) SWIG_fail; | |
29070 | } | |
29071 | resultobj = SWIG_Py_Void(); | |
29072 | return resultobj; | |
29073 | fail: | |
29074 | return NULL; | |
d55e5bfc RD |
29075 | } |
29076 | ||
29077 | ||
1bd55598 RD |
29078 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29079 | PyObject *resultobj = 0; | |
29080 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29081 | void *argp1 = 0 ; | |
29082 | int res1 = 0 ; | |
29083 | PyObject *swig_obj[1] ; | |
29084 | ||
29085 | if (!args) SWIG_fail; | |
29086 | swig_obj[0] = args; | |
29087 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29088 | if (!SWIG_IsOK(res1)) { | |
29089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnFirst" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29090 | } | |
29091 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29092 | { | |
29093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29094 | (arg1)->OnFirst(); | |
29095 | wxPyEndAllowThreads(__tstate); | |
29096 | if (PyErr_Occurred()) SWIG_fail; | |
29097 | } | |
29098 | resultobj = SWIG_Py_Void(); | |
29099 | return resultobj; | |
29100 | fail: | |
29101 | return NULL; | |
a5ee0656 RD |
29102 | } |
29103 | ||
29104 | ||
1bd55598 RD |
29105 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29106 | PyObject *resultobj = 0; | |
29107 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29108 | void *argp1 = 0 ; | |
29109 | int res1 = 0 ; | |
29110 | PyObject *swig_obj[1] ; | |
29111 | ||
29112 | if (!args) SWIG_fail; | |
29113 | swig_obj[0] = args; | |
29114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29115 | if (!SWIG_IsOK(res1)) { | |
29116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnLast" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29117 | } | |
29118 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29119 | { | |
29120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29121 | (arg1)->OnLast(); | |
29122 | wxPyEndAllowThreads(__tstate); | |
29123 | if (PyErr_Occurred()) SWIG_fail; | |
29124 | } | |
29125 | resultobj = SWIG_Py_Void(); | |
29126 | return resultobj; | |
29127 | fail: | |
29128 | return NULL; | |
976dbff5 RD |
29129 | } |
29130 | ||
29131 | ||
1bd55598 RD |
29132 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29133 | PyObject *resultobj = 0; | |
29134 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29135 | void *argp1 = 0 ; | |
29136 | int res1 = 0 ; | |
29137 | PyObject *swig_obj[1] ; | |
29138 | ||
29139 | if (!args) SWIG_fail; | |
29140 | swig_obj[0] = args; | |
29141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29142 | if (!SWIG_IsOK(res1)) { | |
29143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnGoto" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29144 | } | |
29145 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29146 | { | |
29147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29148 | (arg1)->OnGoto(); | |
29149 | wxPyEndAllowThreads(__tstate); | |
29150 | if (PyErr_Occurred()) SWIG_fail; | |
29151 | } | |
29152 | resultobj = SWIG_Py_Void(); | |
29153 | return resultobj; | |
29154 | fail: | |
29155 | return NULL; | |
d55e5bfc RD |
29156 | } |
29157 | ||
29158 | ||
1bd55598 RD |
29159 | SWIGINTERN PyObject *PreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29160 | PyObject *obj; | |
29161 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29162 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewControlBar, SWIG_NewClientData(obj)); | |
29163 | return SWIG_Py_Void(); | |
29164 | } | |
29165 | ||
29166 | SWIGINTERN PyObject *PreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29167 | return SWIG_Python_InitShadowInstance(args); | |
29168 | } | |
29169 | ||
29170 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29171 | PyObject *resultobj = 0; | |
29172 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29173 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29174 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
29175 | wxPrintPreview *result = 0 ; | |
29176 | int res1 = 0 ; | |
29177 | int res2 = 0 ; | |
29178 | void *argp3 = 0 ; | |
29179 | int res3 = 0 ; | |
29180 | ||
29181 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
29182 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29183 | if (!SWIG_IsOK(res1)) { | |
29184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29185 | } | |
29186 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29187 | if (!SWIG_IsOK(res2)) { | |
29188 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29189 | } | |
29190 | if (swig_obj[2]) { | |
29191 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29192 | if (!SWIG_IsOK(res3)) { | |
29193 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
36ed4f51 | 29194 | } |
1bd55598 RD |
29195 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
29196 | } | |
29197 | { | |
29198 | if (!wxPyCheckForApp()) SWIG_fail; | |
29199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29200 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
29201 | wxPyEndAllowThreads(__tstate); | |
29202 | if (PyErr_Occurred()) SWIG_fail; | |
29203 | } | |
29204 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29205 | return resultobj; | |
29206 | fail: | |
29207 | return NULL; | |
29208 | } | |
29209 | ||
29210 | ||
29211 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29212 | PyObject *resultobj = 0; | |
29213 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29214 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29215 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
29216 | wxPrintPreview *result = 0 ; | |
29217 | int res1 = 0 ; | |
29218 | int res2 = 0 ; | |
29219 | void *argp3 = 0 ; | |
29220 | int res3 = 0 ; | |
29221 | ||
29222 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
29223 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29224 | if (!SWIG_IsOK(res1)) { | |
29225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29226 | } | |
29227 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29228 | if (!SWIG_IsOK(res2)) { | |
29229 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29230 | } | |
29231 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
29232 | if (!SWIG_IsOK(res3)) { | |
29233 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
29234 | } | |
29235 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
29236 | { | |
29237 | if (!wxPyCheckForApp()) SWIG_fail; | |
29238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29239 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
29240 | wxPyEndAllowThreads(__tstate); | |
29241 | if (PyErr_Occurred()) SWIG_fail; | |
29242 | } | |
29243 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29244 | return resultobj; | |
29245 | fail: | |
29246 | return NULL; | |
d55e5bfc RD |
29247 | } |
29248 | ||
29249 | ||
1bd55598 RD |
29250 | SWIGINTERN PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { |
29251 | int argc; | |
29252 | PyObject *argv[4]; | |
29253 | ||
29254 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintPreview",0,3,argv))) SWIG_fail; | |
29255 | --argc; | |
29256 | if ((argc >= 2) && (argc <= 3)) { | |
29257 | int _v = 0; | |
29258 | if (argc > 2) { | |
29259 | { | |
29260 | void *vptr = 0; | |
29261 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
29262 | _v = SWIG_CheckState(res); | |
29263 | } | |
29264 | if (!_v) goto check_1; | |
36ed4f51 | 29265 | } |
1bd55598 RD |
29266 | return _wrap_new_PrintPreview__SWIG_0(self, argc, argv); |
29267 | } | |
29268 | check_1: | |
29269 | ||
29270 | if (argc == 3) { | |
29271 | return _wrap_new_PrintPreview__SWIG_1(self, argc, argv); | |
29272 | } | |
29273 | ||
29274 | fail: | |
29275 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintPreview'"); | |
29276 | return NULL; | |
d55e5bfc RD |
29277 | } |
29278 | ||
29279 | ||
1bd55598 RD |
29280 | SWIGINTERN PyObject *_wrap_delete_PrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29281 | PyObject *resultobj = 0; | |
29282 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29283 | void *argp1 = 0 ; | |
29284 | int res1 = 0 ; | |
29285 | PyObject *swig_obj[1] ; | |
29286 | ||
29287 | if (!args) SWIG_fail; | |
29288 | swig_obj[0] = args; | |
29289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
29290 | if (!SWIG_IsOK(res1)) { | |
29291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintPreview" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29292 | } | |
29293 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29294 | { | |
29295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29296 | delete arg1; | |
d55e5bfc | 29297 | |
1bd55598 RD |
29298 | wxPyEndAllowThreads(__tstate); |
29299 | if (PyErr_Occurred()) SWIG_fail; | |
29300 | } | |
29301 | resultobj = SWIG_Py_Void(); | |
29302 | return resultobj; | |
29303 | fail: | |
29304 | return NULL; | |
29305 | } | |
29306 | ||
29307 | ||
29308 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29309 | PyObject *resultobj = 0; | |
29310 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29311 | int arg2 ; | |
29312 | bool result; | |
29313 | void *argp1 = 0 ; | |
29314 | int res1 = 0 ; | |
29315 | int val2 ; | |
29316 | int ecode2 = 0 ; | |
29317 | PyObject * obj0 = 0 ; | |
29318 | PyObject * obj1 = 0 ; | |
29319 | char * kwnames[] = { | |
29320 | (char *) "self",(char *) "pageNum", NULL | |
29321 | }; | |
29322 | ||
29323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29325 | if (!SWIG_IsOK(res1)) { | |
29326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29327 | } | |
29328 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29329 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29330 | if (!SWIG_IsOK(ecode2)) { | |
29331 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "2"" of type '" "int""'"); | |
29332 | } | |
29333 | arg2 = static_cast< int >(val2); | |
29334 | { | |
29335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29336 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
29337 | wxPyEndAllowThreads(__tstate); | |
29338 | if (PyErr_Occurred()) SWIG_fail; | |
29339 | } | |
29340 | { | |
29341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29342 | } | |
29343 | return resultobj; | |
29344 | fail: | |
29345 | return NULL; | |
d55e5bfc RD |
29346 | } |
29347 | ||
29348 | ||
1bd55598 RD |
29349 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29350 | PyObject *resultobj = 0; | |
29351 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29352 | int result; | |
29353 | void *argp1 = 0 ; | |
29354 | int res1 = 0 ; | |
29355 | PyObject *swig_obj[1] ; | |
29356 | ||
29357 | if (!args) SWIG_fail; | |
29358 | swig_obj[0] = args; | |
29359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29360 | if (!SWIG_IsOK(res1)) { | |
29361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29362 | } | |
29363 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29364 | { | |
29365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29366 | result = (int)(arg1)->GetCurrentPage(); | |
29367 | wxPyEndAllowThreads(__tstate); | |
29368 | if (PyErr_Occurred()) SWIG_fail; | |
29369 | } | |
29370 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29371 | return resultobj; | |
29372 | fail: | |
29373 | return NULL; | |
29374 | } | |
29375 | ||
29376 | ||
29377 | SWIGINTERN PyObject *_wrap_PrintPreview_SetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29378 | PyObject *resultobj = 0; | |
29379 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29380 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29381 | void *argp1 = 0 ; | |
29382 | int res1 = 0 ; | |
29383 | int res2 = 0 ; | |
29384 | PyObject * obj0 = 0 ; | |
29385 | PyObject * obj1 = 0 ; | |
29386 | char * kwnames[] = { | |
29387 | (char *) "self",(char *) "printout", NULL | |
29388 | }; | |
29389 | ||
29390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) SWIG_fail; | |
29391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29392 | if (!SWIG_IsOK(res1)) { | |
29393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29394 | } | |
29395 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29396 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29397 | if (!SWIG_IsOK(res2)) { | |
29398 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetPrintout" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29399 | } | |
29400 | { | |
29401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29402 | (arg1)->SetPrintout(arg2); | |
29403 | wxPyEndAllowThreads(__tstate); | |
29404 | if (PyErr_Occurred()) SWIG_fail; | |
29405 | } | |
29406 | resultobj = SWIG_Py_Void(); | |
29407 | return resultobj; | |
29408 | fail: | |
29409 | return NULL; | |
d55e5bfc RD |
29410 | } |
29411 | ||
29412 | ||
1bd55598 RD |
29413 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29414 | PyObject *resultobj = 0; | |
29415 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29416 | wxPyPrintout *result = 0 ; | |
29417 | void *argp1 = 0 ; | |
29418 | int res1 = 0 ; | |
29419 | PyObject *swig_obj[1] ; | |
29420 | ||
29421 | if (!args) SWIG_fail; | |
29422 | swig_obj[0] = args; | |
29423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29424 | if (!SWIG_IsOK(res1)) { | |
29425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29426 | } | |
29427 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29428 | { | |
29429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29430 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
29431 | wxPyEndAllowThreads(__tstate); | |
29432 | if (PyErr_Occurred()) SWIG_fail; | |
29433 | } | |
29434 | { | |
29435 | resultobj = wxPyMake_wxObject(result, 0); | |
29436 | } | |
29437 | return resultobj; | |
29438 | fail: | |
29439 | return NULL; | |
d55e5bfc RD |
29440 | } |
29441 | ||
29442 | ||
1bd55598 RD |
29443 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29444 | PyObject *resultobj = 0; | |
29445 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29446 | wxPyPrintout *result = 0 ; | |
29447 | void *argp1 = 0 ; | |
29448 | int res1 = 0 ; | |
29449 | PyObject *swig_obj[1] ; | |
29450 | ||
29451 | if (!args) SWIG_fail; | |
29452 | swig_obj[0] = args; | |
29453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29454 | if (!SWIG_IsOK(res1)) { | |
29455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintoutForPrinting" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29456 | } | |
29457 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29458 | { | |
29459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29460 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
29461 | wxPyEndAllowThreads(__tstate); | |
29462 | if (PyErr_Occurred()) SWIG_fail; | |
29463 | } | |
29464 | { | |
29465 | resultobj = wxPyMake_wxObject(result, 0); | |
29466 | } | |
29467 | return resultobj; | |
29468 | fail: | |
29469 | return NULL; | |
29470 | } | |
29471 | ||
29472 | ||
29473 | SWIGINTERN PyObject *_wrap_PrintPreview_SetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29474 | PyObject *resultobj = 0; | |
29475 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29476 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29477 | void *argp1 = 0 ; | |
29478 | int res1 = 0 ; | |
29479 | void *argp2 = 0 ; | |
29480 | int res2 = 0 ; | |
29481 | PyObject * obj0 = 0 ; | |
29482 | PyObject * obj1 = 0 ; | |
29483 | char * kwnames[] = { | |
29484 | (char *) "self",(char *) "frame", NULL | |
29485 | }; | |
29486 | ||
29487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) SWIG_fail; | |
29488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29489 | if (!SWIG_IsOK(res1)) { | |
29490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29491 | } | |
29492 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29493 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29494 | if (!SWIG_IsOK(res2)) { | |
29495 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29496 | } | |
29497 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29498 | { | |
29499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29500 | (arg1)->SetFrame(arg2); | |
29501 | wxPyEndAllowThreads(__tstate); | |
29502 | if (PyErr_Occurred()) SWIG_fail; | |
29503 | } | |
29504 | resultobj = SWIG_Py_Void(); | |
29505 | return resultobj; | |
29506 | fail: | |
29507 | return NULL; | |
29508 | } | |
29509 | ||
29510 | ||
29511 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29512 | PyObject *resultobj = 0; | |
29513 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29514 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29515 | void *argp1 = 0 ; | |
29516 | int res1 = 0 ; | |
29517 | void *argp2 = 0 ; | |
29518 | int res2 = 0 ; | |
29519 | PyObject * obj0 = 0 ; | |
29520 | PyObject * obj1 = 0 ; | |
29521 | char * kwnames[] = { | |
29522 | (char *) "self",(char *) "canvas", NULL | |
29523 | }; | |
29524 | ||
29525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
29526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29527 | if (!SWIG_IsOK(res1)) { | |
29528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29529 | } | |
29530 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29531 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29532 | if (!SWIG_IsOK(res2)) { | |
29533 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29534 | } | |
29535 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29536 | { | |
29537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29538 | (arg1)->SetCanvas(arg2); | |
29539 | wxPyEndAllowThreads(__tstate); | |
29540 | if (PyErr_Occurred()) SWIG_fail; | |
29541 | } | |
29542 | resultobj = SWIG_Py_Void(); | |
29543 | return resultobj; | |
29544 | fail: | |
29545 | return NULL; | |
d55e5bfc RD |
29546 | } |
29547 | ||
29548 | ||
1bd55598 RD |
29549 | SWIGINTERN PyObject *_wrap_PrintPreview_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29550 | PyObject *resultobj = 0; | |
29551 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29552 | wxFrame *result = 0 ; | |
29553 | void *argp1 = 0 ; | |
29554 | int res1 = 0 ; | |
29555 | PyObject *swig_obj[1] ; | |
29556 | ||
29557 | if (!args) SWIG_fail; | |
29558 | swig_obj[0] = args; | |
29559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29560 | if (!SWIG_IsOK(res1)) { | |
29561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29562 | } | |
29563 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29564 | { | |
29565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29566 | result = (wxFrame *)(arg1)->GetFrame(); | |
29567 | wxPyEndAllowThreads(__tstate); | |
29568 | if (PyErr_Occurred()) SWIG_fail; | |
29569 | } | |
29570 | { | |
29571 | resultobj = wxPyMake_wxObject(result, 0); | |
29572 | } | |
29573 | return resultobj; | |
29574 | fail: | |
29575 | return NULL; | |
d55e5bfc RD |
29576 | } |
29577 | ||
29578 | ||
1bd55598 RD |
29579 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29580 | PyObject *resultobj = 0; | |
29581 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29582 | wxPreviewCanvas *result = 0 ; | |
29583 | void *argp1 = 0 ; | |
29584 | int res1 = 0 ; | |
29585 | PyObject *swig_obj[1] ; | |
29586 | ||
29587 | if (!args) SWIG_fail; | |
29588 | swig_obj[0] = args; | |
29589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29590 | if (!SWIG_IsOK(res1)) { | |
29591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29592 | } | |
29593 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29594 | { | |
29595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29596 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
29597 | wxPyEndAllowThreads(__tstate); | |
29598 | if (PyErr_Occurred()) SWIG_fail; | |
29599 | } | |
29600 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29601 | return resultobj; | |
29602 | fail: | |
29603 | return NULL; | |
29604 | } | |
29605 | ||
29606 | ||
29607 | SWIGINTERN PyObject *_wrap_PrintPreview_PaintPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29608 | PyObject *resultobj = 0; | |
29609 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29610 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29611 | wxDC *arg3 = 0 ; | |
29612 | bool result; | |
29613 | void *argp1 = 0 ; | |
29614 | int res1 = 0 ; | |
29615 | void *argp2 = 0 ; | |
29616 | int res2 = 0 ; | |
29617 | void *argp3 = 0 ; | |
29618 | int res3 = 0 ; | |
29619 | PyObject * obj0 = 0 ; | |
29620 | PyObject * obj1 = 0 ; | |
29621 | PyObject * obj2 = 0 ; | |
29622 | char * kwnames[] = { | |
29623 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29624 | }; | |
29625 | ||
29626 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29627 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29628 | if (!SWIG_IsOK(res1)) { | |
29629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_PaintPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29630 | } | |
29631 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29632 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29633 | if (!SWIG_IsOK(res2)) { | |
29634 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_PaintPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29635 | } | |
29636 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29637 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29638 | if (!SWIG_IsOK(res3)) { | |
29639 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29640 | } | |
29641 | if (!argp3) { | |
29642 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29643 | } | |
29644 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29645 | { | |
29646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29647 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
29648 | wxPyEndAllowThreads(__tstate); | |
29649 | if (PyErr_Occurred()) SWIG_fail; | |
29650 | } | |
29651 | { | |
29652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29653 | } | |
29654 | return resultobj; | |
29655 | fail: | |
29656 | return NULL; | |
29657 | } | |
29658 | ||
29659 | ||
29660 | SWIGINTERN PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29661 | PyObject *resultobj = 0; | |
29662 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29663 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29664 | wxDC *arg3 = 0 ; | |
29665 | bool result; | |
29666 | void *argp1 = 0 ; | |
29667 | int res1 = 0 ; | |
29668 | void *argp2 = 0 ; | |
29669 | int res2 = 0 ; | |
29670 | void *argp3 = 0 ; | |
29671 | int res3 = 0 ; | |
29672 | PyObject * obj0 = 0 ; | |
29673 | PyObject * obj1 = 0 ; | |
29674 | PyObject * obj2 = 0 ; | |
29675 | char * kwnames[] = { | |
29676 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29677 | }; | |
29678 | ||
29679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29681 | if (!SWIG_IsOK(res1)) { | |
29682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29683 | } | |
29684 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29685 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29686 | if (!SWIG_IsOK(res2)) { | |
29687 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29688 | } | |
29689 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29690 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29691 | if (!SWIG_IsOK(res3)) { | |
29692 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29693 | } | |
29694 | if (!argp3) { | |
29695 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29696 | } | |
29697 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29698 | { | |
29699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29700 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
29701 | wxPyEndAllowThreads(__tstate); | |
29702 | if (PyErr_Occurred()) SWIG_fail; | |
29703 | } | |
29704 | { | |
29705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29706 | } | |
29707 | return resultobj; | |
29708 | fail: | |
29709 | return NULL; | |
29710 | } | |
29711 | ||
29712 | ||
29713 | SWIGINTERN PyObject *_wrap_PrintPreview_RenderPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29714 | PyObject *resultobj = 0; | |
29715 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29716 | int arg2 ; | |
29717 | bool result; | |
29718 | void *argp1 = 0 ; | |
29719 | int res1 = 0 ; | |
29720 | int val2 ; | |
29721 | int ecode2 = 0 ; | |
29722 | PyObject * obj0 = 0 ; | |
29723 | PyObject * obj1 = 0 ; | |
29724 | char * kwnames[] = { | |
29725 | (char *) "self",(char *) "pageNum", NULL | |
29726 | }; | |
29727 | ||
29728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29730 | if (!SWIG_IsOK(res1)) { | |
29731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_RenderPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29732 | } | |
29733 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29734 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29735 | if (!SWIG_IsOK(ecode2)) { | |
29736 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_RenderPage" "', expected argument " "2"" of type '" "int""'"); | |
29737 | } | |
29738 | arg2 = static_cast< int >(val2); | |
29739 | { | |
29740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29741 | result = (bool)(arg1)->RenderPage(arg2); | |
29742 | wxPyEndAllowThreads(__tstate); | |
29743 | if (PyErr_Occurred()) SWIG_fail; | |
29744 | } | |
29745 | { | |
29746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29747 | } | |
29748 | return resultobj; | |
29749 | fail: | |
29750 | return NULL; | |
29751 | } | |
29752 | ||
29753 | ||
29754 | SWIGINTERN PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29755 | PyObject *resultobj = 0; | |
29756 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29757 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29758 | void *argp1 = 0 ; | |
29759 | int res1 = 0 ; | |
29760 | void *argp2 = 0 ; | |
29761 | int res2 = 0 ; | |
29762 | PyObject * obj0 = 0 ; | |
29763 | PyObject * obj1 = 0 ; | |
29764 | char * kwnames[] = { | |
29765 | (char *) "self",(char *) "canvas", NULL | |
29766 | }; | |
29767 | ||
29768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) SWIG_fail; | |
29769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29770 | if (!SWIG_IsOK(res1)) { | |
29771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29772 | } | |
29773 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29774 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29775 | if (!SWIG_IsOK(res2)) { | |
29776 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29777 | } | |
29778 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29779 | { | |
29780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29781 | (arg1)->AdjustScrollbars(arg2); | |
29782 | wxPyEndAllowThreads(__tstate); | |
29783 | if (PyErr_Occurred()) SWIG_fail; | |
29784 | } | |
29785 | resultobj = SWIG_Py_Void(); | |
29786 | return resultobj; | |
29787 | fail: | |
29788 | return NULL; | |
d55e5bfc RD |
29789 | } |
29790 | ||
29791 | ||
1bd55598 RD |
29792 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29793 | PyObject *resultobj = 0; | |
29794 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29795 | wxPrintDialogData *result = 0 ; | |
29796 | void *argp1 = 0 ; | |
29797 | int res1 = 0 ; | |
29798 | PyObject *swig_obj[1] ; | |
29799 | ||
29800 | if (!args) SWIG_fail; | |
29801 | swig_obj[0] = args; | |
29802 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29803 | if (!SWIG_IsOK(res1)) { | |
29804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29805 | } | |
29806 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29807 | { | |
29808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 29809 | { |
1bd55598 RD |
29810 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
29811 | result = (wxPrintDialogData *) &_result_ref; | |
d55e5bfc | 29812 | } |
1bd55598 RD |
29813 | wxPyEndAllowThreads(__tstate); |
29814 | if (PyErr_Occurred()) SWIG_fail; | |
29815 | } | |
29816 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29817 | return resultobj; | |
29818 | fail: | |
29819 | return NULL; | |
29820 | } | |
29821 | ||
29822 | ||
29823 | SWIGINTERN PyObject *_wrap_PrintPreview_SetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29824 | PyObject *resultobj = 0; | |
29825 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29826 | int arg2 ; | |
29827 | void *argp1 = 0 ; | |
29828 | int res1 = 0 ; | |
29829 | int val2 ; | |
29830 | int ecode2 = 0 ; | |
29831 | PyObject * obj0 = 0 ; | |
29832 | PyObject * obj1 = 0 ; | |
29833 | char * kwnames[] = { | |
29834 | (char *) "self",(char *) "percent", NULL | |
29835 | }; | |
29836 | ||
29837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) SWIG_fail; | |
29838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29839 | if (!SWIG_IsOK(res1)) { | |
29840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29841 | } | |
29842 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29843 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29844 | if (!SWIG_IsOK(ecode2)) { | |
29845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetZoom" "', expected argument " "2"" of type '" "int""'"); | |
29846 | } | |
29847 | arg2 = static_cast< int >(val2); | |
29848 | { | |
29849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29850 | (arg1)->SetZoom(arg2); | |
29851 | wxPyEndAllowThreads(__tstate); | |
29852 | if (PyErr_Occurred()) SWIG_fail; | |
29853 | } | |
29854 | resultobj = SWIG_Py_Void(); | |
29855 | return resultobj; | |
29856 | fail: | |
29857 | return NULL; | |
d55e5bfc RD |
29858 | } |
29859 | ||
29860 | ||
1bd55598 RD |
29861 | SWIGINTERN PyObject *_wrap_PrintPreview_GetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29862 | PyObject *resultobj = 0; | |
29863 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29864 | int result; | |
29865 | void *argp1 = 0 ; | |
29866 | int res1 = 0 ; | |
29867 | PyObject *swig_obj[1] ; | |
29868 | ||
29869 | if (!args) SWIG_fail; | |
29870 | swig_obj[0] = args; | |
29871 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29872 | if (!SWIG_IsOK(res1)) { | |
29873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29874 | } | |
29875 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29876 | { | |
29877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29878 | result = (int)(arg1)->GetZoom(); | |
29879 | wxPyEndAllowThreads(__tstate); | |
29880 | if (PyErr_Occurred()) SWIG_fail; | |
29881 | } | |
29882 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29883 | return resultobj; | |
29884 | fail: | |
29885 | return NULL; | |
d55e5bfc RD |
29886 | } |
29887 | ||
29888 | ||
1bd55598 RD |
29889 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29890 | PyObject *resultobj = 0; | |
29891 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29892 | int result; | |
29893 | void *argp1 = 0 ; | |
29894 | int res1 = 0 ; | |
29895 | PyObject *swig_obj[1] ; | |
29896 | ||
29897 | if (!args) SWIG_fail; | |
29898 | swig_obj[0] = args; | |
29899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29900 | if (!SWIG_IsOK(res1)) { | |
29901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29902 | } | |
29903 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29904 | { | |
29905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29906 | result = (int)(arg1)->GetMaxPage(); | |
29907 | wxPyEndAllowThreads(__tstate); | |
29908 | if (PyErr_Occurred()) SWIG_fail; | |
29909 | } | |
29910 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29911 | return resultobj; | |
29912 | fail: | |
29913 | return NULL; | |
d55e5bfc RD |
29914 | } |
29915 | ||
29916 | ||
1bd55598 RD |
29917 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29918 | PyObject *resultobj = 0; | |
29919 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29920 | int result; | |
29921 | void *argp1 = 0 ; | |
29922 | int res1 = 0 ; | |
29923 | PyObject *swig_obj[1] ; | |
29924 | ||
29925 | if (!args) SWIG_fail; | |
29926 | swig_obj[0] = args; | |
29927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29928 | if (!SWIG_IsOK(res1)) { | |
29929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMinPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29930 | } | |
29931 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29932 | { | |
29933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29934 | result = (int)(arg1)->GetMinPage(); | |
29935 | wxPyEndAllowThreads(__tstate); | |
29936 | if (PyErr_Occurred()) SWIG_fail; | |
29937 | } | |
29938 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29939 | return resultobj; | |
29940 | fail: | |
29941 | return NULL; | |
d55e5bfc RD |
29942 | } |
29943 | ||
29944 | ||
b39fe951 | 29945 | SWIGINTERN PyObject *_wrap_PrintPreview_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
1bd55598 RD |
29946 | PyObject *resultobj = 0; |
29947 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29948 | bool result; | |
29949 | void *argp1 = 0 ; | |
29950 | int res1 = 0 ; | |
29951 | PyObject *swig_obj[1] ; | |
29952 | ||
29953 | if (!args) SWIG_fail; | |
29954 | swig_obj[0] = args; | |
29955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29956 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 29957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_IsOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); |
1bd55598 RD |
29958 | } |
29959 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29960 | { | |
29961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 29962 | result = (bool)(arg1)->IsOk(); |
1bd55598 RD |
29963 | wxPyEndAllowThreads(__tstate); |
29964 | if (PyErr_Occurred()) SWIG_fail; | |
29965 | } | |
29966 | { | |
29967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29968 | } | |
29969 | return resultobj; | |
29970 | fail: | |
29971 | return NULL; | |
29972 | } | |
29973 | ||
29974 | ||
29975 | SWIGINTERN PyObject *_wrap_PrintPreview_SetOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29976 | PyObject *resultobj = 0; | |
29977 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29978 | bool arg2 ; | |
29979 | void *argp1 = 0 ; | |
29980 | int res1 = 0 ; | |
29981 | bool val2 ; | |
29982 | int ecode2 = 0 ; | |
29983 | PyObject * obj0 = 0 ; | |
29984 | PyObject * obj1 = 0 ; | |
29985 | char * kwnames[] = { | |
29986 | (char *) "self",(char *) "ok", NULL | |
29987 | }; | |
29988 | ||
29989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) SWIG_fail; | |
29990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29991 | if (!SWIG_IsOK(res1)) { | |
29992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29993 | } | |
29994 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29995 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
29996 | if (!SWIG_IsOK(ecode2)) { | |
29997 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetOk" "', expected argument " "2"" of type '" "bool""'"); | |
29998 | } | |
29999 | arg2 = static_cast< bool >(val2); | |
30000 | { | |
30001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30002 | (arg1)->SetOk(arg2); | |
30003 | wxPyEndAllowThreads(__tstate); | |
30004 | if (PyErr_Occurred()) SWIG_fail; | |
30005 | } | |
30006 | resultobj = SWIG_Py_Void(); | |
30007 | return resultobj; | |
30008 | fail: | |
30009 | return NULL; | |
30010 | } | |
30011 | ||
30012 | ||
30013 | SWIGINTERN PyObject *_wrap_PrintPreview_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30014 | PyObject *resultobj = 0; | |
30015 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30016 | bool arg2 ; | |
30017 | bool result; | |
30018 | void *argp1 = 0 ; | |
30019 | int res1 = 0 ; | |
30020 | bool val2 ; | |
30021 | int ecode2 = 0 ; | |
30022 | PyObject * obj0 = 0 ; | |
30023 | PyObject * obj1 = 0 ; | |
30024 | char * kwnames[] = { | |
30025 | (char *) "self",(char *) "interactive", NULL | |
30026 | }; | |
30027 | ||
30028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) SWIG_fail; | |
30029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30030 | if (!SWIG_IsOK(res1)) { | |
30031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Print" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30032 | } | |
30033 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30034 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
30035 | if (!SWIG_IsOK(ecode2)) { | |
30036 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_Print" "', expected argument " "2"" of type '" "bool""'"); | |
30037 | } | |
30038 | arg2 = static_cast< bool >(val2); | |
30039 | { | |
30040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30041 | result = (bool)(arg1)->Print(arg2); | |
30042 | wxPyEndAllowThreads(__tstate); | |
30043 | if (PyErr_Occurred()) SWIG_fail; | |
30044 | } | |
30045 | { | |
30046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30047 | } | |
30048 | return resultobj; | |
30049 | fail: | |
30050 | return NULL; | |
d55e5bfc RD |
30051 | } |
30052 | ||
30053 | ||
1bd55598 RD |
30054 | SWIGINTERN PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30055 | PyObject *resultobj = 0; | |
30056 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30057 | void *argp1 = 0 ; | |
30058 | int res1 = 0 ; | |
30059 | PyObject *swig_obj[1] ; | |
30060 | ||
30061 | if (!args) SWIG_fail; | |
30062 | swig_obj[0] = args; | |
30063 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30064 | if (!SWIG_IsOK(res1)) { | |
30065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DetermineScaling" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30066 | } | |
30067 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30068 | { | |
30069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30070 | (arg1)->DetermineScaling(); | |
30071 | wxPyEndAllowThreads(__tstate); | |
30072 | if (PyErr_Occurred()) SWIG_fail; | |
30073 | } | |
30074 | resultobj = SWIG_Py_Void(); | |
30075 | return resultobj; | |
30076 | fail: | |
30077 | return NULL; | |
d55e5bfc RD |
30078 | } |
30079 | ||
30080 | ||
1bd55598 RD |
30081 | SWIGINTERN PyObject *PrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30082 | PyObject *obj; | |
30083 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30084 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintPreview, SWIG_NewClientData(obj)); | |
30085 | return SWIG_Py_Void(); | |
d55e5bfc RD |
30086 | } |
30087 | ||
1bd55598 RD |
30088 | SWIGINTERN PyObject *PrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30089 | return SWIG_Python_InitShadowInstance(args); | |
30090 | } | |
d55e5bfc | 30091 | |
1bd55598 RD |
30092 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
30093 | PyObject *resultobj = 0; | |
30094 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
30095 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30096 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
30097 | wxPyPrintPreview *result = 0 ; | |
30098 | int res1 = 0 ; | |
30099 | int res2 = 0 ; | |
30100 | void *argp3 = 0 ; | |
30101 | int res3 = 0 ; | |
30102 | ||
30103 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
30104 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30105 | if (!SWIG_IsOK(res1)) { | |
30106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30107 | } | |
30108 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30109 | if (!SWIG_IsOK(res2)) { | |
30110 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30111 | } | |
30112 | if (swig_obj[2]) { | |
30113 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
30114 | if (!SWIG_IsOK(res3)) { | |
30115 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
30116 | } | |
30117 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); | |
30118 | } | |
30119 | { | |
30120 | if (!wxPyCheckForApp()) SWIG_fail; | |
30121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30122 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
30123 | wxPyEndAllowThreads(__tstate); | |
30124 | if (PyErr_Occurred()) SWIG_fail; | |
30125 | } | |
30126 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30127 | return resultobj; | |
30128 | fail: | |
30129 | return NULL; | |
30130 | } | |
30131 | ||
30132 | ||
30133 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30134 | PyObject *resultobj = 0; | |
30135 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
30136 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30137 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
30138 | wxPyPrintPreview *result = 0 ; | |
30139 | int res1 = 0 ; | |
30140 | int res2 = 0 ; | |
30141 | void *argp3 = 0 ; | |
30142 | int res3 = 0 ; | |
30143 | ||
30144 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
30145 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30146 | if (!SWIG_IsOK(res1)) { | |
30147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30148 | } | |
30149 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30150 | if (!SWIG_IsOK(res2)) { | |
30151 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30152 | } | |
30153 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
30154 | if (!SWIG_IsOK(res3)) { | |
30155 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
30156 | } | |
30157 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
30158 | { | |
30159 | if (!wxPyCheckForApp()) SWIG_fail; | |
30160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30161 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
30162 | wxPyEndAllowThreads(__tstate); | |
30163 | if (PyErr_Occurred()) SWIG_fail; | |
30164 | } | |
30165 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30166 | return resultobj; | |
30167 | fail: | |
30168 | return NULL; | |
d55e5bfc RD |
30169 | } |
30170 | ||
30171 | ||
1bd55598 RD |
30172 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { |
30173 | int argc; | |
30174 | PyObject *argv[4]; | |
30175 | ||
30176 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PyPrintPreview",0,3,argv))) SWIG_fail; | |
30177 | --argc; | |
30178 | if ((argc >= 2) && (argc <= 3)) { | |
30179 | int _v = 0; | |
30180 | if (argc > 2) { | |
30181 | { | |
30182 | void *vptr = 0; | |
30183 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
30184 | _v = SWIG_CheckState(res); | |
30185 | } | |
30186 | if (!_v) goto check_1; | |
36ed4f51 | 30187 | } |
1bd55598 RD |
30188 | return _wrap_new_PyPrintPreview__SWIG_0(self, argc, argv); |
30189 | } | |
30190 | check_1: | |
30191 | ||
30192 | if (argc == 3) { | |
30193 | return _wrap_new_PyPrintPreview__SWIG_1(self, argc, argv); | |
30194 | } | |
30195 | ||
30196 | fail: | |
30197 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
30198 | return NULL; | |
30199 | } | |
30200 | ||
30201 | ||
30202 | SWIGINTERN PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30203 | PyObject *resultobj = 0; | |
30204 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
30205 | PyObject *arg2 = (PyObject *) 0 ; | |
30206 | PyObject *arg3 = (PyObject *) 0 ; | |
30207 | void *argp1 = 0 ; | |
30208 | int res1 = 0 ; | |
30209 | PyObject * obj0 = 0 ; | |
30210 | PyObject * obj1 = 0 ; | |
30211 | PyObject * obj2 = 0 ; | |
30212 | char * kwnames[] = { | |
30213 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30214 | }; | |
30215 | ||
30216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintPreview, 0 | 0 ); | |
30218 | if (!SWIG_IsOK(res1)) { | |
30219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPrintPreview__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintPreview *""'"); | |
30220 | } | |
30221 | arg1 = reinterpret_cast< wxPyPrintPreview * >(argp1); | |
30222 | arg2 = obj1; | |
30223 | arg3 = obj2; | |
30224 | { | |
30225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30226 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30227 | wxPyEndAllowThreads(__tstate); | |
30228 | if (PyErr_Occurred()) SWIG_fail; | |
30229 | } | |
30230 | resultobj = SWIG_Py_Void(); | |
30231 | return resultobj; | |
30232 | fail: | |
30233 | return NULL; | |
30234 | } | |
30235 | ||
30236 | ||
30237 | SWIGINTERN PyObject *PyPrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30238 | PyObject *obj; | |
30239 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30240 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintPreview, SWIG_NewClientData(obj)); | |
30241 | return SWIG_Py_Void(); | |
30242 | } | |
30243 | ||
30244 | SWIGINTERN PyObject *PyPrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30245 | return SWIG_Python_InitShadowInstance(args); | |
30246 | } | |
30247 | ||
30248 | SWIGINTERN PyObject *_wrap_new_PyPreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30249 | PyObject *resultobj = 0; | |
30250 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30251 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30252 | wxString *arg3 = 0 ; | |
30253 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30254 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30255 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30256 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30257 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
30258 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
30259 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30260 | wxPyPreviewFrame *result = 0 ; | |
30261 | void *argp1 = 0 ; | |
30262 | int res1 = 0 ; | |
30263 | void *argp2 = 0 ; | |
30264 | int res2 = 0 ; | |
30265 | bool temp3 = false ; | |
30266 | wxPoint temp4 ; | |
30267 | wxSize temp5 ; | |
30268 | long val6 ; | |
30269 | int ecode6 = 0 ; | |
30270 | bool temp7 = false ; | |
30271 | PyObject * obj0 = 0 ; | |
30272 | PyObject * obj1 = 0 ; | |
30273 | PyObject * obj2 = 0 ; | |
30274 | PyObject * obj3 = 0 ; | |
30275 | PyObject * obj4 = 0 ; | |
30276 | PyObject * obj5 = 0 ; | |
30277 | PyObject * obj6 = 0 ; | |
30278 | char * kwnames[] = { | |
30279 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30280 | }; | |
30281 | ||
30282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30284 | if (!SWIG_IsOK(res1)) { | |
30285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30286 | } | |
30287 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30288 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
30289 | if (!SWIG_IsOK(res2)) { | |
30290 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
30291 | } | |
30292 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
30293 | { | |
30294 | arg3 = wxString_in_helper(obj2); | |
30295 | if (arg3 == NULL) SWIG_fail; | |
30296 | temp3 = true; | |
30297 | } | |
30298 | if (obj3) { | |
36ed4f51 | 30299 | { |
1bd55598 RD |
30300 | arg4 = &temp4; |
30301 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 30302 | } |
1bd55598 RD |
30303 | } |
30304 | if (obj4) { | |
d55e5bfc | 30305 | { |
1bd55598 RD |
30306 | arg5 = &temp5; |
30307 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 30308 | } |
1bd55598 RD |
30309 | } |
30310 | if (obj5) { | |
30311 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
30312 | if (!SWIG_IsOK(ecode6)) { | |
30313 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
30314 | } | |
30315 | arg6 = static_cast< long >(val6); | |
30316 | } | |
30317 | if (obj6) { | |
36ed4f51 | 30318 | { |
1bd55598 RD |
30319 | arg7 = wxString_in_helper(obj6); |
30320 | if (arg7 == NULL) SWIG_fail; | |
30321 | temp7 = true; | |
36ed4f51 | 30322 | } |
1bd55598 RD |
30323 | } |
30324 | { | |
30325 | if (!wxPyCheckForApp()) SWIG_fail; | |
30326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30327 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
30328 | wxPyEndAllowThreads(__tstate); | |
30329 | if (PyErr_Occurred()) SWIG_fail; | |
30330 | } | |
30331 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
30332 | { | |
30333 | if (temp3) | |
30334 | delete arg3; | |
30335 | } | |
30336 | { | |
30337 | if (temp7) | |
30338 | delete arg7; | |
30339 | } | |
30340 | return resultobj; | |
30341 | fail: | |
30342 | { | |
30343 | if (temp3) | |
30344 | delete arg3; | |
30345 | } | |
30346 | { | |
30347 | if (temp7) | |
30348 | delete arg7; | |
30349 | } | |
30350 | return NULL; | |
30351 | } | |
30352 | ||
30353 | ||
30354 | SWIGINTERN PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30355 | PyObject *resultobj = 0; | |
30356 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30357 | PyObject *arg2 = (PyObject *) 0 ; | |
30358 | PyObject *arg3 = (PyObject *) 0 ; | |
30359 | void *argp1 = 0 ; | |
30360 | int res1 = 0 ; | |
30361 | PyObject * obj0 = 0 ; | |
30362 | PyObject * obj1 = 0 ; | |
30363 | PyObject * obj2 = 0 ; | |
30364 | char * kwnames[] = { | |
30365 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30366 | }; | |
30367 | ||
30368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30370 | if (!SWIG_IsOK(res1)) { | |
30371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30372 | } | |
30373 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30374 | arg2 = obj1; | |
30375 | arg3 = obj2; | |
30376 | { | |
30377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30378 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30379 | wxPyEndAllowThreads(__tstate); | |
30380 | if (PyErr_Occurred()) SWIG_fail; | |
30381 | } | |
30382 | resultobj = SWIG_Py_Void(); | |
30383 | return resultobj; | |
30384 | fail: | |
30385 | return NULL; | |
30386 | } | |
30387 | ||
30388 | ||
30389 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30390 | PyObject *resultobj = 0; | |
30391 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30392 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30393 | void *argp1 = 0 ; | |
30394 | int res1 = 0 ; | |
30395 | void *argp2 = 0 ; | |
30396 | int res2 = 0 ; | |
30397 | PyObject * obj0 = 0 ; | |
30398 | PyObject * obj1 = 0 ; | |
30399 | char * kwnames[] = { | |
30400 | (char *) "self",(char *) "canvas", NULL | |
30401 | }; | |
30402 | ||
30403 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
30404 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30405 | if (!SWIG_IsOK(res1)) { | |
30406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30407 | } | |
30408 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30409 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30410 | if (!SWIG_IsOK(res2)) { | |
30411 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30412 | } | |
30413 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30414 | { | |
30415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30416 | (arg1)->SetPreviewCanvas(arg2); | |
30417 | wxPyEndAllowThreads(__tstate); | |
30418 | if (PyErr_Occurred()) SWIG_fail; | |
30419 | } | |
30420 | resultobj = SWIG_Py_Void(); | |
30421 | return resultobj; | |
30422 | fail: | |
30423 | return NULL; | |
30424 | } | |
30425 | ||
30426 | ||
30427 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30428 | PyObject *resultobj = 0; | |
30429 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30430 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
30431 | void *argp1 = 0 ; | |
30432 | int res1 = 0 ; | |
30433 | void *argp2 = 0 ; | |
30434 | int res2 = 0 ; | |
30435 | PyObject * obj0 = 0 ; | |
30436 | PyObject * obj1 = 0 ; | |
30437 | char * kwnames[] = { | |
30438 | (char *) "self",(char *) "bar", NULL | |
30439 | }; | |
30440 | ||
30441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
30442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30443 | if (!SWIG_IsOK(res1)) { | |
30444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30445 | } | |
30446 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30447 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30448 | if (!SWIG_IsOK(res2)) { | |
30449 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "2"" of type '" "wxPreviewControlBar *""'"); | |
30450 | } | |
30451 | arg2 = reinterpret_cast< wxPreviewControlBar * >(argp2); | |
30452 | { | |
30453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30454 | (arg1)->SetControlBar(arg2); | |
30455 | wxPyEndAllowThreads(__tstate); | |
30456 | if (PyErr_Occurred()) SWIG_fail; | |
30457 | } | |
30458 | resultobj = SWIG_Py_Void(); | |
30459 | return resultobj; | |
30460 | fail: | |
30461 | return NULL; | |
d55e5bfc RD |
30462 | } |
30463 | ||
30464 | ||
1bd55598 RD |
30465 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30466 | PyObject *resultobj = 0; | |
30467 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30468 | void *argp1 = 0 ; | |
30469 | int res1 = 0 ; | |
30470 | PyObject *swig_obj[1] ; | |
30471 | ||
30472 | if (!args) SWIG_fail; | |
30473 | swig_obj[0] = args; | |
30474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30475 | if (!SWIG_IsOK(res1)) { | |
30476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30477 | } | |
30478 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30479 | { | |
30480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30481 | (arg1)->Initialize(); | |
30482 | wxPyEndAllowThreads(__tstate); | |
30483 | if (PyErr_Occurred()) SWIG_fail; | |
30484 | } | |
30485 | resultobj = SWIG_Py_Void(); | |
30486 | return resultobj; | |
30487 | fail: | |
30488 | return NULL; | |
d55e5bfc RD |
30489 | } |
30490 | ||
30491 | ||
1bd55598 RD |
30492 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30493 | PyObject *resultobj = 0; | |
30494 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30495 | void *argp1 = 0 ; | |
30496 | int res1 = 0 ; | |
30497 | PyObject *swig_obj[1] ; | |
30498 | ||
30499 | if (!args) SWIG_fail; | |
30500 | swig_obj[0] = args; | |
30501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30502 | if (!SWIG_IsOK(res1)) { | |
30503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30504 | } | |
30505 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30506 | { | |
30507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30508 | (arg1)->CreateCanvas(); | |
30509 | wxPyEndAllowThreads(__tstate); | |
30510 | if (PyErr_Occurred()) SWIG_fail; | |
30511 | } | |
30512 | resultobj = SWIG_Py_Void(); | |
30513 | return resultobj; | |
30514 | fail: | |
30515 | return NULL; | |
d55e5bfc RD |
30516 | } |
30517 | ||
30518 | ||
1bd55598 RD |
30519 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30520 | PyObject *resultobj = 0; | |
30521 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30522 | void *argp1 = 0 ; | |
30523 | int res1 = 0 ; | |
30524 | PyObject *swig_obj[1] ; | |
30525 | ||
30526 | if (!args) SWIG_fail; | |
30527 | swig_obj[0] = args; | |
30528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30529 | if (!SWIG_IsOK(res1)) { | |
30530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30531 | } | |
30532 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30533 | { | |
30534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30535 | (arg1)->CreateControlBar(); | |
30536 | wxPyEndAllowThreads(__tstate); | |
30537 | if (PyErr_Occurred()) SWIG_fail; | |
30538 | } | |
30539 | resultobj = SWIG_Py_Void(); | |
30540 | return resultobj; | |
30541 | fail: | |
30542 | return NULL; | |
30543 | } | |
30544 | ||
30545 | ||
30546 | SWIGINTERN PyObject *PyPreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30547 | PyObject *obj; | |
30548 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30549 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewFrame, SWIG_NewClientData(obj)); | |
30550 | return SWIG_Py_Void(); | |
30551 | } | |
30552 | ||
30553 | SWIGINTERN PyObject *PyPreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30554 | return SWIG_Python_InitShadowInstance(args); | |
30555 | } | |
30556 | ||
30557 | SWIGINTERN PyObject *_wrap_new_PyPreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30558 | PyObject *resultobj = 0; | |
30559 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30560 | long arg2 ; | |
30561 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30562 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30563 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30564 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30565 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30566 | long arg6 = (long) 0 ; | |
30567 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
30568 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30569 | wxPyPreviewControlBar *result = 0 ; | |
30570 | void *argp1 = 0 ; | |
30571 | int res1 = 0 ; | |
30572 | long val2 ; | |
30573 | int ecode2 = 0 ; | |
30574 | void *argp3 = 0 ; | |
30575 | int res3 = 0 ; | |
30576 | wxPoint temp4 ; | |
30577 | wxSize temp5 ; | |
30578 | long val6 ; | |
30579 | int ecode6 = 0 ; | |
30580 | bool temp7 = false ; | |
30581 | PyObject * obj0 = 0 ; | |
30582 | PyObject * obj1 = 0 ; | |
30583 | PyObject * obj2 = 0 ; | |
30584 | PyObject * obj3 = 0 ; | |
30585 | PyObject * obj4 = 0 ; | |
30586 | PyObject * obj5 = 0 ; | |
30587 | PyObject * obj6 = 0 ; | |
30588 | char * kwnames[] = { | |
30589 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30590 | }; | |
30591 | ||
30592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30594 | if (!SWIG_IsOK(res1)) { | |
30595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30596 | } | |
30597 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30598 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30599 | if (!SWIG_IsOK(ecode2)) { | |
30600 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
30601 | } | |
30602 | arg2 = static_cast< long >(val2); | |
30603 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30604 | if (!SWIG_IsOK(res3)) { | |
30605 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
30606 | } | |
30607 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
30608 | if (obj3) { | |
d55e5bfc | 30609 | { |
1bd55598 RD |
30610 | arg4 = &temp4; |
30611 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 30612 | } |
1bd55598 RD |
30613 | } |
30614 | if (obj4) { | |
d55e5bfc | 30615 | { |
1bd55598 RD |
30616 | arg5 = &temp5; |
30617 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 30618 | } |
1bd55598 RD |
30619 | } |
30620 | if (obj5) { | |
30621 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
30622 | if (!SWIG_IsOK(ecode6)) { | |
30623 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
30624 | } | |
30625 | arg6 = static_cast< long >(val6); | |
30626 | } | |
30627 | if (obj6) { | |
d55e5bfc | 30628 | { |
1bd55598 RD |
30629 | arg7 = wxString_in_helper(obj6); |
30630 | if (arg7 == NULL) SWIG_fail; | |
30631 | temp7 = true; | |
d55e5bfc | 30632 | } |
1bd55598 RD |
30633 | } |
30634 | { | |
30635 | if (!wxPyCheckForApp()) SWIG_fail; | |
30636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30637 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
30638 | wxPyEndAllowThreads(__tstate); | |
30639 | if (PyErr_Occurred()) SWIG_fail; | |
30640 | } | |
30641 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
30642 | { | |
30643 | if (temp7) | |
30644 | delete arg7; | |
30645 | } | |
30646 | return resultobj; | |
30647 | fail: | |
30648 | { | |
30649 | if (temp7) | |
30650 | delete arg7; | |
30651 | } | |
30652 | return NULL; | |
30653 | } | |
30654 | ||
30655 | ||
30656 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30657 | PyObject *resultobj = 0; | |
30658 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30659 | PyObject *arg2 = (PyObject *) 0 ; | |
30660 | PyObject *arg3 = (PyObject *) 0 ; | |
30661 | void *argp1 = 0 ; | |
30662 | int res1 = 0 ; | |
30663 | PyObject * obj0 = 0 ; | |
30664 | PyObject * obj1 = 0 ; | |
30665 | PyObject * obj2 = 0 ; | |
30666 | char * kwnames[] = { | |
30667 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30668 | }; | |
30669 | ||
30670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30672 | if (!SWIG_IsOK(res1)) { | |
30673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30674 | } | |
30675 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30676 | arg2 = obj1; | |
30677 | arg3 = obj2; | |
30678 | { | |
30679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30680 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30681 | wxPyEndAllowThreads(__tstate); | |
30682 | if (PyErr_Occurred()) SWIG_fail; | |
30683 | } | |
30684 | resultobj = SWIG_Py_Void(); | |
30685 | return resultobj; | |
30686 | fail: | |
30687 | return NULL; | |
30688 | } | |
30689 | ||
30690 | ||
30691 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30692 | PyObject *resultobj = 0; | |
30693 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30694 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
30695 | void *argp1 = 0 ; | |
30696 | int res1 = 0 ; | |
30697 | void *argp2 = 0 ; | |
30698 | int res2 = 0 ; | |
30699 | PyObject * obj0 = 0 ; | |
30700 | PyObject * obj1 = 0 ; | |
30701 | char * kwnames[] = { | |
30702 | (char *) "self",(char *) "preview", NULL | |
30703 | }; | |
30704 | ||
30705 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
30706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30707 | if (!SWIG_IsOK(res1)) { | |
30708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30709 | } | |
30710 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30711 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30712 | if (!SWIG_IsOK(res2)) { | |
30713 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "2"" of type '" "wxPrintPreview *""'"); | |
30714 | } | |
30715 | arg2 = reinterpret_cast< wxPrintPreview * >(argp2); | |
30716 | { | |
30717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30718 | (arg1)->SetPrintPreview(arg2); | |
30719 | wxPyEndAllowThreads(__tstate); | |
30720 | if (PyErr_Occurred()) SWIG_fail; | |
30721 | } | |
30722 | resultobj = SWIG_Py_Void(); | |
30723 | return resultobj; | |
30724 | fail: | |
30725 | return NULL; | |
d55e5bfc RD |
30726 | } |
30727 | ||
30728 | ||
1bd55598 RD |
30729 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_CreateButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30730 | PyObject *resultobj = 0; | |
30731 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30732 | void *argp1 = 0 ; | |
30733 | int res1 = 0 ; | |
30734 | PyObject *swig_obj[1] ; | |
30735 | ||
30736 | if (!args) SWIG_fail; | |
30737 | swig_obj[0] = args; | |
30738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30739 | if (!SWIG_IsOK(res1)) { | |
30740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_CreateButtons" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30741 | } | |
30742 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30743 | { | |
30744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30745 | (arg1)->CreateButtons(); | |
30746 | wxPyEndAllowThreads(__tstate); | |
30747 | if (PyErr_Occurred()) SWIG_fail; | |
30748 | } | |
30749 | resultobj = SWIG_Py_Void(); | |
30750 | return resultobj; | |
30751 | fail: | |
30752 | return NULL; | |
30753 | } | |
30754 | ||
30755 | ||
30756 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30757 | PyObject *resultobj = 0; | |
30758 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30759 | int arg2 ; | |
30760 | void *argp1 = 0 ; | |
30761 | int res1 = 0 ; | |
30762 | int val2 ; | |
30763 | int ecode2 = 0 ; | |
30764 | PyObject * obj0 = 0 ; | |
30765 | PyObject * obj1 = 0 ; | |
30766 | char * kwnames[] = { | |
30767 | (char *) "self",(char *) "zoom", NULL | |
30768 | }; | |
30769 | ||
30770 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
30771 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30772 | if (!SWIG_IsOK(res1)) { | |
30773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30774 | } | |
30775 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30776 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30777 | if (!SWIG_IsOK(ecode2)) { | |
30778 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
30779 | } | |
30780 | arg2 = static_cast< int >(val2); | |
30781 | { | |
30782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30783 | (arg1)->SetZoomControl(arg2); | |
30784 | wxPyEndAllowThreads(__tstate); | |
30785 | if (PyErr_Occurred()) SWIG_fail; | |
30786 | } | |
30787 | resultobj = SWIG_Py_Void(); | |
30788 | return resultobj; | |
30789 | fail: | |
30790 | return NULL; | |
d55e5bfc RD |
30791 | } |
30792 | ||
30793 | ||
1bd55598 RD |
30794 | SWIGINTERN PyObject *PyPreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30795 | PyObject *obj; | |
30796 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30797 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewControlBar, SWIG_NewClientData(obj)); | |
30798 | return SWIG_Py_Void(); | |
d55e5bfc RD |
30799 | } |
30800 | ||
1bd55598 RD |
30801 | SWIGINTERN PyObject *PyPreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30802 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
30803 | } |
30804 | ||
d55e5bfc | 30805 | static PyMethodDef SwigMethods[] = { |
36ed4f51 | 30806 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30807 | { (char *)"new_PrePanel", (PyCFunction)_wrap_new_PrePanel, METH_NOARGS, NULL}, |
36ed4f51 | 30808 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30809 | { (char *)"Panel_SetFocusIgnoringChildren", (PyCFunction)_wrap_Panel_SetFocusIgnoringChildren, METH_O, NULL}, |
36ed4f51 RD |
30810 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30811 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30812 | { (char *)"Panel_swiginit", Panel_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30813 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30814 | { (char *)"new_PreScrolledWindow", (PyCFunction)_wrap_new_PreScrolledWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
30815 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30816 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30817 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30818 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30819 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30820 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30821 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction)_wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_O, NULL}, |
36ed4f51 | 30822 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30823 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction)_wrap_ScrolledWindow_GetViewStart, METH_O, NULL}, |
36ed4f51 | 30824 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30825 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction)_wrap_ScrolledWindow_GetScaleX, METH_O, NULL}, |
30826 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction)_wrap_ScrolledWindow_GetScaleY, METH_O, NULL}, | |
36ed4f51 RD |
30827 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS, NULL}, |
30828 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS, NULL}, | |
1bd55598 | 30829 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction)_wrap_ScrolledWindow_AdjustScrollbars, METH_O, NULL}, |
36ed4f51 RD |
30830 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS, NULL}, |
30831 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30832 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction)_wrap_ScrolledWindow_GetTargetWindow, METH_O, NULL}, |
36ed4f51 | 30833 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30834 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction)_wrap_ScrolledWindow_GetTargetRect, METH_O, NULL}, |
36ed4f51 RD |
30835 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
30836 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30837 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30838 | { (char *)"ScrolledWindow_swiginit", ScrolledWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30839 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30840 | { (char *)"TopLevelWindow_Restore", (PyCFunction)_wrap_TopLevelWindow_Restore, METH_O, NULL}, |
36ed4f51 | 30841 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30842 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction)_wrap_TopLevelWindow_IsMaximized, METH_O, NULL}, |
2131d850 | 30843 | { (char *)"TopLevelWindow_IsAlwaysMaximized", (PyCFunction)_wrap_TopLevelWindow_IsAlwaysMaximized, METH_O, NULL}, |
1bd55598 RD |
30844 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction)_wrap_TopLevelWindow_IsIconized, METH_O, NULL}, |
30845 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction)_wrap_TopLevelWindow_GetIcon, METH_O, NULL}, | |
36ed4f51 RD |
30846 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
30847 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30848 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30849 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction)_wrap_TopLevelWindow_IsFullScreen, METH_O, NULL}, |
36ed4f51 | 30850 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30851 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction)_wrap_TopLevelWindow_GetTitle, METH_O, NULL}, |
36ed4f51 RD |
30852 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS, NULL}, |
30853 | { (char *)"TopLevelWindow_RequestUserAttention", (PyCFunction) _wrap_TopLevelWindow_RequestUserAttention, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30854 | { (char *)"TopLevelWindow_IsActive", (PyCFunction)_wrap_TopLevelWindow_IsActive, METH_O, NULL}, |
36ed4f51 | 30855 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30856 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction)_wrap_TopLevelWindow_MacGetMetalAppearance, METH_O, NULL}, |
b1fcee84 | 30857 | { (char *)"TopLevelWindow_CenterOnScreen", (PyCFunction) _wrap_TopLevelWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
10044bf1 | 30858 | { (char *)"TopLevelWindow_EnableCloseButton", (PyCFunction) _wrap_TopLevelWindow_EnableCloseButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
1eeb270e RD |
30859 | { (char *)"TopLevelWindow_GetDefaultItem", (PyCFunction)_wrap_TopLevelWindow_GetDefaultItem, METH_O, NULL}, |
30860 | { (char *)"TopLevelWindow_SetDefaultItem", (PyCFunction) _wrap_TopLevelWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30861 | { (char *)"TopLevelWindow_SetTmpDefaultItem", (PyCFunction) _wrap_TopLevelWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30862 | { (char *)"TopLevelWindow_GetTmpDefaultItem", (PyCFunction)_wrap_TopLevelWindow_GetTmpDefaultItem, METH_O, NULL}, | |
36ed4f51 RD |
30863 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS, NULL}, |
30864 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30865 | { (char *)"new_PreFrame", (PyCFunction)_wrap_new_PreFrame, METH_NOARGS, NULL}, |
36ed4f51 | 30866 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30867 | { (char *)"Frame_SendSizeEvent", (PyCFunction)_wrap_Frame_SendSizeEvent, METH_O, NULL}, |
36ed4f51 | 30868 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30869 | { (char *)"Frame_GetMenuBar", (PyCFunction)_wrap_Frame_GetMenuBar, METH_O, NULL}, |
36ed4f51 RD |
30870 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS, NULL}, |
30871 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30872 | { (char *)"Frame_GetStatusBar", (PyCFunction)_wrap_Frame_GetStatusBar, METH_O, NULL}, |
36ed4f51 RD |
30873 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
30874 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30875 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30876 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30877 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30878 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30879 | { (char *)"Frame_GetStatusBarPane", (PyCFunction)_wrap_Frame_GetStatusBarPane, METH_O, NULL}, |
36ed4f51 | 30880 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30881 | { (char *)"Frame_GetToolBar", (PyCFunction)_wrap_Frame_GetToolBar, METH_O, NULL}, |
36ed4f51 RD |
30882 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
30883 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30884 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30885 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30886 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30887 | { (char *)"Frame_swiginit", Frame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30888 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30889 | { (char *)"new_PreDialog", (PyCFunction)_wrap_new_PreDialog, METH_NOARGS, NULL}, |
36ed4f51 RD |
30890 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30891 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30892 | { (char *)"Dialog_GetReturnCode", (PyCFunction)_wrap_Dialog_GetReturnCode, METH_O, NULL}, |
b1fcee84 | 30893 | { (char *)"Dialog_SetAffirmativeId", (PyCFunction) _wrap_Dialog_SetAffirmativeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30894 | { (char *)"Dialog_GetAffirmativeId", (PyCFunction)_wrap_Dialog_GetAffirmativeId, METH_O, NULL}, |
b1fcee84 | 30895 | { (char *)"Dialog_SetEscapeId", (PyCFunction) _wrap_Dialog_SetEscapeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30896 | { (char *)"Dialog_GetEscapeId", (PyCFunction)_wrap_Dialog_GetEscapeId, METH_O, NULL}, |
36ed4f51 | 30897 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
b39fe951 RD |
30898 | { (char *)"Dialog__CreateButtonSizer", (PyCFunction) _wrap_Dialog__CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
30899 | { (char *)"Dialog_CreateSeparatedButtonSizer", (PyCFunction) _wrap_Dialog_CreateSeparatedButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
62d32a5f | 30900 | { (char *)"Dialog_CreateStdDialogButtonSizer", (PyCFunction) _wrap_Dialog_CreateStdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30901 | { (char *)"Dialog_IsModal", (PyCFunction)_wrap_Dialog_IsModal, METH_O, NULL}, |
30902 | { (char *)"Dialog_ShowModal", (PyCFunction)_wrap_Dialog_ShowModal, METH_O, NULL}, | |
36ed4f51 RD |
30903 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS, NULL}, |
30904 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30905 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30906 | { (char *)"Dialog_swiginit", Dialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30907 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30908 | { (char *)"new_PreMiniFrame", (PyCFunction)_wrap_new_PreMiniFrame, METH_NOARGS, NULL}, |
36ed4f51 RD |
30909 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30910 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30911 | { (char *)"MiniFrame_swiginit", MiniFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30912 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30913 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30914 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction)_wrap_SplashScreenWindow_GetBitmap, METH_O, NULL}, |
36ed4f51 | 30915 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30916 | { (char *)"SplashScreenWindow_swiginit", SplashScreenWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30917 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30918 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction)_wrap_SplashScreen_GetSplashStyle, METH_O, NULL}, |
30919 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction)_wrap_SplashScreen_GetSplashWindow, METH_O, NULL}, | |
30920 | { (char *)"SplashScreen_GetTimeout", (PyCFunction)_wrap_SplashScreen_GetTimeout, METH_O, NULL}, | |
36ed4f51 | 30921 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30922 | { (char *)"SplashScreen_swiginit", SplashScreen_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30923 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30924 | { (char *)"new_PreStatusBar", (PyCFunction)_wrap_new_PreStatusBar, METH_NOARGS, NULL}, |
36ed4f51 RD |
30925 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30926 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30927 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction)_wrap_StatusBar_GetFieldsCount, METH_O, NULL}, |
36ed4f51 RD |
30928 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, |
30929 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30930 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30931 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30932 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30933 | { (char *)"StatusBar_SetStatusStyles", (PyCFunction) _wrap_StatusBar_SetStatusStyles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30934 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30935 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30936 | { (char *)"StatusBar_GetBorderX", (PyCFunction)_wrap_StatusBar_GetBorderX, METH_O, NULL}, |
30937 | { (char *)"StatusBar_GetBorderY", (PyCFunction)_wrap_StatusBar_GetBorderY, METH_O, NULL}, | |
36ed4f51 RD |
30938 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30939 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30940 | { (char *)"StatusBar_swiginit", StatusBar_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30941 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30942 | { (char *)"new_PreSplitterWindow", (PyCFunction)_wrap_new_PreSplitterWindow, METH_NOARGS, NULL}, |
36ed4f51 | 30943 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30944 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction)_wrap_SplitterWindow_GetWindow1, METH_O, NULL}, |
30945 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction)_wrap_SplitterWindow_GetWindow2, METH_O, NULL}, | |
36ed4f51 | 30946 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30947 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction)_wrap_SplitterWindow_GetSplitMode, METH_O, NULL}, |
36ed4f51 RD |
30948 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, |
30949 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30950 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30951 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30952 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30953 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction)_wrap_SplitterWindow_UpdateSize, METH_O, NULL}, |
30954 | { (char *)"SplitterWindow_IsSplit", (PyCFunction)_wrap_SplitterWindow_IsSplit, METH_O, NULL}, | |
36ed4f51 RD |
30955 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
30956 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30957 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction)_wrap_SplitterWindow_GetSashSize, METH_O, NULL}, |
30958 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction)_wrap_SplitterWindow_GetBorderSize, METH_O, NULL}, | |
36ed4f51 | 30959 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30960 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction)_wrap_SplitterWindow_GetSashPosition, METH_O, NULL}, |
36ed4f51 | 30961 | { (char *)"SplitterWindow_SetSashGravity", (PyCFunction) _wrap_SplitterWindow_SetSashGravity, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30962 | { (char *)"SplitterWindow_GetSashGravity", (PyCFunction)_wrap_SplitterWindow_GetSashGravity, METH_O, NULL}, |
36ed4f51 | 30963 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30964 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction)_wrap_SplitterWindow_GetMinimumPaneSize, METH_O, NULL}, |
36ed4f51 | 30965 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30966 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction)_wrap_SplitterWindow_SizeWindows, METH_O, NULL}, |
36ed4f51 | 30967 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30968 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction)_wrap_SplitterWindow_GetNeedUpdating, METH_O, NULL}, |
36ed4f51 RD |
30969 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30970 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30971 | { (char *)"SplitterWindow_swiginit", SplitterWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30972 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30973 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30974 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction)_wrap_SplitterEvent_GetSashPosition, METH_O, NULL}, |
30975 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction)_wrap_SplitterEvent_GetWindowBeingRemoved, METH_O, NULL}, | |
30976 | { (char *)"SplitterEvent_GetX", (PyCFunction)_wrap_SplitterEvent_GetX, METH_O, NULL}, | |
30977 | { (char *)"SplitterEvent_GetY", (PyCFunction)_wrap_SplitterEvent_GetY, METH_O, NULL}, | |
36ed4f51 | 30978 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30979 | { (char *)"SplitterEvent_swiginit", SplitterEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30980 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30981 | { (char *)"new_PreSashWindow", (PyCFunction)_wrap_new_PreSashWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
30982 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30983 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30984 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30985 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30986 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30987 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30988 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30989 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction)_wrap_SashWindow_GetDefaultBorderSize, METH_O, NULL}, |
36ed4f51 | 30990 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30991 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction)_wrap_SashWindow_GetExtraBorderSize, METH_O, NULL}, |
36ed4f51 RD |
30992 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
30993 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30994 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction)_wrap_SashWindow_GetMinimumSizeX, METH_O, NULL}, |
30995 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction)_wrap_SashWindow_GetMinimumSizeY, METH_O, NULL}, | |
36ed4f51 RD |
30996 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
30997 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30998 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction)_wrap_SashWindow_GetMaximumSizeX, METH_O, NULL}, |
30999 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction)_wrap_SashWindow_GetMaximumSizeY, METH_O, NULL}, | |
36ed4f51 | 31000 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31001 | { (char *)"SashWindow_SizeWindows", (PyCFunction)_wrap_SashWindow_SizeWindows, METH_O, NULL}, |
36ed4f51 | 31002 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31003 | { (char *)"SashWindow_swiginit", SashWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31004 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31005 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31006 | { (char *)"SashEvent_GetEdge", (PyCFunction)_wrap_SashEvent_GetEdge, METH_O, NULL}, |
36ed4f51 | 31007 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31008 | { (char *)"SashEvent_GetDragRect", (PyCFunction)_wrap_SashEvent_GetDragRect, METH_O, NULL}, |
36ed4f51 | 31009 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31010 | { (char *)"SashEvent_GetDragStatus", (PyCFunction)_wrap_SashEvent_GetDragStatus, METH_O, NULL}, |
36ed4f51 | 31011 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31012 | { (char *)"SashEvent_swiginit", SashEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31013 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31014 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31015 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_O, NULL}, |
36ed4f51 | 31016 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31017 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetFlags, METH_O, NULL}, |
36ed4f51 | 31018 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31019 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetSize, METH_O, NULL}, |
36ed4f51 | 31020 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31021 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetOrientation, METH_O, NULL}, |
36ed4f51 | 31022 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31023 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetAlignment, METH_O, NULL}, |
36ed4f51 | 31024 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31025 | { (char *)"QueryLayoutInfoEvent_swiginit", QueryLayoutInfoEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31026 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31027 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31028 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction)_wrap_CalculateLayoutEvent_GetFlags, METH_O, NULL}, |
36ed4f51 | 31029 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31030 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction)_wrap_CalculateLayoutEvent_GetRect, METH_O, NULL}, |
36ed4f51 | 31031 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31032 | { (char *)"CalculateLayoutEvent_swiginit", CalculateLayoutEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31033 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31034 | { (char *)"new_PreSashLayoutWindow", (PyCFunction)_wrap_new_PreSashLayoutWindow, METH_NOARGS, NULL}, |
36ed4f51 | 31035 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31036 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction)_wrap_SashLayoutWindow_GetAlignment, METH_O, NULL}, |
31037 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction)_wrap_SashLayoutWindow_GetOrientation, METH_O, NULL}, | |
36ed4f51 RD |
31038 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
31039 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31040 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31041 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS, NULL}, | |
1bd55598 RD |
31042 | { (char *)"SashLayoutWindow_swiginit", SashLayoutWindow_swiginit, METH_VARARGS, NULL}, |
31043 | { (char *)"new_LayoutAlgorithm", (PyCFunction)_wrap_new_LayoutAlgorithm, METH_NOARGS, NULL}, | |
31044 | { (char *)"delete_LayoutAlgorithm", (PyCFunction)_wrap_delete_LayoutAlgorithm, METH_O, NULL}, | |
36ed4f51 RD |
31045 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31046 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31047 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31048 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31049 | { (char *)"LayoutAlgorithm_swiginit", LayoutAlgorithm_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31050 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31051 | { (char *)"new_PrePopupWindow", (PyCFunction)_wrap_new_PrePopupWindow, METH_NOARGS, NULL}, |
36ed4f51 | 31052 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31053 | { (char *)"PopupWindow_swiginit", PopupWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31054 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31055 | { (char *)"new_PrePopupTransientWindow", (PyCFunction)_wrap_new_PrePopupTransientWindow, METH_NOARGS, NULL}, |
36ed4f51 | 31056 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31057 | { (char *)"PopupTransientWindow_swiginit", PopupTransientWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31058 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31059 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31060 | { (char *)"TipWindow_Close", (PyCFunction)_wrap_TipWindow_Close, METH_O, NULL}, |
36ed4f51 | 31061 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31062 | { (char *)"TipWindow_swiginit", TipWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31063 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31064 | { (char *)"new_PreVScrolledWindow", (PyCFunction)_wrap_new_PreVScrolledWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
31065 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31066 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31067 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31068 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 RD |
31069 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS, NULL}, |
31070 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31071 | { (char *)"VScrolledWindow_HitTestXY", (PyCFunction) _wrap_VScrolledWindow_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31072 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31073 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction)_wrap_VScrolledWindow_RefreshAll, METH_O, NULL}, |
31074 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction)_wrap_VScrolledWindow_GetLineCount, METH_O, NULL}, | |
31075 | { (char *)"VScrolledWindow_GetVisibleBegin", (PyCFunction)_wrap_VScrolledWindow_GetVisibleBegin, METH_O, NULL}, | |
31076 | { (char *)"VScrolledWindow_GetVisibleEnd", (PyCFunction)_wrap_VScrolledWindow_GetVisibleEnd, METH_O, NULL}, | |
7993762b | 31077 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31078 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetFirstVisibleLine, METH_O, NULL}, |
31079 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetLastVisibleLine, METH_O, NULL}, | |
31080 | { (char *)"VScrolledWindow_FindFirstFromBottom", (PyCFunction) _wrap_VScrolledWindow_FindFirstFromBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31081 | { (char *)"VScrolledWindow_GetLinesHeight", (PyCFunction) _wrap_VScrolledWindow_GetLinesHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 31082 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31083 | { (char *)"VScrolledWindow_swiginit", VScrolledWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31084 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31085 | { (char *)"new_PreVListBox", (PyCFunction)_wrap_new_PreVListBox, METH_NOARGS, NULL}, |
36ed4f51 RD |
31086 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31087 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31088 | { (char *)"VListBox_GetItemCount", (PyCFunction)_wrap_VListBox_GetItemCount, METH_O, NULL}, |
31089 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction)_wrap_VListBox_HasMultipleSelection, METH_O, NULL}, | |
31090 | { (char *)"VListBox_GetSelection", (PyCFunction)_wrap_VListBox_GetSelection, METH_O, NULL}, | |
36ed4f51 RD |
31091 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31092 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31093 | { (char *)"VListBox_GetSelectedCount", (PyCFunction)_wrap_VListBox_GetSelectedCount, METH_O, NULL}, |
31094 | { (char *)"VListBox_GetFirstSelected", (PyCFunction)_wrap_VListBox_GetFirstSelected, METH_O, NULL}, | |
36ed4f51 | 31095 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31096 | { (char *)"VListBox_GetMargins", (PyCFunction)_wrap_VListBox_GetMargins, METH_O, NULL}, |
31097 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction)_wrap_VListBox_GetSelectionBackground, METH_O, NULL}, | |
36ed4f51 | 31098 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31099 | { (char *)"VListBox_Clear", (PyCFunction)_wrap_VListBox_Clear, METH_O, NULL}, |
36ed4f51 RD |
31100 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
31101 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31102 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31103 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31104 | { (char *)"VListBox_SelectAll", (PyCFunction)_wrap_VListBox_SelectAll, METH_O, NULL}, |
31105 | { (char *)"VListBox_DeselectAll", (PyCFunction)_wrap_VListBox_DeselectAll, METH_O, NULL}, | |
36ed4f51 RD |
31106 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, |
31107 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31108 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1c71765a RD |
31109 | { (char *)"VListBox_OnDrawSeparator", (PyCFunction) _wrap_VListBox_OnDrawSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, |
31110 | { (char *)"VListBox_OnDrawBackground", (PyCFunction) _wrap_VListBox_OnDrawBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 31111 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31112 | { (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31113 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31114 | { (char *)"new_PreHtmlListBox", (PyCFunction)_wrap_new_PreHtmlListBox, METH_NOARGS, NULL}, |
36ed4f51 RD |
31115 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31116 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 31117 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31118 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction)_wrap_HtmlListBox_GetFileSystem, METH_O, NULL}, |
e9d6f3a4 | 31119 | { (char *)"HtmlListBox_OnLinkClicked", (PyCFunction) _wrap_HtmlListBox_OnLinkClicked, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 | 31120 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL}, |
1bd55598 RD |
31121 | { (char *)"HtmlListBox_swiginit", HtmlListBox_swiginit, METH_VARARGS, NULL}, |
31122 | { (char *)"new_TaskBarIcon", (PyCFunction)_wrap_new_TaskBarIcon, METH_NOARGS, NULL}, | |
31123 | { (char *)"delete_TaskBarIcon", (PyCFunction)_wrap_delete_TaskBarIcon, METH_O, NULL}, | |
36ed4f51 | 31124 | { (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31125 | { (char *)"TaskBarIcon_Destroy", (PyCFunction)_wrap_TaskBarIcon_Destroy, METH_O, NULL}, |
31126 | { (char *)"TaskBarIcon_IsOk", (PyCFunction)_wrap_TaskBarIcon_IsOk, METH_O, NULL}, | |
31127 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction)_wrap_TaskBarIcon_IsIconInstalled, METH_O, NULL}, | |
36ed4f51 | 31128 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31129 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction)_wrap_TaskBarIcon_RemoveIcon, METH_O, NULL}, |
36ed4f51 RD |
31130 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
31131 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31132 | { (char *)"TaskBarIcon_swiginit", TaskBarIcon_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31133 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31134 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS, NULL}, | |
1bd55598 RD |
31135 | { (char *)"TaskBarIconEvent_swiginit", TaskBarIconEvent_swiginit, METH_VARARGS, NULL}, |
31136 | { (char *)"new_ColourData", (PyCFunction)_wrap_new_ColourData, METH_NOARGS, NULL}, | |
31137 | { (char *)"delete_ColourData", (PyCFunction)_wrap_delete_ColourData, METH_O, NULL}, | |
31138 | { (char *)"ColourData_GetChooseFull", (PyCFunction)_wrap_ColourData_GetChooseFull, METH_O, NULL}, | |
31139 | { (char *)"ColourData_GetColour", (PyCFunction)_wrap_ColourData_GetColour, METH_O, NULL}, | |
36ed4f51 RD |
31140 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
31141 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31142 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31143 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31144 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31145 | { (char *)"ColourData_swiginit", ColourData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31146 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31147 | { (char *)"ColourDialog_GetColourData", (PyCFunction)_wrap_ColourDialog_GetColourData, METH_O, NULL}, |
36ed4f51 | 31148 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31149 | { (char *)"ColourDialog_swiginit", ColourDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 31150 | { (char *)"GetColourFromUser", (PyCFunction) _wrap_GetColourFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 | 31151 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31152 | { (char *)"DirDialog_GetPath", (PyCFunction)_wrap_DirDialog_GetPath, METH_O, NULL}, |
31153 | { (char *)"DirDialog_GetMessage", (PyCFunction)_wrap_DirDialog_GetMessage, METH_O, NULL}, | |
36ed4f51 RD |
31154 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31155 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31156 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31157 | { (char *)"DirDialog_swiginit", DirDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31158 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31159 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31160 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31161 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31162 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31163 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 31164 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31165 | { (char *)"FileDialog_GetMessage", (PyCFunction)_wrap_FileDialog_GetMessage, METH_O, NULL}, |
31166 | { (char *)"FileDialog_GetPath", (PyCFunction)_wrap_FileDialog_GetPath, METH_O, NULL}, | |
31167 | { (char *)"FileDialog_GetDirectory", (PyCFunction)_wrap_FileDialog_GetDirectory, METH_O, NULL}, | |
31168 | { (char *)"FileDialog_GetFilename", (PyCFunction)_wrap_FileDialog_GetFilename, METH_O, NULL}, | |
31169 | { (char *)"FileDialog_GetWildcard", (PyCFunction)_wrap_FileDialog_GetWildcard, METH_O, NULL}, | |
1bd55598 RD |
31170 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction)_wrap_FileDialog_GetFilterIndex, METH_O, NULL}, |
31171 | { (char *)"FileDialog_GetFilenames", (PyCFunction)_wrap_FileDialog_GetFilenames, METH_O, NULL}, | |
31172 | { (char *)"FileDialog_GetPaths", (PyCFunction)_wrap_FileDialog_GetPaths, METH_O, NULL}, | |
36ed4f51 | 31173 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31174 | { (char *)"FileDialog_swiginit", FileDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31175 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31176 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31177 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction)_wrap_MultiChoiceDialog_GetSelections, METH_O, NULL}, |
36ed4f51 | 31178 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31179 | { (char *)"MultiChoiceDialog_swiginit", MultiChoiceDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31180 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31181 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetSelection, METH_O, NULL}, |
31182 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetStringSelection, METH_O, NULL}, | |
36ed4f51 RD |
31183 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
31184 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31185 | { (char *)"SingleChoiceDialog_swiginit", SingleChoiceDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31186 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31187 | { (char *)"TextEntryDialog_GetValue", (PyCFunction)_wrap_TextEntryDialog_GetValue, METH_O, NULL}, |
36ed4f51 RD |
31188 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, |
31189 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31190 | { (char *)"TextEntryDialog_swiginit", TextEntryDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31191 | { (char *)"new_PasswordEntryDialog", (PyCFunction) _wrap_new_PasswordEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31192 | { (char *)"PasswordEntryDialog_swigregister", PasswordEntryDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31193 | { (char *)"PasswordEntryDialog_swiginit", PasswordEntryDialog_swiginit, METH_VARARGS, NULL}, |
27e45892 RD |
31194 | { (char *)"new_NumberEntryDialog", (PyCFunction) _wrap_new_NumberEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31195 | { (char *)"NumberEntryDialog_GetValue", (PyCFunction)_wrap_NumberEntryDialog_GetValue, METH_O, NULL}, | |
31196 | { (char *)"NumberEntryDialog_swigregister", NumberEntryDialog_swigregister, METH_VARARGS, NULL}, | |
31197 | { (char *)"NumberEntryDialog_swiginit", NumberEntryDialog_swiginit, METH_VARARGS, NULL}, | |
1bd55598 RD |
31198 | { (char *)"new_FontData", (PyCFunction)_wrap_new_FontData, METH_NOARGS, NULL}, |
31199 | { (char *)"delete_FontData", (PyCFunction)_wrap_delete_FontData, METH_O, NULL}, | |
36ed4f51 | 31200 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31201 | { (char *)"FontData_GetAllowSymbols", (PyCFunction)_wrap_FontData_GetAllowSymbols, METH_O, NULL}, |
31202 | { (char *)"FontData_GetColour", (PyCFunction)_wrap_FontData_GetColour, METH_O, NULL}, | |
31203 | { (char *)"FontData_GetChosenFont", (PyCFunction)_wrap_FontData_GetChosenFont, METH_O, NULL}, | |
31204 | { (char *)"FontData_GetEnableEffects", (PyCFunction)_wrap_FontData_GetEnableEffects, METH_O, NULL}, | |
31205 | { (char *)"FontData_GetInitialFont", (PyCFunction)_wrap_FontData_GetInitialFont, METH_O, NULL}, | |
31206 | { (char *)"FontData_GetShowHelp", (PyCFunction)_wrap_FontData_GetShowHelp, METH_O, NULL}, | |
36ed4f51 RD |
31207 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL}, |
31208 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31209 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31210 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31211 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31212 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31213 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31214 | { (char *)"FontData_swiginit", FontData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31215 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31216 | { (char *)"FontDialog_GetFontData", (PyCFunction)_wrap_FontDialog_GetFontData, METH_O, NULL}, |
36ed4f51 | 31217 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31218 | { (char *)"FontDialog_swiginit", FontDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 31219 | { (char *)"GetFontFromUser", (PyCFunction) _wrap_GetFontFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
31220 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31221 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31222 | { (char *)"MessageDialog_swiginit", MessageDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31223 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31224 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0d2c9713 | 31225 | { (char *)"ProgressDialog_UpdatePulse", (PyCFunction) _wrap_ProgressDialog_UpdatePulse, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31226 | { (char *)"ProgressDialog_Resume", (PyCFunction)_wrap_ProgressDialog_Resume, METH_O, NULL}, |
36ed4f51 | 31227 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31228 | { (char *)"ProgressDialog_swiginit", ProgressDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31229 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31230 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction)_wrap_FindDialogEvent_GetFlags, METH_O, NULL}, |
31231 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction)_wrap_FindDialogEvent_GetFindString, METH_O, NULL}, | |
31232 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction)_wrap_FindDialogEvent_GetReplaceString, METH_O, NULL}, | |
31233 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction)_wrap_FindDialogEvent_GetDialog, METH_O, NULL}, | |
36ed4f51 RD |
31234 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
31235 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31236 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31237 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31238 | { (char *)"FindDialogEvent_swiginit", FindDialogEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31239 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31240 | { (char *)"delete_FindReplaceData", (PyCFunction)_wrap_delete_FindReplaceData, METH_O, NULL}, |
31241 | { (char *)"FindReplaceData_GetFindString", (PyCFunction)_wrap_FindReplaceData_GetFindString, METH_O, NULL}, | |
31242 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction)_wrap_FindReplaceData_GetReplaceString, METH_O, NULL}, | |
31243 | { (char *)"FindReplaceData_GetFlags", (PyCFunction)_wrap_FindReplaceData_GetFlags, METH_O, NULL}, | |
36ed4f51 RD |
31244 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
31245 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31246 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31247 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31248 | { (char *)"FindReplaceData_swiginit", FindReplaceData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31249 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31250 | { (char *)"new_PreFindReplaceDialog", (PyCFunction)_wrap_new_PreFindReplaceDialog, METH_NOARGS, NULL}, |
36ed4f51 | 31251 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31252 | { (char *)"FindReplaceDialog_GetData", (PyCFunction)_wrap_FindReplaceDialog_GetData, METH_O, NULL}, |
36ed4f51 RD |
31253 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
31254 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31255 | { (char *)"FindReplaceDialog_swiginit", FindReplaceDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31256 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31257 | { (char *)"new_PreMDIParentFrame", (PyCFunction)_wrap_new_PreMDIParentFrame, METH_NOARGS, NULL}, |
36ed4f51 | 31258 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31259 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction)_wrap_MDIParentFrame_ActivateNext, METH_O, NULL}, |
31260 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction)_wrap_MDIParentFrame_ActivatePrevious, METH_O, NULL}, | |
31261 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction)_wrap_MDIParentFrame_ArrangeIcons, METH_O, NULL}, | |
31262 | { (char *)"MDIParentFrame_Cascade", (PyCFunction)_wrap_MDIParentFrame_Cascade, METH_O, NULL}, | |
31263 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction)_wrap_MDIParentFrame_GetActiveChild, METH_O, NULL}, | |
31264 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction)_wrap_MDIParentFrame_GetClientWindow, METH_O, NULL}, | |
36ed4f51 RD |
31265 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS, NULL}, |
31266 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31267 | { (char *)"MDIParentFrame_swiginit", MDIParentFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31268 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31269 | { (char *)"new_PreMDIChildFrame", (PyCFunction)_wrap_new_PreMDIChildFrame, METH_NOARGS, NULL}, |
36ed4f51 | 31270 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31271 | { (char *)"MDIChildFrame_Activate", (PyCFunction)_wrap_MDIChildFrame_Activate, METH_O, NULL}, |
36ed4f51 | 31272 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31273 | { (char *)"MDIChildFrame_swiginit", MDIChildFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31274 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31275 | { (char *)"new_PreMDIClientWindow", (PyCFunction)_wrap_new_PreMDIClientWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
31276 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31277 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31278 | { (char *)"MDIClientWindow_swiginit", MDIClientWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31279 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31280 | { (char *)"new_PrePyWindow", (PyCFunction)_wrap_new_PrePyWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
31281 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31282 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 31283 | { (char *)"PyWindow_DoEraseBackground", (PyCFunction) _wrap_PyWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
7f7aa166 RD |
31284 | { (char *)"PyWindow_DoMoveWindow", (PyCFunction) _wrap_PyWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31285 | { (char *)"PyWindow_DoSetSize", (PyCFunction) _wrap_PyWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31286 | { (char *)"PyWindow_DoSetClientSize", (PyCFunction) _wrap_PyWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31287 | { (char *)"PyWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31288 | { (char *)"PyWindow_DoGetSize", (PyCFunction)_wrap_PyWindow_DoGetSize, METH_O, NULL}, |
31289 | { (char *)"PyWindow_DoGetClientSize", (PyCFunction)_wrap_PyWindow_DoGetClientSize, METH_O, NULL}, | |
31290 | { (char *)"PyWindow_DoGetPosition", (PyCFunction)_wrap_PyWindow_DoGetPosition, METH_O, NULL}, | |
31291 | { (char *)"PyWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyWindow_DoGetVirtualSize, METH_O, NULL}, | |
31292 | { (char *)"PyWindow_DoGetBestSize", (PyCFunction)_wrap_PyWindow_DoGetBestSize, METH_O, NULL}, | |
31293 | { (char *)"PyWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyWindow_GetDefaultAttributes, METH_O, NULL}, | |
31294 | { (char *)"PyWindow_OnInternalIdle", (PyCFunction)_wrap_PyWindow_OnInternalIdle, METH_O, NULL}, | |
36ed4f51 | 31295 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31296 | { (char *)"PyWindow_swiginit", PyWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31297 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31298 | { (char *)"new_PrePyPanel", (PyCFunction)_wrap_new_PrePyPanel, METH_NOARGS, NULL}, |
36ed4f51 RD |
31299 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31300 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 31301 | { (char *)"PyPanel_DoEraseBackground", (PyCFunction) _wrap_PyPanel_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
7f7aa166 RD |
31302 | { (char *)"PyPanel_DoMoveWindow", (PyCFunction) _wrap_PyPanel_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31303 | { (char *)"PyPanel_DoSetSize", (PyCFunction) _wrap_PyPanel_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31304 | { (char *)"PyPanel_DoSetClientSize", (PyCFunction) _wrap_PyPanel_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31305 | { (char *)"PyPanel_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31306 | { (char *)"PyPanel_DoGetSize", (PyCFunction)_wrap_PyPanel_DoGetSize, METH_O, NULL}, |
31307 | { (char *)"PyPanel_DoGetClientSize", (PyCFunction)_wrap_PyPanel_DoGetClientSize, METH_O, NULL}, | |
31308 | { (char *)"PyPanel_DoGetPosition", (PyCFunction)_wrap_PyPanel_DoGetPosition, METH_O, NULL}, | |
31309 | { (char *)"PyPanel_DoGetVirtualSize", (PyCFunction)_wrap_PyPanel_DoGetVirtualSize, METH_O, NULL}, | |
31310 | { (char *)"PyPanel_DoGetBestSize", (PyCFunction)_wrap_PyPanel_DoGetBestSize, METH_O, NULL}, | |
31311 | { (char *)"PyPanel_GetDefaultAttributes", (PyCFunction)_wrap_PyPanel_GetDefaultAttributes, METH_O, NULL}, | |
31312 | { (char *)"PyPanel_OnInternalIdle", (PyCFunction)_wrap_PyPanel_OnInternalIdle, METH_O, NULL}, | |
36ed4f51 | 31313 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31314 | { (char *)"PyPanel_swiginit", PyPanel_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31315 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31316 | { (char *)"new_PrePyScrolledWindow", (PyCFunction)_wrap_new_PrePyScrolledWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
31317 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31318 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 31319 | { (char *)"PyScrolledWindow_DoEraseBackground", (PyCFunction) _wrap_PyScrolledWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
7f7aa166 RD |
31320 | { (char *)"PyScrolledWindow_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31321 | { (char *)"PyScrolledWindow_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31322 | { (char *)"PyScrolledWindow_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31323 | { (char *)"PyScrolledWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31324 | { (char *)"PyScrolledWindow_DoGetSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetSize, METH_O, NULL}, |
31325 | { (char *)"PyScrolledWindow_DoGetClientSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetClientSize, METH_O, NULL}, | |
31326 | { (char *)"PyScrolledWindow_DoGetPosition", (PyCFunction)_wrap_PyScrolledWindow_DoGetPosition, METH_O, NULL}, | |
31327 | { (char *)"PyScrolledWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetVirtualSize, METH_O, NULL}, | |
31328 | { (char *)"PyScrolledWindow_DoGetBestSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetBestSize, METH_O, NULL}, | |
31329 | { (char *)"PyScrolledWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyScrolledWindow_GetDefaultAttributes, METH_O, NULL}, | |
31330 | { (char *)"PyScrolledWindow_OnInternalIdle", (PyCFunction)_wrap_PyScrolledWindow_OnInternalIdle, METH_O, NULL}, | |
36ed4f51 | 31331 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31332 | { (char *)"PyScrolledWindow_swiginit", PyScrolledWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31333 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS, NULL}, |
1bd55598 RD |
31334 | { (char *)"delete_PrintData", (PyCFunction)_wrap_delete_PrintData, METH_O, NULL}, |
31335 | { (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL}, | |
31336 | { (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL}, | |
31337 | { (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL}, | |
b39fe951 | 31338 | { (char *)"PrintData_IsOk", (PyCFunction)_wrap_PrintData_IsOk, METH_O, NULL}, |
1bd55598 RD |
31339 | { (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL}, |
31340 | { (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL}, | |
31341 | { (char *)"PrintData_GetDuplex", (PyCFunction)_wrap_PrintData_GetDuplex, METH_O, NULL}, | |
31342 | { (char *)"PrintData_GetPaperId", (PyCFunction)_wrap_PrintData_GetPaperId, METH_O, NULL}, | |
31343 | { (char *)"PrintData_GetPaperSize", (PyCFunction)_wrap_PrintData_GetPaperSize, METH_O, NULL}, | |
31344 | { (char *)"PrintData_GetQuality", (PyCFunction)_wrap_PrintData_GetQuality, METH_O, NULL}, | |
31345 | { (char *)"PrintData_GetBin", (PyCFunction)_wrap_PrintData_GetBin, METH_O, NULL}, | |
31346 | { (char *)"PrintData_GetPrintMode", (PyCFunction)_wrap_PrintData_GetPrintMode, METH_O, NULL}, | |
36ed4f51 RD |
31347 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, |
31348 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31349 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31350 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31351 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31352 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31353 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31354 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31355 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31356 | { (char *)"PrintData_SetBin", (PyCFunction) _wrap_PrintData_SetBin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31357 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31358 | { (char *)"PrintData_GetFilename", (PyCFunction)_wrap_PrintData_GetFilename, METH_O, NULL}, |
36ed4f51 | 31359 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31360 | { (char *)"PrintData_GetPrivData", (PyCFunction)_wrap_PrintData_GetPrivData, METH_O, NULL}, |
7fbf8399 | 31361 | { (char *)"PrintData_SetPrivData", (PyCFunction) _wrap_PrintData_SetPrivData, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 | 31362 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31363 | { (char *)"PrintData_swiginit", PrintData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31364 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS, NULL}, |
1bd55598 | 31365 | { (char *)"delete_PageSetupDialogData", (PyCFunction)_wrap_delete_PageSetupDialogData, METH_O, NULL}, |
36ed4f51 RD |
31366 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
31367 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31368 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31369 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31370 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31371 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultMinMargins, METH_O, NULL}, |
31372 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction)_wrap_PageSetupDialogData_GetEnableMargins, METH_O, NULL}, | |
31373 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction)_wrap_PageSetupDialogData_GetEnableOrientation, METH_O, NULL}, | |
31374 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePaper, METH_O, NULL}, | |
31375 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePrinter, METH_O, NULL}, | |
31376 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction)_wrap_PageSetupDialogData_GetEnableHelp, METH_O, NULL}, | |
31377 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultInfo, METH_O, NULL}, | |
31378 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMarginTopLeft, METH_O, NULL}, | |
31379 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMarginBottomRight, METH_O, NULL}, | |
31380 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_O, NULL}, | |
31381 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_O, NULL}, | |
31382 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction)_wrap_PageSetupDialogData_GetPaperId, METH_O, NULL}, | |
31383 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction)_wrap_PageSetupDialogData_GetPaperSize, METH_O, NULL}, | |
31384 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction)_wrap_PageSetupDialogData_GetPrintData, METH_O, NULL}, | |
b39fe951 | 31385 | { (char *)"PageSetupDialogData_IsOk", (PyCFunction)_wrap_PageSetupDialogData_IsOk, METH_O, NULL}, |
36ed4f51 RD |
31386 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31387 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31388 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31389 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31390 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31391 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31392 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31393 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31394 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31395 | { (char *)"PageSetupDialogData_CalculateIdFromPaperSize", (PyCFunction)_wrap_PageSetupDialogData_CalculateIdFromPaperSize, METH_O, NULL}, |
31396 | { (char *)"PageSetupDialogData_CalculatePaperSizeFromId", (PyCFunction)_wrap_PageSetupDialogData_CalculatePaperSizeFromId, METH_O, NULL}, | |
36ed4f51 | 31397 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31398 | { (char *)"PageSetupDialogData_swiginit", PageSetupDialogData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31399 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf | 31400 | { (char *)"delete_PageSetupDialog", (PyCFunction)_wrap_delete_PageSetupDialog, METH_O, NULL}, |
1bd55598 RD |
31401 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupData, METH_O, NULL}, |
31402 | { (char *)"PageSetupDialog_GetPageSetupDialogData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupDialogData, METH_O, NULL}, | |
31403 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction)_wrap_PageSetupDialog_ShowModal, METH_O, NULL}, | |
36ed4f51 | 31404 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31405 | { (char *)"PageSetupDialog_swiginit", PageSetupDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31406 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS, NULL}, |
1bd55598 RD |
31407 | { (char *)"delete_PrintDialogData", (PyCFunction)_wrap_delete_PrintDialogData, METH_O, NULL}, |
31408 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction)_wrap_PrintDialogData_GetFromPage, METH_O, NULL}, | |
31409 | { (char *)"PrintDialogData_GetToPage", (PyCFunction)_wrap_PrintDialogData_GetToPage, METH_O, NULL}, | |
31410 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction)_wrap_PrintDialogData_GetMinPage, METH_O, NULL}, | |
31411 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction)_wrap_PrintDialogData_GetMaxPage, METH_O, NULL}, | |
31412 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction)_wrap_PrintDialogData_GetNoCopies, METH_O, NULL}, | |
31413 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction)_wrap_PrintDialogData_GetAllPages, METH_O, NULL}, | |
31414 | { (char *)"PrintDialogData_GetSelection", (PyCFunction)_wrap_PrintDialogData_GetSelection, METH_O, NULL}, | |
31415 | { (char *)"PrintDialogData_GetCollate", (PyCFunction)_wrap_PrintDialogData_GetCollate, METH_O, NULL}, | |
31416 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction)_wrap_PrintDialogData_GetPrintToFile, METH_O, NULL}, | |
36ed4f51 RD |
31417 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31418 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31419 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31420 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31421 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31422 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31423 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31424 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31425 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31426 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31427 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31428 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31429 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31430 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction)_wrap_PrintDialogData_GetEnablePrintToFile, METH_O, NULL}, |
31431 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction)_wrap_PrintDialogData_GetEnableSelection, METH_O, NULL}, | |
31432 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction)_wrap_PrintDialogData_GetEnablePageNumbers, METH_O, NULL}, | |
31433 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction)_wrap_PrintDialogData_GetEnableHelp, METH_O, NULL}, | |
b39fe951 | 31434 | { (char *)"PrintDialogData_IsOk", (PyCFunction)_wrap_PrintDialogData_IsOk, METH_O, NULL}, |
1bd55598 | 31435 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction)_wrap_PrintDialogData_GetPrintData, METH_O, NULL}, |
36ed4f51 RD |
31436 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, |
31437 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31438 | { (char *)"PrintDialogData_swiginit", PrintDialogData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31439 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf | 31440 | { (char *)"delete_PrintDialog", (PyCFunction)_wrap_delete_PrintDialog, METH_O, NULL}, |
1bd55598 RD |
31441 | { (char *)"PrintDialog_ShowModal", (PyCFunction)_wrap_PrintDialog_ShowModal, METH_O, NULL}, |
31442 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction)_wrap_PrintDialog_GetPrintDialogData, METH_O, NULL}, | |
31443 | { (char *)"PrintDialog_GetPrintData", (PyCFunction)_wrap_PrintDialog_GetPrintData, METH_O, NULL}, | |
31444 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction)_wrap_PrintDialog_GetPrintDC, METH_O, NULL}, | |
36ed4f51 | 31445 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31446 | { (char *)"PrintDialog_swiginit", PrintDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31447 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31448 | { (char *)"delete_Printer", (PyCFunction)_wrap_delete_Printer, METH_O, NULL}, |
36ed4f51 RD |
31449 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31450 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31451 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31452 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31453 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31454 | { (char *)"Printer_GetPrintDialogData", (PyCFunction)_wrap_Printer_GetPrintDialogData, METH_O, NULL}, |
31455 | { (char *)"Printer_GetAbort", (PyCFunction)_wrap_Printer_GetAbort, METH_O, NULL}, | |
31456 | { (char *)"Printer_GetLastError", (PyCFunction)_wrap_Printer_GetLastError, METH_NOARGS, NULL}, | |
36ed4f51 | 31457 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31458 | { (char *)"Printer_swiginit", Printer_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31459 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31460 | { (char *)"delete_Printout", (PyCFunction)_wrap_delete_Printout, METH_O, NULL}, |
36ed4f51 | 31461 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31462 | { (char *)"Printout_GetTitle", (PyCFunction)_wrap_Printout_GetTitle, METH_O, NULL}, |
31463 | { (char *)"Printout_GetDC", (PyCFunction)_wrap_Printout_GetDC, METH_O, NULL}, | |
36ed4f51 RD |
31464 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
31465 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31466 | { (char *)"Printout_GetPageSizePixels", (PyCFunction)_wrap_Printout_GetPageSizePixels, METH_O, NULL}, |
36ed4f51 | 31467 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31468 | { (char *)"Printout_GetPageSizeMM", (PyCFunction)_wrap_Printout_GetPageSizeMM, METH_O, NULL}, |
36ed4f51 | 31469 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31470 | { (char *)"Printout_GetPPIScreen", (PyCFunction)_wrap_Printout_GetPPIScreen, METH_O, NULL}, |
36ed4f51 | 31471 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31472 | { (char *)"Printout_GetPPIPrinter", (PyCFunction)_wrap_Printout_GetPPIPrinter, METH_O, NULL}, |
31473 | { (char *)"Printout_IsPreview", (PyCFunction)_wrap_Printout_IsPreview, METH_O, NULL}, | |
36ed4f51 | 31474 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS, NULL}, |
7f7aa166 | 31475 | { (char *)"Printout_OnBeginDocument", (PyCFunction) _wrap_Printout_OnBeginDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31476 | { (char *)"Printout_OnEndDocument", (PyCFunction)_wrap_Printout_OnEndDocument, METH_O, NULL}, |
31477 | { (char *)"Printout_OnBeginPrinting", (PyCFunction)_wrap_Printout_OnBeginPrinting, METH_O, NULL}, | |
31478 | { (char *)"Printout_OnEndPrinting", (PyCFunction)_wrap_Printout_OnEndPrinting, METH_O, NULL}, | |
31479 | { (char *)"Printout_OnPreparePrinting", (PyCFunction)_wrap_Printout_OnPreparePrinting, METH_O, NULL}, | |
7f7aa166 | 31480 | { (char *)"Printout_HasPage", (PyCFunction) _wrap_Printout_HasPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31481 | { (char *)"Printout_GetPageInfo", (PyCFunction)_wrap_Printout_GetPageInfo, METH_O, NULL}, |
36ed4f51 | 31482 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31483 | { (char *)"Printout_swiginit", Printout_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31484 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, |
31485 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31486 | { (char *)"PreviewCanvas_swiginit", PreviewCanvas_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31487 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31488 | { (char *)"PreviewFrame_Initialize", (PyCFunction)_wrap_PreviewFrame_Initialize, METH_O, NULL}, |
31489 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction)_wrap_PreviewFrame_CreateControlBar, METH_O, NULL}, | |
31490 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction)_wrap_PreviewFrame_CreateCanvas, METH_O, NULL}, | |
31491 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction)_wrap_PreviewFrame_GetControlBar, METH_O, NULL}, | |
36ed4f51 | 31492 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31493 | { (char *)"PreviewFrame_swiginit", PreviewFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31494 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31495 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction)_wrap_PreviewControlBar_GetZoomControl, METH_O, NULL}, |
36ed4f51 | 31496 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31497 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction)_wrap_PreviewControlBar_GetPrintPreview, METH_O, NULL}, |
31498 | { (char *)"PreviewControlBar_OnNext", (PyCFunction)_wrap_PreviewControlBar_OnNext, METH_O, NULL}, | |
31499 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction)_wrap_PreviewControlBar_OnPrevious, METH_O, NULL}, | |
31500 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction)_wrap_PreviewControlBar_OnFirst, METH_O, NULL}, | |
31501 | { (char *)"PreviewControlBar_OnLast", (PyCFunction)_wrap_PreviewControlBar_OnLast, METH_O, NULL}, | |
31502 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction)_wrap_PreviewControlBar_OnGoto, METH_O, NULL}, | |
36ed4f51 | 31503 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31504 | { (char *)"PreviewControlBar_swiginit", PreviewControlBar_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31505 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS, NULL}, |
1bd55598 | 31506 | { (char *)"delete_PrintPreview", (PyCFunction)_wrap_delete_PrintPreview, METH_O, NULL}, |
36ed4f51 | 31507 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31508 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction)_wrap_PrintPreview_GetCurrentPage, METH_O, NULL}, |
36ed4f51 | 31509 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31510 | { (char *)"PrintPreview_GetPrintout", (PyCFunction)_wrap_PrintPreview_GetPrintout, METH_O, NULL}, |
31511 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction)_wrap_PrintPreview_GetPrintoutForPrinting, METH_O, NULL}, | |
36ed4f51 RD |
31512 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31513 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31514 | { (char *)"PrintPreview_GetFrame", (PyCFunction)_wrap_PrintPreview_GetFrame, METH_O, NULL}, |
31515 | { (char *)"PrintPreview_GetCanvas", (PyCFunction)_wrap_PrintPreview_GetCanvas, METH_O, NULL}, | |
36ed4f51 RD |
31516 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31517 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31518 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31519 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31520 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction)_wrap_PrintPreview_GetPrintDialogData, METH_O, NULL}, |
36ed4f51 | 31521 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31522 | { (char *)"PrintPreview_GetZoom", (PyCFunction)_wrap_PrintPreview_GetZoom, METH_O, NULL}, |
31523 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction)_wrap_PrintPreview_GetMaxPage, METH_O, NULL}, | |
31524 | { (char *)"PrintPreview_GetMinPage", (PyCFunction)_wrap_PrintPreview_GetMinPage, METH_O, NULL}, | |
b39fe951 | 31525 | { (char *)"PrintPreview_IsOk", (PyCFunction)_wrap_PrintPreview_IsOk, METH_O, NULL}, |
36ed4f51 RD |
31526 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
31527 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31528 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction)_wrap_PrintPreview_DetermineScaling, METH_O, NULL}, |
36ed4f51 | 31529 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31530 | { (char *)"PrintPreview_swiginit", PrintPreview_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31531 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS, NULL}, |
31532 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 31533 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31534 | { (char *)"PyPrintPreview_swiginit", PyPrintPreview_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31535 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31536 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31537 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31538 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31539 | { (char *)"PyPreviewFrame_Initialize", (PyCFunction)_wrap_PyPreviewFrame_Initialize, METH_O, NULL}, |
31540 | { (char *)"PyPreviewFrame_CreateCanvas", (PyCFunction)_wrap_PyPreviewFrame_CreateCanvas, METH_O, NULL}, | |
31541 | { (char *)"PyPreviewFrame_CreateControlBar", (PyCFunction)_wrap_PyPreviewFrame_CreateControlBar, METH_O, NULL}, | |
36ed4f51 | 31542 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31543 | { (char *)"PyPreviewFrame_swiginit", PyPreviewFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31544 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31545 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31546 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31547 | { (char *)"PyPreviewControlBar_CreateButtons", (PyCFunction)_wrap_PyPreviewControlBar_CreateButtons, METH_O, NULL}, |
7f7aa166 | 31548 | { (char *)"PyPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 | 31549 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31550 | { (char *)"PyPreviewControlBar_swiginit", PyPreviewControlBar_swiginit, METH_VARARGS, NULL}, |
c370783e | 31551 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
31552 | }; |
31553 | ||
31554 | ||
31555 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31556 | ||
31557 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
31558 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31559 | } | |
31560 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31561 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31562 | } | |
31563 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31564 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31565 | } | |
31566 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31567 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31568 | } | |
31569 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31570 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31571 | } | |
31572 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31573 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31574 | } | |
31575 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31576 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31577 | } | |
31578 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
31579 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31580 | } | |
31581 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31582 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31583 | } | |
31584 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31585 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31586 | } | |
31587 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
31588 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31589 | } | |
d55e5bfc RD |
31590 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
31591 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31592 | } | |
34e0a3bb RD |
31593 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
31594 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
31595 | } | |
2131d850 RD |
31596 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
31597 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31598 | } | |
d55e5bfc RD |
31599 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { |
31600 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
31601 | } | |
31602 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31603 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31604 | } | |
31605 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31606 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31607 | } | |
31608 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31609 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31610 | } | |
31611 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31612 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31613 | } | |
31614 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31615 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31616 | } | |
31617 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31618 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31619 | } | |
31620 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31621 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31622 | } | |
31623 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31624 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31625 | } | |
53aa7709 RD |
31626 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
31627 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
31628 | } | |
d55e5bfc RD |
31629 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
31630 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31631 | } | |
31632 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31633 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31634 | } | |
34e0a3bb RD |
31635 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
31636 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
31637 | } | |
d55e5bfc RD |
31638 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
31639 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31640 | } | |
31641 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31642 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31643 | } | |
31644 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31645 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31646 | } | |
31647 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31648 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31649 | } | |
31650 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31651 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31652 | } | |
31653 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31654 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31655 | } | |
31656 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31657 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31658 | } | |
31659 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31660 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31661 | } | |
31662 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
31663 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
31664 | } | |
31665 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
31666 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31667 | } | |
31668 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31669 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31670 | } | |
31671 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31672 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31673 | } | |
31674 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31675 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31676 | } | |
31677 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31678 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31679 | } | |
31680 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31681 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31682 | } | |
31683 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31684 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31685 | } | |
31686 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31687 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31688 | } | |
31689 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
31690 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
31691 | } | |
31692 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
31693 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31694 | } | |
070c48b4 RD |
31695 | static void *_p_wxPasswordEntryDialogTo_p_wxTextEntryDialog(void *x) { |
31696 | return (void *)((wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31697 | } | |
d55e5bfc RD |
31698 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { |
31699 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31700 | } | |
31701 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
31702 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31703 | } | |
31704 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
31705 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31706 | } | |
31707 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31708 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31709 | } | |
31710 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31711 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31712 | } | |
31713 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31714 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31715 | } | |
31716 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31717 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31718 | } | |
070c48b4 RD |
31719 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { |
31720 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31721 | } | |
d55e5bfc RD |
31722 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { |
31723 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31724 | } | |
31725 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31726 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31727 | } | |
31728 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31729 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31730 | } | |
31731 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
31732 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31733 | } | |
27e45892 RD |
31734 | static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) { |
31735 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
31736 | } | |
d55e5bfc RD |
31737 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { |
31738 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31739 | } | |
31740 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
31741 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31742 | } | |
31743 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
31744 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31745 | } | |
31746 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
31747 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
31748 | } | |
31749 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
31750 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
31751 | } | |
31752 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31753 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31754 | } | |
31755 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
31756 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
31757 | } | |
31758 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
31759 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31760 | } | |
31761 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
31762 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
31763 | } | |
31764 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
31765 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31766 | } | |
31767 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
31768 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
31769 | } | |
31770 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
31771 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
31772 | } | |
31773 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
31774 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
31775 | } | |
31776 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31777 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31778 | } | |
31779 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31780 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
31781 | } | |
31782 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
31783 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
31784 | } | |
31785 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
31786 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
31787 | } | |
31788 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31789 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
31790 | } | |
31791 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
31792 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31793 | } | |
31794 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
31795 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31796 | } | |
31797 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
31798 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31799 | } | |
31800 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
31801 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31802 | } | |
31803 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31804 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31805 | } | |
31806 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31807 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31808 | } | |
31809 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
31810 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
31811 | } | |
31812 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
31813 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31814 | } | |
31815 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
31816 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31817 | } | |
31818 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
31819 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31820 | } | |
31821 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
31822 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
31823 | } | |
31824 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
31825 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
31826 | } | |
5e483524 RD |
31827 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
31828 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d55e5bfc RD |
31829 | } |
31830 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
31831 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
31832 | } | |
d55e5bfc RD |
31833 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
31834 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
31835 | } | |
31836 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
31837 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
31838 | } | |
31839 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
31840 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
31841 | } | |
070c48b4 RD |
31842 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
31843 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
31844 | } | |
d55e5bfc RD |
31845 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
31846 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
31847 | } | |
31848 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
31849 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31850 | } | |
31851 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
31852 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
31853 | } | |
31854 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
31855 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
31856 | } | |
31857 | static void *_p_wxTipWindowTo_p_wxFrame(void *x) { | |
31858 | return (void *)((wxFrame *) ((wxTipWindow *) x)); | |
31859 | } | |
31860 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
31861 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
31862 | } | |
31863 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
31864 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31865 | } | |
31866 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
31867 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
31868 | } | |
31869 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
31870 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
31871 | } | |
31872 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
31873 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
31874 | } | |
31875 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31876 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31877 | } | |
31878 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
31879 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31880 | } | |
31881 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
31882 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31883 | } | |
31884 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
31885 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31886 | } | |
d55e5bfc RD |
31887 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
31888 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31889 | } | |
34e0a3bb RD |
31890 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
31891 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31892 | } | |
d55e5bfc RD |
31893 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
31894 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31895 | } | |
31896 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31897 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31898 | } | |
31899 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31900 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31901 | } | |
31902 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31903 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31904 | } | |
31905 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31906 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31907 | } | |
31908 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31909 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31910 | } | |
31911 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31912 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31913 | } | |
31914 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
31915 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31916 | } | |
31917 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31918 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31919 | } | |
31920 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
31921 | return (void *)((wxObject *) ((wxFontData *) x)); | |
31922 | } | |
31923 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
31924 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
31925 | } | |
31926 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31927 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31928 | } | |
31929 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31930 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31931 | } | |
31932 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31933 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31934 | } | |
31935 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
31936 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
31937 | } | |
5e483524 RD |
31938 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
31939 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d55e5bfc RD |
31940 | } |
31941 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
31942 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31943 | } | |
2131d850 RD |
31944 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
31945 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
31946 | } | |
d55e5bfc RD |
31947 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
31948 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31949 | } | |
31950 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31951 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31952 | } | |
31953 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31954 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31955 | } | |
31956 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31957 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31958 | } | |
31959 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31960 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31961 | } | |
31962 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31963 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31964 | } | |
31965 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
31966 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31967 | } | |
31968 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31969 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31970 | } | |
31971 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31972 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31973 | } | |
31974 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
31975 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31976 | } | |
31977 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31978 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31979 | } | |
31980 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
31981 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
31982 | } | |
31983 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31984 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31985 | } | |
31986 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
31987 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31988 | } | |
31989 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
31990 | return (void *)((wxObject *) ((wxColourData *) x)); | |
31991 | } | |
31992 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31993 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31994 | } | |
31995 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31996 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31997 | } | |
31998 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
31999 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
32000 | } | |
32001 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
32002 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
32003 | } | |
32004 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
32005 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
32006 | } | |
32007 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
32008 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32009 | } | |
32010 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
32011 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32012 | } | |
32013 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
32014 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
32015 | } | |
070c48b4 RD |
32016 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
32017 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32018 | } | |
27e45892 RD |
32019 | static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) { |
32020 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
32021 | } | |
d55e5bfc RD |
32022 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
32023 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
32024 | } | |
32025 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
32026 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
32027 | } | |
32028 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
32029 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
32030 | } | |
32031 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32032 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32033 | } | |
32034 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
32035 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
32036 | } | |
32037 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32038 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32039 | } | |
53aa7709 RD |
32040 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
32041 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
32042 | } | |
d55e5bfc RD |
32043 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
32044 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32045 | } | |
32046 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32047 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32048 | } | |
32049 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32050 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32051 | } | |
32052 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32053 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32054 | } | |
32055 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32056 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32057 | } | |
32058 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32059 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32060 | } | |
32061 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32062 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32063 | } | |
32064 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32065 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32066 | } | |
d55e5bfc RD |
32067 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
32068 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32069 | } | |
32070 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32071 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32072 | } | |
32073 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32074 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32075 | } | |
32076 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32077 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32078 | } | |
32079 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32080 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32081 | } | |
32082 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32083 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32084 | } | |
32085 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32086 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32087 | } | |
32088 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32089 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32090 | } | |
32091 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32092 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32093 | } | |
943e8dfd RD |
32094 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
32095 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
32096 | } | |
d55e5bfc RD |
32097 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
32098 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32099 | } | |
943e8dfd RD |
32100 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
32101 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32102 | } | |
d55e5bfc RD |
32103 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
32104 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32105 | } | |
32106 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32107 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32108 | } | |
34e0a3bb RD |
32109 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
32110 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
32111 | } | |
d55e5bfc RD |
32112 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { |
32113 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
32114 | } | |
32115 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
32116 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32117 | } | |
32118 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
32119 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32120 | } | |
62d32a5f RD |
32121 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
32122 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
32123 | } | |
d55e5bfc RD |
32124 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32125 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32126 | } | |
32127 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
32128 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
32129 | } | |
32130 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32131 | return (void *)((wxObject *) ((wxImage *) x)); | |
32132 | } | |
32133 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
32134 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
32135 | } | |
32136 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
32137 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
32138 | } | |
32139 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32140 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32141 | } | |
32142 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
32143 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
32144 | } | |
32145 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
32146 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
32147 | } | |
32148 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
32149 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32150 | } | |
32151 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32152 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32153 | } | |
32154 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32155 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32156 | } | |
32157 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32158 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32159 | } | |
32160 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32161 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32162 | } | |
32163 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32164 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32165 | } | |
32166 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32167 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32168 | } | |
32169 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
32170 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
32171 | } | |
32172 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
32173 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
32174 | } | |
32175 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
32176 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
32177 | } | |
32178 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
32179 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
32180 | } | |
32181 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
32182 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
32183 | } | |
32184 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
32185 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32186 | } | |
32187 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
32188 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
32189 | } | |
32190 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
32191 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32192 | } | |
32193 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
32194 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
32195 | } | |
32196 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
32197 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32198 | } | |
32199 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
32200 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
32201 | } | |
32202 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
32203 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32204 | } | |
32205 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
32206 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
32207 | } | |
32208 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
32209 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
32210 | } | |
32211 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
32212 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32213 | } | |
32214 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
32215 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
32216 | } | |
32217 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
32218 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
32219 | } | |
32220 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
32221 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32222 | } | |
32223 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
32224 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32225 | } | |
32226 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
32227 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32228 | } | |
32229 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
6e0de3df | 32230 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); |
d55e5bfc RD |
32231 | } |
32232 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
070c48b4 | 32233 | return (void *)((wxObject *) ((wxPrintDialog *) x)); |
d55e5bfc RD |
32234 | } |
32235 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32236 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32237 | } | |
32238 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32239 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32240 | } | |
32241 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32242 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32243 | } | |
32244 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32245 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32246 | } | |
32247 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32248 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32249 | } | |
32250 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32251 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32252 | } | |
32253 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32254 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32255 | } | |
32256 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32257 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32258 | } | |
32259 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32260 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32261 | } | |
32262 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
32263 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
32264 | } | |
32265 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
32266 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32267 | } | |
32268 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32269 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32270 | } | |
32271 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32272 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32273 | } | |
32274 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32275 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32276 | } | |
32277 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32278 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32279 | } | |
32280 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
32281 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
32282 | } | |
32283 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
32284 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
32285 | } | |
32286 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32287 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32288 | } | |
32289 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32290 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32291 | } | |
32292 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
32293 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32294 | } | |
32295 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
32296 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32297 | } | |
32298 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
32299 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32300 | } | |
32301 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
32302 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32303 | } | |
32304 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
32305 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
32306 | } | |
32307 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
32308 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
32309 | } | |
32310 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
32311 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
32312 | } | |
32313 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
32314 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
32315 | } | |
32316 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
32317 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
32318 | } | |
32319 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
32320 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
32321 | } | |
d55e5bfc RD |
32322 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { |
32323 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
32324 | } | |
32325 | static void *_p_wxTipWindowTo_p_wxTopLevelWindow(void *x) { | |
32326 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxTipWindow *) x)); | |
32327 | } | |
32328 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
32329 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
32330 | } | |
32331 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
32332 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
32333 | } | |
27e45892 RD |
32334 | static void *_p_wxNumberEntryDialogTo_p_wxTopLevelWindow(void *x) { |
32335 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxNumberEntryDialog *) x)); | |
d55e5bfc | 32336 | } |
070c48b4 RD |
32337 | static void *_p_wxPasswordEntryDialogTo_p_wxTopLevelWindow(void *x) { |
32338 | return (void *)((wxTopLevelWindow *) (wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32339 | } | |
d55e5bfc RD |
32340 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { |
32341 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
32342 | } | |
32343 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
32344 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32345 | } | |
32346 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
32347 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32348 | } | |
32349 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
32350 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
32351 | } | |
27e45892 RD |
32352 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { |
32353 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
32354 | } | |
070c48b4 RD |
32355 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { |
32356 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
32357 | } | |
d55e5bfc RD |
32358 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { |
32359 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
32360 | } | |
32361 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
32362 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
32363 | } | |
32364 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
32365 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32366 | } | |
32367 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
32368 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
32369 | } | |
32370 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
32371 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
32372 | } | |
32373 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
32374 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
32375 | } | |
32376 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32377 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32378 | } | |
32379 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
32380 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
32381 | } | |
32382 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
32383 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
32384 | } | |
32385 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
32386 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
32387 | } | |
27e45892 RD |
32388 | static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) { |
32389 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
32390 | } | |
070c48b4 RD |
32391 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
32392 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32393 | } | |
d55e5bfc RD |
32394 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
32395 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
32396 | } | |
32397 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
32398 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32399 | } | |
32400 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
32401 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32402 | } | |
32403 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
32404 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
32405 | } | |
32406 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
32407 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
32408 | } | |
32409 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
32410 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
32411 | } | |
d55e5bfc RD |
32412 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
32413 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32414 | } | |
32415 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
32416 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
32417 | } | |
32418 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
32419 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32420 | } | |
32421 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
32422 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
32423 | } | |
32424 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
32425 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32426 | } | |
32427 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
32428 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
32429 | } | |
32430 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
32431 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
32432 | } | |
32433 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
32434 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
32435 | } | |
32436 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
32437 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
32438 | } | |
32439 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
32440 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
32441 | } | |
070c48b4 RD |
32442 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
32443 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
32444 | } | |
d55e5bfc RD |
32445 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
32446 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32447 | } | |
32448 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32449 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32450 | } | |
32451 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
32452 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32453 | } | |
32454 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
32455 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32456 | } | |
32457 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
32458 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32459 | } | |
32460 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32461 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32462 | } | |
32463 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
32464 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
32465 | } | |
32466 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
32467 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32468 | } | |
32469 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
32470 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32471 | } | |
32472 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
32473 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32474 | } | |
32475 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
32476 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
32477 | } | |
32478 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
32479 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32480 | } | |
32481 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
32482 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
32483 | } | |
32484 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
32485 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32486 | } | |
32487 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
32488 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32489 | } | |
32490 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
32491 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32492 | } | |
32493 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
32494 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
32495 | } | |
d55e5bfc RD |
32496 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
32497 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32498 | } | |
32499 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
32500 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32501 | } | |
32502 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
32503 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32504 | } | |
32505 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
32506 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32507 | } | |
32508 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
32509 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
32510 | } | |
32511 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
32512 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
32513 | } | |
32514 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
32515 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
32516 | } | |
d55e5bfc RD |
32517 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { |
32518 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
32519 | } | |
32520 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
32521 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32522 | } | |
32523 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
32524 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32525 | } | |
32526 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
32527 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
32528 | } | |
070c48b4 RD |
32529 | static void *_p_wxPasswordEntryDialogTo_p_wxDialog(void *x) { |
32530 | return (void *)((wxDialog *) (wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32531 | } | |
27e45892 RD |
32532 | static void *_p_wxNumberEntryDialogTo_p_wxDialog(void *x) { |
32533 | return (void *)((wxDialog *) ((wxNumberEntryDialog *) x)); | |
32534 | } | |
d55e5bfc RD |
32535 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { |
32536 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
32537 | } | |
32538 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
32539 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
32540 | } | |
32541 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
32542 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
32543 | } | |
32544 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
32545 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32546 | } | |
32547 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
32548 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32549 | } | |
32550 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
32551 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32552 | } | |
32553 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
32554 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32555 | } | |
32556 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
32557 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
32558 | } | |
32559 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
32560 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32561 | } | |
32562 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
32563 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
32564 | } | |
32565 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
32566 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32567 | } | |
32568 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32569 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32570 | } | |
32571 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32572 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32573 | } | |
32574 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32575 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32576 | } | |
53aa7709 RD |
32577 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
32578 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
32579 | } | |
d55e5bfc RD |
32580 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
32581 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32582 | } | |
2131d850 RD |
32583 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
32584 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32585 | } | |
d55e5bfc RD |
32586 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { |
32587 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32588 | } | |
32589 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32590 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32591 | } | |
32592 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32593 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32594 | } | |
32595 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
32596 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32597 | } | |
32598 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32599 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32600 | } | |
32601 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32602 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32603 | } | |
32604 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
32605 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
32606 | } | |
32607 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
32608 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32609 | } | |
2131d850 | 32610 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
32611 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
32612 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0}; | |
32613 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
32614 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
32615 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
32616 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
32617 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
32618 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
32619 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", "wxCalculateLayoutEvent *", 0, 0, (void*)0, 0}; | |
32620 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
32621 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", "wxColourData *", 0, 0, (void*)0, 0}; | |
32622 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", "wxColourDialog *", 0, 0, (void*)0, 0}; | |
32623 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
2131d850 RD |
32624 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; |
32625 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
1bd55598 | 32626 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
2131d850 RD |
32627 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; |
32628 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
32629 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
1bd55598 RD |
32630 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; |
32631 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
32632 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
1bd55598 RD |
32633 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; |
32634 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
32635 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", "wxDirDialog *", 0, 0, (void*)0, 0}; | |
32636 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
32637 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
32638 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
32639 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
32640 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
32641 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
32642 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
32643 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
32644 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 32645 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
1bd55598 RD |
32646 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
32647 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
32648 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
32649 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
32650 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
32651 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
32652 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
32653 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
32654 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
32655 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
32656 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
32657 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
32658 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
32659 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
32660 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
32661 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
32662 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
32663 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
32664 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
32665 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
32666 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
32667 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
32668 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
32669 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
32670 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", "wxFileDialog *", 0, 0, (void*)0, 0}; | |
32671 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
32672 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", "wxFindDialogEvent *", 0, 0, (void*)0, 0}; | |
32673 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", "wxFindReplaceData *", 0, 0, (void*)0, 0}; | |
32674 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", "wxFindReplaceDialog *", 0, 0, (void*)0, 0}; | |
32675 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
32676 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", "wxFontData *", 0, 0, (void*)0, 0}; | |
32677 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", "wxFontDialog *", 0, 0, (void*)0, 0}; | |
32678 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
e9d6f3a4 | 32679 | static swig_type_info _swigt__p_wxHtmlLinkInfo = {"_p_wxHtmlLinkInfo", "wxHtmlLinkInfo *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
32680 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
32681 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
32682 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", "wxLayoutAlgorithm *", 0, 0, (void*)0, 0}; | |
32683 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", "wxMDIChildFrame *", 0, 0, (void*)0, 0}; | |
32684 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", "wxMDIClientWindow *", 0, 0, (void*)0, 0}; | |
32685 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", "wxMDIParentFrame *", 0, 0, (void*)0, 0}; | |
32686 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; | |
32687 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0}; | |
32688 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", "wxMessageDialog *", 0, 0, (void*)0, 0}; | |
32689 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", "wxMiniFrame *", 0, 0, (void*)0, 0}; | |
32690 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", "wxMultiChoiceDialog *", 0, 0, (void*)0, 0}; | |
32691 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
27e45892 | 32692 | static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", "wxNumberEntryDialog *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
32693 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
32694 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
1bd55598 | 32695 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 32696 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
1bd55598 RD |
32697 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
32698 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
32699 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
32700 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
32701 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
32702 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
32703 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
32704 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
32705 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
32706 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
1bd55598 RD |
32707 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; |
32708 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
32709 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
32710 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
32711 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
32712 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
32713 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
32714 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
32715 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
27e45892 | 32716 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
2131d850 | 32717 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
1bd55598 RD |
32718 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
32719 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
32720 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
32721 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
32722 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", "wxPageSetupDialog *", 0, 0, (void*)0, 0}; | |
32723 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", "wxPageSetupDialogData *", 0, 0, (void*)0, 0}; | |
32724 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
32725 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
32726 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", "wxPasswordEntryDialog *", 0, 0, (void*)0, 0}; | |
32727 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
32728 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", "wxPopupWindow *", 0, 0, (void*)0, 0}; | |
32729 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", "wxPreviewCanvas *", 0, 0, (void*)0, 0}; | |
32730 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", "wxPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32731 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", "wxPreviewFrame *", 0, 0, (void*)0, 0}; | |
32732 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
32733 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", "wxPrintDialog *", 0, 0, (void*)0, 0}; | |
32734 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", "wxPrintDialogData *", 0, 0, (void*)0, 0}; | |
32735 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", "wxPrintPreview *", 0, 0, (void*)0, 0}; | |
32736 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", "wxPrinter *", 0, 0, (void*)0, 0}; | |
32737 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", "wxProgressDialog *", 0, 0, (void*)0, 0}; | |
32738 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", "wxPyHtmlListBox *", 0, 0, (void*)0, 0}; | |
32739 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", "wxPyPanel *", 0, 0, (void*)0, 0}; | |
32740 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", "wxPyPopupTransientWindow *", 0, 0, (void*)0, 0}; | |
32741 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", "wxPyPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32742 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", "wxPyPreviewFrame *", 0, 0, (void*)0, 0}; | |
32743 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", "wxPyPrintPreview *", 0, 0, (void*)0, 0}; | |
32744 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", "wxPyPrintout *", 0, 0, (void*)0, 0}; | |
32745 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", "wxPyScrolledWindow *", 0, 0, (void*)0, 0}; | |
32746 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", "wxPyTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32747 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", "wxPyVListBox *", 0, 0, (void*)0, 0}; | |
32748 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", "wxPyVScrolledWindow *", 0, 0, (void*)0, 0}; | |
32749 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", "wxPyWindow *", 0, 0, (void*)0, 0}; | |
32750 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", "wxQueryLayoutInfoEvent *", 0, 0, (void*)0, 0}; | |
32751 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
32752 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
32753 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", "wxSashEvent *", 0, 0, (void*)0, 0}; | |
32754 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", "wxSashLayoutWindow *", 0, 0, (void*)0, 0}; | |
32755 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", "wxSashWindow *", 0, 0, (void*)0, 0}; | |
32756 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0}; | |
32757 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
32758 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", "wxSingleChoiceDialog *", 0, 0, (void*)0, 0}; | |
32759 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
32760 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", "wxSplashScreen *", 0, 0, (void*)0, 0}; | |
32761 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", "wxSplashScreenWindow *", 0, 0, (void*)0, 0}; | |
32762 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", "wxSplitterEvent *", 0, 0, (void*)0, 0}; | |
32763 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", "wxSplitterWindow *", 0, 0, (void*)0, 0}; | |
32764 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", "wxStatusBar *", 0, 0, (void*)0, 0}; | |
32765 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0}; | |
32766 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
32767 | static swig_type_info _swigt__p_wxTaskBarIcon = {"_p_wxTaskBarIcon", "wxTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32768 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", "wxTaskBarIconEvent *", 0, 0, (void*)0, 0}; | |
32769 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", "wxTextEntryDialog *", 0, 0, (void*)0, 0}; | |
32770 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", "wxTipWindow *", 0, 0, (void*)0, 0}; | |
32771 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
32772 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", "wxTopLevelWindow *", 0, 0, (void*)0, 0}; | |
32773 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
32774 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
32fe5131 RD |
32775 | |
32776 | static swig_type_info *swig_type_initial[] = { | |
2131d850 | 32777 | &_swigt__p_bool, |
32fe5131 RD |
32778 | &_swigt__p_char, |
32779 | &_swigt__p_form_ops_t, | |
32780 | &_swigt__p_int, | |
32781 | &_swigt__p_unsigned_char, | |
32782 | &_swigt__p_unsigned_int, | |
32783 | &_swigt__p_unsigned_long, | |
32784 | &_swigt__p_wxANIHandler, | |
32785 | &_swigt__p_wxAcceleratorTable, | |
32786 | &_swigt__p_wxActivateEvent, | |
32787 | &_swigt__p_wxArrayInt, | |
32788 | &_swigt__p_wxBMPHandler, | |
32789 | &_swigt__p_wxBitmap, | |
32790 | &_swigt__p_wxBoxSizer, | |
32791 | &_swigt__p_wxCURHandler, | |
32792 | &_swigt__p_wxCalculateLayoutEvent, | |
32793 | &_swigt__p_wxChildFocusEvent, | |
2131d850 | 32794 | &_swigt__p_wxClipboardTextEvent, |
32fe5131 RD |
32795 | &_swigt__p_wxCloseEvent, |
32796 | &_swigt__p_wxColour, | |
32797 | &_swigt__p_wxColourData, | |
32798 | &_swigt__p_wxColourDialog, | |
32799 | &_swigt__p_wxCommandEvent, | |
32800 | &_swigt__p_wxContextMenuEvent, | |
32801 | &_swigt__p_wxControl, | |
32802 | &_swigt__p_wxControlWithItems, | |
32803 | &_swigt__p_wxDC, | |
32804 | &_swigt__p_wxDateEvent, | |
32805 | &_swigt__p_wxDialog, | |
32806 | &_swigt__p_wxDirDialog, | |
32807 | &_swigt__p_wxDisplayChangedEvent, | |
32808 | &_swigt__p_wxDropFilesEvent, | |
32809 | &_swigt__p_wxDuplexMode, | |
32810 | &_swigt__p_wxEraseEvent, | |
32811 | &_swigt__p_wxEvent, | |
32812 | &_swigt__p_wxEvtHandler, | |
32813 | &_swigt__p_wxFSFile, | |
32814 | &_swigt__p_wxFileDialog, | |
32815 | &_swigt__p_wxFileSystem, | |
32816 | &_swigt__p_wxFindDialogEvent, | |
32817 | &_swigt__p_wxFindReplaceData, | |
32818 | &_swigt__p_wxFindReplaceDialog, | |
32819 | &_swigt__p_wxFlexGridSizer, | |
32820 | &_swigt__p_wxFocusEvent, | |
32821 | &_swigt__p_wxFont, | |
32822 | &_swigt__p_wxFontData, | |
32823 | &_swigt__p_wxFontDialog, | |
32824 | &_swigt__p_wxFrame, | |
32825 | &_swigt__p_wxGBSizerItem, | |
32826 | &_swigt__p_wxGIFHandler, | |
32827 | &_swigt__p_wxGridBagSizer, | |
32828 | &_swigt__p_wxGridSizer, | |
e9d6f3a4 | 32829 | &_swigt__p_wxHtmlLinkInfo, |
32fe5131 RD |
32830 | &_swigt__p_wxICOHandler, |
32831 | &_swigt__p_wxIcon, | |
32832 | &_swigt__p_wxIconBundle, | |
32833 | &_swigt__p_wxIconizeEvent, | |
32834 | &_swigt__p_wxIdleEvent, | |
32835 | &_swigt__p_wxImage, | |
32836 | &_swigt__p_wxImageHandler, | |
32837 | &_swigt__p_wxIndividualLayoutConstraint, | |
32838 | &_swigt__p_wxInitDialogEvent, | |
32839 | &_swigt__p_wxJPEGHandler, | |
32840 | &_swigt__p_wxKeyEvent, | |
32841 | &_swigt__p_wxLayoutAlgorithm, | |
32842 | &_swigt__p_wxLayoutConstraints, | |
32843 | &_swigt__p_wxMDIChildFrame, | |
32844 | &_swigt__p_wxMDIClientWindow, | |
32845 | &_swigt__p_wxMDIParentFrame, | |
32846 | &_swigt__p_wxMaximizeEvent, | |
32847 | &_swigt__p_wxMenu, | |
32848 | &_swigt__p_wxMenuBar, | |
32849 | &_swigt__p_wxMenuEvent, | |
32850 | &_swigt__p_wxMenuItem, | |
32851 | &_swigt__p_wxMessageDialog, | |
32852 | &_swigt__p_wxMiniFrame, | |
32853 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 32854 | &_swigt__p_wxMouseCaptureLostEvent, |
32fe5131 RD |
32855 | &_swigt__p_wxMouseEvent, |
32856 | &_swigt__p_wxMoveEvent, | |
32857 | &_swigt__p_wxMultiChoiceDialog, | |
32858 | &_swigt__p_wxNavigationKeyEvent, | |
32859 | &_swigt__p_wxNcPaintEvent, | |
32860 | &_swigt__p_wxNotifyEvent, | |
27e45892 | 32861 | &_swigt__p_wxNumberEntryDialog, |
32fe5131 RD |
32862 | &_swigt__p_wxObject, |
32863 | &_swigt__p_wxPCXHandler, | |
32864 | &_swigt__p_wxPNGHandler, | |
32865 | &_swigt__p_wxPNMHandler, | |
32866 | &_swigt__p_wxPageSetupDialog, | |
32867 | &_swigt__p_wxPageSetupDialogData, | |
32868 | &_swigt__p_wxPaintEvent, | |
32869 | &_swigt__p_wxPaletteChangedEvent, | |
32870 | &_swigt__p_wxPanel, | |
32871 | &_swigt__p_wxPaperSize, | |
32872 | &_swigt__p_wxPasswordEntryDialog, | |
32873 | &_swigt__p_wxPoint, | |
32874 | &_swigt__p_wxPopupWindow, | |
32875 | &_swigt__p_wxPreviewCanvas, | |
32876 | &_swigt__p_wxPreviewControlBar, | |
32877 | &_swigt__p_wxPreviewFrame, | |
32878 | &_swigt__p_wxPrintData, | |
32879 | &_swigt__p_wxPrintDialog, | |
32880 | &_swigt__p_wxPrintDialogData, | |
32881 | &_swigt__p_wxPrintPreview, | |
32882 | &_swigt__p_wxPrinter, | |
32883 | &_swigt__p_wxProgressDialog, | |
32884 | &_swigt__p_wxPyApp, | |
32885 | &_swigt__p_wxPyCommandEvent, | |
32886 | &_swigt__p_wxPyEvent, | |
32887 | &_swigt__p_wxPyHtmlListBox, | |
32888 | &_swigt__p_wxPyImageHandler, | |
32889 | &_swigt__p_wxPyPanel, | |
32890 | &_swigt__p_wxPyPopupTransientWindow, | |
32891 | &_swigt__p_wxPyPreviewControlBar, | |
32892 | &_swigt__p_wxPyPreviewFrame, | |
32893 | &_swigt__p_wxPyPrintPreview, | |
32894 | &_swigt__p_wxPyPrintout, | |
32895 | &_swigt__p_wxPyScrolledWindow, | |
32896 | &_swigt__p_wxPySizer, | |
32897 | &_swigt__p_wxPyTaskBarIcon, | |
32898 | &_swigt__p_wxPyVListBox, | |
32899 | &_swigt__p_wxPyVScrolledWindow, | |
32900 | &_swigt__p_wxPyValidator, | |
32901 | &_swigt__p_wxPyWindow, | |
32902 | &_swigt__p_wxQueryLayoutInfoEvent, | |
32903 | &_swigt__p_wxQueryNewPaletteEvent, | |
32904 | &_swigt__p_wxRect, | |
32905 | &_swigt__p_wxRegion, | |
32906 | &_swigt__p_wxSashEvent, | |
32907 | &_swigt__p_wxSashLayoutWindow, | |
32908 | &_swigt__p_wxSashWindow, | |
32909 | &_swigt__p_wxScrollEvent, | |
32910 | &_swigt__p_wxScrollWinEvent, | |
32911 | &_swigt__p_wxScrolledWindow, | |
32912 | &_swigt__p_wxSetCursorEvent, | |
32913 | &_swigt__p_wxShowEvent, | |
32914 | &_swigt__p_wxSingleChoiceDialog, | |
32915 | &_swigt__p_wxSize, | |
32916 | &_swigt__p_wxSizeEvent, | |
32917 | &_swigt__p_wxSizer, | |
32918 | &_swigt__p_wxSizerItem, | |
32919 | &_swigt__p_wxSplashScreen, | |
32920 | &_swigt__p_wxSplashScreenWindow, | |
32921 | &_swigt__p_wxSplitterEvent, | |
32922 | &_swigt__p_wxSplitterWindow, | |
32923 | &_swigt__p_wxStaticBoxSizer, | |
32924 | &_swigt__p_wxStatusBar, | |
32925 | &_swigt__p_wxStdDialogButtonSizer, | |
32926 | &_swigt__p_wxString, | |
32927 | &_swigt__p_wxSysColourChangedEvent, | |
32928 | &_swigt__p_wxTIFFHandler, | |
32929 | &_swigt__p_wxTaskBarIcon, | |
32930 | &_swigt__p_wxTaskBarIconEvent, | |
32931 | &_swigt__p_wxTextEntryDialog, | |
32932 | &_swigt__p_wxTipWindow, | |
32933 | &_swigt__p_wxToolBar, | |
32934 | &_swigt__p_wxTopLevelWindow, | |
32935 | &_swigt__p_wxUpdateUIEvent, | |
32936 | &_swigt__p_wxValidator, | |
32937 | &_swigt__p_wxVisualAttributes, | |
32938 | &_swigt__p_wxWindow, | |
32939 | &_swigt__p_wxWindowCreateEvent, | |
32940 | &_swigt__p_wxWindowDestroyEvent, | |
32941 | &_swigt__p_wxXPMHandler, | |
32fe5131 RD |
32942 | }; |
32943 | ||
2131d850 | 32944 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
32945 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
32946 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
32947 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32948 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
32949 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32950 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
32951 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
32952 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
32953 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = { {&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32954 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
32955 | static swig_cast_info _swigc__p_wxColourData[] = { {&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
32956 | static swig_cast_info _swigc__p_wxColourDialog[] = { {&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 RD |
32957 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32958 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 | 32959 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 RD |
32960 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32961 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32962 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
32963 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32964 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32965 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 32966 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 32967 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 32968 | static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
32969 | static swig_cast_info _swigc__p_wxDirDialog[] = { {&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; |
32970 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
32971 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32972 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32973 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32974 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32975 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32976 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32977 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 32978 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
32979 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32980 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32981 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32982 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32983 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32984 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32985 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32986 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32987 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32988 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32989 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32990 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32991 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32992 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32993 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32994 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32995 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32996 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 32997 | 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_wxSplitterEvent, _p_wxSplitterEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_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_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_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_wxSashEvent, _p_wxSashEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_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}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
32998 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; |
32999 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
33000 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
33001 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
33002 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33003 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_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_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33004 | static swig_cast_info _swigc__p_wxFileDialog[] = { {&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; |
33005 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
33006 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = { {&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33007 | static swig_cast_info _swigc__p_wxFindReplaceData[] = { {&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; | |
33008 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = { {&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33009 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
33010 | static swig_cast_info _swigc__p_wxFontData[] = { {&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; | |
33011 | static swig_cast_info _swigc__p_wxFontDialog[] = { {&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33012 | static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxFrame, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxFrame, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxFrame, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxFrame, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxFrame, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxFrame, 0, 0}, {&_swigt__p_wxFrame, 0, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxFrame, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxFrame, 0, 0},{0, 0, 0, 0}}; | |
e9d6f3a4 | 33013 | static swig_cast_info _swigc__p_wxHtmlLinkInfo[] = { {&_swigt__p_wxHtmlLinkInfo, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33014 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
33015 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
33016 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = { {&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
33017 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = { {&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33018 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = { {&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33019 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = { {&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33020 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
33021 | static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33022 | static swig_cast_info _swigc__p_wxMessageDialog[] = { {&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33023 | static swig_cast_info _swigc__p_wxMiniFrame[] = { {&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33024 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = { {&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33025 | static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33026 | static swig_cast_info _swigc__p_wxNumberEntryDialog[] = { {&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 33027 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 33028 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 33029 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33030 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
33031 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33032 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33033 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33034 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33035 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33036 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33037 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
33038 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33039 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
33040 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; |
33041 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33042 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33043 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33044 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33045 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33046 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33047 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33048 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33049 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 33050 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33051 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
33052 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33053 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
33054 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 33055 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_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_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_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_wxPyVListBox, _p_wxPyVListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintout, _p_wxPyPrintoutTo_p_wxObject, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_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_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintPreview, _p_wxPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialog, _p_wxPageSetupDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialog, _p_wxPrintDialogTo_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_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_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialogData, _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialogData, _p_wxPrintDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33056 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = { {&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; |
33057 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = { {&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
33058 | static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0},{0, 0, 0, 0}}; | |
33059 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
33060 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = { {&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33061 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
33062 | static swig_cast_info _swigc__p_wxPopupWindow[] = { {&_swigt__p_wxPopupWindow, 0, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxPopupWindow, 0, 0},{0, 0, 0, 0}}; | |
33063 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = { {&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
33064 | static swig_cast_info _swigc__p_wxPreviewControlBar[] = { {&_swigt__p_wxPreviewControlBar, 0, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxPreviewControlBar, 0, 0},{0, 0, 0, 0}}; | |
33065 | static swig_cast_info _swigc__p_wxPreviewFrame[] = { {&_swigt__p_wxPreviewFrame, 0, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxPreviewFrame, 0, 0},{0, 0, 0, 0}}; | |
33066 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
33067 | static swig_cast_info _swigc__p_wxPrintDialog[] = { {&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33068 | static swig_cast_info _swigc__p_wxPrintDialogData[] = { {&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
33069 | static swig_cast_info _swigc__p_wxPrintPreview[] = { {&_swigt__p_wxPrintPreview, 0, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxPrintPreview, 0, 0},{0, 0, 0, 0}}; | |
33070 | static swig_cast_info _swigc__p_wxPrinter[] = { {&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
33071 | static swig_cast_info _swigc__p_wxProgressDialog[] = { {&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33072 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = { {&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
33073 | static swig_cast_info _swigc__p_wxPyPanel[] = { {&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
33074 | static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = { {&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33075 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = { {&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33076 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = { {&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33077 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = { {&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
33078 | static swig_cast_info _swigc__p_wxPyPrintout[] = { {&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
33079 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = { {&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33080 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = { {&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
33081 | static swig_cast_info _swigc__p_wxPyVListBox[] = { {&_swigt__p_wxPyVListBox, 0, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPyVListBox, 0, 0},{0, 0, 0, 0}}; | |
33082 | static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = { {&_swigt__p_wxPyVScrolledWindow, 0, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxPyVScrolledWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow, 0, 0},{0, 0, 0, 0}}; | |
33083 | static swig_cast_info _swigc__p_wxPyWindow[] = { {&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33084 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = { {&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33085 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
33086 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
33087 | static swig_cast_info _swigc__p_wxSashEvent[] = { {&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33088 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = { {&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33089 | static swig_cast_info _swigc__p_wxSashWindow[] = { {&_swigt__p_wxSashWindow, 0, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxSashWindow, 0, 0},{0, 0, 0, 0}}; | |
33090 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33091 | static swig_cast_info _swigc__p_wxScrolledWindow[] = { {&_swigt__p_wxScrolledWindow, 0, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0},{0, 0, 0, 0}}; | |
33092 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = { {&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33093 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
33094 | static swig_cast_info _swigc__p_wxSplashScreen[] = { {&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
33095 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = { {&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33096 | static swig_cast_info _swigc__p_wxSplitterEvent[] = { {&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33097 | static swig_cast_info _swigc__p_wxSplitterWindow[] = { {&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33098 | static swig_cast_info _swigc__p_wxStatusBar[] = { {&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33099 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33100 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
33101 | static swig_cast_info _swigc__p_wxTaskBarIcon[] = { {&_swigt__p_wxTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
33102 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = { {&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33103 | static swig_cast_info _swigc__p_wxTextEntryDialog[] = { {&_swigt__p_wxTextEntryDialog, 0, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxTextEntryDialog, 0, 0},{0, 0, 0, 0}}; | |
33104 | static swig_cast_info _swigc__p_wxTipWindow[] = { {&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33105 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33106 | static swig_cast_info _swigc__p_wxTopLevelWindow[] = { {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxTopLevelWindow, 0, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxTopLevelWindow, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 33107 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 33108 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33109 | |
33110 | static swig_cast_info *swig_cast_initial[] = { | |
2131d850 | 33111 | _swigc__p_bool, |
32fe5131 RD |
33112 | _swigc__p_char, |
33113 | _swigc__p_form_ops_t, | |
33114 | _swigc__p_int, | |
33115 | _swigc__p_unsigned_char, | |
33116 | _swigc__p_unsigned_int, | |
33117 | _swigc__p_unsigned_long, | |
33118 | _swigc__p_wxANIHandler, | |
33119 | _swigc__p_wxAcceleratorTable, | |
33120 | _swigc__p_wxActivateEvent, | |
33121 | _swigc__p_wxArrayInt, | |
33122 | _swigc__p_wxBMPHandler, | |
33123 | _swigc__p_wxBitmap, | |
33124 | _swigc__p_wxBoxSizer, | |
33125 | _swigc__p_wxCURHandler, | |
33126 | _swigc__p_wxCalculateLayoutEvent, | |
33127 | _swigc__p_wxChildFocusEvent, | |
2131d850 | 33128 | _swigc__p_wxClipboardTextEvent, |
32fe5131 RD |
33129 | _swigc__p_wxCloseEvent, |
33130 | _swigc__p_wxColour, | |
33131 | _swigc__p_wxColourData, | |
33132 | _swigc__p_wxColourDialog, | |
33133 | _swigc__p_wxCommandEvent, | |
33134 | _swigc__p_wxContextMenuEvent, | |
33135 | _swigc__p_wxControl, | |
33136 | _swigc__p_wxControlWithItems, | |
33137 | _swigc__p_wxDC, | |
33138 | _swigc__p_wxDateEvent, | |
33139 | _swigc__p_wxDialog, | |
33140 | _swigc__p_wxDirDialog, | |
33141 | _swigc__p_wxDisplayChangedEvent, | |
33142 | _swigc__p_wxDropFilesEvent, | |
33143 | _swigc__p_wxDuplexMode, | |
33144 | _swigc__p_wxEraseEvent, | |
33145 | _swigc__p_wxEvent, | |
33146 | _swigc__p_wxEvtHandler, | |
33147 | _swigc__p_wxFSFile, | |
33148 | _swigc__p_wxFileDialog, | |
33149 | _swigc__p_wxFileSystem, | |
33150 | _swigc__p_wxFindDialogEvent, | |
33151 | _swigc__p_wxFindReplaceData, | |
33152 | _swigc__p_wxFindReplaceDialog, | |
33153 | _swigc__p_wxFlexGridSizer, | |
33154 | _swigc__p_wxFocusEvent, | |
33155 | _swigc__p_wxFont, | |
33156 | _swigc__p_wxFontData, | |
33157 | _swigc__p_wxFontDialog, | |
33158 | _swigc__p_wxFrame, | |
33159 | _swigc__p_wxGBSizerItem, | |
33160 | _swigc__p_wxGIFHandler, | |
33161 | _swigc__p_wxGridBagSizer, | |
33162 | _swigc__p_wxGridSizer, | |
e9d6f3a4 | 33163 | _swigc__p_wxHtmlLinkInfo, |
32fe5131 RD |
33164 | _swigc__p_wxICOHandler, |
33165 | _swigc__p_wxIcon, | |
33166 | _swigc__p_wxIconBundle, | |
33167 | _swigc__p_wxIconizeEvent, | |
33168 | _swigc__p_wxIdleEvent, | |
33169 | _swigc__p_wxImage, | |
33170 | _swigc__p_wxImageHandler, | |
33171 | _swigc__p_wxIndividualLayoutConstraint, | |
33172 | _swigc__p_wxInitDialogEvent, | |
33173 | _swigc__p_wxJPEGHandler, | |
33174 | _swigc__p_wxKeyEvent, | |
33175 | _swigc__p_wxLayoutAlgorithm, | |
33176 | _swigc__p_wxLayoutConstraints, | |
33177 | _swigc__p_wxMDIChildFrame, | |
33178 | _swigc__p_wxMDIClientWindow, | |
33179 | _swigc__p_wxMDIParentFrame, | |
33180 | _swigc__p_wxMaximizeEvent, | |
33181 | _swigc__p_wxMenu, | |
33182 | _swigc__p_wxMenuBar, | |
33183 | _swigc__p_wxMenuEvent, | |
33184 | _swigc__p_wxMenuItem, | |
33185 | _swigc__p_wxMessageDialog, | |
33186 | _swigc__p_wxMiniFrame, | |
33187 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 33188 | _swigc__p_wxMouseCaptureLostEvent, |
32fe5131 RD |
33189 | _swigc__p_wxMouseEvent, |
33190 | _swigc__p_wxMoveEvent, | |
33191 | _swigc__p_wxMultiChoiceDialog, | |
33192 | _swigc__p_wxNavigationKeyEvent, | |
33193 | _swigc__p_wxNcPaintEvent, | |
33194 | _swigc__p_wxNotifyEvent, | |
27e45892 | 33195 | _swigc__p_wxNumberEntryDialog, |
32fe5131 RD |
33196 | _swigc__p_wxObject, |
33197 | _swigc__p_wxPCXHandler, | |
33198 | _swigc__p_wxPNGHandler, | |
33199 | _swigc__p_wxPNMHandler, | |
33200 | _swigc__p_wxPageSetupDialog, | |
33201 | _swigc__p_wxPageSetupDialogData, | |
33202 | _swigc__p_wxPaintEvent, | |
33203 | _swigc__p_wxPaletteChangedEvent, | |
33204 | _swigc__p_wxPanel, | |
33205 | _swigc__p_wxPaperSize, | |
33206 | _swigc__p_wxPasswordEntryDialog, | |
33207 | _swigc__p_wxPoint, | |
33208 | _swigc__p_wxPopupWindow, | |
33209 | _swigc__p_wxPreviewCanvas, | |
33210 | _swigc__p_wxPreviewControlBar, | |
33211 | _swigc__p_wxPreviewFrame, | |
33212 | _swigc__p_wxPrintData, | |
33213 | _swigc__p_wxPrintDialog, | |
33214 | _swigc__p_wxPrintDialogData, | |
33215 | _swigc__p_wxPrintPreview, | |
33216 | _swigc__p_wxPrinter, | |
33217 | _swigc__p_wxProgressDialog, | |
33218 | _swigc__p_wxPyApp, | |
33219 | _swigc__p_wxPyCommandEvent, | |
33220 | _swigc__p_wxPyEvent, | |
33221 | _swigc__p_wxPyHtmlListBox, | |
33222 | _swigc__p_wxPyImageHandler, | |
33223 | _swigc__p_wxPyPanel, | |
33224 | _swigc__p_wxPyPopupTransientWindow, | |
33225 | _swigc__p_wxPyPreviewControlBar, | |
33226 | _swigc__p_wxPyPreviewFrame, | |
33227 | _swigc__p_wxPyPrintPreview, | |
33228 | _swigc__p_wxPyPrintout, | |
33229 | _swigc__p_wxPyScrolledWindow, | |
33230 | _swigc__p_wxPySizer, | |
33231 | _swigc__p_wxPyTaskBarIcon, | |
33232 | _swigc__p_wxPyVListBox, | |
33233 | _swigc__p_wxPyVScrolledWindow, | |
33234 | _swigc__p_wxPyValidator, | |
33235 | _swigc__p_wxPyWindow, | |
33236 | _swigc__p_wxQueryLayoutInfoEvent, | |
33237 | _swigc__p_wxQueryNewPaletteEvent, | |
33238 | _swigc__p_wxRect, | |
33239 | _swigc__p_wxRegion, | |
33240 | _swigc__p_wxSashEvent, | |
33241 | _swigc__p_wxSashLayoutWindow, | |
33242 | _swigc__p_wxSashWindow, | |
33243 | _swigc__p_wxScrollEvent, | |
33244 | _swigc__p_wxScrollWinEvent, | |
33245 | _swigc__p_wxScrolledWindow, | |
33246 | _swigc__p_wxSetCursorEvent, | |
33247 | _swigc__p_wxShowEvent, | |
33248 | _swigc__p_wxSingleChoiceDialog, | |
33249 | _swigc__p_wxSize, | |
1bd55598 RD |
33250 | _swigc__p_wxSizeEvent, |
33251 | _swigc__p_wxSizer, | |
33252 | _swigc__p_wxSizerItem, | |
33253 | _swigc__p_wxSplashScreen, | |
33254 | _swigc__p_wxSplashScreenWindow, | |
33255 | _swigc__p_wxSplitterEvent, | |
33256 | _swigc__p_wxSplitterWindow, | |
33257 | _swigc__p_wxStaticBoxSizer, | |
33258 | _swigc__p_wxStatusBar, | |
33259 | _swigc__p_wxStdDialogButtonSizer, | |
33260 | _swigc__p_wxString, | |
33261 | _swigc__p_wxSysColourChangedEvent, | |
33262 | _swigc__p_wxTIFFHandler, | |
33263 | _swigc__p_wxTaskBarIcon, | |
33264 | _swigc__p_wxTaskBarIconEvent, | |
33265 | _swigc__p_wxTextEntryDialog, | |
33266 | _swigc__p_wxTipWindow, | |
33267 | _swigc__p_wxToolBar, | |
33268 | _swigc__p_wxTopLevelWindow, | |
33269 | _swigc__p_wxUpdateUIEvent, | |
33270 | _swigc__p_wxValidator, | |
33271 | _swigc__p_wxVisualAttributes, | |
33272 | _swigc__p_wxWindow, | |
33273 | _swigc__p_wxWindowCreateEvent, | |
33274 | _swigc__p_wxWindowDestroyEvent, | |
33275 | _swigc__p_wxXPMHandler, | |
33276 | }; | |
33277 | ||
33278 | ||
33279 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33280 | ||
33281 | static swig_const_info swig_const_table[] = { | |
33282 | {0, 0, 0, 0.0, 0, 0}}; | |
33283 | ||
36ed4f51 RD |
33284 | #ifdef __cplusplus |
33285 | } | |
33286 | #endif | |
1bd55598 RD |
33287 | /* ----------------------------------------------------------------------------- |
33288 | * Type initialization: | |
33289 | * This problem is tough by the requirement that no dynamic | |
33290 | * memory is used. Also, since swig_type_info structures store pointers to | |
33291 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
33292 | * to swig_type_info structures, we need some lookup code at initialization. | |
33293 | * The idea is that swig generates all the structures that are needed. | |
33294 | * The runtime then collects these partially filled structures. | |
33295 | * The SWIG_InitializeModule function takes these initial arrays out of | |
33296 | * swig_module, and does all the lookup, filling in the swig_module.types | |
33297 | * array with the correct data and linking the correct swig_cast_info | |
33298 | * structures together. | |
33299 | * | |
33300 | * The generated swig_type_info structures are assigned staticly to an initial | |
33301 | * array. We just loop though that array, and handle each type individually. | |
33302 | * First we lookup if this type has been already loaded, and if so, use the | |
33303 | * loaded structure instead of the generated one. Then we have to fill in the | |
33304 | * cast linked list. The cast data is initially stored in something like a | |
33305 | * two-dimensional array. Each row corresponds to a type (there are the same | |
33306 | * number of rows as there are in the swig_type_initial array). Each entry in | |
33307 | * a column is one of the swig_cast_info structures for that type. | |
33308 | * The cast_initial array is actually an array of arrays, because each row has | |
33309 | * a variable number of columns. So to actually build the cast linked list, | |
33310 | * we find the array of casts associated with the type, and loop through it | |
33311 | * adding the casts to the list. The one last trick we need to do is making | |
33312 | * sure the type pointer in the swig_cast_info struct is correct. | |
33313 | * | |
33314 | * First off, we lookup the cast->type name to see if it is already loaded. | |
33315 | * There are three cases to handle: | |
33316 | * 1) If the cast->type has already been loaded AND the type we are adding | |
33317 | * casting info to has not been loaded (it is in this module), THEN we | |
33318 | * replace the cast->type pointer with the type pointer that has already | |
33319 | * been loaded. | |
33320 | * 2) If BOTH types (the one we are adding casting info to, and the | |
33321 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
33322 | * the previous module so we just ignore it. | |
33323 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
33324 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
33325 | * be correct. | |
33326 | * ----------------------------------------------------------------------------- */ | |
36ed4f51 | 33327 | |
d55e5bfc | 33328 | #ifdef __cplusplus |
1bd55598 RD |
33329 | extern "C" { |
33330 | #if 0 | |
33331 | } /* c-mode */ | |
33332 | #endif | |
33333 | #endif | |
33334 | ||
33335 | #if 0 | |
33336 | #define SWIGRUNTIME_DEBUG | |
33337 | #endif | |
33338 | ||
33339 | SWIGRUNTIME void | |
33340 | SWIG_InitializeModule(void *clientdata) { | |
33341 | size_t i; | |
33342 | swig_module_info *module_head; | |
33343 | static int init_run = 0; | |
33344 | ||
33345 | clientdata = clientdata; | |
33346 | ||
33347 | if (init_run) return; | |
33348 | init_run = 1; | |
33349 | ||
33350 | /* Initialize the swig_module */ | |
33351 | swig_module.type_initial = swig_type_initial; | |
33352 | swig_module.cast_initial = swig_cast_initial; | |
33353 | ||
33354 | /* Try and load any already created modules */ | |
33355 | module_head = SWIG_GetModule(clientdata); | |
33356 | if (module_head) { | |
33357 | swig_module.next = module_head->next; | |
33358 | module_head->next = &swig_module; | |
33359 | } else { | |
33360 | /* This is the first module loaded */ | |
33361 | swig_module.next = &swig_module; | |
33362 | SWIG_SetModule(clientdata, &swig_module); | |
33363 | } | |
33364 | ||
33365 | /* Now work on filling in swig_module.types */ | |
33366 | #ifdef SWIGRUNTIME_DEBUG | |
33367 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
33368 | #endif | |
33369 | for (i = 0; i < swig_module.size; ++i) { | |
33370 | swig_type_info *type = 0; | |
33371 | swig_type_info *ret; | |
33372 | swig_cast_info *cast; | |
d55e5bfc | 33373 | |
1bd55598 RD |
33374 | #ifdef SWIGRUNTIME_DEBUG |
33375 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33376 | #endif | |
d55e5bfc | 33377 | |
1bd55598 RD |
33378 | /* if there is another module already loaded */ |
33379 | if (swig_module.next != &swig_module) { | |
33380 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
36ed4f51 | 33381 | } |
1bd55598 RD |
33382 | if (type) { |
33383 | /* Overwrite clientdata field */ | |
33384 | #ifdef SWIGRUNTIME_DEBUG | |
33385 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
33386 | #endif | |
33387 | if (swig_module.type_initial[i]->clientdata) { | |
33388 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
33389 | #ifdef SWIGRUNTIME_DEBUG | |
33390 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
33391 | #endif | |
33392 | } | |
33393 | } else { | |
33394 | type = swig_module.type_initial[i]; | |
36ed4f51 | 33395 | } |
1bd55598 RD |
33396 | |
33397 | /* Insert casting types */ | |
33398 | cast = swig_module.cast_initial[i]; | |
33399 | while (cast->type) { | |
33400 | /* Don't need to add information already in the list */ | |
33401 | ret = 0; | |
33402 | #ifdef SWIGRUNTIME_DEBUG | |
33403 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
33404 | #endif | |
33405 | if (swig_module.next != &swig_module) { | |
33406 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
33407 | #ifdef SWIGRUNTIME_DEBUG | |
33408 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
33409 | #endif | |
33410 | } | |
33411 | if (ret) { | |
33412 | if (type == swig_module.type_initial[i]) { | |
33413 | #ifdef SWIGRUNTIME_DEBUG | |
33414 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
33415 | #endif | |
33416 | cast->type = ret; | |
33417 | ret = 0; | |
33418 | } else { | |
33419 | /* Check for casting already in the list */ | |
33420 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
33421 | #ifdef SWIGRUNTIME_DEBUG | |
33422 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
33423 | #endif | |
33424 | if (!ocast) ret = 0; | |
33425 | } | |
33426 | } | |
33427 | ||
33428 | if (!ret) { | |
33429 | #ifdef SWIGRUNTIME_DEBUG | |
33430 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
33431 | #endif | |
33432 | if (type->cast) { | |
33433 | type->cast->prev = cast; | |
33434 | cast->next = type->cast; | |
33435 | } | |
33436 | type->cast = cast; | |
33437 | } | |
33438 | cast++; | |
36ed4f51 | 33439 | } |
1bd55598 RD |
33440 | /* Set entry in modules->types array equal to the type */ |
33441 | swig_module.types[i] = type; | |
33442 | } | |
33443 | swig_module.types[i] = 0; | |
33444 | ||
33445 | #ifdef SWIGRUNTIME_DEBUG | |
33446 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33447 | for (i = 0; i < swig_module.size; ++i) { | |
33448 | int j = 0; | |
33449 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
33450 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33451 | while (cast->type) { | |
33452 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
33453 | cast++; | |
33454 | ++j; | |
33455 | } | |
33456 | printf("---- Total casts: %d\n",j); | |
33457 | } | |
33458 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33459 | #endif | |
33460 | } | |
33461 | ||
33462 | /* This function will propagate the clientdata field of type to | |
33463 | * any new swig_type_info structures that have been added into the list | |
33464 | * of equivalent types. It is like calling | |
33465 | * SWIG_TypeClientData(type, clientdata) a second time. | |
33466 | */ | |
33467 | SWIGRUNTIME void | |
33468 | SWIG_PropagateClientData(void) { | |
33469 | size_t i; | |
33470 | swig_cast_info *equiv; | |
33471 | static int init_run = 0; | |
33472 | ||
33473 | if (init_run) return; | |
33474 | init_run = 1; | |
33475 | ||
33476 | for (i = 0; i < swig_module.size; i++) { | |
33477 | if (swig_module.types[i]->clientdata) { | |
33478 | equiv = swig_module.types[i]->cast; | |
33479 | while (equiv) { | |
33480 | if (!equiv->converter) { | |
33481 | if (equiv->type && !equiv->type->clientdata) | |
33482 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
33483 | } | |
33484 | equiv = equiv->next; | |
33485 | } | |
36ed4f51 | 33486 | } |
1bd55598 RD |
33487 | } |
33488 | } | |
33489 | ||
33490 | #ifdef __cplusplus | |
33491 | #if 0 | |
33492 | { | |
33493 | /* c-mode */ | |
33494 | #endif | |
33495 | } | |
33496 | #endif | |
33497 | ||
33498 | ||
33499 | ||
33500 | #ifdef __cplusplus | |
33501 | extern "C" { | |
33502 | #endif | |
33503 | ||
33504 | /* Python-specific SWIG API */ | |
33505 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
33506 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
33507 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
33508 | ||
33509 | /* ----------------------------------------------------------------------------- | |
33510 | * global variable support code. | |
33511 | * ----------------------------------------------------------------------------- */ | |
33512 | ||
33513 | typedef struct swig_globalvar { | |
33514 | char *name; /* Name of global variable */ | |
33515 | PyObject *(*get_attr)(void); /* Return the current value */ | |
33516 | int (*set_attr)(PyObject *); /* Set the value */ | |
33517 | struct swig_globalvar *next; | |
33518 | } swig_globalvar; | |
33519 | ||
33520 | typedef struct swig_varlinkobject { | |
33521 | PyObject_HEAD | |
33522 | swig_globalvar *vars; | |
33523 | } swig_varlinkobject; | |
33524 | ||
33525 | SWIGINTERN PyObject * | |
33526 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
33527 | return PyString_FromString("<Swig global variables>"); | |
33528 | } | |
33529 | ||
33530 | SWIGINTERN PyObject * | |
33531 | swig_varlink_str(swig_varlinkobject *v) { | |
33532 | PyObject *str = PyString_FromString("("); | |
33533 | swig_globalvar *var; | |
33534 | for (var = v->vars; var; var=var->next) { | |
33535 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
33536 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
33537 | } | |
33538 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
33539 | return str; | |
33540 | } | |
33541 | ||
33542 | SWIGINTERN int | |
33543 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
33544 | PyObject *str = swig_varlink_str(v); | |
33545 | fprintf(fp,"Swig global variables "); | |
33546 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
33547 | Py_DECREF(str); | |
33548 | return 0; | |
33549 | } | |
33550 | ||
33551 | SWIGINTERN void | |
33552 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
33553 | swig_globalvar *var = v->vars; | |
33554 | while (var) { | |
33555 | swig_globalvar *n = var->next; | |
33556 | free(var->name); | |
33557 | free(var); | |
33558 | var = n; | |
36ed4f51 | 33559 | } |
1bd55598 RD |
33560 | } |
33561 | ||
33562 | SWIGINTERN PyObject * | |
33563 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
33564 | PyObject *res = NULL; | |
33565 | swig_globalvar *var = v->vars; | |
33566 | while (var) { | |
33567 | if (strcmp(var->name,n) == 0) { | |
33568 | res = (*var->get_attr)(); | |
33569 | break; | |
33570 | } | |
33571 | var = var->next; | |
36ed4f51 | 33572 | } |
1bd55598 RD |
33573 | if (res == NULL && !PyErr_Occurred()) { |
33574 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36ed4f51 | 33575 | } |
1bd55598 RD |
33576 | return res; |
33577 | } | |
33578 | ||
33579 | SWIGINTERN int | |
33580 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
33581 | int res = 1; | |
33582 | swig_globalvar *var = v->vars; | |
33583 | while (var) { | |
33584 | if (strcmp(var->name,n) == 0) { | |
33585 | res = (*var->set_attr)(p); | |
33586 | break; | |
33587 | } | |
33588 | var = var->next; | |
36ed4f51 | 33589 | } |
1bd55598 RD |
33590 | if (res == 1 && !PyErr_Occurred()) { |
33591 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36ed4f51 | 33592 | } |
1bd55598 RD |
33593 | return res; |
33594 | } | |
33595 | ||
33596 | SWIGINTERN PyTypeObject* | |
33597 | swig_varlink_type(void) { | |
33598 | static char varlink__doc__[] = "Swig var link object"; | |
33599 | static PyTypeObject varlink_type; | |
33600 | static int type_init = 0; | |
33601 | if (!type_init) { | |
33602 | const PyTypeObject tmp | |
33603 | = { | |
33604 | PyObject_HEAD_INIT(NULL) | |
33605 | 0, /* Number of items in variable part (ob_size) */ | |
33606 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
33607 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
33608 | 0, /* Itemsize (tp_itemsize) */ | |
33609 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
33610 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
33611 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
33612 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
33613 | 0, /* tp_compare */ | |
33614 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
33615 | 0, /* tp_as_number */ | |
33616 | 0, /* tp_as_sequence */ | |
33617 | 0, /* tp_as_mapping */ | |
33618 | 0, /* tp_hash */ | |
33619 | 0, /* tp_call */ | |
33620 | (reprfunc)swig_varlink_str, /* tp_str */ | |
33621 | 0, /* tp_getattro */ | |
33622 | 0, /* tp_setattro */ | |
33623 | 0, /* tp_as_buffer */ | |
33624 | 0, /* tp_flags */ | |
33625 | varlink__doc__, /* tp_doc */ | |
33626 | 0, /* tp_traverse */ | |
33627 | 0, /* tp_clear */ | |
33628 | 0, /* tp_richcompare */ | |
33629 | 0, /* tp_weaklistoffset */ | |
33630 | #if PY_VERSION_HEX >= 0x02020000 | |
33631 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
33632 | #endif | |
33633 | #if PY_VERSION_HEX >= 0x02030000 | |
33634 | 0, /* tp_del */ | |
33635 | #endif | |
33636 | #ifdef COUNT_ALLOCS | |
33637 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
33638 | #endif | |
33639 | }; | |
33640 | varlink_type = tmp; | |
33641 | varlink_type.ob_type = &PyType_Type; | |
33642 | type_init = 1; | |
36ed4f51 | 33643 | } |
1bd55598 RD |
33644 | return &varlink_type; |
33645 | } | |
33646 | ||
33647 | /* Create a variable linking object for use later */ | |
33648 | SWIGINTERN PyObject * | |
33649 | SWIG_Python_newvarlink(void) { | |
33650 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
33651 | if (result) { | |
33652 | result->vars = 0; | |
33653 | } | |
33654 | return ((PyObject*) result); | |
33655 | } | |
33656 | ||
33657 | SWIGINTERN void | |
33658 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
33659 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
33660 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
33661 | if (gv) { | |
33662 | size_t size = strlen(name)+1; | |
33663 | gv->name = (char *)malloc(size); | |
33664 | if (gv->name) { | |
33665 | strncpy(gv->name,name,size); | |
33666 | gv->get_attr = get_attr; | |
33667 | gv->set_attr = set_attr; | |
33668 | gv->next = v->vars; | |
33669 | } | |
36ed4f51 | 33670 | } |
1bd55598 RD |
33671 | v->vars = gv; |
33672 | } | |
33673 | ||
33674 | SWIGINTERN PyObject * | |
33675 | SWIG_globals() { | |
33676 | static PyObject *_SWIG_globals = 0; | |
33677 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
33678 | return _SWIG_globals; | |
33679 | } | |
33680 | ||
33681 | /* ----------------------------------------------------------------------------- | |
33682 | * constants/methods manipulation | |
33683 | * ----------------------------------------------------------------------------- */ | |
33684 | ||
33685 | /* Install Constants */ | |
33686 | SWIGINTERN void | |
33687 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
33688 | PyObject *obj = 0; | |
33689 | size_t i; | |
33690 | for (i = 0; constants[i].type; ++i) { | |
33691 | switch(constants[i].type) { | |
33692 | case SWIG_PY_POINTER: | |
33693 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
33694 | break; | |
33695 | case SWIG_PY_BINARY: | |
33696 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
33697 | break; | |
33698 | default: | |
33699 | obj = 0; | |
33700 | break; | |
33701 | } | |
33702 | if (obj) { | |
33703 | PyDict_SetItemString(d, constants[i].name, obj); | |
33704 | Py_DECREF(obj); | |
33705 | } | |
36ed4f51 | 33706 | } |
1bd55598 RD |
33707 | } |
33708 | ||
33709 | /* -----------------------------------------------------------------------------*/ | |
33710 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33711 | /* -----------------------------------------------------------------------------*/ | |
33712 | ||
33713 | SWIGINTERN void | |
33714 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
33715 | swig_const_info *const_table, | |
33716 | swig_type_info **types, | |
33717 | swig_type_info **types_initial) { | |
33718 | size_t i; | |
33719 | for (i = 0; methods[i].ml_name; ++i) { | |
3d6c9062 | 33720 | const char *c = methods[i].ml_doc; |
1bd55598 RD |
33721 | if (c && (c = strstr(c, "swig_ptr: "))) { |
33722 | int j; | |
33723 | swig_const_info *ci = 0; | |
3d6c9062 | 33724 | const char *name = c + 10; |
1bd55598 RD |
33725 | for (j = 0; const_table[j].type; ++j) { |
33726 | if (strncmp(const_table[j].name, name, | |
33727 | strlen(const_table[j].name)) == 0) { | |
33728 | ci = &(const_table[j]); | |
33729 | break; | |
33730 | } | |
33731 | } | |
33732 | if (ci) { | |
33733 | size_t shift = (ci->ptype) - types; | |
33734 | swig_type_info *ty = types_initial[shift]; | |
33735 | size_t ldoc = (c - methods[i].ml_doc); | |
33736 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
33737 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
33738 | if (ndoc) { | |
33739 | char *buff = ndoc; | |
33740 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
33741 | if (ptr) { | |
33742 | strncpy(buff, methods[i].ml_doc, ldoc); | |
33743 | buff += ldoc; | |
33744 | strncpy(buff, "swig_ptr: ", 10); | |
33745 | buff += 10; | |
33746 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
33747 | methods[i].ml_doc = ndoc; | |
33748 | } | |
33749 | } | |
33750 | } | |
33751 | } | |
36ed4f51 | 33752 | } |
1bd55598 RD |
33753 | } |
33754 | ||
33755 | #ifdef __cplusplus | |
33756 | } | |
33757 | #endif | |
33758 | ||
33759 | /* -----------------------------------------------------------------------------* | |
33760 | * Partial Init method | |
33761 | * -----------------------------------------------------------------------------*/ | |
33762 | ||
33763 | #ifdef __cplusplus | |
33764 | extern "C" | |
33765 | #endif | |
33766 | SWIGEXPORT void SWIG_init(void) { | |
33767 | PyObject *m, *d; | |
33768 | ||
33769 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33770 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
33771 | ||
33772 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33773 | d = PyModule_GetDict(m); | |
33774 | ||
33775 | SWIG_InitializeModule(0); | |
33776 | SWIG_InstallConstants(d,swig_const_table); | |
33777 | ||
33778 | ||
33779 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
33780 | SWIG_addvarlink(SWIG_globals(),(char*)"FrameNameStr",FrameNameStr_get, FrameNameStr_set); | |
33781 | SWIG_addvarlink(SWIG_globals(),(char*)"DialogNameStr",DialogNameStr_get, DialogNameStr_set); | |
33782 | SWIG_addvarlink(SWIG_globals(),(char*)"StatusLineNameStr",StatusLineNameStr_get, StatusLineNameStr_set); | |
33783 | SWIG_addvarlink(SWIG_globals(),(char*)"ToolBarNameStr",ToolBarNameStr_get, ToolBarNameStr_set); | |
33784 | SWIG_Python_SetConstant(d, "STAY_ON_TOP",SWIG_From_int(static_cast< int >(wxSTAY_ON_TOP))); | |
33785 | SWIG_Python_SetConstant(d, "ICONIZE",SWIG_From_int(static_cast< int >(wxICONIZE))); | |
33786 | SWIG_Python_SetConstant(d, "MINIMIZE",SWIG_From_int(static_cast< int >(wxMINIMIZE))); | |
33787 | SWIG_Python_SetConstant(d, "MAXIMIZE",SWIG_From_int(static_cast< int >(wxMAXIMIZE))); | |
33788 | SWIG_Python_SetConstant(d, "CLOSE_BOX",SWIG_From_int(static_cast< int >(wxCLOSE_BOX))); | |
33789 | SWIG_Python_SetConstant(d, "THICK_FRAME",SWIG_From_int(static_cast< int >(wxTHICK_FRAME))); | |
33790 | SWIG_Python_SetConstant(d, "SYSTEM_MENU",SWIG_From_int(static_cast< int >(wxSYSTEM_MENU))); | |
33791 | SWIG_Python_SetConstant(d, "MINIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMINIMIZE_BOX))); | |
33792 | SWIG_Python_SetConstant(d, "MAXIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMAXIMIZE_BOX))); | |
33793 | SWIG_Python_SetConstant(d, "TINY_CAPTION_HORIZ",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_HORIZ))); | |
33794 | SWIG_Python_SetConstant(d, "TINY_CAPTION_VERT",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_VERT))); | |
33795 | SWIG_Python_SetConstant(d, "RESIZE_BOX",SWIG_From_int(static_cast< int >(wxRESIZE_BOX))); | |
33796 | SWIG_Python_SetConstant(d, "RESIZE_BORDER",SWIG_From_int(static_cast< int >(wxRESIZE_BORDER))); | |
33797 | SWIG_Python_SetConstant(d, "DIALOG_NO_PARENT",SWIG_From_int(static_cast< int >(wxDIALOG_NO_PARENT))); | |
33798 | SWIG_Python_SetConstant(d, "DEFAULT_FRAME_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_FRAME_STYLE))); | |
33799 | SWIG_Python_SetConstant(d, "DEFAULT_DIALOG_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_DIALOG_STYLE))); | |
33800 | SWIG_Python_SetConstant(d, "FRAME_TOOL_WINDOW",SWIG_From_int(static_cast< int >(wxFRAME_TOOL_WINDOW))); | |
33801 | SWIG_Python_SetConstant(d, "FRAME_FLOAT_ON_PARENT",SWIG_From_int(static_cast< int >(wxFRAME_FLOAT_ON_PARENT))); | |
33802 | SWIG_Python_SetConstant(d, "FRAME_NO_WINDOW_MENU",SWIG_From_int(static_cast< int >(wxFRAME_NO_WINDOW_MENU))); | |
33803 | SWIG_Python_SetConstant(d, "FRAME_NO_TASKBAR",SWIG_From_int(static_cast< int >(wxFRAME_NO_TASKBAR))); | |
33804 | SWIG_Python_SetConstant(d, "FRAME_SHAPED",SWIG_From_int(static_cast< int >(wxFRAME_SHAPED))); | |
33805 | SWIG_Python_SetConstant(d, "FRAME_DRAWER",SWIG_From_int(static_cast< int >(wxFRAME_DRAWER))); | |
33806 | SWIG_Python_SetConstant(d, "FRAME_EX_METAL",SWIG_From_int(static_cast< int >(wxFRAME_EX_METAL))); | |
33807 | SWIG_Python_SetConstant(d, "DIALOG_EX_METAL",SWIG_From_int(static_cast< int >(wxDIALOG_EX_METAL))); | |
fc46b7f3 | 33808 | SWIG_Python_SetConstant(d, "WS_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxWS_EX_CONTEXTHELP))); |
1bd55598 RD |
33809 | SWIG_Python_SetConstant(d, "DIALOG_MODAL",SWIG_From_int(static_cast< int >(wxDIALOG_MODAL))); |
33810 | SWIG_Python_SetConstant(d, "DIALOG_MODELESS",SWIG_From_int(static_cast< int >(wxDIALOG_MODELESS))); | |
33811 | SWIG_Python_SetConstant(d, "USER_COLOURS",SWIG_From_int(static_cast< int >(wxUSER_COLOURS))); | |
33812 | SWIG_Python_SetConstant(d, "NO_3D",SWIG_From_int(static_cast< int >(wxNO_3D))); | |
fc46b7f3 RD |
33813 | SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP))); |
33814 | SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP))); | |
1bd55598 RD |
33815 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOMENUBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOMENUBAR))); |
33816 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOTOOLBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOTOOLBAR))); | |
33817 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOSTATUSBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOSTATUSBAR))); | |
33818 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOBORDER",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOBORDER))); | |
33819 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOCAPTION",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOCAPTION))); | |
33820 | SWIG_Python_SetConstant(d, "FULLSCREEN_ALL",SWIG_From_int(static_cast< int >(wxFULLSCREEN_ALL))); | |
33821 | SWIG_Python_SetConstant(d, "TOPLEVEL_EX_DIALOG",SWIG_From_int(static_cast< int >(wxTOPLEVEL_EX_DIALOG))); | |
33822 | SWIG_Python_SetConstant(d, "USER_ATTENTION_INFO",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_INFO))); | |
33823 | SWIG_Python_SetConstant(d, "USER_ATTENTION_ERROR",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_ERROR))); | |
33824 | SWIG_Python_SetConstant(d, "Dialog_ButtonSizerFlags",SWIG_From_int(static_cast< int >(wxDialog::ButtonSizerFlags))); | |
33825 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_PARENT",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_PARENT))); | |
33826 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_SCREEN))); | |
33827 | SWIG_Python_SetConstant(d, "SPLASH_NO_CENTRE",SWIG_From_int(static_cast< int >(wxSPLASH_NO_CENTRE))); | |
33828 | SWIG_Python_SetConstant(d, "SPLASH_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_TIMEOUT))); | |
33829 | SWIG_Python_SetConstant(d, "SPLASH_NO_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_NO_TIMEOUT))); | |
33830 | SWIG_Python_SetConstant(d, "SB_NORMAL",SWIG_From_int(static_cast< int >(wxSB_NORMAL))); | |
33831 | SWIG_Python_SetConstant(d, "SB_FLAT",SWIG_From_int(static_cast< int >(wxSB_FLAT))); | |
33832 | SWIG_Python_SetConstant(d, "SB_RAISED",SWIG_From_int(static_cast< int >(wxSB_RAISED))); | |
33833 | SWIG_addvarlink(SWIG_globals(),(char*)"SplitterNameStr",SplitterNameStr_get, SplitterNameStr_set); | |
33834 | SWIG_Python_SetConstant(d, "SP_NOBORDER",SWIG_From_int(static_cast< int >(wxSP_NOBORDER))); | |
33835 | SWIG_Python_SetConstant(d, "SP_NOSASH",SWIG_From_int(static_cast< int >(wxSP_NOSASH))); | |
33836 | SWIG_Python_SetConstant(d, "SP_PERMIT_UNSPLIT",SWIG_From_int(static_cast< int >(wxSP_PERMIT_UNSPLIT))); | |
33837 | SWIG_Python_SetConstant(d, "SP_LIVE_UPDATE",SWIG_From_int(static_cast< int >(wxSP_LIVE_UPDATE))); | |
33838 | SWIG_Python_SetConstant(d, "SP_3DSASH",SWIG_From_int(static_cast< int >(wxSP_3DSASH))); | |
33839 | SWIG_Python_SetConstant(d, "SP_3DBORDER",SWIG_From_int(static_cast< int >(wxSP_3DBORDER))); | |
33840 | SWIG_Python_SetConstant(d, "SP_NO_XP_THEME",SWIG_From_int(static_cast< int >(wxSP_NO_XP_THEME))); | |
33841 | SWIG_Python_SetConstant(d, "SP_BORDER",SWIG_From_int(static_cast< int >(wxSP_BORDER))); | |
33842 | SWIG_Python_SetConstant(d, "SP_3D",SWIG_From_int(static_cast< int >(wxSP_3D))); | |
33843 | SWIG_Python_SetConstant(d, "SPLIT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSPLIT_HORIZONTAL))); | |
33844 | SWIG_Python_SetConstant(d, "SPLIT_VERTICAL",SWIG_From_int(static_cast< int >(wxSPLIT_VERTICAL))); | |
33845 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_NONE))); | |
33846 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_DRAGGING))); | |
33847 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_LEFT_DOWN))); | |
33848 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
33849 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
33850 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
33851 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
33852 | SWIG_addvarlink(SWIG_globals(),(char*)"SashNameStr",SashNameStr_get, SashNameStr_set); | |
33853 | SWIG_addvarlink(SWIG_globals(),(char*)"SashLayoutNameStr",SashLayoutNameStr_get, SashLayoutNameStr_set); | |
33854 | SWIG_Python_SetConstant(d, "SASH_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSASH_DRAG_NONE))); | |
33855 | SWIG_Python_SetConstant(d, "SASH_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSASH_DRAG_DRAGGING))); | |
33856 | SWIG_Python_SetConstant(d, "SASH_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSASH_DRAG_LEFT_DOWN))); | |
33857 | SWIG_Python_SetConstant(d, "SW_NOBORDER",SWIG_From_int(static_cast< int >(wxSW_NOBORDER))); | |
33858 | SWIG_Python_SetConstant(d, "SW_BORDER",SWIG_From_int(static_cast< int >(wxSW_BORDER))); | |
33859 | SWIG_Python_SetConstant(d, "SW_3DSASH",SWIG_From_int(static_cast< int >(wxSW_3DSASH))); | |
33860 | SWIG_Python_SetConstant(d, "SW_3DBORDER",SWIG_From_int(static_cast< int >(wxSW_3DBORDER))); | |
33861 | SWIG_Python_SetConstant(d, "SW_3D",SWIG_From_int(static_cast< int >(wxSW_3D))); | |
33862 | SWIG_Python_SetConstant(d, "SASH_TOP",SWIG_From_int(static_cast< int >(wxSASH_TOP))); | |
33863 | SWIG_Python_SetConstant(d, "SASH_RIGHT",SWIG_From_int(static_cast< int >(wxSASH_RIGHT))); | |
33864 | SWIG_Python_SetConstant(d, "SASH_BOTTOM",SWIG_From_int(static_cast< int >(wxSASH_BOTTOM))); | |
33865 | SWIG_Python_SetConstant(d, "SASH_LEFT",SWIG_From_int(static_cast< int >(wxSASH_LEFT))); | |
33866 | SWIG_Python_SetConstant(d, "SASH_NONE",SWIG_From_int(static_cast< int >(wxSASH_NONE))); | |
33867 | SWIG_Python_SetConstant(d, "SASH_STATUS_OK",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OK))); | |
33868 | SWIG_Python_SetConstant(d, "SASH_STATUS_OUT_OF_RANGE",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OUT_OF_RANGE))); | |
33869 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
33870 | SWIG_Python_SetConstant(d, "LAYOUT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLAYOUT_HORIZONTAL))); | |
33871 | SWIG_Python_SetConstant(d, "LAYOUT_VERTICAL",SWIG_From_int(static_cast< int >(wxLAYOUT_VERTICAL))); | |
33872 | SWIG_Python_SetConstant(d, "LAYOUT_NONE",SWIG_From_int(static_cast< int >(wxLAYOUT_NONE))); | |
33873 | SWIG_Python_SetConstant(d, "LAYOUT_TOP",SWIG_From_int(static_cast< int >(wxLAYOUT_TOP))); | |
33874 | SWIG_Python_SetConstant(d, "LAYOUT_LEFT",SWIG_From_int(static_cast< int >(wxLAYOUT_LEFT))); | |
33875 | SWIG_Python_SetConstant(d, "LAYOUT_RIGHT",SWIG_From_int(static_cast< int >(wxLAYOUT_RIGHT))); | |
33876 | SWIG_Python_SetConstant(d, "LAYOUT_BOTTOM",SWIG_From_int(static_cast< int >(wxLAYOUT_BOTTOM))); | |
33877 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_Y",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_Y))); | |
33878 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_X",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_X))); | |
33879 | SWIG_Python_SetConstant(d, "LAYOUT_MRU_LENGTH",SWIG_From_int(static_cast< int >(wxLAYOUT_MRU_LENGTH))); | |
33880 | SWIG_Python_SetConstant(d, "LAYOUT_QUERY",SWIG_From_int(static_cast< int >(wxLAYOUT_QUERY))); | |
33881 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
33882 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
33883 | SWIG_addvarlink(SWIG_globals(),(char*)"VListBoxNameStr",VListBoxNameStr_get, VListBoxNameStr_set); | |
33884 | ||
33885 | // Map renamed classes back to their common name for OOR | |
33886 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
33887 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
33888 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
33889 | ||
33890 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
33891 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
33892 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
33893 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
33894 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
33895 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
33896 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
33897 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
33898 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
33899 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogNameStr",DirDialogNameStr_get, DirDialogNameStr_set); | |
33900 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
33901 | SWIG_addvarlink(SWIG_globals(),(char*)"GetTextFromUserPromptStr",GetTextFromUserPromptStr_get, GetTextFromUserPromptStr_set); | |
33902 | SWIG_addvarlink(SWIG_globals(),(char*)"MessageBoxCaptionStr",MessageBoxCaptionStr_get, MessageBoxCaptionStr_set); | |
704eda0c RD |
33903 | SWIG_Python_SetConstant(d, "DD_NEW_DIR_BUTTON",SWIG_From_int(static_cast< int >(wxDD_NEW_DIR_BUTTON))); |
33904 | SWIG_Python_SetConstant(d, "DD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDD_DEFAULT_STYLE))); | |
33905 | SWIG_Python_SetConstant(d, "DD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDD_CHANGE_DIR))); | |
33906 | SWIG_Python_SetConstant(d, "OPEN",SWIG_From_int(static_cast< int >(wxOPEN))); | |
33907 | SWIG_Python_SetConstant(d, "SAVE",SWIG_From_int(static_cast< int >(wxSAVE))); | |
33908 | SWIG_Python_SetConstant(d, "OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxOVERWRITE_PROMPT))); | |
33909 | SWIG_Python_SetConstant(d, "FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFILE_MUST_EXIST))); | |
33910 | SWIG_Python_SetConstant(d, "MULTIPLE",SWIG_From_int(static_cast< int >(wxMULTIPLE))); | |
33911 | SWIG_Python_SetConstant(d, "CHANGE_DIR",SWIG_From_int(static_cast< int >(wxCHANGE_DIR))); | |
b02396e8 | 33912 | SWIG_Python_SetConstant(d, "HIDE_READONLY",SWIG_From_int(static_cast< int >(wxHIDE_READONLY))); |
704eda0c RD |
33913 | SWIG_Python_SetConstant(d, "FD_OPEN",SWIG_From_int(static_cast< int >(wxFD_OPEN))); |
33914 | SWIG_Python_SetConstant(d, "FD_SAVE",SWIG_From_int(static_cast< int >(wxFD_SAVE))); | |
33915 | SWIG_Python_SetConstant(d, "FD_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFD_OVERWRITE_PROMPT))); | |
33916 | SWIG_Python_SetConstant(d, "FD_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFD_FILE_MUST_EXIST))); | |
33917 | SWIG_Python_SetConstant(d, "FD_MULTIPLE",SWIG_From_int(static_cast< int >(wxFD_MULTIPLE))); | |
33918 | SWIG_Python_SetConstant(d, "FD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFD_CHANGE_DIR))); | |
1eeb270e | 33919 | SWIG_Python_SetConstant(d, "FD_PREVIEW",SWIG_From_int(static_cast< int >(wxFD_PREVIEW))); |
704eda0c | 33920 | SWIG_Python_SetConstant(d, "FD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFD_DEFAULT_STYLE))); |
1bd55598 RD |
33921 | SWIG_Python_SetConstant(d, "CHOICEDLG_STYLE",SWIG_From_int(static_cast< int >(wxCHOICEDLG_STYLE))); |
33922 | SWIG_Python_SetConstant(d, "TextEntryDialogStyle",SWIG_From_int(static_cast< int >(wxTextEntryDialogStyle))); | |
33923 | SWIG_addvarlink(SWIG_globals(),(char*)"GetPasswordFromUserPromptStr",GetPasswordFromUserPromptStr_get, GetPasswordFromUserPromptStr_set); | |
0d2c9713 RD |
33924 | SWIG_Python_SetConstant(d, "PD_AUTO_HIDE",SWIG_From_int(static_cast< int >(wxPD_AUTO_HIDE))); |
33925 | SWIG_Python_SetConstant(d, "PD_APP_MODAL",SWIG_From_int(static_cast< int >(wxPD_APP_MODAL))); | |
33926 | SWIG_Python_SetConstant(d, "PD_CAN_ABORT",SWIG_From_int(static_cast< int >(wxPD_CAN_ABORT))); | |
33927 | SWIG_Python_SetConstant(d, "PD_ELAPSED_TIME",SWIG_From_int(static_cast< int >(wxPD_ELAPSED_TIME))); | |
33928 | SWIG_Python_SetConstant(d, "PD_ESTIMATED_TIME",SWIG_From_int(static_cast< int >(wxPD_ESTIMATED_TIME))); | |
33929 | SWIG_Python_SetConstant(d, "PD_REMAINING_TIME",SWIG_From_int(static_cast< int >(wxPD_REMAINING_TIME))); | |
33930 | SWIG_Python_SetConstant(d, "PD_SMOOTH",SWIG_From_int(static_cast< int >(wxPD_SMOOTH))); | |
33931 | SWIG_Python_SetConstant(d, "PD_CAN_SKIP",SWIG_From_int(static_cast< int >(wxPD_CAN_SKIP))); | |
1bd55598 RD |
33932 | SWIG_Python_SetConstant(d, "FR_DOWN",SWIG_From_int(static_cast< int >(wxFR_DOWN))); |
33933 | SWIG_Python_SetConstant(d, "FR_WHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_WHOLEWORD))); | |
33934 | SWIG_Python_SetConstant(d, "FR_MATCHCASE",SWIG_From_int(static_cast< int >(wxFR_MATCHCASE))); | |
33935 | SWIG_Python_SetConstant(d, "FR_REPLACEDIALOG",SWIG_From_int(static_cast< int >(wxFR_REPLACEDIALOG))); | |
33936 | SWIG_Python_SetConstant(d, "FR_NOUPDOWN",SWIG_From_int(static_cast< int >(wxFR_NOUPDOWN))); | |
33937 | SWIG_Python_SetConstant(d, "FR_NOMATCHCASE",SWIG_From_int(static_cast< int >(wxFR_NOMATCHCASE))); | |
33938 | SWIG_Python_SetConstant(d, "FR_NOWHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_NOWHOLEWORD))); | |
33939 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
33940 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
33941 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
33942 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
33943 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
33944 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILE",SWIG_From_int(static_cast< int >(4001))); | |
33945 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEHOR",SWIG_From_int(static_cast< int >(4001))); | |
33946 | SWIG_Python_SetConstant(d, "IDM_WINDOWCASCADE",SWIG_From_int(static_cast< int >(4002))); | |
33947 | SWIG_Python_SetConstant(d, "IDM_WINDOWICONS",SWIG_From_int(static_cast< int >(4003))); | |
33948 | SWIG_Python_SetConstant(d, "IDM_WINDOWNEXT",SWIG_From_int(static_cast< int >(4004))); | |
33949 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEVERT",SWIG_From_int(static_cast< int >(4005))); | |
33950 | SWIG_Python_SetConstant(d, "IDM_WINDOWPREV",SWIG_From_int(static_cast< int >(4006))); | |
33951 | SWIG_Python_SetConstant(d, "FIRST_MDI_CHILD",SWIG_From_int(static_cast< int >(4100))); | |
33952 | SWIG_Python_SetConstant(d, "LAST_MDI_CHILD",SWIG_From_int(static_cast< int >(4600))); | |
33953 | SWIG_addvarlink(SWIG_globals(),(char*)"PrintoutTitleStr",PrintoutTitleStr_get, PrintoutTitleStr_set); | |
33954 | SWIG_addvarlink(SWIG_globals(),(char*)"PreviewCanvasNameStr",PreviewCanvasNameStr_get, PreviewCanvasNameStr_set); | |
33955 | SWIG_Python_SetConstant(d, "PRINT_MODE_NONE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_NONE))); | |
33956 | SWIG_Python_SetConstant(d, "PRINT_MODE_PREVIEW",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PREVIEW))); | |
33957 | SWIG_Python_SetConstant(d, "PRINT_MODE_FILE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_FILE))); | |
33958 | SWIG_Python_SetConstant(d, "PRINT_MODE_PRINTER",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PRINTER))); | |
33959 | SWIG_Python_SetConstant(d, "PRINT_MODE_STREAM",SWIG_From_int(static_cast< int >(wxPRINT_MODE_STREAM))); | |
33960 | SWIG_Python_SetConstant(d, "PRINTBIN_DEFAULT",SWIG_From_int(static_cast< int >(wxPRINTBIN_DEFAULT))); | |
33961 | SWIG_Python_SetConstant(d, "PRINTBIN_ONLYONE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ONLYONE))); | |
33962 | SWIG_Python_SetConstant(d, "PRINTBIN_LOWER",SWIG_From_int(static_cast< int >(wxPRINTBIN_LOWER))); | |
33963 | SWIG_Python_SetConstant(d, "PRINTBIN_MIDDLE",SWIG_From_int(static_cast< int >(wxPRINTBIN_MIDDLE))); | |
33964 | SWIG_Python_SetConstant(d, "PRINTBIN_MANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_MANUAL))); | |
33965 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVELOPE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVELOPE))); | |
33966 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVMANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVMANUAL))); | |
33967 | SWIG_Python_SetConstant(d, "PRINTBIN_AUTO",SWIG_From_int(static_cast< int >(wxPRINTBIN_AUTO))); | |
33968 | SWIG_Python_SetConstant(d, "PRINTBIN_TRACTOR",SWIG_From_int(static_cast< int >(wxPRINTBIN_TRACTOR))); | |
33969 | SWIG_Python_SetConstant(d, "PRINTBIN_SMALLFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_SMALLFMT))); | |
33970 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGEFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGEFMT))); | |
33971 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGECAPACITY",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGECAPACITY))); | |
33972 | SWIG_Python_SetConstant(d, "PRINTBIN_CASSETTE",SWIG_From_int(static_cast< int >(wxPRINTBIN_CASSETTE))); | |
33973 | SWIG_Python_SetConstant(d, "PRINTBIN_FORMSOURCE",SWIG_From_int(static_cast< int >(wxPRINTBIN_FORMSOURCE))); | |
33974 | SWIG_Python_SetConstant(d, "PRINTBIN_USER",SWIG_From_int(static_cast< int >(wxPRINTBIN_USER))); | |
33975 | SWIG_Python_SetConstant(d, "PRINTER_NO_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_NO_ERROR))); | |
33976 | SWIG_Python_SetConstant(d, "PRINTER_CANCELLED",SWIG_From_int(static_cast< int >(wxPRINTER_CANCELLED))); | |
33977 | SWIG_Python_SetConstant(d, "PRINTER_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_ERROR))); | |
33978 | SWIG_Python_SetConstant(d, "PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxPREVIEW_PRINT))); | |
33979 | SWIG_Python_SetConstant(d, "PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxPREVIEW_PREVIOUS))); | |
33980 | SWIG_Python_SetConstant(d, "PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxPREVIEW_NEXT))); | |
33981 | SWIG_Python_SetConstant(d, "PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxPREVIEW_ZOOM))); | |
33982 | SWIG_Python_SetConstant(d, "PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxPREVIEW_FIRST))); | |
33983 | SWIG_Python_SetConstant(d, "PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxPREVIEW_LAST))); | |
33984 | SWIG_Python_SetConstant(d, "PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxPREVIEW_GOTO))); | |
33985 | SWIG_Python_SetConstant(d, "PREVIEW_DEFAULT",SWIG_From_int(static_cast< int >(wxPREVIEW_DEFAULT))); | |
33986 | SWIG_Python_SetConstant(d, "ID_PREVIEW_CLOSE",SWIG_From_int(static_cast< int >(wxID_PREVIEW_CLOSE))); | |
33987 | SWIG_Python_SetConstant(d, "ID_PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_NEXT))); | |
33988 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PREVIOUS))); | |
33989 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PRINT))); | |
33990 | SWIG_Python_SetConstant(d, "ID_PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxID_PREVIEW_ZOOM))); | |
33991 | SWIG_Python_SetConstant(d, "ID_PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_FIRST))); | |
33992 | SWIG_Python_SetConstant(d, "ID_PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_LAST))); | |
33993 | SWIG_Python_SetConstant(d, "ID_PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxID_PREVIEW_GOTO))); | |
33994 | ||
33995 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
33996 | ||
d55e5bfc RD |
33997 | } |
33998 |